Part1: Lecture 4 QoS

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

Real-Time Protocol (RTP)

Mohammad Hossein Manshaei 1393

Improving QOS in IP Networks. Principles for QOS Guarantees

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

Advanced Computer Networks

Quality of Service (QoS)

Master Course Computer Networks IN2097

Master Course Computer Networks IN2097

Principles. IP QoS DiffServ. Agenda. Principles. L74 - IP QoS Differentiated Services Model. L74 - IP QoS Differentiated Services Model

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

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

Internet Services & Protocols. Quality of Service Architecture

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

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

Lesson 14: QoS in IP Networks: IntServ and DiffServ

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

Differentiated Services

Real-Time Control Protocol (RTCP)

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

CSE 123b Communications Software

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

Lecture 14: Performance Architecture

Differentiated Services

Week 7: Traffic Models and QoS

Lecture Outline. Bag of Tricks

Common network/protocol functions

Quality of Service II

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

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

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

QoS Technology White Paper

Quality of Service (QoS)

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

H3C S9500 QoS Technology White Paper

Network Layer Enhancements

Configuring QoS CHAPTER

Differentiated Service Router Architecture - Classification, Metering and Policing

Network Support for Multimedia

Configuring QoS. Understanding QoS CHAPTER

of-service Support on the Internet

Quality of Service in the Internet

Multimedia networking: outline

Quality of Service in the Internet

Master Course Computer Networks IN2097

Mul$media Networking. #10 QoS Semester Ganjil 2012 PTIIK Universitas Brawijaya

Master Course Computer Networks IN2097

Lecture 13. Quality of Service II CM0256

Lecture 24: Scheduling and QoS

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

Telematics 2 & Performance Evaluation

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

EE 122: Differentiated Services

EPL606. Quality of Service and Traffic Classification

Quality of Service Basics

IP Differentiated Services

Towards Service Differentiation on the Internet

QoS Technology White Paper

Multicast and Quality of Service. Internet Technologies and Applications

Modular Quality of Service Overview on Cisco IOS XR Software

Congestion Control and Resource Allocation

Configuring QoS CHAPTER

Quality of Service (QoS)

VoIP Protocols and QoS

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

ITBF WAN Quality of Service (QoS)

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

CS 356: Computer Network Architectures. Lecture 24: IP Multicast and QoS [PD] Chapter 4.2, 6.5. Xiaowei Yang

Multimedia networking: outline

HUAWEI NetEngine5000E Core Router V800R002C01. Feature Description - QoS. Issue 01 Date HUAWEI TECHNOLOGIES CO., LTD.

Integrated and Differentiated Services. Christos Papadopoulos. CSU CS557, Fall 2017

QoS for Real Time Applications over Next Generation Data Networks

Internetworking with Different QoS Mechanism Environments

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

Configuring QoS CHAPTER

IP QOS Theory and Practice. eng. Nikolay Milovanov CCIE SP# 20094

Unit 2 Packet Switching Networks - II

Peer to Peer Infrastructure : QoS enabled traffic prioritization. Mary Barnes Bill McCormick

Internet Quality of Service: an Overview

CSE 461 Quality of Service. David Wetherall

Quality of Service for Multimedia over Next Generation Data Networks

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

QoS Configuration. Page 1 of 13

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Configuring QoS. Finding Feature Information. Prerequisites for QoS

Converged Networks. Objectives. References

Networking Quality of service

Sections Describing Standard Software Features

Marking Traffic CHAPTER

Before configuring standard QoS, you must have a thorough understanding of these items:

Multimedia Networking. Network Support for Multimedia Applications

QOS IN PACKET NETWORKS

Implementing QoS in IP networks

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

QoS Configuration FSOS

RETELE DE CALCULATOARE

Deliverable 1: ENDIKTIS

Sections Describing Standard Software Features

Multimedia Networking

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

Transcription:

Part1: Lecture 4 QoS

Last time Multi stream TCP: SCTP Multi path TCP RTP and RTCP SIP H.323 VoIP

Router architectures

Overview two key router functions: run routing algorithms/protocol (RIP, OSPF, BGP) forwarding datagrams from incoming to outgoing link forwarding tables computed, pushed to input ports routing processor routing, management control plane (software) forwarding data plane (hardware) high-seed switching fabric router input ports router output ports

Input port functions line termination link layer protocol (receive) lookup, forwarding queueing switch fabric physical layer: bit-level reception data link layer: decentralized switching: given datagram dest., lookup output port using forwarding table in input port memory ( match plus action ) goal: complete input port processing at line speed queuing: if datagrams arrive faster than forwarding rate into switch fabric

Switching fabrics transfer packet from input buffer to appropriate output buffer switching rate: rate at which packets can be transfer from inputs to outputs often measured as multiple of input/output line rate N inputs: switching rate N times line rate desirable three types of switching fabrics memory memory bus crossbar

