VoIP Protocols and QoS

Similar documents
The Session Initiation Protocol

RSVP and the Integrated Services Architecture for the Internet

Advanced Computer Networks

Mohammad Hossein Manshaei 1393

Real-Time Protocol (RTP)

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

Network Support for Multimedia

Improving QOS in IP Networks. Principles for QOS Guarantees

Multimedia Networking

CSE 123b Communications Software

Multicast and Quality of Service. Internet Technologies and Applications

Internet Services & Protocols. Quality of Service Architecture

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

Lesson 14: QoS in IP Networks: IntServ and DiffServ

Real-Time Control Protocol (RTCP)

ETSF10 Internet Protocols Transport Layer Protocols

Lecture 14: Performance Architecture

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

Master Course Computer Networks IN2097

Quality of Service (QoS)

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

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

TDDD82 Secure Mobile Systems Lecture 6: Quality of Service

Master Course Computer Networks IN2097

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

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

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

Quality of Service II

Part1: Lecture 4 QoS

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

RSVP 1. Resource Control and Reservation

Resource Control and Reservation

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

Telematics 2 & Performance Evaluation

Differentiated Services

Quality of Service in the Internet

Lecture 24: Scheduling and QoS

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

Differentiated Services

Multimedia Applications over Packet Networks

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

Multimedia networking: outline

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

Multimedia Networking. Network Support for Multimedia Applications

Quality of Service in the Internet

Module objectives. Integrated services. Support for real-time applications. Real-time flows and the current Internet protocols

Multimedia Networking and Quality of Service

Quality of Service and Bandwidth Management

Lecture 13. Quality of Service II CM0256

A common issue that affects the QoS of packetized audio is jitter. Voice data requires a constant packet interarrival rate at receivers to convert

of-service Support on the Internet

Multimedia networking: outline

Multimedia Networking

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

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

Computer Network Fundamentals Fall Week 12 QoS Andreas Terzis

Converged Networks. Objectives. References

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

Lecture Outline. Bag of Tricks

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

Quality of Service. Qos Mechanisms. EECS 122: Lecture 15

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

Today. March 7, 2006 EECS122 Lecture 15 (AKP) 4. D(t) Scheduling Discipline. March 7, 2006 EECS122 Lecture 15 (AKP) 5

QUALITY of SERVICE. Introduction

Quality of Service (QoS)

Telecommunication Services Engineering Lab. Roch H. Glitho

Common network/protocol functions

Quality of Service (QoS)

Quality of Service (QoS)

Video Streaming and Media Session Protocols

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

CSE 461 Quality of Service. David Wetherall

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

3. Quality of Service

Networking Quality of service

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

Implementing QoS in IP networks

Congestion Control and Resource Allocation

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

ITBF WAN Quality of Service (QoS)

Prof. Dr. Abdulmotaleb El Saddik. site.uottawa.ca mcrlab.uottawa.ca. Quality of Media vs. Quality of Service

CS 268: Integrated Services

Quality of Service Basics

Multimedia Networking. Protocols for Real-Time Interactive Applications

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

Master Course Computer Networks IN2097

Master Course Computer Networks IN2097

DiffServ Architecture: Impact of scheduling on QoS

QoS Requirements and Implementation for IMS Network

EE 122: Differentiated Services

Towards Service Differentiation on the Internet

Index. 2G mobile networks G mobile networks GPP network, see LTE networks

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

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

VoIP Basics. 2005, NETSETRA Corporation Ltd. All rights reserved.

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

QOS IN PACKET NETWORKS

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

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

CSE398: Network Systems Design

Transcription:

Announcements I. Times have been posted for demo slots VoIP Protocols and QoS II. HW5 and HW6 solutions have been posted HW6 being graded Internet Protocols CSC / ECE 573 Fall, 2005 N. C. State University III. Final Exam questions? copyright 2005 Douglas S. Reeves 2 Today s Lecture I. VoIP Protocol Overview II. III. IV. Motivation and Overview of QoS Mechanisms to Implement QoS Some QoS protocols: RSVP and DiffServ VOICE-OVER-IP PROTOCOLS V. QoS Assessment copyright 2005 Douglas S. Reeves 3 Motivation for VoIP? Price? New services (integration of computer + phone)? Freedom from phone companies? Voice-over-IP Protocols Master-slave (M-S) relationship is easiest to manage, easiest to recover from faults Peer-to-peer (P2P) is most flexible, most scalable SIP Proxy / MG Controller SIP (peer-peer) SIP Proxy / MG Controller H1 Media Gateway MGCP (Master-Slave) UDP/RTP media stream Media Gateway H2 copyright 2005 Douglas S. Reeves 5 POTS IP POTS copyright 2005 Douglas S. Reeves 6 1

