Lecture 24: Scheduling and QoS

Similar documents
CSE 123b Communications Software

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

CSCD 433/533 Advanced Networks Spring Lecture 22 Quality of Service

of-service Support on the Internet

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

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

Quality of Service (QoS)

Real-Time Protocol (RTP)

Computer Network Fundamentals Fall Week 12 QoS Andreas Terzis

Lecture 14: Performance Architecture

Lecture Outline. Bag of Tricks

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

Internet Services & Protocols. Quality of Service Architecture

EECS 122: Introduction to Computer Networks Resource Management and QoS. Quality of Service (QoS)

Congestion Control and Resource Allocation

Advanced Computer Networks

Network Support for Multimedia

CSE 461 Quality of Service. David Wetherall

Quality of Service Monitoring and Delivery Part 01. ICT Technical Update Module

Page 1. Quality of Service. CS 268: Lecture 13. QoS: DiffServ and IntServ. Three Relevant Factors. Providing Better Service.

Mohammad Hossein Manshaei 1393

Presentation Outline. Evolution of QoS Architectures. Quality of Service Monitoring and Delivery Part 01. ICT Technical Update Module

Improving QOS in IP Networks. Principles for QOS Guarantees

Week 7: Traffic Models and QoS

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

Master Course Computer Networks IN2097

Master Course Computer Networks IN2097

Quality of Service (QoS)

Fairness, Queue Management, and QoS

CS519: Computer Networks. Lecture 5, Part 5: Mar 31, 2004 Queuing and QoS

Multicast and Quality of Service. Internet Technologies and Applications

Part1: Lecture 4 QoS

Last time! Overview! 14/04/15. Part1: Lecture 4! QoS! Router architectures! How to improve TCP? SYN attacks SCTP. SIP and H.

Quality of Service (QoS)

Announcements. Quality of Service (QoS) Goals of Today s Lecture. Scheduling. Link Scheduling: FIFO. Link Scheduling: Strict Priority

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

EP2210 Scheduling. Lecture material:

EE 122: Differentiated Services

ITBF WAN Quality of Service (QoS)

Network Layer Enhancements

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

Lesson 14: QoS in IP Networks: IntServ and DiffServ

Resource Control and Reservation

RSVP 1. Resource Control and Reservation

QoS Services with Dynamic Packet State

Packet Scheduling and QoS

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

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

Real-Time Applications. Delay-adaptive: applications that can adjust their playback point (delay or advance over time).

Quality of Service in the Internet

Quality of Service in the Internet

Multimedia Networking

Quality of Service (QoS) Computer network and QoS ATM. QoS parameters. QoS ATM QoS implementations Integrated Services Differentiated Services

ETSF10 Internet Protocols Transport Layer Protocols

Problems with IntServ. EECS 122: Introduction to Computer Networks Differentiated Services (DiffServ) DiffServ (cont d)

Unit 2 Packet Switching Networks - II

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

Multiplexing. Common network/protocol functions. Multiplexing: Sharing resource(s) among users of the resource.

Common network/protocol functions

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

Differentiated Services

H3C S9500 QoS Technology White Paper

Quality of Service (QoS)

CSE398: Network Systems Design

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

TDDD82 Secure Mobile Systems Lecture 6: Quality of Service

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

Announcements. Quality of Service (QoS) Goals of Today s Lecture. Scheduling. Link Scheduling: Strict Priority. Link Scheduling: FIFO

CS 268: Integrated Services

Quality of Service II

Lecture 16: QoS and "

ETSF05/ETSF10 Internet Protocols. Performance & QoS Congestion Control

"Filling up an old bath with holes in it, indeed. Who would be such a fool?" "A sum it is, girl," my father said. "A sum. A problem for the mind.

QoS Guarantees. Motivation. . link-level level scheduling. Certain applications require minimum level of network performance: Ch 6 in Ross/Kurose

Multimedia Applications over Packet Networks

RSVP and the Integrated Services Architecture for the Internet

Lecture 14: Congestion Control"

Queue Overflow. Dropping Packets. Tail Drop. Queues will always sometimes overflow. But Cause more variation in delay (jitter)

Multimedia Networking. Network Support for Multimedia Applications

Real-Time Control Protocol (RTCP)

Quality of Service for Multimedia over Next Generation Data Networks

Chapter 6 Queuing Disciplines. Networking CS 3470, Section 1

Quality of Service (QoS)

Episode 5. Scheduling and Traffic Management

Differentiated Services

Telematics 2. Chapter 3 Quality of Service in the Internet. (Acknowledgement: These slides have been compiled from Kurose & Ross, and other sources)

Internet QoS 1. Integrated Service 2. Differentiated Service 3. Linux Traffic Control

Multimedia Networking and Quality of Service

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

QUALITY of SERVICE. Introduction

Quality of Service Mechanism for MANET using Linux Semra Gulder, Mathieu Déziel

Congestion Control and Resource Allocation

Internet Quality of Service: an Overview

ETSF05/ETSF10 Internet Protocols. Performance & QoS Congestion Control

COMP/ELEC 429/556 Introduction to Computer Networks

VoIP Protocols and QoS

Converged Networks. Objectives. References

Tutorial 9 : TCP and congestion control part I

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

RSVP: Resource Reservation Protocol

Transcription:

Lecture 24: Scheduling and QoS CSE 123: Computer Networks Alex C. Snoeren HW 4 due Wednesday

Lecture 24 Overview Scheduling (Weighted) Fair Queuing Quality of Service basics Integrated Services Differentiated Services 2

Scheduling So far we ve done flow-based traffic policing Limit the rate of one flow regardless the load in the network In general, need scheduling Dynamically allocate resources when multiple flows compete Give each flow (or traffic class) own queue (at least theoretically) Weighted fair queuing Proportional share scheduling Schedule round-robins among queues in proportion to some weight parameter 3