Output ports switch fabric datagram buffer queueing link layer protocol (send) line termination buffering required when datagrams arrive from fabric faster than the transmission rate scheduling discipline chooses among queued datagrams for transmission

Remember? End-to-end delay d 1,R 1 d 2,R 2 d 3,R 3 d 4,R 4 d = ( L R i i + d i s +Q i (t))

Input port queuing fabric slower than input ports combined -> queueing may occur at input queues queueing delay and loss due to input buffer overflow! Head-of-the-Line (HOL) blocking: queued datagram at front of queue prevents others in queue from moving forward switch fabric switch fabric output port contention: only one red datagram can be transferred. lower red packet is blocked one packet time later: green packet experiences HOL blocking

Output port queueing buffering when arrival rate via switch exceeds output line speed queueing (delay) and loss due to output port buffer overflow! switch fabric switch fabric at t, packets more from input to output one packet time later

Quality of Service

One size does not fit all In the Internet IP provides a best-effort service: everybody is equal. In reality: Sensitive Delay sensitivity! Personal voice- over-ip Public Web traffic Network monitoring CEO videoconference Financial transactions Network management traffic Insensitive Personal email Business email Server backups Casual Mission criticality! Critical

Applications taxonomy Application Elastic Real-time Intolerant Tolerant Non-adaptive Adaptive Delay adaptive Rate adaptive

What is Quality of Service? The statistical performance guarantees that a network system can make in terms of throughput, delay, jitter and loss.

QoS metrics (I) Throughput: the average rate of successful message delivery over a communication channel (available) bandwidth: the net bit rate or the maximum throughput of a logical or physical communication path Goodput: the application level throughput, excluding protocol overheads

QoS metrics (II) Delay: the amount of time it takes for a packet to be transmitted end-toend across a network: Network Latency = Transmission delay + Propagation delay + Queuing delay + Processing delay Jitter: the variance in the arrival rate of packets from the same data flow " Packet loss"

A possible scenario H1 1 Mbps link R1 R2 H3 H2 1 Mbps link R1 output interface queue 1.5 Mbps link H4

How would you make sure everything works?

Marking 1 Mbps link R1 R2 1 Mbps link Principle 1 packet marking needed for router to distinguish between different classes; and new router policy to treat packets accordingly

Policing what if applications misbehave? policing: force source adherence to bandwidth allocations 1 Mbps phone R1 R2 1.5 Mbps link packet marking and policing Principle 2 provide protection (isolation) for one class from others

Efficient allocation allocating fixed (non-sharable) bandwidth to flow: inefficient use of bandwidth if flows doesn t use its allocation 1 Mbps phone R1 1 Mbps logical link R2 1.5 Mbps link 0.5 Mbps logical link Principle 3 while providing isolation, it is desirable to use resources as efficiently as possible

QoS principles 1. Router and switches can distinguish between different classes; and they can policy to treat packets accordingly Packet classification and marking!! 2. Provide protection for one class from other classes; ensure sources adhere to bandwidth requirements; to be done at the edges. Scheduling and policing!! 3. Use resources as efficiently as possible 4. Network may block application if it cannot satisfy its needs Call admission (signaling)!

Type of QoS Fine-grained approach Coarse grained approach Provide QoS to applications or specific flows Provide QoS to large classes of data or aggregated traffic Integrated Services Differentiated Services

DiffServ

Differentiated Services Learn more: Definition of the Differentiated Services Field (DS Field) in the IPv4 and IPv6 Headers RFC 2474 - Dec.1998 An Architecture for Differentiated Services RFC 2475 - Dec.1998

Test Time

Differentiated Services Differentiated Services (DiffServ) allows to give some traffic better treatment than other. Fewer drops Lower delay Lower jitter Bits in packet header indicate which packets get a better service. It deals with traffic in aggregate.

DiffServ architecture DS domain a contiguous set of DS nodes which operate with a common service provisioning policy and set of PHB groups implemented on each node. DS nodes Boundary Egress Ingress Interior

