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

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

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

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

Differentiated Services

IP Differentiated Services

EE 122: Differentiated Services

Marking Traffic CHAPTER

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

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

Internet Services & Protocols. Quality of Service Architecture

Differentiated Services

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

Implementing QoS in IP networks

Real-Time Protocol (RTP)

QoS in IPv6. Madrid Global IPv6 Summit 2002 March Alberto López Toledo.

Towards Service Differentiation on the Internet

Part1: Lecture 4 QoS

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

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

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

5. QoS Functions in Core and Backbone Networks

QoS for Real Time Applications over Next Generation Data Networks

Quality of Service II

Lesson 14: QoS in IP Networks: IntServ and DiffServ

Differentiated Service Router Architecture - Classification, Metering and Policing

Lecture 13. Quality of Service II CM0256

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

Lecture 14: Performance Architecture

CSE 123b Communications Software

Quality of Service in the Internet

Advanced Computer Networks

Quality of Service (QoS)

Internetworking with Different QoS Mechanism Environments

Differentiated services code point (DSCP) Source or destination address

Quality of Service in the Internet

Improving QOS in IP Networks. Principles for QOS Guarantees

Author : S.chandrashekhar Designation: Project Leader Company : Sasken Communication Technologies

Lecture Outline. Bag of Tricks

Mohammad Hossein Manshaei 1393

Networking Quality of service

Quality of Service Basics

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

"Charting the Course... Implementing Cisco Quality of Service (QOS) Course Summary

Configuring QoS. Understanding QoS CHAPTER

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

Network Working Group

Configuring QoS CHAPTER

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

Deliverable 1: ENDIKTIS

QoS Technology White Paper

Vanguard Applications Ware IP and LAN Feature Protocols. Quality Of Service

Network Support for Multimedia

University of Cyprus Computer Science. Implementation and Evaluation of Differentiated Services on Linux

Implementation of Differentiated Services over ATM

Master Course Computer Networks IN2097

Introduction to IP QoS

Setting Up Quality of Service

Master Course Computer Networks IN2097

Register Bit Name Description Default Global Ctrl Reg 2 SGCR2. Table 1. Registers are used for Common and Egress Port Setting

Understanding How Routing Updates and Layer 2 Control Packets Are Queued on an Interface with a QoS Service Policy

Sections Describing Standard Software Features

Grandstream Networks, Inc. GWN7000 QoS - VoIP Traffic Management

Implementing Cisco Quality of Service 2.5 (QOS)

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

Quality of Service. Ib Hansen TECRST-2500_c Cisco Systems, Inc. All rights reserved. Cisco Public 1

Institute of Computer Technology - Vienna University of Technology. L73 - IP QoS Integrated Services Model. Integrated Services Model

ITBF WAN Quality of Service (QoS)

Design Intentions. IP QoS IntServ. Agenda. Design Intentions. L73 - IP QoS Integrated Services Model. L73 - IP QoS Integrated Services Model

Protocols. End-to-end connectivity (host-to-host) Process-to-Process connectivity Reliable communication

H3C S9500 QoS Technology White Paper

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

Internet Engineering Task Force (IETF) December 2014

Sections Describing Standard Software Features

Configuring QoS CHAPTER

Configuration Guide - QoS

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

QOS Section 6. Weighted Random Early Detection (WRED)

Quality of Service for Multimedia over Next Generation Data Networks

IT Certification Exams Provider! Weofferfreeupdateserviceforoneyear! h ps://

Quality of Service (QoS)

Configuring Quality of Service

QoS Technology White Paper

Multicast and Quality of Service. Internet Technologies and Applications

Configuring Quality of Service for MPLS Traffic

IP Premium Agenda. - Services specification and implementation discussion. - Qos Parameters. M. Campanella - TF-TNG - Münster 7 feb 2001

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

Configuring QoS. Finding Feature Information. Prerequisites for QoS

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

2. Integrated Services

Overview of DiffServ for Quality of Service

Configuring QoS CHAPTER

Internet QoS : A Big Picture

QOS IN PACKET NETWORKS

