COMP680E by M. Hamdi 1 Traffic Managers: Active Queue Management Algorithms.

Slides:



Advertisements
Similar presentations
Balaji Prabhakar Active queue management and bandwidth partitioning algorithms Balaji Prabhakar Departments of EE and CS Stanford University
Advertisements

Computer Networking Lecture 20 – Queue Management and QoS.
RED Enhancement Algorithms By Alina Naimark. Presented Approaches Flow Random Early Drop - FRED By Dong Lin and Robert Morris Sabilized Random Early Drop.
1 CONGESTION CONTROL. 2 Congestion Control When one part of the subnet (e.g. one or more routers in an area) becomes overloaded, congestion results. Because.
CSIT560 Internet Infrastructure: Switches and Routers Active Queue Management Presented By: Gary Po, Henry Hui and Kenny Chong.
Congestion Control Reasons: - too many packets in the network and not enough buffer space S = rate at which packets are generated R = rate at which receivers.
Transport Layer3-1 TCP AIMD multiplicative decrease: cut CongWin in half after loss event additive increase: increase CongWin by 1 MSS every RTT in the.
CS 268: Lecture 8 Router Support for Congestion Control Ion Stoica Computer Science Division Department of Electrical Engineering and Computer Sciences.
T. S. Eugene Ngeugeneng at cs.rice.edu Rice University1 COMP/ELEC 429 Introduction to Computer Networks Lecture 16: Congestion control II Slides used with.
CS 4700 / CS 5700 Network Fundamentals Lecture 12: Router-Aided Congestion Control (Drop it like it’s hot) Revised 3/18/13.
QoS in The Internet: Scheduling Algorithms and Active Queue Management
The War Between Mice and Elephants Presented By Eric Wang Liang Guo and Ibrahim Matta Boston University ICNP
1 Minseok Kwon and Sonia Fahmy Department of Computer Sciences Purdue University {kwonm, All our slides and papers.
1 Congestion Control Outline Queuing Discipline Reacting to Congestion Avoiding Congestion.
Networking Issues in LAN Telephony Brian Yang
Analysis and Simulation of a Fair Queuing Algorithm
Improving Adaptability and Fairness in Internet Congestion Control May 30, 2001 Seungwan Ryu PhD Student of IE Department University at Buffalo.
EE689 Lecture 5 Review of last lecture More on HPF RED.
15-744: Computer Networking L-11 Queue Management.
1 Random Early Detection Gateways for Congestion Avoidance Sally Floyd and Van Jacobson, IEEE Transactions on Networking, Vol.1, No. 4, (Aug 1993), pp
CSIT560 by M. Hamdi 1 QoS Algorithms. CSIT560 by M. Hamdi 2 Principles for QOS Guarantees Consider a phone application at 1Mbps and an FTP application.
CS 268: Lecture 8 (Router Support for Congestion Control) Ion Stoica February 19, 2002.
1 End-to-End Detection of Shared Bottlenecks Sridhar Machiraju and Weidong Cui Sahara Winter Retreat 2003.
1 Emulating AQM from End Hosts Presenters: Syed Zaidi Ivor Rodrigues.
Active Queue Management Rong Pan Cisco System EE384y Spring Quarter 2006.
ACN: Congestion Control1 Congestion Control and Resource Allocation.
Computer Networking Lecture 17 – Queue Management As usual: Thanks to Srini Seshan and Dave Anderson.
Random Early Detection Gateways for Congestion Avoidance
Lecture 5: Congestion Control l Challenge: how do we efficiently share network resources among billions of hosts? n Last time: TCP n This time: Alternative.
COMP680E by M. Hamdi 1 Course Exam: Review April 17 (in-Class)
Promoting the Use of End-to-End Congestion Control & Random Early Detection of Network Congestion.
Core Stateless Fair Queueing Stoica, Shanker and Zhang - SIGCOMM 98 Rigorous fair Queueing requires per flow state: too costly in high speed core routers.
Lightweight Active Router-Queue Management for Multimedia Networking M. Parris, K. Jeffay, and F.D. Smith Department of Computer Science University of.
Advanced Computer Networks : RED 1 Random Early Detection Gateways for Congestion Avoidance Sally Floyd and Van Jacobson, IEEE Transactions on Networking,
Core Stateless Fair Queueing Stoica, Shanker and Zhang - SIGCOMM 98 Fair Queueing requires per flow state: too costly in high speed core routers Yet, some.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
1 Queue Management Hamed Khanmirza Principles of Networking University of Tehran.
Bandwidth partitioning (jointly with R. Pan, C. Psounis, C. Nair, B. Yang, L. Breslau and S. Shenker)
Link Scheduling & Queuing COS 461: Computer Networks
CS 268: Computer Networking L-6 Router Congestion Control.
Advance Computer Networking L-6 TCP & Routers Acknowledgments: Lecture slides are from the graduate level Computer Networks course thought by Srinivasan.
Advanced Computer Networking
ACN: RED paper1 Random Early Detection Gateways for Congestion Avoidance Sally Floyd and Van Jacobson, IEEE Transactions on Networking, Vol.1, No. 4, (Aug.
1 On Class-based Isolation of UDP, Short-lived and Long-lived TCP Flows by Selma Yilmaz Ibrahim Matta Computer Science Department Boston University.
27th, Nov 2001 GLOBECOM /16 Analysis of Dynamic Behaviors of Many TCP Connections Sharing Tail-Drop / RED Routers Go Hasegawa Osaka University, Japan.
CS551: Queue Management Christos Papadopoulos (
TCP Trunking: Design, Implementation and Performance H.T. Kung and S. Y. Wang.
Queueing and Active Queue Management Aditya Akella 02/26/2007.
9.7 Other Congestion Related Issues Outline Queuing Discipline Avoiding Congestion.
15744 Course Project1 Evaluation of Queue Management Algorithms Ningning Hu, Liu Ren, Jichuan Chang 30 April 2001.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
AQM & TCP models Courtesy of Sally Floyd with ICIR Raj Jain with OSU.
We used ns-2 network simulator [5] to evaluate RED-DT and compare its performance to RED [1], FRED [2], LQD [3], and CHOKe [4]. All simulation scenarios.
Random Early Detection (RED) Router notifies source before congestion happens - just drop the packet (TCP will timeout and adjust its window) - could make.
Queue Scheduling Disciplines
Spring Computer Networks1 Congestion Control Sections 6.1 – 6.4 Outline Preliminaries Queuing Discipline Reacting to Congestion Avoiding Congestion.
ECEN 619, Internet Protocols and Modeling Prof. Xi Zhang Random Early Detection Gateways for Congestion Avoidance Sally Floyd and Van Jacobson, IEEE Transactions.
Computer Networking Lecture 10 – TCP & Routers.
Univ. of TehranIntroduction to Computer Network1 An Introduction Computer Networks An Introduction to Computer Networks University of Tehran Dept. of EE.
Real-time Transport for Assured Forwarding: An Architecture for both Unicast and Multicast Applications By Ashraf Matrawy and Ioannis Lambadaris From Carleton.
Other Methods of Dealing with Congestion
QoS & Queuing Theory CS352.
Chapter 6 Congestion Avoidance
Advance Computer Networking
EE 122: Router Support for Congestion Control: RED and Fair Queueing
Queuing and Queue Management
Random Early Detection Gateways for Congestion Avoidance
Other Methods of Dealing with Congestion
Other Methods of Dealing with Congestion
TCP Congestion Control
Presentation transcript:

COMP680E by M. Hamdi 1 Traffic Managers: Active Queue Management Algorithms

COMP680E by M. Hamdi 2 Queuing Disciplines Each router must implement some queuing discipline Queuing allocates both bandwidth and buffer space: –Bandwidth: which packet to serve (transmit) next - This is scheduling –Buffer space: which packet to drop next (when required) – this buffer management Queuing affects the delay of a packet (QoS)

COMP680E by M. Hamdi 3 Queuing Disciplines Traffic Sources Class C Class B Class A Traffic Classes Drop Scheduling Buffer Management

COMP680E by M. Hamdi 4 Active Queue Management Queue Sink Outbound LinkRouterInbound Link Sink TCP ACK… Queue Sink Outbound LinkRouterInbound Link Sink TCP ACK… Queue Sink Outbound LinkRouterInbound Link Sink TCP ACK… Drop!!! Queue Sink Outbound LinkRouterInbound Link Sink TCP Queue Sink Outbound LinkRouterInbound Link Sink TCP AQM Congestion Congestion Notification… ACK… Queue Sink Outbound LinkRouterInbound Link Sink TCP AQM Advantages Reduce packet losses (due to queue overflow) Reduce queuing delay

COMP680E by M. Hamdi 5 QoS Router Policer Classifier Policer Classifier Per-flow Queue Scheduler Per-flow Queue Scheduler Per-flow Queue shaper Queue management

COMP680E by M. Hamdi 6 Packet Drop Dimensions Aggregation Per-connection state Single class Drop position Head Tail Random location Class-based queuing Early drop Overflow drop

COMP680E by M. Hamdi 7 Typical Internet Queuing FIFO + drop-tail –Simplest choice –Used widely in the Internet FIFO (first-in-first-out) –Implies single class of traffic Drop-tail –Arriving packets get dropped when queue is full regardless of flow or importance Important distinction: –FIFO: scheduling discipline –Drop-tail: drop policy (buffer management)

COMP680E by M. Hamdi 8 FIFO + Drop-tail Problems FIFO Issues: (irrespective of the aggregation level) –No isolation between flows: full burden on e2e control (e..g., TCP) –No policing: send more packets  get more service Drop-tail issues: –Routers are forced to have have large queues to maintain high utilizations –Larger buffers => larger steady state queues/delays –Synchronization: end hosts react to the same events because packets tend to be lost in bursts –Lock-out: a side effect of burstiness and synchronization is that a few flows can monopolize queue space

COMP680E by M. Hamdi 9 Synchronization Problem Because of Congestion Avoidance in TCP cwnd TimeRTT Slow Start W* W W+1 RTT Congestion Avoidance W*/2

COMP680E by M. Hamdi 10 Synchronization Problem Queue Size Time Total Queue All TCP connections reduce their transmission rate on crossing over the maximum queue size. The TCP connections increase their tx rate using the slow start and congestion avoidance. The TCP connections reduce their tx rate again. It makes the network traffic fluctuate.

COMP680E by M. Hamdi 11 Global Synchronization Problem Can result in very low throughput during periods of congestion Max Queue Length

COMP680E by M. Hamdi 12 Global Synchronization Problem  TCP Congestion control Synchronization: leads to bandwidth under-utilization Persistently full queues: leads to large queueing delays Cannot provide (weighted) fairness to traffic flows – inherently proposed for responsive flows Flow 1 Rate Time Flow 2 Aggregate load bottleneck rate

COMP680E by M. Hamdi 13 Lock-out Problem Lock-Out: In some situations tail drop allows a single connection or a few flows (misbehaving flows: UDP) to monopolize queue space, preventing other connections from getting room in the queue. This "lock-out" phenomenon is often the result of synchronization. Lock-Out: In some situations tail drop allows a single connection or a few flows (misbehaving flows: UDP) to monopolize queue space, preventing other connections from getting room in the queue. This "lock-out" phenomenon is often the result of synchronization. Max Queue Length

COMP680E by M. Hamdi 14 Bias Against Bursty Traffic During dropping, bursty traffic will be dropped in benchs – which is not fair for bursty connections Max Queue Length

COMP680E by M. Hamdi 15 Active Queue Management Goals Solve lock-out and full-queue problems –No lock-out behavior –No global synchronization –No bias against bursty flow Provide better QoS at a router –Low steady-state delay –Lower packet dropping

COMP680E by M. Hamdi 16 RED (Random Early Detection) FIFO scheduling Buffer management: –Probabilistically discard packets –Probability is computed as a function of average queue length Discard Probability Average Queue Length 0 1 min_thmax_th queue_len

COMP680E by M. Hamdi 17 Random Early Detection (RED)

COMP680E by M. Hamdi 18 RED operation Min thresh Max thresh Average queue length minthreshmaxthresh MaxP 1.0 Avg length P(drop)

COMP680E by M. Hamdi 19 Define Two Threshold Values RED (Random Early Detection) FIFO scheduling Min thresh Max thresh Average queue length Make Use of Average Queue Length Case 1: Average Queue Length < Min. Thresh Value Admit the New Packet

COMP680E by M. Hamdi 20 RED (Cont’d) Min thresh Max thresh Average queue length Case 2: Average Queue Length between Min. and Max. Threshold Value p 1-p Admit the New Packet With Probability p … p 1-p Or Drop the New Packet With Probability 1-p

COMP680E by M. Hamdi 21 Random Early Detection Algorithm ave = (1 – w q )ave + w q q P = max_P*(avg_len – min_th)/(max_th – min_th) for each packet arrival: calculate the average queue size ave if ave ≤ min th do nothing else if min th ≤ ave ≤ max th calculate drop probability p drop arriving packet with probability p else if max th ≤ ave arriving packet drop the arriving packet

Random early detection (RED) packet drop Max threshold Min threshold Average queue length Forced drop Probabilistic early drop No drop Time Drop probability Max queue length

COMP680E by M. Hamdi 23 Time Max Queue Size Active Queue Management Random Early Detection (RED) Weighted average accommodates bursty traffic Max Threshold Min Threshold Forced drop Probabilistic drops No drops Drop probability Average queue length l l Probabilistic drops » »avoid consecutive drops » »drops proportional to bandwidth utilization – –(drop rate equal for all flows)

COMP680E by M. Hamdi 24 RED Vulnerable to Misbehaving Flows ,000 1,200 1,400 FIFO RED UDP blast TCP Throughput (Kbytes/Sec) Time (seconds)

COMP680E by M. Hamdi 25 Effectiveness of RED - Lock-Out & Global Synchronization Packets are randomly dropped Each flow has the same probability of being discarded

COMP680E by M. Hamdi 26 Effectiveness of RED - Full-Queue & Bias against bursty traffic Drop packets probabilistically in anticipation of congestion –Not when queue is full Use q avg to decide packet dropping probability : allow instantaneous bursts

COMP680E by M. Hamdi 27 What QoS does RED Provide? Lower buffer delay: good interactive service –q avg is controlled to be small Given responsive flows: packet dropping is reduced –Early congestion indication allows traffic to throttle back before congestion RED provide small delay, small packet loss, and high throughput (when it has responsive flows).

COMP680E by M. Hamdi 28 Weighted RED (WRED) WRED provides separate thresholds and weights for different IP precedences, allowing us to provide different quality of service to different traffic Lower priority class traffic may be dropped more frequently than higher priority traffic during periods of congestion

COMP680E by M. Hamdi 29 Random Dropping WRED (Cont..) High Priority traffic Medium Priority traffic Low Priority traffic

COMP680E by M. Hamdi 30 Average Queue Depth Standard Minimum Threshold Premium Minimum Threshold Std and Pre Maximum Threshold Adds Per-Class Queue Thresholds for Differential Treatment Two Classes are Shown; Any number of classes Can Be Defined Congestion Avoidance: Weighted Random Early Detection (WRED) Probability of Packet Discard

COMP680E by M. Hamdi 31 Problems with (W)RED – unresponsive flows

COMP680E by M. Hamdi 32 Vulnerability to Misbehaving Flows TCP performance on a 10 Mbps link under RED in the face of a “UDP” blast

COMP680E by M. Hamdi 33 Vulnerability to Misbehaving Flows Try to look at the following example: Assume there is a network which is set up as: UDP sources R1R2 S(m) S(1) S(m+1) S(m+n) S(m) S(1) S(m+1) S(m+n) 10Mbps 100Mbps TCP sources UDP sources

COMP680E by M. Hamdi 34 Vulnerability to Misbehaving Flows

COMP680E by M. Hamdi 35 Vulnerability to Misbehaving Flows Queue Size versus Time Delay is bounded Delay is bounded Global Synchronization solved RED: Queue Size

COMP680E by M. Hamdi 36 Unfairness of RED Unresponsive Flow (such as UDP) 32 TCP Flows 1 UDP Flow 32 TCP Flows 1 UDP Flow An unresponsive flow occupies over 95% of bandwidth An unresponsive flow occupies over 95% of bandwidth

COMP680E by M. Hamdi 37 Scheduling & Queue Management What routers want to do? –Isolate unresponsive flows (e.g., UDP) –Provide Quality of Service to all users Two ways to do it –Scheduling algorithms: e.g., WFQ, WRR –Queue management algorithms: e.g., RED, FRED, SRED

COMP680E by M. Hamdi 38 The setup and problems l l In a congested network with many users l l QoS requirements are different l l Problem: q q Allocate bandwidth fairly

COMP680E by M. Hamdi 39 l l Network node: Fair Queueing (FQ) l l User traffic: any type Problem: complex implementation lots of work per flow Approach 1: Network-Centric

COMP680E by M. Hamdi 40 Approach 2: User-Centric l l Network node : n n simple FIFO buffer; n n active queue management (AQM): RED l l User traffic: congestion-aware (e.g. TCP) Problem: requires user cooperation

COMP680E by M. Hamdi 41 Current Trend l l Network node: n n simple FIFO buffer n n AQM schemes with enhancement to provide fairness: preferential dropping packets l l User traffic: any type

COMP680E by M. Hamdi 42 Packet Dropping Schemes l l Size-based Schemes n n drop decision based on the size of FIFO queue n n e.g. RED l l Content-based Schemes n n drop decision based on the current content of the FIFO queue n n e.g. CHOKe l l History-based Schemes n n keep a history of packet arrivals/drops to guide drop decision n n e.g. SRED, RED with penalty box, AFD

COMP680E by M. Hamdi 43 CHOKe (no state information)

COMP680E by M. Hamdi 44 Random Sampling from Queue A randomly chosen packet more likely from the unresponsive flow Unresponsive flows can’t fool the system

COMP680E by M. Hamdi 45 Comparison of Flow ID Compare the flow id with the incoming packet –More accurate –Reduce the chance of dropping packets from a TCP- friendly flows

COMP680E by M. Hamdi 46 Dropping Mechanism Drop packets (both incoming and matching samples) –More arrival  More Drop –Give users a disincentive to send more

COMP680E by M. Hamdi 47 CHOKe (Cont’d) Min thresh Max thresh Average queue length Case 1: Average Queue Length < Min. Thresh Value Admit the New Packet

COMP680E by M. Hamdi 48 CHOKe (Cont’d) Min thresh Max thresh Average queue length p 1-p Case 2: Avg. Queue Length is between Min. and Max. Threshold Values A packet is randomly chosen from the queue to compare with the new arrival packet If they are from different flows, the same logic in RED applies If they are from the same flow, both packets will be dropped

COMP680E by M. Hamdi 49 CHOKe (Cont’d) Min thresh Max thresh Average queue length Case 3: Avg. Queue Length > Max. Threshold Value A random packet will be chosen for comparison If they are from different flows, the new packet will be dropped If they are from the same flow, both packets will be dropped

COMP680E by M. Hamdi 50 Simulation Setup

COMP680E by M. Hamdi 51 Network Setup Parameters 32 TCP flows, 1 UDP flow All TCP’s maximum window size = 300 All links have a propagation delay of 1ms FIFO buffer size = 300 packets All packets sizes = 1KByte RED: (min th, max th ) = (100,200) packets

COMP680E by M. Hamdi TCP, 1 UDP (one sample)

COMP680E by M. Hamdi TCP, 5 UDP (5 samples)

COMP680E by M. Hamdi 54 How Many Samples to Take? Different samples for different Qlen avg –# samples decrease when Qlen avg close to min th –# samples increase when Qlen avg close to max th

COMP680E by M. Hamdi TCP, 5 UDP (self-adjusting)

COMP680E by M. Hamdi 56 Two Problems of CHOKe Problem I: –Unfairness among UDP flows of different rates Problem II: –Difficulty in choosing automatically how many to drop

COMP680E by M. Hamdi 57 SAC (Self Adjustable CHOKe Tries to Solve the previously mentioned two problems

COMP680E by M. Hamdi 58 SAC Problem 1: Unfairness among UDP flows of different rates (e.g., when k =1, the UDP flow 31 (6 Mbps) has 1/3 throughput of UDP flow 32 (1 Mbps), and when k =10, throughput of UDP flow 31 is almost 0).

COMP680E by M. Hamdi 59 SAC Problem 2: Difficulty in choosing automatically how many to drop (when k = 4, UDPs occupy most of the BW. When k =10, relatively good fair sharing, and when k = 20, TCPs get most of the BW).

COMP680E by M. Hamdi 60 SAC Solutions: 1.Search from the tail of the queue for a packet with the same flow number and drop this packet instead of random dropping – because the higher a flow rate is, the more likely its packets will gather at the rear of the queue. The queue occupancy will be more evenly distributed among the flows. 2. Automate the process of determining k according to traffic status (number of active flows and number of UDP flows)

COMP680E by M. Hamdi 61 SAC Once an incoming UDP is compared with a randomly selected packet, if they are of the same flow, P is updated in this way: P  (1-w p ) P + w p. If they are of different flows, P is updated as follows: P  (1-w p ) P. If P is small, then there are more competing flows, and we should increase the value of k. Once there is an incoming packet, if it is a UDP packet, R is updated in this way: R  (1-w r ) R+ w r.. If it is a TCP packet, R is updated as follows: R  (1-w r ) R. If R is large, then we have a large amount of UDP traffic, and we should increase k to drop more UDP packets.

COMP680E by M. Hamdi 62 SAC simulation Throughput per flow (30 TCP flows and 2 UDP flows of different rate)

COMP680E by M. Hamdi 63 SAC simulation Throughput per flow (30 TCP flows and 4 UDP flows of the same rate).

COMP680E by M. Hamdi 64 SAC simulation Throughput per flow (20 TCP flows and 4 UDP flows of different rates)

COMP680E by M. Hamdi 65 AQM Using “Partial” state information

COMP680E by M. Hamdi 66 Congestion Management and Avoidance: Goal  Provide fair bandwidth allocation similar to WFQ  Be simple to implement like RED Simplicity Fairness WFQ RED Ideal

COMP680E by M. Hamdi 67 Objective: achieve fairness close to that of max-min fairness 1. 1.If W(f) < C/N, then set R(f) = W(f) If W(f) > C/N, then set R(f) = C/N. Formulation: – –Ri: the sending rate of flow i – –Di: the drop probability of flow i – –Ideally, we want » »Ri (1 – Di) = R fair (equal share) » »Di = (1 – R fair /Ri) + (That is, drop the excess) AQM Based on Capture Recapture

COMP680E by M. Hamdi 68 AQM Based on Capture-Recapture: Incoming packets Active Queue Management The estimation of the sending rate The estimation of the fair share The adjustment mechanism The key question is: how to estimate the sending rate (Ri) and the fair share (R fair ) !!! Fair allocation of BW

COMP680E by M. Hamdi 69 Capture-Recapture Models The CR models were originally developed for estimating demographic parameters of animal populations (e.g., population size, number of species, etc.). –It is an extremely useful method where inspecting the whole state space is infeasible or very costly –Numerous models have been developed to various situtations The CR models are being used in many diverse fields ranging from software inspection to epidemiology. It is based on several key ideas: animals are captured randomly, marked, released and then recaptured randomly from the population.

COMP680E by M. Hamdi 70 Capture-Recapture Models Simple model: estimate a homegeneous population of animals (N): –n 1 animals are captured (marked) –n2 animals were recaptured, and –m2 of these appeared to be marked. Under this simple capture recapture model (M 0 ): m 2 /n 2 = n 1 /N N n1 N n2 N n1 n2 m2

COMP680E by M. Hamdi 71 Capture-Recapture Models The capture probability refers to the chance that an individual animal get caught. M 0 implies that the capture probability for all animals are the same. –‘0’ refers to constant capture probability Using the M h model, the capture probabilities vary by animal, sometimes for reasons like difference in species, sex, or age, etc.. –‘ h’ refers to heterogeneity.

COMP680E by M. Hamdi 72 Capture-Recapture Models Estimation of N under the M h Model is based on the capture frequency data f 1, f 2 …, and f t (t captures) –f 1 is the number of animals that were caught only once, –f 2 is the number of animals that were caught only twice, … etc. The jackknife estimator of N is computed as a linear combination of these capture frequencies, s.t.: N = a 1 f 1 + a 2 f 2 + … + a t f t where a i are coefficients which are a function of t.

COMP680E by M. Hamdi 73 AQM Based on Capture-Recapture The key question is: how to estimate the sending rate (Ri) and the fair share (R fair ) !!! We use an arrival buffer to store the recently arrived packet headers (we can have control over how large the buffer is, and is a better representation of the nature of the flows when compared to the sending buffer): 1.We estimate Ri using the M 0 capture-recapture model 2.We estimate R fair using the M h capture-recapture model (by estimating the number of active flows).

COMP680E by M. Hamdi 74 AQM Based on Capture-Recapture  Ri is estimated for every arriving packet (we can increase the accuracy by having multiple captures, or decrease it by capturing packets periodically) If the arrival buffer is of size B, and the number of captured packets is Ci, then Ri = R Ci/B where R is the aggregate arrival rate  Rfair may not change every single time slot (as a result, the capturing and the calculation of the number of active flows could be done independently of the arrival of each incoming packet) R fair = R/(number of active flows)  The capture-recapture model gives us a lot of flexibility in terms of accuracy vs. complexity  The same capture-recapture can be used for calculating both Ri and R fair

COMP680E by M. Hamdi 75 AQM Based on Capture- Recapture Incoming packets Active Queue Management (Capture-Recapture) The estimation of Ri by the M 0 model The estimation of Rfair by the Mh CR model Di = (1 – Rfair/Ri)+ Fair allocation of BW

COMP680E by M. Hamdi 76 Performance evaluation This is a classical setup that researchers use to evaluate AQM schemes (we can vary many parameters, responsive vs. non- responsive connections, the nature of responsiveness, link delays, etc.) UDP sources R1R2 S(m) S(1) S(m+1) S(m+n) S(m) S(1) S(m+1) S(m+n) 10Mbps 100Mbps TCP sources UDP sources

COMP680E by M. Hamdi 77 Performance evaluation Estimation of the number of flows

COMP680E by M. Hamdi 78 Performance evaluation Bandwidth allocation comparison between CAP and RED

COMP680E by M. Hamdi 79 Performance evaluation Bandwidth allocation comparison between CAP and SRED

COMP680E by M. Hamdi 80 Performance evaluation Bandwidth allocation comparison between CAP and RED-PD

COMP680E by M. Hamdi 81 Performance evaluation Bandwidth allocation comparison between CAP and SFB

COMP680E by M. Hamdi 82 Normalized Measure of Performance A single comparison of the fairness using a normalized value, where norm is defined as: where b i is ideal fair share, b j is the bandwidth received by each flow Thus, ||BW|| = 0 for the ideal fair sharing

COMP680E by M. Hamdi 83 Normalized Measure of Performance

COMP680E by M. Hamdi 84 Performance Evaluation: Variable amount of unresponsiveness