enhancing tcp fairness in ad hoc wireless networks using neighborhood red kaixin xu, mario gerla...

21
Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu Lantao Qi,Yantai Shu Department of Computer Science Department, Tianjin University {ltqi,ytshu}@tju.edu.cn

Upload: allan-pierce

Post on 30-Dec-2015

221 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED

Kaixin Xu, Mario GerlaUCLA Computer Science Department

{xkx,gerla}@cs.ucla.eduLantao Qi,Yantai Shu

Department of Computer Science Department, Tianjin University{ltqi,ytshu}@tju.edu.cn

Page 2: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

Three different types of challenges are posed to TCP in MANET

1. Mobility causes changing of topology and route change, cause TCP goes to exponentially back-off

2. The second problem deal with congestion window in use.

3. The third problem is significant TCP unfairness.

This paper focuses on the third problem.

Page 3: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

RED can improve congestion control and fairness in wired network

Suppose the current queue size is q The avg queue size is computed as

(1 )* *

max ( min ) /(max min )

/(1 * )

max max

sin .

q q

q

b p th th th

a b b

p

avg w avg w q

w is the queue weight

p avg

p p count p

is the imum packet drop probability and count is

the number of packets arrived ce last packet drop

Pb

q0

1

minth

maxth

Page 4: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

TCP UNFAIRNESS AND RED IN MANET FTP 2 is always starved. RED does not

improve fairness. This is because congestion does not happens in a single node, but in an entire area.

FTP 1

FTP 2

FTP 3

Page 5: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

Neighborhood and its Distributed Queue

Neighborhood: A node’s neighborhood consists of the node itself and the nodes which can interfere with this node’s signal, which includes 1-hop neighbors and 2-hop neighbors.

(normally interference range is much larger than data transmission range, which is simplified in this paper).

Page 6: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

Neighborhood and its Distributed Queue

The main idea of this paper is to treat this distributed queue of a neighborhood in an manet the same way as we would on a single link queue in the wired net and apply RED to it.

1. A neighborhood queue consists of multiple queues located at the neighboring nodes that are part of the same spatial reuse constraint set.

2. Multiple sub-queues have different relative priorities in terms of acquiring the wireless channel due to various factors including MAC unfairness, channel capture, hidden and exposed terminal etc.

3. The priority of a sub-queue may change dynamically due to topology or traffic pattern changes.

Page 7: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

NEIGHBORHOOD RANDOM EARLY DETECTION

Make packet drop probability and packet delay proportional to the share of bandwidth used by each TCP flow.

1. Neighborhood Congestion Detection (NCD) 2. Neighborhood congestion Notification

(NCN) 3. Distributed Neighborhood Packet Drop

(DNPD)

Page 8: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

Neighborhood Congestion Detection (NCN)

When a packet in any outgoing queue is transmitted, node A will detect the medium as busy.

When a packet is received to any incoming queue, node A can also learn this through the CTS packet.

Page 9: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

Neighborhood Congestion Detection (NCN)

A node will monitor 5 fifferent radio state 1. Transmitting 2. Receiving 3. Carrier sensing busy (RTS, CTS) 4. Virtual carrier sensing busy 5. Idle State 1&2 is for current node, 3&4 is for its neighb

ors. The authors assume state 5 means empty queue.

Page 10: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

Neighborhood Congestion Detection (NCN)

int

int int int

int

(1) ; (2) ; (3) ;

*; (1 )*

erval idle tx rxbusy tx rx

erval erval erval

erval tx rx cs vcs idle

busyq

T T T TU U U

T T T

T T T T T T

Assume W is channel bandwidth and the average packet size is C bits

U Wq avg w

C

tx

*

avg

q

rx

avg w q

We can use the same way to calculate and avg

Page 11: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

Neighborhood Congestion Notification

Under NRED, a node checks the estimated avg queue size avg periodically and compares it with o

ld min threshold. The node calculates a drop prob pb and broadcasts it to its neighbors if the following Constraints Holds for the current nodes.

The calculated Pb is larger than 0.

On the path of one or more flows

Suffering in channel contention (by

comparing avgtx+avgrx with a threshold.

Didn’t receive any NCN in the past interval with a larger normalizedPb. Otherwise the neighborhood

is more congested.

<packetType, normalizedPb,lifeTime>

Page 12: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

Distributed Neighborhood Packet Drop

When a node received a NCN with a none zero normalizedPb, the local drop prob pb is caculated as normalizedPb*(avg_tx+avg_rx).

Page 13: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

VERIFICATION ANDPARAMETER TUNING

Verification of Queue Size Estimation

Page 14: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

VERIFICATION AND PARAMETER TUNING

Parameter Tuning with Basic Scenarios with hidden and exposed terminal scenario.

Page 15: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

VERIFICATION AND PARAMETER TUNING Fairness index

MAXMin fairness is bounded between 0 and 1

21 2

1 2 2 21 2

( )( , )

2( )

X XF X X

X X

Hidden terminal situation with various max_p values

Exposed terminal situation with various max_p values

Page 16: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

VERIFICATION AND PARAMETER TUNING Aggregated Throughput (kbps)

under hidden and exposed terminal situation

Page 17: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

PERFORMANCE EVALUATION OF NRED Overall throughput of the 3 flows.

Page 18: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

PERFORMANCE EVALUATION OF NRED

Multiple Congested Neighborhood

Page 19: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

PERFORMANCE EVALUATION OF NRED

More Realistic Scenario. 50 nodes randomly deployed in 1000X1000m. 5FTP/TCP are randomly selected.

Page 20: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

PERFORMANCE EVALUATION OF NRED

Performance under Mobility

Page 21: Enhancing TCP Fairness in Ad Hoc Wireless Networks using Neighborhood RED Kaixin Xu, Mario Gerla UCLA Computer Science Department {xkx,gerla}@cs.ucla.edu

CONCLUSION

By detecting early congestion and dropping packets proportionally to a flow’s channel bandwidth usage, the NRED is able to improve TCP fairness. The major contributions of this work are the concept of a distributed neighborhood queue and the design does not require MAC modification.