Quality of Service (QoS): Managing Bandwidth More Effectively

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

Application Note 126. QoS Priority Support KS8993M / KS8995MA / XA. Introduction. Egress Port Priority Mechanism. Strict Priority Queuing

QoS Configuration. Page 1 of 13

RETELE DE CALCULATOARE

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

Multimedia Networking. Network Support for Multimedia Applications

Transcription:

Principles IP QoS DiffServ Differentiated Services Architecture DSCP, CAR Integrated Services Model does not scale well flow based traffic overhead (RSVP messages) routers must maintain state information for each flow ATM s principle of traffic classes seemed to be also useful for IP note: ATM virtual circuits implicitly identify flows (connection between two end systems) but queuing management handels service classes only (CBR, VBR, ABR, UBR) -> all virtual circuits of same class use the same queue Idea of Differentiated Services Model (DS, DiffServ): Packets are separated into traffic classes aggregation of traffic better scalability! Routers treat each traffic class according specific service level agreements IP QoS DiffServ, v4.3 3 IP QoS DiffServ, v4.3 2 Principles Requires a traffic identification and labeling (marking) mechanism Routers examine this label to adjust queuing and drop parameters IP Type of Service (ToS) field used as DS label now called "Differentiated Service Code Point" (DSCP) So there are two main DS building blocks: DSCP Per-Hop Behavior (PHB) of the routers No reservations necessary static QoS mechanism PHB is determined by DSCP IP QoS DiffServ, v4.3 4 Page 74-1 Page 74-2

DS Terminology DS Multiple Domains boundary node interior nodes boundary node boundary nodes interior nodes Per-hop behavior DS domain DS domain 1 DS domain 2 ingress node Traffic Conditioner (Measuring and Policing) egress node egress node Traffic Conditioner (Measuring and Shaping) ingress node Traffic Conditioner (Measuring and Policing) IP QoS DiffServ, v4.3 5 IP QoS DiffServ, v4.3 7 DS Architecture Distinction between boundary and interior functions/nodes DSCP bits must be set at network boundaries at ingress point to achieve PHP in own DS domain at egress points to conform to DSCP meaning in next DS domain administered by another authority Also conditioning of packets at network boundaries at ingress point for traffic policing at egress points for traffic shaping to conform traffic aggrement with next DS domain administered by another authority Interior nodes have to examine these bits and treat the packets accordingly interior nodes schedule packet forwarding in different ways based on DSCP DS DS requires routers to support sophisticated queue management DSCP value specifies queue parameters and drop preferences traditional FIFO queuing cannot provide service differentiation DS assumes a Service Level Agreement between adjacent networks service provider and customer between service providers adapt different per-hop behaviors IP QoS DiffServ, v4.3 6 IP QoS DiffServ, v4.3 8 Page 74-3 Page 74-4

Service Level Agreement / Specification Service Level Agreement (SLA) in context to DS is a contract between customer and service provider that specifies the forwarding service non-technical aspects pricing contractual obligations Service Level Specification (SLS) a set of parameters and values defines the service offered to a traffic stream by a DS domain Traffic Conditioning Specification (TCS) specifies a set of classifier rules IP QoS DiffServ, v4.3 9 IP QoS DiffServ, v4.3 11 Traffic Conditioning Agreement A Traffic Conditioning Agreement (TCA) consists classifier rules traffic profiles (optional) bandwidth, throughput, latency, drop precedence, metering, marking, discarding, shaping rules A TCA is the result of an SLA the specific service requirements and the providers service provisioning policy Providing a Label for DS In earlier IP-days the IETF intended the Type of Service (ToS) field in the IP header to be used as some kind of flow descriptor rarely used, mostly even ignored by operating systems So, this field can be reused! no additional header necessary The IPv4 ToS field consists of three precedence bits for eight precedence levels (0...lowest, 7...highest) four type of service indication bits one unused bit IP QoS DiffServ, v4.3 10 IP QoS DiffServ, v4.3 12 Page 74-5 Page 74-6

