300 likes | 459 Views
Diffusion Marking Mechanisms for Active Queue Management. Rafael C. Nunez - Gonzalo R. Arce Department of Electrical and Computer Engineering University of Delaware May 19 th , 2005. TCP Congestion Control. TCP controls congestion at end points (AIMD). Dropping Packets in the Router’s Queue.
E N D
Diffusion Marking Mechanisms for Active Queue Management Rafael C. Nunez - Gonzalo R. Arce Department of Electrical and Computer Engineering University of Delaware May 19th, 2005
TCP Congestion Control • TCP controls congestion at end points (AIMD)
Dropping Packets in the Router’s Queue • Tail Dropping • Problems: • Penalizes bursty traffic • Discriminates against large propagation delay connections. • Global synchronization. • Solution: Active Queue Management (AQM).
Active Queue Management • Router becomes active in congestion control. • Random Early Detection (Floyd and Jacobson, 1993). Drop Tail (Not AQM) RED
Random Early Detection (RED) • Drop probability based on average queue: • Four parameters: • qmin , qmax, Pmax, wq • Overparameterized • ECN marking
Queue Behavior in RED • 20 new flows every 20 seconds • qmin = 20, qmax = 40 • Wq = 0.001 • Wq = 0.01
Adaptive RED, REM, GREEN, BLUE,… Problems: Over-parameterization Not easy to implement in routers Not much better performance than drop tail We introduce a statistical approach Extensive Research in AQM
Diffusion Marking Mechanisms • Three components in AQM algorithms: • Drop Probability Function • Packet Dropping Scheme (Quantizer) • Packet Selection Algorithm (Not exploited yet)
Defining a New Packet Dropping Scheme with Error Diffusion • Packet marking is analogous to quantization: convert a continuous gray-scale image into black or white dots. • Error diffusion: The error between input (continuous) and output (quantized) is diffused in subsequent outputs.
D(n) is a quantized representation of P(n) Packet Marking in DM Acumulated Error Feedback model Condition for stability
Probability of Marking a Packet • Gentle RED function closely follows: (A)
Evolution of the Congestion Window • TCP in steady state: (B)
Traffic in the Network Congestion Window = Packets In The Pipe + Packets In The Queue Or: (C) • From (A), (B), (C), and knowing that: where
Algorithm Summary • Diffusion Marking decides whether to mark a packet or not as: Where: Remember: M=2, b1=2/3, b2=1/3
Optimizing the Control Mechanism • Adaptive Threshold Control • Dynamic Detection of Active Flows
Adaptive Threshold Control • Dynamic changes to the threshold improve the quality of the output.
Dynamic Detection of Active Flows • DEM requires the number of active flows • Effect of not-timed out flows and flows in timeout during less than RTT:
Dynamic Detection of Active Flows (cont’d) • The number of packets: • The number of active flows:
Results - Window Size RED Diffusion Based Larger congestion window more data!
Stability of the Queue RED Diffusion Based • 100 long lived connections (TCP/Reno, FTP) • Desired queue size = 30 packets
20 new flows every 20 seconds Changing the Number of Flows RED Diffusion Based
Evolution of DM • DM has evolved to avoid the estimation of network parameters (RTT, N). • The new approach uses a maximum likelihood ratio for congestion detection. Queue Size Dropping Rate
Conclusions • Error Diffusion dithering can be used in AQM. • Advantages: • Increased stability • Simpler (only one parameter) • Increased throughput • Current Work: • Parameter optimization • Additional traffic control applications • Extension to wireless environments