Lecture 16: Quality of Service. CSE 123: Computer Networks Stefan Savage



Similar documents
Congestion Control Review Computer Networking. Resource Management Approaches. Traffic and Resource Management. What is congestion control?

Quality of Service versus Fairness. Inelastic Applications. QoS Analogy: Surface Mail. How to Provide QoS?

The network we see so far. Internet Best Effort Service. Is best-effort good enough? An Audio Example. Network Support for Playback

Real-time apps and Quality of Service

CS 268: Lecture 13. QoS: DiffServ and IntServ

CS640: Introduction to Computer Networks. Why a New Service Model? Utility curve Elastic traffic. Aditya Akella. Lecture 20 QoS

Internet Quality of Service

16/5-05 Datakommunikation - Jonny Pettersson, UmU 2. 16/5-05 Datakommunikation - Jonny Pettersson, UmU 4

Chapter 7 outline. 7.5 providing multiple classes of service 7.6 providing QoS guarantees RTP, RTCP, SIP. 7: Multimedia Networking 7-71

Improving QOS in IP Networks. Principles for QOS Guarantees. Principles for QOS Guarantees (more) Principles for QOS Guarantees (more)

Quality of Service (QoS) EECS 122: Introduction to Computer Networks Resource Management and QoS. What s the Problem?

Distributed Systems 3. Network Quality of Service (QoS)

18: Enhanced Quality of Service

Sources: Chapter 6 from. Computer Networking: A Top-Down Approach Featuring the Internet, by Kurose and Ross

6.6 Scheduling and Policing Mechanisms

Quality of Service (QoS)) in IP networks

Integrated Service (IntServ) versus Differentiated Service (Diffserv)

Quality of Service. Traditional Nonconverged Network. Traditional data traffic characteristics:

QoS Parameters. Quality of Service in the Internet. Traffic Shaping: Congestion Control. Keeping the QoS

QoS in IP networks. Computer Science Department University of Crete HY536 - Network Technology Lab II IETF Integrated Services (IntServ)

MULTIMEDIA NETWORKING

How To Provide Qos Based Routing In The Internet

Network Management Quality of Service I

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

Analysis of IP Network for different Quality of Service

Motivation. QoS Guarantees. Internet service classes. Certain applications require minimum level of network performance:

Multimedia Requirements. Multimedia and Networks. Quality of Service

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

VoIP Quality of Service - Basic Theory

1. The subnet must prevent additional packets from entering the congested region until those already present can be processed.

4 Internet QoS Management

Mixer/Translator VOIP/SIP. Translator. Mixer

CS/ECE 438: Communication Networks. Internet QoS. Syed Faisal Hasan, PhD (Research Scholar Information Trust Institute) Visiting Lecturer ECE

Announcements. Midterms. Mt #1 Tuesday March 6 Mt #2 Tuesday April 15 Final project design due April 11. Chapters 1 & 2 Chapter 5 (to 5.

QoS : Computer Networking. Motivation. Overview. L-7 QoS. Internet currently provides one single class of best-effort service

Investigation and Comparison of MPLS QoS Solution and Differentiated Services QoS Solutions

Network management and QoS provisioning - QoS in the Internet

Overview : Computer Networking. Components of Integrated Services. Service Interfaces RSVP. Differentiated services

Optimizing Converged Cisco Networks (ONT)

DOCSIS 1.1 Cable Modem Termination Systems

Improving Quality of Service

Quality of Service Analysis of site to site for IPSec VPNs for realtime multimedia traffic.

Differentiated Services

6.5 Quality of Service

Faculty of Engineering Computer Engineering Department Islamic University of Gaza Network Chapter# 19 INTERNETWORK OPERATION

Overview of QoS in Packet-based IP and MPLS Networks. Paresh Shah Utpal Mukhopadhyaya Arun Sathiamurthi

Per-Flow Queuing Allot's Approach to Bandwidth Management

COMPARATIVE ANALYSIS OF DIFFERENT QUEUING MECHANISMS IN HETROGENEOUS NETWORKS

Lecture 33. Streaming Media. Streaming Media. Real-Time. Streaming Stored Multimedia. Streaming Stored Multimedia

Quality of Service (QoS) on Netgear switches

17: Queue Management. Queuing. Mark Handley

A Review on Quality of Service Architectures for Internet Network Service Provider (INSP)

The need for bandwidth management and QoS control when using public or shared networks for disaster relief work

Passive Queue Management

Performance Evaluation of the Impact of QoS Mechanisms in an IPv6 Network for IPv6-Capable Real-Time Applications

Quality of Service on the Internet: Evaluation of the IntServ Architecture on the Linux Operative System 1

QoS Strategy in DiffServ aware MPLS environment

Lecture 15: Congestion Control. CSE 123: Computer Networks Stefan Savage

"Charting the Course to Your Success!" QOS - Implementing Cisco Quality of Service 2.5 Course Summary

IMPLEMENTING CISCO QUALITY OF SERVICE V2.5 (QOS)

APPLICATION NOTE 209 QUALITY OF SERVICE: KEY CONCEPTS AND TESTING NEEDS. Quality of Service Drivers. Why Test Quality of Service?

Implementing Cisco Quality of Service QOS v2.5; 5 days, Instructor-led

Quality of Service for VoIP

Internet services pricing under usagebased cost allocation: Congestion dependence

How To Solve A Network Communication Problem

Highlighting a Direction

5 Performance Management for Web Services. Rolf Stadler School of Electrical Engineering KTH Royal Institute of Technology.

Quality of Service for IP Videoconferencing Engineering White Paper

QoSpy an approach for QoS monitoring in DiffServ Networks.

Smart Queue Scheduling for QoS Spring 2001 Final Report

QoS for Cloud Computing!

IP-Telephony Quality of Service (QoS)

