Chapter 6 Queuing Disciplines. Networking CS 3470, Section 1

Similar documents
Lecture 21. Reminders: Homework 6 due today, Programming Project 4 due on Thursday Questions? Current event: BGP router glitch on Nov.

Congestion Control and Resource Allocation

CS551 Router Queue Management

CS557: Queue Management

Queuing. Congestion Control and Resource Allocation. Resource Allocation Evaluation Criteria. Resource allocation Drop disciplines Queuing disciplines

Priority Traffic CSCD 433/533. Advanced Networks Spring Lecture 21 Congestion Control and Queuing Strategies

Congestion. Can t sustain input rate > output rate Issues: - Avoid congestion - Control congestion - Prioritize who gets limited resources

CS CS COMPUTER NETWORKS CS CS CHAPTER 6. CHAPTER 6 Congestion Control

Congestion Control 3/16/09

Real-Time Protocol (RTP)

Overview Computer Networking What is QoS? Queuing discipline and scheduling. Traffic Enforcement. Integrated services

Chapter 6 Congestion Control and Resource Allocation

Resource allocation in networks. Resource Allocation in Networks. Resource allocation

Generic Architecture. EECS 122: Introduction to Computer Networks Switch and Router Architectures. Shared Memory (1 st Generation) Today s Lecture

Lecture 24: Scheduling and QoS

CSC 4900 Computer Networks: Network Layer

The Network Layer and Routers

Advanced Lab in Computer Communications Meeting 6 QoS. Instructor: Tom Mahler

Quality of Service (QoS)

EECS 122: Introduction to Computer Networks Switch and Router Architectures. Today s Lecture

2.993: Principles of Internet Computing Quiz 1. Network

Router s Queue Management

Basics (cont.) Characteristics of data communication technologies OSI-Model

Episode 5. Scheduling and Traffic Management

QoS MIB Implementation

Improving QOS in IP Networks. Principles for QOS Guarantees

Congestion Control. Queuing Discipline Reacting to Congestion Avoiding Congestion. Issues

C 6. Congestion Control and Resource Allocation. Copyright 2010, Elsevier Inc. All rights Reserved

Overview. Lecture 22 Queue Management and Quality of Service (QoS) Queuing Disciplines. Typical Internet Queuing. FIFO + Drop tail Problems

EE 122: Router Support for Congestion Control: RED and Fair Queueing. Ion Stoica Oct. 30 Nov. 4, 2002

Lecture 14: Congestion Control"

Topic 4a Router Operation and Scheduling. Ch4: Network Layer: The Data Plane. Computer Networking: A Top Down Approach

Chapter 4 Network Layer: The Data Plane

Quality of Service in the Internet

Quality of Service in the Internet

Lecture Outline. Bag of Tricks

CS 344/444 Computer Network Fundamentals Final Exam Solutions Spring 2007

Tutorial 9 : TCP and congestion control part I

Kommunikationssysteme [KS]

Network Layer Enhancements

Fair Queueing. Presented by Brighten Godfrey. Slides thanks to Ion Stoica (UC Berkeley) with slight adaptation by Brighten Godfrey

Computer Networking. Queue Management and Quality of Service (QOS)

Chapter 4: network layer. Network service model. Two key network-layer functions. Network layer. Input port functions. Router architecture overview

Queuing Disciplines. Order of Packet Transmission and Dropping. Laboratory. Objective. Overview

Network Management & Monitoring

TELE Switching Systems and Architecture. Assignment Week 10 Lecture Summary - Traffic Management (including scheduling)

MUD: Send me your top 1 3 questions on this lecture

CS 556 Advanced Computer Networks Spring Solutions to Midterm Test March 10, YOUR NAME: Abraham MATTA

Congestion control in TCP

Unit 2 Packet Switching Networks - II

Lecture 14: Congestion Control"

EP2210 Scheduling. Lecture material:

of-service Support on the Internet

Fairness, Queue Management, and QoS

