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

Similar documents
Part1: Lecture 4 QoS

Real-Time Protocol (RTP)

Improving QOS in IP Networks. Principles for QOS Guarantees

Mohammad Hossein Manshaei 1393

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

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

Lesson 14: QoS in IP Networks: IntServ and DiffServ

Differentiated Services

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

Real-Time Control Protocol (RTCP)

CSE 123b Communications Software

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

Lecture 14: Performance Architecture

Differentiated Services

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

Lecture Outline. Bag of Tricks

Common network/protocol functions

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.

Week 7: Traffic Models and QoS

Quality of Service II

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

QoS Technology White Paper

Quality of Service (QoS)

Differentiated Service Router Architecture - Classification, Metering and Policing

Configuring QoS CHAPTER

of-service Support on the Internet

Quality of Service in the Internet

Quality of Service in the Internet

Master Course Computer Networks IN2097

Master Course Computer Networks IN2097

Lecture 13. Quality of Service II CM0256

Network Support for Multimedia

Configuring QoS. Understanding QoS CHAPTER

Multimedia networking: outline

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

Telematics 2 & Performance Evaluation

Lecture 24: Scheduling and QoS

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

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

EE 122: Differentiated Services

EPL606. Quality of Service and Traffic Classification

Quality of Service Basics

IP Differentiated Services

Towards Service Differentiation on the Internet

Modular Quality of Service Overview on Cisco IOS XR Software

Congestion Control and Resource Allocation

Configuring QoS CHAPTER

Quality of Service (QoS)

QoS Technology White Paper

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

Multicast and Quality of Service. Internet Technologies and Applications

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

VoIP Protocols and QoS

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

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

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Unit 2 Packet Switching Networks - II

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

Multimedia networking: outline

Internet Quality of Service: an Overview

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

Configuring QoS CHAPTER

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

Configuring QoS. Finding Feature Information. Prerequisites for QoS

Networking Quality of service

CSE 461 Quality of Service. David Wetherall

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

QOS IN PACKET NETWORKS

Converged Networks. Objectives. References

Marking Traffic CHAPTER

Sections Describing Standard Software Features

QoS Configuration FSOS

RETELE DE CALCULATOARE

Deliverable 1: ENDIKTIS

Multimedia Networking

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

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

Multimedia Networking. Network Support for Multimedia Applications

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

RSVP 1. Resource Control and Reservation

Transcription:

Last time Part1: Lecture 4 QoS How to improve TCP? SYN attacks SCTP SIP and H.323 RTP and RTCP 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 1

Input port functions Switching fabrics physical layer: bit-level reception data link layer: line termination link layer protocol (receive) lookup, forwarding queueing switch fabric 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 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 Remember? End-to-end delay switch fabric datagram buffer queueing link layer protocol (send) line termination d 1,R 1 d 2,R 2 d 3,R 3 d 4,R 4 buffering required when datagrams arrive from fabric faster than the transmission rate scheduling discipline chooses among queued datagrams for transmission d = ( L i R i + d i s +Q i (t)) 2

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 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 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 at t, packets more from input to output one packet time later One size does not fit all In the Internet IP provides a best-effort service: everybody is equal. In reality: Quality of Service Sensitive Delay sensitivity Personal voice- over-ip Public Web traffic Network monitoring CEO videoconference Financial transactions Network management traffic Personal Insensitive email Casual Business email Mission criticality Server backups Critical 3

14/04/15 Applications taxonomy What is Quality of Service? Application Elastic Real-time Intolerant Tolerant The statistical performance guarantees that a network system can make in terms of throughput, delay, jitter and loss. Non-adaptive Adaptive Delay adaptive Rate adaptive QoS metrics (I) QoS metrics (II) 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 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 4

H1 A possible scenario 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 Policing 1 Mbps link R1 R2 what if applications misbehave? policing: force source adherence to bandwidth allocations 1 Mbps phone 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 1.5 Mbps link packet marking and policing Principle 2 provide protection (isolation) for one class from others 5

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.5 Mbps link 0.5 Mbps logical link 1 Mbps logical link R2 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 Provide QoS to applications or specific flows Integrated Services Coarse grained approach Provide QoS to large classes of data or aggregated traffic Differentiated Services DiffServ 6

Differentiated Services Test Time 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 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 7

Edge and core nodes PHB 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 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 Type of service Learn more: Assured forwarding PHB RFC 2597 - Jun.1999 An Expedite Forwarding PHB RFC 3246 - Mar.2002 IP header 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. 8

IP ToS 8bits ToS 0 1 2 3 4 5 6 7 DiffServ Code Point 8bits ToS 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 IPv4 type ToS 0 1 2 3 4 5 6 7 Bits 3-6: type of service defined 0000 - All normal 1000 - Minimize delay 0100 - Maximize throughput 0010 - Maximize reliability 0001 - Minimize monetary cost For the assured forwarding PHB: bits DS5, DS4 and DS3 define the class; bits DS2 and DS1 specify the drop probability; bit DS0 is always zero. For the expedite forwarding PHB use codepoint 101110 Low Drop Precedence Medium Drop Precedence DS5 DS4 Diff Serv DS3 DS2 DS1 DS0 Class 1 Class 2 Class 3 Class 4 001010 010010 011010 100010 001100 010100 011100 100100 High Drop Precedence 001110 010110 011110 100110 Classifiers Conditioner Meter Meter packets Classifier Marker Shaper/ dropper packets Classifier 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 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) 9

