Understanding TCP fairness over Wireless LAN 班級:碩士在職專班(一) 學號:...

25
Understanding TCP fairness over Wireless LAN 班班 班班班班班班班 班 班 :(一) 班班492515045 班班 班班班 班班92.11.18

Transcript of Understanding TCP fairness over Wireless LAN 班級:碩士在職專班(一) 學號:...

Page 1: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

Understanding TCP fairness over Wireless LAN

班級:碩士在職專班(一)學號: 492515045姓名:呂國銓日期: 92.11.18

Page 2: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 2 -

OUTLINE

Introduction

Experiment

Simulation

Mathematical Analysis

Solution

Conclusion

Page 3: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 3 -

INTRODUCTION

WLAN 盛行- IEEE 802.11standard

Private Area : homes and offices

Public Area : airports, hotels, cafes,…

Page 4: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 4 -

WLAN MODEL

對等式無線網路 (Ad-Hoc) 【點對點模式】主從式無線網路 (Infrastructure) 【共用模式】

Ad-Hoc Infrastructure

Page 5: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 5 -

UNFAIRNESS OF 802.11

If the mobile hosts are all senders or all receivers, then they each have equal share of the total available bandwidth.

= = =

There is one mobile sender and the rest are all mobile receivers. This mobile sender, therefore gets half of the channel bandwidth and the remaining half is equally shared by all the mobile receivers.

=

= =

Page 6: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 6 -

EXPERIMENT

In order to illustrate the subtle interactions of TCP with an unfair 802.11 MAC protocol.We conducted a series of performance tests on a commercial 802.11b network consisting of one base station and three mobile users.The ratios presented in the table are the average of 5-10 runs.In order to test the sensitivity of this ratio to the base station buffer size, use background UDP traffic.Install sniffers on the wireless interface.

Page 7: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 7 -

TABLE OF EXPERIMENT

Ru: The average TCP uplink throughput

Rd : The average TCP downlink throughput

SD : Standard Deviation

Page 8: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 8 -

CONCLUSION FROM TABLE

Ru / Rd > 1 => upstream > downstream

Number of flows ↑ => Ru / Rd ↑

Use background UDP traffic => Ru / Rd ↑

MTU ↓ => Ru / Rd ↑↑

Page 9: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 9 -

ILLUSTRATION OF EXPERIMENT

Upstream flow finished its upload and terminated

Packets lost

Congestion avoidance region : 9K – 18K

First 150 sec throughput is

very low

Page 10: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 10 -

SIMULATION

Factors impact the throughput ratio in a test-bedWireless link interfaceBase station buffer sizeImplementation details of the 802.11 MAC

layer……

Simulation study using the NS2 simulatorOne upstream and one downstream flowMultiple flows

Page 11: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 11 -

SIMULATION : up/down ratio

Total throughput is stable

Region I : 84 < buffer Up/down = 1

Region II : 42 < buffer < 84

Up/down = 10→1

Region III : 6 < buffer < 42

Up/down = {9,12}

Region IV : buffer < 6very noisy

Page 12: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 12 -

SIMULATION : RTT

RTT increases monotonically with the base station buffer size without any significant rate changes

The RTT of downstream is alm

ost equal to the upstream’s.

One upstream and one

downstream flow

5 simulation runs Each simulating 100 seconds

Page 13: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 13 -

SIMULATION : Data & ACK Loss

Data packet loss rate is always higher than the ACK loss rate

The dependency on the

buffer size is not liner.

One upstream and one

downstream flow

5 simulation runs Each simulating 100 seconds

Page 14: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 14 -

SIMULATION : Multiple Flows

The ratio is almost linear

All the downstream flows share the same resources while the total throughput remains stable.

One upstream and multiple downstream flows

buffer size = 100 packets5 runs for each data pointLasting for 100 seconds

Page 15: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 15 -

SIMULATION : Multiple Flows

The ratio is high (up to 800)

Total throughput is low

ACKs of the upstream flows clutter the base station buffer and downstream packets are dropped .

Equal number of multiple upstream and downstream flows

buffer size = 100 packets5 runs for each data pointLasting for 100 seconds

Page 16: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 16 -

B : buffer size of the base station

ω: TCP receiver window size

α: ACK packet / Data packet

window size between and

Average window size

ANALYSIS : 1 UP & 1 DOWN

B2

B

4

)(3 B

)(3

4

BupstreamTP

TPdownstreamR (?)

Page 17: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 17 -

ANALYSIS : 1 UP & 1 DOWNρ: arrival rate / service rate

p : drop rate

[6]

[7]

6 < B < 42

42 < B [7]

Page 18: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 18 -

ANALYSIS vs. SIMULATION

Page 19: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 19 -

ANALYSIS : MULTIPLE FLOWS

n2

Page 20: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 20 -

SOLUTION

Modify the receiver window field of the ACK packets flowing through the base station.The 16-bit receive window field is used for flow

control. n flows, buffer = B → receiver window = B/n

» Assume 1 upstream, n-1 downstream

upstream = B/n ,and every downstream = B/n» Assume m upstream, n-m downstream

every upstream = B/n ,and every downstream = B/n

Page 21: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 21 -

TCP SEGMENT STRUCTURE

source port # dest port #

32 bits

applicationdata

(variable length)

sequence number

acknowledgement numberReceive window

Urg data pnterchecksum

FSRPAUheadlen

notused

Options (variable length)

URG: urgent data (generally not used)

ACK: ACK #valid

PSH: push data now(generally not used)

RST, SYN, FIN:connection estab(setup, teardown

commands)

# bytes rcvr willingto accept

countingby bytes of data(not segments!)

Internetchecksum

(as in UDP)

Page 22: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 22 -

SIMULATION FOR SOLUTION

Throughput ratio of upstream and downstream = 1 => resulting in fair allocation of bandwidth

Without the solution ,the ratio

up to 800. (P.15 Fig.7)

Set receiver window = 100/n

Buffer size = 100 packets5 simulation runs for each nEach simulating 100 seconds

Page 23: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 23 -

EXPERIMENT FOR SOLUTION

Receiver window Ratio of up/down Standard deviation

65000 bytes

( default )7.9 4.57

2000 bytes( modified by solution )

1.007 0.0005

2 upstream flows 2 downstream flows

MTU = 500 bytes 450 / 1ms UDP background

Page 24: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 24 -

CONCLUSION & DISCUSSION

CONCLUSIONThe buffer size at the base station plays a key role.Modifying the receiver window size can provide fair T

CP throughput for any buffer size or number of flows.

The other ways of researchChannel lossesTCP flows with different RTT Interaction with IPSec

Page 25: Understanding TCP fairness over Wireless LAN  班級:碩士在職專班(一)  學號: 492515045  姓名:呂國銓  日期: 92.11.18.

- 25 -

REFERENCES