IPv4 Header Review 3 bits 4 bits 1 bit Precedence Type of Service 0 0 4 8 16 31 Version HLEN ToS Total Length Fragment Identifier Flags Fragment Offset TTL Protocol Header Checksum Source Address Destination Address IP Options Pad PAYLOAD... IP QoS DiffServ, v4.3 13 IP QoS DiffServ, v4.3 15 IPv4 / IPv6 ToS Recycling IPv4 ToS field was redefined by the IETF to become the "Differentiated Service Code Point" (DSCP) Now the DSCP field is used to label the traffic class of a flow In IPv6 the Traffic Class octet is used to implement DiffServ IP QoS DiffServ, v4.3 14 IPv4 ToS: Historical Review 1981: RFC 791 defines the Internet Protocol containing the original ToS-Field 3 bits 3 bits Type of Service Precedence D Type T of Service R 0 0 Precedence: 111 - Network Control 110 - Internetwork Control 101 - CRITIC/ECP 100 - Flash Override 011 - Flash 010 - Immediate 001 - Priority 000 - Routine reserved for future use IPv4 ToS byte Type of Service: D: delay (0 = normal / 1 = low) T: throughput (0 = normal / 1 = high) R: reliability (0 = normal / 1 = high) IP QoS DiffServ, v4.3 16 Page 74-7 Page 74-8

IPv4 ToS: Historical Review 1989: RFC 1122 defines ToS as a five bit field IPv4 ToS DSCP 1998: RFC 2474 specifies DS Field 3 bits 5 bits 3 bits 4 bits 1 bit Precedence Type of Service IPv4 ToS byte Precedence D Type T of Service R C 0 IPv4 ToS byte 1992: RFC 1349 redefines the ToS-Field to be four bits 3 bits 4 bits Type of Service Precedence D Type T of Service R C 0 IPv4 ToS byte preserved 3 bits Class Selector codepoints 6 bits 2 bits Currently unused DS-Field reserved for future use IP QoS DiffServ, v4.3 17 Differentiated Services Code Point (DSCP) IP QoS DiffServ, v4.3 19 Initial Meaning of the ToS Subfield Type of Service Low Latency 1000 High Throughput 0100 High Reliability 0010 Bit Flags Value Examples 8 4 2 Telnet keystrokes, urgent data, etc. FTP downloads, backups, bandwidthsensitive applications File-sharing, database updates, UDP transactions Low Cost 0001 1 NNTP news feed, nonessential traffic Default 0000 0 Normal traffic IP QoS DiffServ, v4.3 18 IP QoS DiffServ, v4.3 20 Page 74-9 Page 74-10

IPv4 ToS newest development: ECN 2002: RFC 3260 declares Explicit Congestion Notification (ECN) as an integration of the former ToS-Field ECT CE 3 bits 6 bits DS-Field, DSCP ECN-Capable Transport Congestion Experienced 2 bits ECN-Field 0 0 1 1 0 Not-ECT 1 ECT(1) 0 ECT(0) 1 CE DSCP Usage DS-routers overwrite the IPv4 ToS field only precedence bits are preserved now known as "class selector code point" field DSCP consists of 6 bits 64 code points possible: 48 in global space, 16 for local use last 2 bits of the former IPv4 ToS field used for ECN specifications RFC 2474: "Definition of the Differentiated Service Field in the IPv4 and IPv6 Headers" RFC 2475: "An Architecture for Differentiated Services" RFC 3260: "New Terminology and Clarifications for DiffServ" IP QoS DiffServ, v4.3 21 IP QoS DiffServ, v4.3 23 ECN in detail ECT(0) or ECT(1) are set by the data sender to indicate a ECN-capability routers treat both code points as equivalent Not-ECT indicates a packet that is not using ECN CE code point is set by a router to indicate congestion to the end nodes Routers that have a packet arriving at a full queue drop the packet, just as they do in the absence of ECN see specifications RFC 3168 "The Addition of ECN to IP" IP QoS DiffServ, v4.3 22 IP QoS DiffServ, v4.3 24 Page 74-11 Page 74-12

