COS 461: Computer Networks

Slides:



Advertisements
Similar presentations
Congestion Control and Fairness Models Nick Feamster CS 4251 Computer Networking II Spring 2008.
Advertisements

Computer Networking Lecture 20 – Queue Management and QoS.
CSIT560 Internet Infrastructure: Switches and Routers Active Queue Management Presented By: Gary Po, Henry Hui and Kenny Chong.
TELE202 Lecture 8 Congestion control 1 Lecturer Dr Z. Huang Overview ¥Last Lecture »X.25 »Source: chapter 10 ¥This Lecture »Congestion control »Source:
William Stallings Data and Computer Communications 7 th Edition Chapter 13 Congestion in Data Networks.
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.
XCP: Congestion Control for High Bandwidth-Delay Product Network Dina Katabi, Mark Handley and Charlie Rohrs Presented by Ao-Jan Su.
Explicit Congestion Notification ECN Tilo Hamann Technical University Hamburg-Harburg, Germany.
Analysis and Simulation of a Fair Queuing Algorithm
EE689 Lecture 5 Review of last lecture More on HPF RED.
Congestion Control and Resource Allocation
1 TCP Transport Control Protocol Reliable In-order delivery Flow control Responds to congestion “Nice” Protocol.
1 Internet Networking Spring 2003 Tutorial 11 Explicit Congestion Notification (RFC 3168)
ACN: Congestion Control1 Congestion Control and Resource Allocation.
Computer Networking Lecture 17 – Queue Management As usual: Thanks to Srini Seshan and Dave Anderson.
1 Spring Semester 2007, Dept. of Computer Science, Technion Internet Networking recitation #8 Explicit Congestion Notification (RFC 3168) Limited Transmit.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
Queuing and Queue Management Reading: Sections 6.2, 6.4, 6.5 COS 461: Computer Networks Spring 2011 Mike Freedman
Link Scheduling & Queuing COS 461: Computer Networks
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 Lecture 14 High-speed TCP connections Wraparound Keeping the pipeline full Estimating RTT Fairness of TCP congestion control Internet resource allocation.
CSE 561 – Congestion Control with Network Support David Wetherall Spring 2000.
Queueing and Active Queue Management Aditya Akella 02/26/2007.
CS640: Introduction to Computer Networks Aditya Akella Lecture 20 - Queuing and Basics of QoS.
Mr. Mark Welton.  Quality of Service is deployed to prevent data from saturating a link to the point that other data cannot gain access to it  QoS allows.
Random Early Detection (RED) Router notifies source before congestion happens - just drop the packet (TCP will timeout and adjust its window) - could make.
TCP continued. Discussion – TCP Throughput TCP will most likely generate the saw tooth type of traffic. – A rough estimate is that the congestion window.
Queue Management Mike Freedman COS 461: Computer Networks Lectures: MW 10-10:50am in Architecture N101
Providing QoS in IP Networks
1 Lecture 15 Internet resource allocation and QoS Resource Reservation Protocol Integrated Services Differentiated Services.
Other Methods of Dealing with Congestion
Congestion Control in Data Networks and Internets
Instructor Materials Chapter 6: Quality of Service
QoS & Queuing Theory CS352.
Internet Networking recitation #9
Topics discussed in this section:
Chapter 3 outline 3.1 transport-layer services
Top-Down Network Design Chapter Thirteen Optimizing Your Network Design Copyright 2010 Cisco Press & Priscilla Oppenheimer.
Chapter 6 Congestion Avoidance
Buffer Management in a Switch
Queue Management Jennifer Rexford COS 461: Computer Networks
TCP Congestion Control at the Network Edge
Router-Assisted Congestion Control
Congestion Control and Resource Allocation
CS 1652 The slides are adapted from the publisher’s material
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Chapter 6: Quality of Service Connecting Networks.
CONGESTION CONTROL.
Queuing and Queue Management
So far, On the networking side, we looked at mechanisms to links hosts using direct linked networks and then forming a network of these networks. We introduced.
Other Methods of Dealing with Congestion
Congestion Control in Data Networks and Internets
Advanced Computer Networks
Other Methods of Dealing with Congestion
EE 122: Lecture 18 (Differentiated Services)
Computer Science Division
Internet Networking recitation #10
Figure Areas in an autonomous system
Project-2 (20%) – DiffServ and TCP Congestion Control
Congestion Control Reasons:
TCP Congestion Control
EE 122: Differentiated Services
TCP Overview.
Congestion Control (from Chapter 05)
CIS679: Two Planes and Int-Serv Model
Transport Layer: Congestion Control
Congestion Control and Resource Allocation
Review of Internet Protocols Transport Layer
Congestion Michael Freedman COS 461: Computer Networks
Lecture 6, Computer Networks (198:552)
Queueing Problem The performance of network systems rely on different delays. Propagation/processing/transmission/queueing delays Which delay is affected.
Presentation transcript:

COS 461: Computer Networks Queue Management Mike Freedman COS 461: Computer Networks http://www.cs.princeton.edu/courses/archive/spr14/cos461/

Last Wed: Congestion Control What can the end-points do to collectively to make good use of shared underlying resources? name logical link ? ? This week, we’ll talk about how to share resources. Today we’ll talk about what the end-points can do in a distributed fashion, from the edge of the network. On Wednesday, we’ll talk about what the lower-level elements can do. physical path address

Today: Queue Management What can the individual links do to make good use of shared underlying resources? name logical link This week, we’ll talk about how to share resources. Today we’ll talk about what the end-points can do in a distributed fashion, from the edge of the network. On Wednesday, we’ll talk about what the lower-level elements can do. physical path ? address

Packet Queues

Router control plane Processor data plane Switching Fabric Line card

Line Cards (Interface Cards, Adaptors) Packet handling Packet forwarding Buffer management Link scheduling Packet filtering Rate limiting Packet marking Measurement to/from link Receive lookup Transmit to/from switch

Packet Switching and Forwarding Link 1, ingress Link 1, egress “4” Choose Egress Link 2 Link 2, ingress Choose Egress Link 2, egress R1 “4” Link 1 Link 3 Link 3, ingress Choose Egress Link 3, egress Link 4 Link 4, ingress Choose Egress Link 4, egress

Queue Management Issues Scheduling discipline Which packet to send? Some notion of fairness? Priority? Drop policy When should you discard a packet? Which packet to discard? Goal: balance throughput and delay Huge buffers minimize drops, but add to queuing delay (thus higher RTT, longer slow start, …)

FIFO Scheduling and Drop-Tail Access to the bandwidth: first-in first-out queue Packets only differentiated when they arrive Access to the buffer space: drop-tail queuing If the queue is full, drop the incoming packet ✗

Early Detection of Congestion

Bursty Loss From Drop-Tail Queuing TCP depends on packet loss Packet loss is indication of congestion TCP additive increase drives network into loss Drop-tail leads to bursty loss Congested link: many packets encounter full queue Synchronization: many connections lose packets at once

Slow Feedback from Drop Tail Feedback comes when buffer is completely full … even though the buffer has been filling for a while Plus, the filling buffer is increasing RTT … making detection even slower Better to give early feedback Get 1-2 connections to slow down before it’s too late!

Random Early Detection (RED) Router notices that queue is getting full … and randomly drops packets to signal congestion Packet drop probability Drop probability increases as queue length increases Else, set drop probability f(avg queue length) Probability Drop 0 1 Average Queue Length

Properties of RED Drops packets before queue is full In the hope of reducing the rates of some flows Tolerant of burstiness in the traffic By basing the decisions on average queue length Which of the following are true? Drops packet in proportion to each flow’s rate High-rate flows selected more often Helps desynchronize the TCP senders All of the above D: All of the above