Session Initiation Protocol (RFC 3261) Used to initiate, control, and terminate telephone calls and other services end-to-end call signaling, possibly involving media gateway controllers (MGC) between the end points Properties fully distributed (peer to peer) text-based (human readable) modeled on HTTP SIP is a much simpler protocol than H.323, but is at least as functional SIP wins copyright 2005 Douglas S. Reeves 7 Functionality SIP Key Features SIP is complete for setting up point-to-point or multiparty multimedia calls extensive call handling capabilities media capabilities are negotiated by endpoints Flexibility URLs are used for addresses (i.e., to locate the callee) users can move to new locations and access their full telephony features from anywhere users can define what response they want to give when contacted (availability, etc.) copyright 2005 Douglas S. Reeves 8 SIP Proxies (i.e., Call Servers) Users may require the use of SIP proxies, or call servers, to set up and maintain the call find the other party configure the media gateways do user authentication, authorization, and billing Example: Basic SIP Call (No Proxy) Source: Carrier Grade Voice Over IP, D. Collins, McGraw-Hill, 2001 SIP servers are stateless means any information about the current state of the call is stored in the endpoints (gateways, terminals), rather than in the server reason: to simplify the design of the servers, improve their scalability copyright 2005 Douglas S. Reeves 9 copyright 2005 Douglas S. Reeves 10 Call Routing Example (with Relaying) 1. Jon initiates a call to eve@isi.edu, sends INVITE message 2. DNS looks up a SRV record for the SIP server (proxy) at isi.edu; proxy is sip.isi.edu 3. The caller invitation is sent to sip.isi.edu 4. sip.isi.edu indicates Eve is served by SIP server sipgw.cs.isi.edu 5. sip.isi.edu relays the request to sipgw.cs.isi.edu 6. sipgw.cs.isi.edu has database indicating how to reach Eve DB is updated whenever Eve registers a new location 7. sipgw.cs.isi.edu relays the invitation to Eve at her current location copyright 2005 Douglas S. Reeves 11 REGISTER Request Method Purpose: register the current location of a user Who register with? multicast to the well-known "all SIP servers" multicast address "sip.mcast.net" (224.0.1.75) What happens if user is registered as being at multiple locations? Several choices: 1. contact them all at once, wait for the first to respond 2. contact them one at a time until get successful response copyright 2005 Douglas S. Reeves 13 2

Media Negotiation The invitation (from caller to callee) suggests the type of media sessions to establish using SDP description The response (from callee to caller) indicates type of media sessions that are possible / acceptable Caller re-invites with the commonly-agreed set of media functions Source: Carrier Grade Voice Over IP, D. Collins, McGraw-Hill, 2001 Including Session Description in Invitation copyright 2005 Douglas S. Reeves 14 copyright 2005 Douglas S. Reeves 15 Source: Carrier Grade Voice Over IP, D. Collins, McGraw-Hill, 2001 PSTN to SIP Call Signaling used for conventional (PSTN) phone calls: SS7/ISUP REMARKS ON QOS Requires translation between SIP and ISUP copyright 2005 Douglas S. Reeves 16 What QoS Means Predictable / Controllable network behavior and performance timescale? granularity? Performance metrics 1.packet drop or loss rate 2.end-to-end latency (delivery time) 3.throughput (bandwidth) Applications Requiring QoS Voice Video Other multi-user gaming real-time simulation online auctions copyright 2005 Douglas S. Reeves 18 copyright 2005 Douglas S. Reeves 19 3

Applications That Don t Need QoS How Good Does QoS Need to Be? Elastic applications tolerate best-effort Internet service Voice Video web, ftp, mail low loss rates, variable throughput, and small average delays are good enough Non-interactive (streaming) audio and video are semi-elastic Bandwidth (kb/s) Maximum tolerable packet drop rate Maximum Latency (one-way) 5 64 1-3% < 150ms (if interactive) 64 5000 1% same copyright 2005 Douglas S. Reeves 20 copyright 2005 Douglas S. Reeves 21 Packet Loss Effect on QoS One-Way Latency Effect on QoS source: http://www.sprintlabs.com/people/amarko/papers/ton/paper-00149-2002.pdf copyright 2005 Douglas S. Reeves 22 source: http://www.sprintlabs.com/people/amarko/papers/ton/paper-00149-2002.pdf copyright 2005 Douglas S. Reeves 23 Challenges for Internet QoS Network Loading Variations Social / Political / Economic challenges user resistance to complex pricing models user notions of fairness incompatibility with legacy protocols and incremental-deployment issues increasing abundance of cheap bandwidth desire to keep routers simple, cheap, and fast copyright 2005 Douglas S. Reeves 24 copyright 2005 Douglas S. Reeves 25 4