Management of Telecommunication Networks. Prof. Dr. Aleksandar Tsenov

Overview. QoS, Traffic Engineering and Control- Plane Signaling in the Internet. Telematics group University of Göttingen, Germany. Dr.

This topic lists the key mechanisms use to implement QoS in an IP network.

CS268 Exam Solutions. 1) End-to-End (20 pts)

Lecture 8 Performance Measurements and Metrics. Performance Metrics. Outline. Performance Metrics. Performance Metrics Performance Measurements

CH.1. Lecture # 2. Computer Networks and the Internet. Eng. Wafaa Audah. Islamic University of Gaza. Faculty of Engineering

VoIP Performance Over different service Classes Under Various Scheduling Techniques

Figure 1: Network Topology

CS 78 Computer Networks. Internet Protocol (IP) our focus. The Network Layer. Interplay between routing and forwarding

CSE 123b Communications Software

Configuring QoS in a Wireless Environment

QoS for (Web) Applications Velocity EU 2011

Requirements of Voice in an IP Internetwork

ERserver. iseries. Quality of service

Quality of Service in ATM Networks

Modeling and Simulation of Queuing Scheduling Disciplines on Packet Delivery for Next Generation Internet Streaming Applications

QoS for real-time IP traffic

Protocols with QoS Support

EXPERIMENTAL STUDY FOR QUALITY OF SERVICE IN VOICE OVER IP

Earliest Due Date (EDD) [Ferrari] Delay EDD. Jitter EDD

King Fahd University of Petroleum & Minerals Computer Engineering g Dept

Analysis of Internet Transport Service Performance with Active Queue Management in a QoS-enabled Network

Transcription:

Lecture 16: Quality of Service CSE 123: Computer Networks Stefan Savage

Final Next week (trust Blink wrt time/location) Will cover entire class Style similar to midterm I ll post a sample (i.e. old) final tmw 2

Quality of Service (QoS) So far, we have assumed all traffic is equal and provided best effort delivery 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» Inconsistent TCP implementations (fairness) 3

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 4

Different Demands Elastic Adaptive Utility Bandwidth Utility Hard real-time Utility Bandwidth Bandwidth 5

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 class 6

Possible 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 7

What tools does router have to implement this? (per link) Buffer management: which packet to drop when? We only have finite-length queues Scheduling: which packet to transmit next? flow 1 1 Classifier flow 2 Scheduler 2 flow n Buffer management 9

Default scheduling/buffer mgmt FIFO + drop-tail Simplest choice Used widely in the Internet Important distinction: FIFO: scheduling discipline Drop-tail: drop policy FIFO scheduling (first-in-first-out) Implies single class of traffic Drop-tail buffer management Arriving packets get dropped when queue is full regardless of flow or importance 10

FIFO/Drop-Tail Problems Leaves responsibility of congestion control completely to the edges (e.g., TCP) Does not separate between different flows No policing: send more packets get more service Synchronization: end hosts react to same events at same time 11

Non-responsive Senders 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) 17

UDP vs. TCP 18

Token Bucket Basics Parameters r average rate, i.e., rate at which tokens fill the bucket b bucket depth R maximum link capacity or peak rate (optional parameter) A bit is transmitted only when there is an available token r bps bits Maximum # of bits sent b bits b*r/(r-r) slope R slope r <= R bps time 19

Traffic Policing Drop packets that don t meet user profile Output limited to average of r bps and bursts of b r bps b bits User Profile (token bucket) Packet input Test if token token Packet output No token, drop 20

Traffic Shaping Shape packets according to user profile Output limited to average of r bps and bursts of b r bps Queue, Drop on overflow b bits User Profile (token bucket) Packet input Wait for token Packet output 21

Shaping Example r = 100 Kbps; b = 3 Kb; R = 500 Kbps (a) (b) 3Kb 2.2Kb T = 0 : 1Kb packet arrives 2.4Kb (c) 3Kb T = 2ms : packet transmitted b = 3Kb 1Kb + 2ms*100Kbps = 2.2Kb (d) (e) 0.6Kb T = 4ms : 3Kb packet arrives T = 10ms : T = 16ms : packet transmitted CSE 123 Lecture 15: Routers and QoS 22

Buffer Management Mark packets according to flow s token bucket profile During congestion, drop unmarked pkts first r bps User Profile b bits (token bucket) No token Packet input Test if token token Mark packet Packet output 23

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 24

Scheduling So far we ve looked at 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) Fair queuing Proportional share scheduling Schedule round-robins among queues Weighted FQ: schedules in proportion to some weight parameter 25

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

UDP vs. TCP wo/fair Queuing 27

TCP vs. UDP w/fair Queuing 28

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 29

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 30

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 >= w i *C/(Σ k w k ) If Σ k w k <= C, flow i is guaranteed to be allocated a rate >= w i 31

Fluid Flow model 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 32

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 33

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 34

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 35

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 36

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 to deliver 37

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

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

Integrated Services Install per-flow state Sender Receiver CSE 123 Lecture 15: Routers and QoS 40

Integrated Services Install per flow state Sender Receiver 41

IntServe: Data Path Per-flow classification Sender Receiver 42

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

IntServe: Data Path Per-flow scheduling Sender Receiver CSE 123 Lecture 15: Routers and QoS 44

Differentiated Services Edge router Shape & police traffic Mark class of traffic in IP 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

Summary To enforce differentiation on traffic quality requires router support Buffer management: what gets dropped Scheduling: what gets sent when Token bucket Key abstraction for taking about traffic needs (rate and burstiness) Fair queuing Approach to allocate bandwidth between flows Networks can provide quality of service Combines per-router traffic policing with network signaling IntServ and DiffServ are contrasting approaches 46

Thanks! See you at the final! 47