Edge and core nodes Simple functions in network core, and relatively complex functions at edge routers (or hosts. Ingress router: Police or shape traffic Set Differentiated Service Code Point (DSCP) in IP header Core router: Implement Per Hop Behavior (PHB) for each DSCP Process packets based on DSCP

PHB DiffServ supersedes the ToS field in IPv4 to make per-hop behavior (PHB) decisions about packet classification and traffic conditioning functions. PHB: results in a different observable (measurable) forwarding performance does not specify what mechanisms to use to ensure required PHB performance behavior

Learn more: Assured forwarding PHB RFC 2597 - Jun.1999 Type of service An Expedite Forwarding PHB RFC 3246 - Mar.2002 Packets are marked in the Type of Service (TOS) in IPv4, and Traffic Class in IPv6: 6 bits used for Differentiated Service Code Point (DSCP) and determine PHB that the packet will receive 2 bits are currently unused Expedited Forwarding (EF) PHB - a premium service with low-loss, low-jitter, low-delay and assured bandwidth through a DS domain. Assured forwarding (AF) PHB - superior to best effort. Does not require reservation of resources within the internet.

IP header

IP ToS 8bits ToS 0 1 2 3 4 5 6 7 IPv4 type ToS 0 1 2 3 4 5 6 7 Bits 0-2: IP-precedence defined 000 (0) - Routine 001 (1) - Priority 010 (2) - Immediate 011 (3) - Flash 100 (4) - Flash Override 101 (5) - Critical 110 (6) - Internetwork Control 111 (7) - Network Control Bits 3-6: type of service defined 0000 - All normal 1000 - Minimize delay 0100 - Maximize throughput 0010 - Maximize reliability 0001 - Minimize monetary cost

DiffServ Code Point 8bits ToS For the assured forwarding PHB: Diff Serv DS5 DS4 DS3 DS2 DS1 DS0 bits DS5, DS4 and DS3 define the class; bits DS2 and DS1 specify the drop probability; bit DS0 is always zero. Low Drop Precedence Medium Drop Precedence Class 1 Class 2 Class 3 Class 4 001010 010010 011010 100010 001100 010100 011100 100100 For the expedite forwarding PHB use codepoint 101110 High Drop Precedence 001110 010110 011110 100110

Classifiers packets Classifier Meter Marker Shaper/ dropper Classifier: select packets in a traffic stream based on the content of some portion of the packet header; the BA (Behavior Aggregate) Classifier the MF (Multi-Field) classifier

Conditioner Meter packets Classifier Marker Shaper/ dropper Meter measure the temporal properties of the stream of packets against a traffic profile! Marker set the DS field of a packet to a particular codepoint Shaper Delay (shaping) packets to bring the stream in profile Dropper discard packets to bring the stream in profile (policing)

All together Flow 1 Conditioner1 packets Classifier Flow N ConditionerN Best effort Forwarding engine

Shaping and Policing

Traffic policing parameters To correctly police traffic three main parameters to consider: Average rate The average rate expresses the flow that the source is able to sustain over an extended period of time. The interval length is crucial. Example: 100packets/sec; 6000packets/min Peak rate The maximum expected surge in traffic. Example: 6000 pkts per minute Avg and 1500 pkts per sec Variability/burst size The burstiness of a source. Max. number of pkts sent consecutively, i.e. over a short period of time

Token bucket A token bucket is a counter for the allowable number of IP bytes. It has two parameters: 1. token accumulation rate: r 2. burst tolerance: b Token rate: r (bits/s) During any period of time t the amount of data cannot exceed rt+b Bucket size: B (bytes) In Out Incoming traffic Decision point For In/Out profile

r = 50 Kbps b = 3Kb Example 3 Kb 2.1 Kb 2.2 Kb T=0; 1Kb packet arrives T=2ms: packet transmitted b= 3Kb-1kb + 2ms*50Kbps = 2.1kb T=4ms; 3Kb packet arrives 2.8 Kb 3 Kb 0.2 Kb T=16ms; packet needs to wait! T=20ms; packet transmitted T=24ms; packet transmitted

Policing! Shaping! Traffic Traffic Traffic rate Traffic rate Traffic Time Traffic Time Traffic rate Traffic rate Time Time

Pause

Scheduling

All together Flow 1 Conditioner1 packets Classifier Flow N ConditionerN Best effort Forwarding engine

FIFO First-in-first-out (FIFO) - also known as first-come-first serve (FCFS) is the traditional queuing techniques used at routers. Packets that arrive to a full buffer are either discarded, or a discard policy is used to determine which packet to discard among the arrival and those already queued xmit Arriving packets Queue Departing packets

Round robin and WRR There is a queue per flow. Queues are served in round-robin fashion. Flow1 Serve queues according to their weight Weight1 Flow2 Weight2 xmit Flow3 Weight3

Round robin problem Short packets penalized! Flow1 Flow2 xmit Flow3 Bit-round fair queuing takes into account packets sized

Fair queuing Flow1 Flow2 Bit-round robin. Compute the virtual finish time Clock ticks per bit sent Send packets in order of finish time Finish(j) F xmit Flow3 Arrive(j) F arrival time of j-th packet in flow F Length(j) F length of j-th packet in flow F Finish(j) F = max (Arrive(j) F, Finish (j-1) F ) +Length(j) F

Weighted Fair Queuing (WFQ) Generalization of Fair Queuing Provides different amounts of capacity to different flows Assign a weight, Weight F, to each flow The higher the weight the higher the bandwidth Change computation of finish time to factor in the weight Finish(j) F = max (Arrive(j) F, Finish (j-1) F ) +Length(j) F /Weight F Flow1 w 1 Flow2 w 2 Flow3 w 3 xmit

AQM Active Queue Management How to drop packets when the queue is full? 1. Tail drop All packets are identical All new packets are dropped until the queue has space xmit Arriving packets Queue Departing packets 2. Random early detection

RED It is a more proactive approach to congestion management. It monitors the average queue size and drops packets based on statistical probabilities. TH max TH min 0 Discard Discard with increasing probability P a Do not discard RED variations can accommodate QoS: WRED Weighted RED RIO RED in/out

Forwarding queues Two queues: High priority for EF traffic Low priority for AF traffic Low priority implements RED I/O DSCP? High priority queue Packets out Low priority queue RIO queue management

Packet marking at Layer2

CoS Class of Service. Achieving some more fine grained control at the Ethernet level Not the same as QoS, as it is not an end-to-end guarantee. 3 bits in the Ethernet frame indicate the PCP Priority Code Point. 802.1Q (VLAN tagging)

CoS mappings Left to implementation. IETF made some recommendations: PCP! Network priority! Traffic type! 1 0 (lowest) Background 0 1 Best Effort 2 2 Excellent Effort 3 3 Critical Applications 4 4 Video, < 100 ms latency 5 5 Voice, < 10 ms latency 6 6 Internetwork Control 7 7 (highest) Network Control

IntServ

Fine grained QoS What if you want to provide QoS not to traffic classes, but to flows?

Integrated services Integrated Services (Intserv) is an Architecture for providing QOS guarantees in IP networks for individual application sessions. Learn more: Integrated Services in the Internet Architecture: an Overview RFC 1633 - Jun.1994

Main characteristics Resource reservation: routers maintain state info of allocated resources, QoS requests Admission control: admit/deny new call setup requests Should we admit all flows (Best Effort) or refuse some to preserve good performance for the running ones (Reservation and Admission Control)?

Concerns 1. Scalability: signaling, maintaining per-flow router state difficult with large number of flows 2. Flexible Service Models: Intserv has only two classes but ofetn one wants qualitative service classes with a relative service distinction: Platinum, Gold, Silver

RSVP

Signaling protocol Resource reservation prevents congestions. To reserve resources need a signaling protocol (remember SS7). Resources in the Internet are: Link bandwidths Router buffers

RSVP Learn more: Resource ReSerVation Protocol (RSVP) - Version1 Functional Specification RFC 2205 - Sep.1997 The Resource Reservation Protocol (RSVP) is a transport layer protocol: is used by a host to request specific qualities of service from the network for particular application data streams or flows. is used by routers to deliver QoS requests to all nodes along the path(s) of the flows and to establish and maintain state to provide the requested service. RSVP-TE Traffic Engineering extension used in MPLS signaling!

RSVP messages PATH message Sent by the sender along to data path (calculated by routing protocol) Sets up the path state along the data path Receiving end node will make a reservation based on request s parameters RESV message Sent from the receiver along the reverse data path Sets up the reservation state at routers along path A receiver-oriented protocol! Once the data stream has completed, a PATHTEAR and RESVTEAR is triggered to terminate the call and release resources back to the mainstream traffic.

R1 S1 R2 S2 Internet R3 S3 PATH messages R1 S1 R2 S2 Internet R3 S3 RESV messages

Route pinning What if you have asymmetric routing? S2 S -> S1 -> S2 -> S3 -> R S S1 S3 R and R -> S3 -> S5 -> S4 > S1 -> S S4 S5 S2 S S1 S3 R Use PATH to remember the path to S! Route pinning. S4 S5

RSVP does not specify how resources are to be reserved rather: a mechanism for communicating needs determine routes packets will take that s the job of routing protocols signaling decoupled from routing interact with forwarding of packets separation of control (signaling) and data (forwarding) planes

All together Routing messages RSVP messages Routing RSVP Admission control Control plane Forwarding tables Per Flow QoS table Data plane Route lookup Classifier Scheduler

Comparison Best Effort! DiffServ! IntServ!! Service Connectivity No isolation No guarantees Per aggregate isolation Per aggregate guarantee Per flow isolation Per flow guarantee Service scope End-to-end Domain End-to-end Complexity No setup Long term setup Per flow setup Highly scalable Scalable Not scalable Scalability (nodes maintain only routing state) (edge routers maintain per aggregate state; core routers per class state) (each routers maintain per flow state)

Home reading For the test on Apr. 15 read: TMD and SONET/SDH basics Chapter 2 - Section 2.1, 2.2 and (part of) 2.3 from Optical Network Control by G. Bernstein et al.

Literature Section 4.3 What s inside a router? Chapter 17 Integrated and Differentiated Section 7.5 Network support for multimedia Services Chapter 18 Protocols for QoS support