Application Bandwidth Variations Network Delay Variations source: http://www.sprintlabs.com/people/amarko/papers/ton/paper-00149-2002.pdf copyright 2005 Douglas S. Reeves 26 copyright 2005 Douglas S. Reeves 27 Application Sources of Delay framing delay (time to accumulate one unit of speech or video for processing): 10-30ms video/audio compression and decompression: 30-100 ms jitter removal/smoothing at receiver: 50-200 ms Network Media access and serialization delay: 5ms propagation delay:45 ms (cross-continent) queuing and switching delays: 5-200ms A Framework for QoS Sender contacts receiver, negotiates application characteristics (bit-rate, etc.) Sender notifies network of QoS requirements and application characteristics Network determines if QoS can be met, reserves bandwidth and scheduling priority on media path QoS is managed by network Receiver manages playback buffer copyright 2005 Douglas S. Reeves 28 copyright 2005 Douglas S. Reeves 29 Compression / Decompression Choices Lots of standards: take CSC557 QoS MECHANISMS Tradeoff of processing overhead and hardware needed perceptual quality desired Factors that can be adapted frame rate, size of image, color depth lossiness / quality copyright 2005 Douglas S. Reeves 31 5

Application Traffic Descriptors LBAP Illustration A popular descriptor: Linear Bounded Arrival Process (LBAP) # of bits transmitted in any interval t = B(t) ρ* t + σ ρ = the long-term average rate σ = longest burst that application may send Example (ρ = 5000 bps, σ = 3000 bits, t =.5) B(t) 5500 bits copyright 2005 Douglas S. Reeves 32 copyright 2005 Douglas S. Reeves 33 Traffic Shapers or Policers Shapers or regulators enforce the rate at which applications can inject traffic into the network Policers discard traffic which does not conform to a traffic descriptor Mechanisms leaky bucket token bucket copyright 2005 Douglas S. Reeves 34 Token Bucket Regulator Up to σ tokens accumulate in the bucket, at rate ρ token bucket size σ token generation rate ρ Transmit a packet only when the sum of the tokens accumulated packet size and remove that amount of tokens from the bucket If no token when packet arrives... policer: drop packet shaper: buffer packet Incoming Packets size σ Tokens rate ρ copyright 2005 Douglas S. Reeves 35 Outgoing Packets Token Bucket Shaping Example Token Bucket Shaping Example copyright 2005 Douglas S. Reeves 36 Tokens being generated copyright 2005 Douglas S. Reeves 37 6

Token Bucket Shaping Example Token Bucket Shaping Example Packets arriving Packets arriving Packet leaving Tokens being generated copyright 2005 Douglas S. Reeves 38 Tokens being generated copyright 2005 Douglas S. Reeves 39 Token Bucket Shaping Example Token Bucket Shaping Example Packets arriving Packets arriving Packet leaving Packet leaving Tokens being generated copyright 2005 Douglas S. Reeves 40 Tokens being generated copyright 2005 Douglas S. Reeves 41 Token Bucket Shaping Example Packets arriving Packet leaving Packet Schedulers Determine the order in which incoming packets are output, and at what times affects the queuing time of the packets The simplest scheduler: First-in-First-Out limitation: all flows treated the same variation: remember RED and AQM (active queue management)? Many scheduling algorithms (take CSC557 ) one example: Weighted Round-Robin (WRR) Tokens being generated copyright 2005 Douglas S. Reeves 42 copyright 2005 Douglas S. Reeves 43 7

Playout Buffer Management Example Voice and video are captured at constant sampling intervals. Examples voice: 8000 samples / sec = 1 sample every.125 ms video: 30 frames / sec = 1 sample every 333 ms Network jitter means the packets will not arrive at the receiver at a steady rate receiver uses a playout buffer to restore smooth playback Sender Voice Recording Device Internet Voice samples Receiver Playout Buffer Receiver copyright 2005 Douglas S. Reeves 44 copyright 2005 Douglas S. Reeves 45 Playout Buffer Illustration Playout Buffer Illustration = packet arrivals = packets used by application without buffering = packets used by application with playout buffering = packet arrivals = packets used by application without buffering = packets used by application with playout buffering Time Time Playout Buffer Illustration Playout Buffer Illustration = packet arrivals = packets used by application without buffering = packets used by application with playout buffering = packet arrivals = packets used by application without playout buffering = packets used by application with playout buffering Time Time 8

