Understanding TCP fairness over Wireless LAN 班級:碩士在職專班(一) 學號: 姓名:呂國銓 日期:
- 2 - O UTLINE Introduction Experiment Simulation Mathematical Analysis Solution Conclusion
- 3 - I NTRODUCTION WLAN 盛行- IEEE standard Private Area : homes and offices Public Area : airports, hotels, cafes,…
- 4 - W LAN M ODEL 對等式無線網路 (Ad-Hoc) 【點對點模式】 主從式無線網路 (Infrastructure) 【共用模式】 Ad-Hoc Infrastructure
- 5 - U NFAIRNESS OF 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. = ==
- 6 - E XPERIMENT In order to illustrate the subtle interactions of TCP with an unfair MAC protocol. We conducted a series of performance tests on a commercial b 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.
- 7 - T ABLE OF E XPERIMENT Ru : The average TCP uplink throughput R d : The average TCP downlink throughput SD : Standard Deviation
- 8 - C ONCLUSION F ROM T ABLE Ru / Rd > 1 => upstream > downstream Number of flows ↑ => Ru / Rd ↑ Use background UDP traffic => Ru / Rd ↑ MTU ↓ => Ru / Rd ↑↑
- 9 - I LLUSTRATION OF E XPERIMENT Upstream flow finished its upload and terminated Packets lost Congestion avoidance region : 9K – 18K First 150 sec throughput is very low
S IMULATION Factors impact the throughput ratio in a test-bed Wireless link interface Base station buffer size Implementation details of the MAC layer …… Simulation study using the NS2 simulator One upstream and one downstream flow Multiple flows
S IMULATION : 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 < 6 very noisy
S IMULATION : RTT RTT increases monotonically with the base station buffer size without any significant rate changes The RTT of downstream is almost equal to the upstream’s. One upstream and one downstream flow 5 simulation runs Each simulating 100 seconds
S IMULATION : D ata & A CK L oss 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
S IMULATION : 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 packets 5 runs for each data point Lasting for 100 seconds
S IMULATION : 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 packets 5 runs for each data point Lasting for 100 seconds
B : buffer size of the base station ω: TCP receiver window size α: ACK packet / Data packet window size between and Average window size A NALYSIS : 1 U P & 1 D OWN (?)
A NALYSIS : 1 U P & 1 D OWN ρ: arrival rate / service rate p : drop rate [6] [7] 6 < B < < B [7]
A NALYSIS vs. S IMULATION
A NALYSIS : M ULTIPLE F LOWS n2n2
S OLUTION 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
T CP S EGMENT S TRUCTURE source port # dest port # 32 bits application data (variable length) sequence number acknowledgement number Receive window Urg data pnter checksum F SR PAU head len not used 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 willing to accept counting by bytes of data (not segments!) Internet checksum (as in UDP)
S IMULATION F OR S OLUTION 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 packets 5 simulation runs for each n Each simulating 100 seconds
E XPERIMENT F OR S OLUTION Receiver windowRatio of up/downStandard deviation bytes ( default ) bytes ( modified by solution ) 2 upstream flows 2 downstream flows MTU = 500 bytes 450 / 1ms UDP background
C ONCLUSION & D ISCUSSION CONCLUSION The buffer size at the base station plays a key role. Modifying the receiver window size can provide fair TCP throughput for any buffer size or number of flows. The other ways of research Channel losses TCP flows with different RTT Interaction with IPSec
R EFERENCES