Per-Hop Behavior A Per-Hop Behavior (PHB) is "The externally observable forwarding behavior applied at a DS-compliant node to a DS behavior aggregate." concerns local behavior of a network-node should enable predictable services The PHB describes various node-behaviors for incoming packets forwarding classification scheduling drop Note: Traffic conditioning and service provisioning is not part of a PHB definition IP QoS DiffServ, v4.3 25 Per-Hop Behaviors Expedited Forwarding (EF) Premium Service (Highest DS QoS) using a single DSCP only (101110) minimal delay and jitter; low loss and assured bandwidth targets applications like VoIP and video conferencing virtual leased line service looks like a point-to-point connection for DiffServ network s end nodes implementation by appropriate packet scheduling techniques it must be ensured, that a busy EF queue does not starve the remaining traffic queues e.g. CBWFQ (Class-Based Weighted Fair Queuing) e.g. Priority Queuing IP QoS DiffServ, v4.3 27 Per-Hop Behaviors 4 Types: Default PHB (DE) Best Effort DSCP = 000000 Class Selector PHB Defined to be backward-compatible with IP precedence Precedence 1 Precedence 2 Precedence 3 Precedence 4 Precedence 5 Precedence 6 Precedence 7 001 000 010 000 011 000 100 000 101 000 110 000 111 000 Per-Hop Behaviors Assured Forwarding (AF) emulates a lightly loaded network even in congestion cases 4 classes and 3 drop-precedence's within each class = 12 code points bandwidth assurance but no guarantee each traffic class is serviced in its own queue Drop Precedence Low Medium High Class 1 001 010 001 100 001 110 Class 2 010 010 010 100 010 110 Class 3 011 010 011 100 011 110 Class 4 100 010 100 100 100 110 Random Early Detection (RED)-queue management is often used for an implementation IP QoS DiffServ, v4.3 26 IP QoS DiffServ, v4.3 28 Page 74-13 Page 74-14

Solution: Traffic Differentiation DS in Action Variable traffic from several less important customers: 5-50 Mbit/s Variable traffic from important customers: 10-30 Mbit/s Constant video stream: 10 Mbit/s Router must manage 25-90 Mbit/s! 45 Mbit/s link Queue and drop parameters should comply to the customers service contracts Customer A Advanced queuing and routing mechanisms Traffic shaping Customer B Classifying, marking according traffic policy, metering Provider (DS-Domain) E.g. utilizing PHB groups 1,3,5 Committed Access Rate (CAR) E.g. utilizing PHB groups 1,2,3 Customer A Customer B IP QoS DiffServ, v4.3 29 IP QoS DiffServ, v4.3 31 Internet: Competitive Traffic Variable traffic from several less important customers: 5-50 Mbit/s Classified for best-effort service Variable traffic from important customers: 10-30 Mbit/s Constant video stream: 10 Mbit/s Classified for expedited forwarding 45 Mbit/s link Classified for assured forwarding IP QoS DiffServ, v4.3 30 IP QoS DiffServ, v4.3 32 Page 74-15 Page 74-16

DS Domains A DS domain is a contiguous subnet with a consistent DS management A "DS region" consists of one or more contiguous DS domains Related PHB s are collected in a PHB-group because there may be many more potential PHB s than the 64 map-able PHB s that can be addressed by the DSCP e.g. several PHB s with similar properties can be summarized as one specific PHB group sharing similar properties such as buffer sizes, bandwidth, delay, jitter, loss, etc. Traffic Profiles Classifiers check if incoming traffic profile complies to the SLA s traffic profile A traffic profile can be given by token-bucket parameters eg. "DSCP=x, use token-bucket r, b" specifies that all packets with DSCP=x should be measured against a token bucket meter with rate r and burst size b. out-of-profile traffic: when packets arrive while there is currently no token available Solution against out-of-profile traffic: DSCP remarking traffic shaping: queuing to adapt token rate packet dropping IP QoS DiffServ, v4.3 33 IP QoS DiffServ, v4.3 35 Boundary nodes Traffic Conditioner Traffic Conditioning Packet Classification Marking the DSCP- Field of the packet Shaping, Queuing, Scheduling Meter Policy Marking high Packets Classifier Marker Shaper/ Dropper Data flow med normal low Traffic conditioners are usually located within DS ingress and egress boundary nodes Boundary router IP QoS DiffServ, v4.3 34 IP QoS DiffServ, v4.3 36 Page 74-17 Page 74-18