H3C S9500 QoS Technology White Paper

Congestion Control. Resource allocation and congestion control problem

Order of Packet Transmission and Dropping

Episode 5. Scheduling and Traffic Management

A Comparative Study of Different Queuing Scheduling Disciplines

Performance Evaluation of Scheduling Mechanisms for Broadband Networks

Master Course Computer Networks IN2097

Core-Stateless Fair Queueing: Achieving Approximately Fair Bandwidth Allocations in High Speed Networks. Congestion Control in Today s Internet

Router Design: Table Lookups and Packet Scheduling EECS 122: Lecture 13

Master Course Computer Networks IN2097

Order of Packet Transmission and Dropping

CPU Scheduling. The scheduling problem: When do we make decision? - Have K jobs ready to run - Have N 1 CPUs - Which jobs to assign to which CPU(s)

A common issue that affects the QoS of packetized audio is jitter. Voice data requires a constant packet interarrival rate at receivers to convert

Lecture 14: M/G/1 Queueing System with Priority

6.033 Spring Lecture #12. In-network resource management Queue management schemes Traffic differentiation spring 2018 Katrina LaCurts

Quality of Service (QoS)

CS 268: Computer Networking

Episode 5. Scheduling and Traffic Management

Routers. Session 12 INST 346 Technologies, Infrastructure and Architecture

Topic 4b: QoS Principles. Chapter 9 Multimedia Networking. Computer Networking: A Top Down Approach

Modular Quality of Service Overview on Cisco IOS XR Software

Quality of Service in the Internet. QoS Parameters. Keeping the QoS. Leaky Bucket Algorithm

A Preferred Service Architecture for Payload Data Flows. Ray Gilstrap, Thom Stone, Ken Freeman

Computer Networks. Instructor: Niklas Carlsson

Queuing Mechanisms. Overview. Objectives

Internet Services & Protocols. Quality of Service Architecture

ENHANCEMENT OF TCP FAIRNESS IN IEEE NETWORKS

Routing in packet-switching networks

Resource Allocation and Queuing Theory

15-744: Computer Networking. Overview. Queuing Disciplines. TCP & Routers. L-6 TCP & Routers

Advanced Computer Networks

Lecture 22: Buffering & Scheduling. CSE 123: Computer Networks Alex C. Snoeren

Mohammad Hossein Manshaei 1393

QoS Configuration. Overview. Introduction to QoS. QoS Policy. Class. Traffic behavior

Kernel Korner. Analysis of the HTB Queuing Discipline. Yaron Benita. Abstract

Wireless Networks (CSC-7602) Lecture 8 (15 Oct. 2007)

TCP Congestion Control. Lecture 16. Outline. TCP Congestion Control. Additive Increase / Multiplicative Decrease (AIMD)

ADVANCED COMPUTER NETWORKS

WRED Explicit Congestion Notification

Lecture 5: Performance Analysis I

CSC 401 Data and Computer Communications Networks

Project Computer Networking. Resource Management Approaches. Start EARLY Tomorrow s recitation. Lecture 20 Queue Management and QoS

Congestion Control & Resource Allocation. Issues in Resource Allocation Queuing Discipline TCP Congestion Control

EE122 MIDTERM EXAM: Scott Shenker, Ion Stoica

CS 356: Computer Network Architectures Lecture 19: Congestion Avoidance Chap. 6.4 and related papers. Xiaowei Yang

Topics. TCP sliding window protocol TCP PUSH flag TCP slow start Bulk data throughput

Transcription:

Chapter 6 Queuing Disciplines Networking CS 3470, Section 1

Flow control vs Congestion control Flow control involves preventing senders from overrunning the capacity of the receivers Congestion control involves preventing too much data from being injected into the network, thereby causing switches or links to become overloaded

Congestion Control Queuing disciplines in the routers Discussed today TCP congestion control Congestion avoidance mechanisms 3

