230 likes | 595 Views
Improving TCP Performance over Ad-hoc Network. Course Project for EE228A --- Fall 2000 (Professor Jean Walrand). Xuanming Dong, Duke Lee, and Jin Wang. 11/28/2000. Outline. TCP basics and congestion control Ad-hoc network basics Impact of ad-hoc network on TCP performance
E N D
Improving TCP Performanceover Ad-hoc Network Course Project for EE228A --- Fall 2000 (Professor Jean Walrand) Xuanming Dong, Duke Lee, and Jin Wang 11/28/2000
Outline • TCP basics and congestion control • Ad-hoc network basics • Impact of ad-hoc network on TCP performance • Explicit Route Notification • Simulation and Results • Summary
Basic function of TCP • Basic Data Transfer: use IP services; • Reliability: sequence number; positive ACK; retransmission and time out; checksum; • Flow Control: • Congestion Control: • Multiplexing: addresses or ports within each host; • Connections: • Precedence and Security:
TCP: Congestion Control • Variables: • Congestion Window (W) & Slow Start threshold size (ssthresh) • Indication of congestion: • Timeout and DupACK • Congestion Control : • Slow Start + Congestion Avoidance • Fast Recovery (Fast retransmission + Congestion Avoidance)
Ad-hoc Networks • Autonomous mobile nodes are free to move around arbitrarily • network topology may change randomly and rapidly at unpredictable times • Without (necessarily) using a pre-existing infrastructure • Routes between nodes may potentially contain multiple hops
Infrastructure-oriented Wireless Network • Have fixed and wired gateways • The bridges for these networks are known as base stations • A mobile node within these networks connects to the nearest base station • As the mobile node travels out of range of one base station and into range of another, a “handoff” occurs • Usually only the last link is wireless
How does mobility affect TCP • High bit error rate • cause packets(TCP data segment or ACKs) corrupted and then congestion control invoked • Route recomputation • Discovering a new route may take significantly longer than RTO and then cause retransmission and invoke congestion control • Network may be temporarily partitioned • Cause packets dropped and invoke congestion control
Route Re-computation Figure 1: Route Re-Computation
Temporary Network Partition Figure 2: Temporary Network Partition
TCP sender times out. Resumes sending mobility causes link breakage, resulting in route failure TCP sender times out. Backs off timer. Route is repaired No throughput No throughput despite route repair Larger route repair delays especially harmful TCP data and acks en route discarded Why Does Throughput Degrade?
Explicit Route Notification(ERN) Router-based feedback • Need to modify TCP Source & Router to receive/send feedback • Need mechanisms for information exchange between layers • Inform TCP of route failure by explicit message • Let TCP know when route is repaired By Explicit notification • Reduces repeated TCP timeouts and backoff
Explicit Route Notification(ERN) Router-based feedback • Need to modify TCP Source & Router to receive/send feedback • Need mechanisms for information exchange between layers • Inform TCP of route failure by explicit message • Let TCP know when route is repaired By Explicit notification • Reduces repeated TCP timeouts and backoff
Support from Router • Maintain a packet cache for every routing entry in the routing table. Once the router finds that the routing entry for a packet becomes invalid recently, it caches the packet and creates an ERFN (Explicit Route Failure Notification) packet. • Associate a timer with every packet in the cache. If the timer expires, then drop the packet from the cache. • If the invalid routing entry is removed from the routing table, drop all packets in its cache and cancel the associated timers. • If the invalid routing entry becomes valid again, forward all the cached packets and create an ERRN (Explicit Route Recovery Notification) packet for each cached packet.
Support from TCP • Context Switch • The Frozen State • Stop sending further packets. • Stop invoking congestion control. • All TCP timers are frozen, except the new frozen timeout timer. • But TCP source may accept ACK packets and advance the acknowledgment window.
Simulation Results • Source Packet Trace • Source Congestion Window trace • TCP Throughput
Summary By Xuanming Dong