All together Flow 1 Conditioner1 Pause packets Classifier Flow N ConditionerN Best effort Forwarding engine Traffic policing parameters Shaping and Policing 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 10

Token bucket r = 50 Kbps b = 3Kb Example A token bucket is a counter for the allowable number of IP bytes. It has two parameters: 1. token accumulation rate: r Token rate: r (bits/s) 2. burst tolerance: b 3 Kb 2.1 Kb 2.2 Kb During any period of time t the amount of data cannot exceed rt+b Bucket size: B (bytes) T=0; 1Kb packet arrives 2.8 Kb T=2ms: packet transmitted b= 3Kb-1kb + 2ms*50Kbps = 2.1kb 3 Kb T=4ms; 3Kb packet arrives In Out 0.2 Kb Incoming traffic Decision point For In/Out profile T=16ms; packet needs to wait T=20ms; packet transmitted T=24ms; packet transmitted Policing Shaping Traffic Traffic Traffic rate Traffic rate Scheduling Traffic Time Traffic Time Traffic rate Traffic rate Time Time 11

All together FIFO Flow 1 Conditioner1 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 packets Classifier Flow N ConditionerN Best effort Forwarding engine Arriving packets Queue xmit Departing packets Round robin and WRR Round robin problem There is a queue per flow. Queues are served in round-robin fashion. Flow1 Serve queues according to their weight Short packets penalized Flow1 Weight1 Flow2 Weight2 Flow3 xmit Flow2 Flow3 xmit Bit-round fair queuing takes into account packets sized Weight3 12

Flow1 Flow2 Flow3 Fair queuing Bit-round robin. Compute the virtual finish time Clock ticks per bit sent Send packets in order of finish time Finish(j) F xmit 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 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 xmit Arriving packets Queue Departing packets Discard Discard with increasing probability P a Do not discard 2. Random early detection RED variations can accommodate QoS: WRED Weighted RED RIO RED in/out 13

Forwarding queues Two queues: High priority for EF traffic Low priority for AF traffic Low priority implements RED I/O DSCP? High priority queue Packet marking at Layer2 Packets out Low priority queue RIO queue management CoS CoS mappings 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. 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 802.1Q (VLAN tagging) 5 5 Voice, < 10 ms latency 6 6 Internetwork Control 7 7 (highest) Network Control 14

Fine grained QoS What if you want to provide QoS not to traffic classes, but to flows? IntServ Integrated services Integrated Services (Intserv) is an Architecture for providing QOS guarantees in IP networks for individual application sessions. Main characteristics Resource reservation: routers maintain state info of allocated resources, QoS requests Admission control: admit/deny new call setup requests Learn more: Integrated Services in the Internet Architecture: an Overview RFC 1633 - Jun.1994 Should we admit all flows (Best Effort) or refuse some to preserve good performance for the running ones (Reservation and Admission Control)? 15

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 RSVP Learn more: Resource ReSerVation Protocol (RSVP) - Version1 Functional Specification RFC 2205 - Sep.1997 Resource reservation prevents congestions. To reserve resources need a signaling protocol (remember SS7). Resources in the Internet are: Link bandwidths Router buffers 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 16

D1 RSVP messages S1 D2 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 A receiver-oriented protocol RESV message Sent from the receiver along the reverse data path Sets up the reservation state at routers along path Once the data stream has completed, a PATHTEAR and RESVTEAR is triggered to terminate the call and release resources back to the mainstream traffic. S2 S3 Internet PATH messages S1 S2 D3 Internet D1 D3 D2 S3 RESV messages Route pinning S2 S1 S S3 D S4 S5 What if you have asymmetric routing? S -> R1 -> R2 -> R3 -> D And D -> R3 -> R5 -> R4 > R1 -> S 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 R2 R1 S R3 D interact with forwarding of packets separation of control (signaling) and data (forwarding) planes Use PATH to remember the path to S Route pinning. R4 R5 17

All together Comparison Routing messages RSVP messages Routing Forwarding tables RSVP Per Flow QoS table Admission control Route lookup Classifier Scheduler Control plane Data plane Service Best Effort Connectivity No isolation No guarantees DiffServ Per aggregate isolation Per aggregate guarantee IntServ Per flow isolation Per flow guarantee Service scope End-to-end Domain End-to-end Complexity No setup Long term setup Per flow setup Scalability Highly scalable (nodes maintain only routing state) Scalable (edge routers maintain per aggregate state; core routers per class state) Not scalable (each routers maintain per flow state) Literature Home reading 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 For the test on Apr. 17 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. 18