Congestion Control and Resource Allocation Resources Bandwidth of the links Buffers at the routers and switches Packets contend at a router for the use of a link, with each contending packet placed in a queue waiting for its turn to be transmitted over the link

Congestion Control and Resource Allocation When too many packets are contending for the same link The queue overflows Packets get dropped Network is congested! Network should provide a congestion control mechanism to deal with such a situation

Congestion Control and Resource Allocation Who s fault is congestion? Who can fix it?

Congestion Control and Resource Allocation Who can fix it? In network elements Various queuing disciplines can be used to control the order in which packets get transmitted and which packets get dropped At the hosts end The congestion control mechanism paces how fast sources are allowed to send packets

Network Control Issues Why the congestion problem in the first place? Resources are limited: buffer space, bandwidth allocation One could simply route around congested links. Put a large edge weight on a congested link to route around it. That doesn't solve the inherent problem though.

Control Issues Routing in the Internet is a complex issue. What can possibly happen? http://www.theregister.co.uk/2010/04/09/china_bg p_interweb_snafu/ http://www.zdnet.com/internet-hiccups-todayyoure-not-alone-heres-why-7000032566/

Addressing Congestion at the Routers: Queuing Disciplines Routers must implement some queuing discipline that governs how packets are buffered or prioritized. One can think of queuing disciplines as rules for the allocating bandwidth or rules for the allocation of buffer space within the router. Two common disciplines: FIFO Fair Queuing

FIFO Queuing FIFO queuing is called first-come-firstserved (FCFS) queuing First packet that arrives at a router is first packet to be transmitted Amount of buffer space at each router is finite Tail drop - If a packet arrives and the queue (buffer space) is full, then the router discards that packet

FIFO Queuing (a) FIFO queuing; (b) tail drop at a FIFO queue.

FIFO Queuing Priority Queuing The routers then implement multiple FIFO queues, one for each priority class Router always transmits packets out of the highest-priority queue if that queue is nonempty before moving on to the next priority queue. Within each priority, packets are still managed in a FIFO manner.

Fair Queuing Fair queuing (FQ) maintains a separate queue for each flow currently being handled by the router. The router then services these queues in roundrobin algorithm

Fair Queuing Fair Queuing Round-robin service of four flows at a router

Fair Queuing The main complication with Fair Queuing is that the packets being processed at a router are not necessarily the same length. To truly allocate the bandwidth of the outgoing link in a fair manner, it is necessary to take packet length into consideration.

Fair Queuing Example: Packet length not taken into consideration Two flows: One with 1000-byte packets, another with 500-byte packets Simple round-robin servicing of packets from each flow s queue will give the first flow two thirds of the link s bandwidth and the second flow only onethird of its bandwidth. 17

Queuing Disciplines What we really want is bit-by-bit round-robin; that is, the router transmits a bit from flow 1, then a bit from flow 2, and so on. However, it is not feasible to interleave the bits from different packets. Simulates this behavior instead Determine when a given packet would finish being transmitted if it were being sent using bit-by-bit roundrobin Use this finishing time to sequence the packets for transmission.

Queuing Disciplines Fair Queuing To understand the algorithm for approximating bit-bybit round robin, consider the behavior of a single flow For this flow, let P i : denote the length of packet i S i : time when the router starts to transmit packet i F i : time when router finishes transmitting packet i F i = S i + P i

Queuing Disciplines Fair Queuing When do we start transmitting packet i? Depends on whether packet i arrived before or after the router finishes transmitting packet i-1 for the flow Let A i denote the time that packet i arrives at the router Then S i = max(f i-1, A i ) F i = max(f i-1, A i ) + P i

Queuing Disciplines Fair Queuing Now for every flow, we calculate F i for each packet that arrives using our formula We then treat all the F i as timestamps Next packet to transmit is always the packet that has the lowest timestamp The packet that should finish transmission before all others

Queuing Disciplines Fair Queuing Example of fair queuing in action: (a) packets with earlier finishing times are sent first; (b) sending of a packet already in progress is completed