Playout Buffer Illustration Playout Buffer Illustration = packet arrivals = packets used by application with no buffering = packets used by application with playout buffering = packet arrivals = packets used by application with no buffering = packets used by application with playout buffering Time Time QoS Guarantees (RFC1633) RSVP AND INTEGRATED SERVICES Deterministic (100%) guarantees based on peak traffic rate simple, predictable, conservative Guaranteed Service (RFC 2212) Statistical (< 100%) guarantees Controlled Load Service No guarantees Best Effort Service copyright 2005 Douglas S. Reeves 53 The RSVP Protocol (RFC2205) Purpose: announce or signal... the sending application requirements to receivers: PATH messages the receivers' resource requirements to the network: RESV messages Properties unidirectional (bidirectional QoS requires reservations in both directions) runs directly over IP (unreliable) hop-by-hop (not end-to-end): routers have to process the messages and possibly modify their contents H1 Point-to-Point Reservations L1 R1 L2 Goal: establish a virtual circuit from H1 to H2 R2 i.e., reserve resources in routers R1, R2, and R3 Most controversial aspect: routers have to maintain per-flow state e.g., flow identity, traffic specification, resource reservation, timer, next and previous hops, L3 R3 L4 H2 copyright 2005 Douglas S. Reeves 54 copyright 2005 Douglas S. Reeves 55 9

Route Pinning and Message Propagation Guaranteed Service Delay Bounds H1 PATH (Tspec) RESV (Flow spec) R1 RESV (Flow spec) PATH (Tspec+ Adspec) R2 PATH (Tspec+ Adspec) RESV (Flow spec) R3 RESV (Flow spec) PATH (Tspec+ Adspec) H2 Goal: receiver must calculate R, rate to be assigned to flow Application requirements determine maximum total end-to-end delay bound D req Route pinning make sure the RESV message retraces the same path taken by the PATH message Computed from information in Tspec and Adspec (see RFC 2212) copyright 2005 Douglas S. Reeves 56 copyright 2005 Douglas S. Reeves 57 Core vs. Access Networks DIFFERENTIATED SERVICES (DIFFSERV) Access Network R1 Boundary routers Core Network R5 R5 R3 Access Network R5 R5 Access Network R2 R4 Access Network Core routers DiffServ QoS will be managed on aggregation (bundle) of flows sharing a path trades off efficiency for accuracy, guaranteed QoS simplifies processing in core routers, pushes complexity to the network edge implemented only in core network, not in access networks proper network provisioning for DiffServ is key to acceptable performance Diffserv Codepoint (DSCP) Field in the IP header specifying the class of service the packet is to receive replaces the previous (8-bit) TOS field copyright 2005 Douglas S. Reeves 60 copyright 2005 Douglas S. Reeves 61 10

Expedited Forwarding (EF) PHB (RFC 2598) Qualitative guarantee: low loss, delay, and jitter minimal queuing at routers Policing and shaping needed only at... access routers, on a per-flow basis border routers, on aggregated flows Policing based on simple token bucket packets exceeding the subscribed rate must be dropped Assured Forwarding (AF) PHB (RFC 2597) Traffic will be forwarded with "high probability" as long as within subscribed rate excess traffic more likely to be discarded Network must not reorder packets in the same flow whether they are in or out of profile Four AF classes, with varying priorities for dropping copyright 2005 Douglas S. Reeves 62 copyright 2005 Douglas S. Reeves 63 What Has Been Adopted So Far? Playout buffer management Streaming QoS ASSESSMENT Overprovisioning RTP / RTCP SIP VoIP copyright 2005 Douglas S. Reeves 65 What Has Not Been Adopted So Far? 1. IntServ (but RSVP in use) and Admission control 2. ~DiffServ~ 3. WFQ, other complex schedulers 4. Killer issue: incremental deployment is QoS in 95% of the network good enough? Summary Voice and video transmission impose new demands on the Internet Providing QoS requires new packet handling mechanisms QoS also requires new protocols copyright 2005 Douglas S. Reeves 66 copyright 2005 Douglas S. Reeves 67 11

Next Lecture Nothing! copyright 2005 Douglas S. Reeves 68 12