Our Previous Example 1 UDP (10 Mbps) and 31 TCPs sharing a 10 Mbps line UDP (#1) - 10 Mbps UDP (#1) TCP (#2). TCP (#32) Bottleneck link (10 Mbps) TCP (#2). TCP (#32) 4

TCP vs. UDP w/fair Queuing 5

(Weighted) Fair Queuing Flow 1 I/P Flow 2 O/P Flow n 6

Fair Queuing Maintain a queue for each flow What is a flow? Implements max-min fairness: each flow receives min(r i, f), where r i flow arrival rate f link fair rate (see next slide) Weighted Fair Queuing (WFQ) associate a weight with each flow 7

Fair Rate Computation If link congested, compute f such that 8 6 2 10 4 4 2 f = 4: min(8, 4) = 4 min(6, 4) = 4 min(2, 4) = 2 8

Another Example Associate a weight w i with each flow i If link congested, compute f such that (w 1 = 3) 8 (w 2 = 1) 6 (w 3 = 1) 2 10 4 4 2 f = 2: min(8, 2*3) = 6 min(6, 2*1) = 2 min(2, 2*1) = 2 Flow i is guaranteed to be allocated a rate >= wi*c/(σ k w k ) If Σ k w k <= C, flow i is guaranteed to be allocated a rate >= w i 9

Fluid Flow Flows can be served one bit at a time WFQ can be implemented using bit-by-bit weighted round robin During each round from each flow that has data to send, send a number of bits equal to the flow s weight 10

Fluid Flow Example Orange flow has packets backlogged between time 0 and 10 Other flows have packets continuously backlogged All packets have the same size flows weights link 5 1 1 1 1 1 0 2 4 6 8 10 15 11

Packet-Based Implementation Packet (Real) system: packet transmission cannot be preempted. Why? Solution: serve packets in the order in which they would have finished being transmitted in the fluid flow system 12

Packet-Based Example Service in fluid flow system Packet system 0 2 4 6 8 10 Select the first packet that finishes in the fluid flow system 0 2 4 6 8 10 13

Quality of Service (QoS) So far, we have assumed all traffic is equal and provided best effort delivery Perhaps with enforcement to throttle non-responsive senders Not always best model. Why? Application demands» I want low-delay low-loss for phone service Market differentiation» I want to sell better service for more money Bandwidth management» Don t let BitTorrent eat up all UCSD bandwidth 14

Multimedia Applications Basic idea Sample signal, packetize, transmit Repeat in reverse at receiver Network Requirements (@ given load) Delay Jitter (variation in delay) Packet loss Exact parameters a function of interactivity demands, buffer capacity, retransmission time and loss tolerance However as a rule they want more 15

Different Demands Elastic Delay-adaptive Utility Bandwidth Utility Hard real-time Utility Bandwidth Bandwidth 16

Packet Classification Want to treat some traffic better/worse than others How to identify the more important traffic? How much better do we want to treat it? How do we actually treat it better? Router classifies based on packet header Aggregates» From particular network (IP src address)» For particular protocol (e.g., port 80 traffic) Individual network flows» 5-tuple (src, dst, src port, dst port, protocol) Special header field that indicates traffic type 17

Service Classes Best-effort Vanilla IP Differentiated services Bronze, Silver, Gold, etc (effectively priorities, up to some amount of bandwidth per time) E.g., best service up to 10Mbps, then best effort Predicted service (soft real-time) Network guarantees good performance on average Application promises only send as fast as negotiated Guaranteed service (hard real-time) Network guarantees good performance always Application promises only send as fast as negotiated 18

How to Specify? Kind of service (service class) Specify flowspec for data flow limits Tspec: describes the flow s traffic characteristics» Average bandwidth + burstiness (contract with ISP) Rspec: describes the service requested from the network (e.g., delay target) Interface can be interactive (ask network) or via business interface (ask salesman) Can say no If yes, then use scheduling mechanisms in routers (not FIFO anymore) to deliver 19

More Complicated Routers Routing Messages Routing Signaling Admission Control? Control Plane QoS Control messages Data In Forwarding Table Dest Lookup Classifier Per Flow QoS Table Scheduler Data Plane Data Out 20

Network-wide QoS Integrated services Motivated by need for end-to-end guarantees On-line negotiation of per-flow requirements End-to-end per-router negotiation of resources Complex Differentiated services Motivated by economics (multi-tier pricing) No per-flow state Not end-to-end and not guaranteed services Simple 21

Integrated Services Example: guarantee 1MBps and < 100 ms delay to a flow Sender Receiver 22

Integrated Services Allocate resources - perform per-flow admission control Sender Receiver 23

Integrated Services Install per-flow state Sender Receiver 24

Integrated Services Install per flow state Sender Receiver 25

IntServe: Data Path Per-flow classification Sender Receiver 26

IntServe: Data Path Per-flow buffer management Sender Receiver 27

IntServe: Data Path Per-flow scheduling Sender Receiver 28

Differentiated Services Edge router Shape & police traffic Mark class of traffic in DS header field (e.g., gold service) Core router Schedule aggregates according to marks in header Drop lower-class traffic first during congestion A B Edge router Domain Core router 29

Summary Routers manage their own resources Buffer management may entail marking/dropping Scheduling discipline determines outgoing packet order Token bucket and RED Mechanisms to control traffic flowing through routers Networks can provide quality of service Combines per-router traffic policing with network signaling IntServ and DiffServ are contrasting approaches 30

For next time Read Ch. 2.7 in P&D Wrap up Project 2! 31