Traffic Conditioner Classifier selects a packet in a traffic stream based on the content of some part of the packet header common way: classification based on the DSCP field Meter measures traffic stream against traffic profile based on traffic descriptor such as a token bucket the state of the Meter influences the decision of the Marker and the Shaper/Dropper Packet Classification Two types of classifiers: Behavior Aggregate (BA) classifier classifies packets based on the DSCP only Multi-field (MF) classifier selects packets based on the value of a combination of one or more header fields e.g. source and destination address, DSCP, protocol ID, ports, also incoming interface note: IP fragmentation can lead to wrong MF classification of fragments if TCP fields are examined IP QoS DiffServ, v4.3 37 IP QoS DiffServ, v4.3 39 Traffic Conditioner Marker might be configured to mark all packets which are steered to it (by the classifier) to a single DSCP might select a PHB in a PHB group according to the meter s state might re-mark (change an existing DSCP) Shaper delays some or all packets in a traffic stream to smooth bursts and cares for compliance with the specified traffic profile Dropper discards all packets that doesn t comply with the traffic profile ("policing the stream") IP QoS DiffServ, v4.3 38 Re-marking the DSCP Ingress routers must ensure that packets entering a DS domain receive the same QoS as in the domain before extending the PHB group by re-marking the DSCP field and traffic conditioning Ingress router examines the TCP port numbers and assigns a new service class So, the DS is transparent to applications note: IntServ requires application s help! However, an end-to-end QoS cannot be guaranteed because no reservation of resources "Soft" QoS IP QoS DiffServ, v4.3 40 Page 74-19 Page 74-20

DSCP Re-marking DS-Domain 1 using 4 queues only queue 3 queue 2 queue 1 queue 0 Ingress router with traffic conditioner Classifying: priority = 3 Re-marking: priority = 7 DS-Domain 2 using 7 queues queue 7 queue 6 queue 5 queue 4 queue 3 queue 2 queue 1 queue 0 IP QoS DiffServ, v4.3 41 IP QoS DiffServ, v4.3 43 Source Domain The source domain is the place where the traffic originates Usually the customer s domain Nodes within a source domain may perform traffic classification E.g. directly by the source node "initial marking" or "pre-marking" conditioning Advantages of pre-marking and early conditioning: traffic source knows preferences of applications e.g. a CEO s traffic has more importance simplifies classification and traffic shaping tasks on border nodes However, source domain is responsible that aggregated traffic conforms to the TCA signaling of PHB s using RSVP might be necessary Multicast Traffic IP multicast traffic may cause a higher load inside a DS domain multicast packets may take multiple paths simultaneously because of multicast packet replication unpredictably consumes more network resources than unicast packets So it may be necessary to reserve different sets of DSCP for unicast and multicast traffic to provide resource isolation from multicast traffic IP QoS DiffServ, v4.3 42 IP QoS DiffServ, v4.3 44 Page 74-21 Page 74-22

QoS Mapping between IEEE 802 and IP 802.1p and 802.1Q define 8 levels of prioritization (0-7) DSCP class selector code point also provides 8 precedence levels three-bit field within DSCP So 802.1p priority values can be mapped one-toone into the DS class selector code point DS and IPsec IPsec tunnel mode: encapsulates the whole IP packet with an outer IP header outer IP header contains a proxy-ds field which is set according to the SLA only this outer proxy-ds field will be modified on the way through the IPsec tunnel at the end of the IPsec tunnel the outer IP header is stripped off again IP QoS DiffServ, v4.3 45 IP QoS DiffServ, v4.3 47 DS and IPsec IPsec does not use the DS field of the IP header for its cryptographic calculations That is: IPsec can be used in DS networks without modifications DS together with IPsec tunneling hides port information increases security as routers only need to examine the DSCP to perform traffic differentiation IP QoS DiffServ, v4.3 46 Page 74-23 Page 74-24