23
Improving TCP Performance over Ad-hoc Network 11/28/2000 Xuanming Dong, Duke Lee, and Jin Wang Course Project for EE228A --- Fall 2000 (Professor Jean Walrand)

Improving TCP Performance over Ad-hoc Network

  • Upload
    halden

  • View
    31

  • Download
    1

Embed Size (px)

DESCRIPTION

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 - PowerPoint PPT Presentation

Citation preview

Page 1: Improving TCP Performance over Ad-hoc Network

Improving TCP Performanceover Ad-hoc Network

11/28/2000

Xuanming Dong, Duke Lee, and Jin Wang

Course Project for EE228A --- Fall 2000(Professor Jean Walrand)

Page 2: Improving TCP Performance over Ad-hoc Network

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

Page 3: Improving TCP Performance over Ad-hoc Network

Basic function of TCP

1. Basic Data Transfer: use IP services;2. Reliability: sequence number; positive

ACK; retransmission and time out; checksum;

3. Flow Control: 4. Congestion Control: 5. Multiplexing: addresses or ports within

each host;6. Connections: 7. Precedence and Security:

Page 4: Improving TCP Performance over Ad-hoc Network

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)

Page 5: Improving TCP Performance over Ad-hoc Network

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

Page 6: Improving TCP Performance over Ad-hoc Network

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

Page 7: Improving TCP Performance over Ad-hoc Network

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

Page 8: Improving TCP Performance over Ad-hoc Network

Route Re-computation

Figure 1: Route Re-Computation

Page 9: Improving TCP Performance over Ad-hoc Network

Temporary Network Partition

Figure 2: Temporary Network Partition

Page 10: Improving TCP Performance over Ad-hoc Network

mobility causeslink breakage,resulting in routefailure

TCP data and acksen route discarded

TCP sendertimes out.Backs off timer.

Route isrepaired

TCP sendertimes out.Resumessending

Larger route repair delaysespecially harmful

No throughput

No throughput

despite route repair

Why Does Throughput Degrade?

Page 11: Improving TCP Performance over Ad-hoc Network

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

Page 12: Improving TCP Performance over Ad-hoc Network

TCP FSM

Normal Frozen

ERFN

Frozen Timeout

ERRN

Figure 4: Extended TCP Finite State Machine

Page 13: Improving TCP Performance over Ad-hoc Network

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

Page 14: Improving TCP Performance over Ad-hoc Network

Support from Router

1. 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.

2. Associate a timer with every packet in the cache. If the timer expires, then drop the packet from the cache.

3. If the invalid routing entry is removed from the routing table, drop all packets in its cache and cancel the associated timers.

4. 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.

Page 15: Improving TCP Performance over Ad-hoc Network

Support from Router

Destination Next Hop Metric SeqNo A A 0 3 B B 3 2 C 2 D 6

Cache - C

Cache - D

Figure 3: Routing table in DSDV Routers

Page 16: Improving TCP Performance over Ad-hoc Network

Support from TCP

Context Switch The Frozen State

1. Stop sending further packets. 2. Stop invoking congestion control. 3. All TCP timers are frozen, except the new frozen

timeout timer.4. But TCP source may accept ACK packets and advance

the acknowledgment window.

Page 17: Improving TCP Performance over Ad-hoc Network

Support from TCP

Normal Frozen

ERFN

Frozen Timeout

ERRN

Figure 4: Extended TCP Finite State Machine

Page 18: Improving TCP Performance over Ad-hoc Network

Simulation Results

Source Packet Trace Source Congestion Window trace TCP Throughput

Page 19: Improving TCP Performance over Ad-hoc Network

Simulation Results

Figure 6: TCP Source Packet Seq No vs Time (Reno)

-400

100

600

1100

1600

24 26 28 30 32 34 36

Time(Second)

Se

qu

en

ce N

o

Page 20: Improving TCP Performance over Ad-hoc Network

Simulation Results

Figure 7: TCP Source Congestion Window Size vs Time (Reno)

0

5

10

15

20

24 26 28 30 32 34 36

Time(Second)

Co

ng

est

ion

Win

do

w

Siz

e

Page 21: Improving TCP Performance over Ad-hoc Network

Simulation Results

Figure 8: TCP Source Packet Seq No vs Time (ERN)

0

200

400

600

800

1000

1200

1400

1600

24 26 28 30 32 34 36

Time(Second)

Seq

uen

ce N

o

Page 22: Improving TCP Performance over Ad-hoc Network

Simulation Results

Figure 9: TCP Source Congestion Window Size vs Time (ERN)

0

5

10

15

24 26 28 30 32 34 36

Time(Second)

Con

gest

ion

Win

dow

S

ize

Page 23: Improving TCP Performance over Ad-hoc Network

Summary

By Xuanming Dong