Problems With RED Hard to get tunable parameters just right How early to start dropping packets? What slope for increase in drop probability? What time scale for averaging queue length? RED has mixed adoption in practice If parameters aren’t set right, RED doesn’t help Many other variations in research community Names like “Blue” (self-tuning), “FRED”…

From Loss to Notification

Feedback: From loss to notification Early dropping of packets Good: gives early feedback Bad: has to drop the packet to give the feedback Explicit Congestion Notification Router marks the packet with an ECN bit Sending host interprets as a sign of congestion

Explicit Congestion Notification Needs support by router, sender, AND receiver End-hosts check ECN-capable during TCP handshake ECN protocol (repurposes 4 header bits) Sender marks “ECN-capable” when sending If router sees “ECN-capable” and congested, marks packet as “ECN congestion experienced” If receiver sees “congestion experienced”, marks “ECN echo” flag in responses until congestion ACK’d If sender sees “ECN echo”, reduces cwnd and marks “congestion window reduced” flag in next packet Why extra ECN flag? Congestion could happen in either direction, want sender to react to forward direction Why CRW ACK? ECN-echo could be lost, but we ideally only respond to congestion in forward direction

ECN Questions Why separate ECN experienced and echo flags? (A) Detect reverse path congestion with “experienced” (B) Congestion could happen in either direction, want sender to react to forward direction (C) Both of the above Why “echo” resent and “congestion window reduced” ACK? Congestion in reverse path can lose ECN-echo, still want to respond to congestion in forward path Only should apply backoff once per cwnd Both of the above

Link Scheduling

First-In First-Out Scheduling Simple, but restrictive Example: two kinds of traffic Voice over IP needs low delay E-mail is not that sensitive about delay Voice traffic waits behind e-mail 21

Strict Priority Multiple levels of priority Always transmit high-priority traffic, when present Isolation for the high-priority traffic Almost like it has a dedicated link Except for (small) delay for packet transmission But, lower priority traffic may starve  22

Weighted Fair Scheduling Assign each queue a fraction of the link bandwidth Rotate across queues on a small time scale 50% red, 25% blue, 25% green 23

Weighted Fair Scheduling If non-work conserving (resources can go idle) Each flow gets at most its allocated weight WFQ is work-conserving Send extra traffic from one queue if others are idle Algorithms account for bytes, not packets Results in (A) higher or (B) lower utilization than non- work conserving? Algorithm accounts for bytes, not packets WFQ results in max-min fairness Maximize the minimum rate of each flow 24

Implementation Trade-Offs FIFO One queue, trivial scheduler Strict priority One queue per priority level, simple scheduler Weighted fair scheduling One queue per class, and more complex scheduler 25

Quality of Service Guarantees

Distinguishing Traffic Applications compete for bandwidth E-mail traffic can cause congestion/losses for VoIP Principle 1: Packet marking So router can distinguish between classes E.g., Type of Service (ToS) bits in IP header 27

Preventing Misbehavior Applications misbehave VoIP sends packets faster than 1 Mbps Principle 2: Policing Protect one traffic class from another By enforcing a rate limit on the traffic 28

Subdividing Link Resources Principle 3: Link scheduling Ensure each application gets its share … while (optionally) using any extra bandwidth E.g., weighted fair queuing 29

Reserving Resources, and Saying No Traffic cannot exceed link capacity Deny access, rather than degrade performance Principle 4: Admission control Application declares its needs in advance Application denied if insufficient resources available 30

Quality of Service (QoS) Guaranteed performance Alternative to best-effort delivery model QoS protocols and mechanisms Packet classification and marking Traffic shaping Link scheduling Resource reservation and admission control Identifying paths with sufficient resources 31

Conclusions Link resource allocation Friday precept Buffer management Link scheduling Friday precept Practice questions on resource allocation Next week: routing dynamics Routing protocol convergence Routing to mobile hosts