Advanced Computer Networks

Similar documents
Voice over IP (VoIP)

Journal of Information, Control and Management Systems, Vol. X, (200X), No.X SIP OVER NAT. Pavel Segeč

Multimedia Applications. Classification of Applications. Transport and Network Layer

An Efficient NAT Traversal for SIP and Its Associated Media sessions

Transporting Voice by Using IP

CDCS: a New Case-Based Method for Transparent NAT Traversals of the SIP Protocol

Mohammad Hossein Manshaei 1393

CS519: Computer Networks. Lecture 9: May 03, 2004 Media over Internet

Provide a generic transport capabilities for real-time multimedia applications Supports both conversational and streaming applications

Popular protocols for serving media

Real-Time Control Protocol (RTCP)

Multimedia networking: outline

CSC 4900 Computer Networks: Multimedia Applications

Location Based Advanced Phone Dialer. A mobile client solution to perform voice calls over internet protocol. Jorge Duda de Matos

Multimedia networking: outline

Department of Computer Science. Burapha University 6 SIP (I)

Kommunikationssysteme [KS]

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

Computer Networks. Wenzhong Li. Nanjing University

TSIN02 - Internetworking

Real-time Services BUPT/QMUL

Multimedia Networking

ETSF10 Internet Protocols Transport Layer Protocols

Realtime Multimedia in Presence of Firewalls and Network Address Translation

Chapter 9. Multimedia Networking. Computer Networking: A Top Down Approach

Realtime Multimedia in Presence of Firewalls and Network Address Translation. Knut Omang Ifi/Oracle 9 Nov, 2015

Chapter 9. Multimedia Networking. Computer Networking: A Top Down Approach

Video Streaming and Media Session Protocols

Real Time Protocols. Overview. Introduction. Tarik Cicic University of Oslo December IETF-suite of real-time protocols data transport:

ITTC Communication Networks The University of Kansas EECS 780 Multimedia and Session Control

Multimedia Communication

Internet Technology 4/29/2013

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

INTERFACE SPECIFICATION SIP Trunking. 8x8 SIP Trunking. Interface Specification. Version 2.0

Internet Streaming Media. Reji Mathew NICTA & CSE UNSW COMP9519 Multimedia Systems S2 2006

Z24: Signalling Protocols

Multimedia

Multimedia Protocols. Foreleser: Carsten Griwodz Mai INF-3190: Multimedia Protocols

Technical White Paper for NAT Traversal

VoIP. ALLPPT.com _ Free PowerPoint Templates, Diagrams and Charts

Content distribution networks

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

Chapter 5 VoIP. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March Multmedia Networking

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


SIP security and the great fun with Firewall / NAT Bernie Höneisen SURA / ViDe, , Atlanta, GA (USA)

Lecture 9: Media over IP

VOIP Network Pre-Requisites

Multimedia Networking

Master Kurs Rechnernetze Computer Networks IN2097

Troubleshooting Packet Loss. Steven van Houttum

Overview of the Session Initiation Protocol

Multimedia! 23/03/18. Part 3: Lecture 3! Content and multimedia! Internet traffic!

Part 3: Lecture 3! Content and multimedia!

Analysis and Signature of Skype VoIP Session Traffic

CSCD 433/533 Advanced Networks Fall Lecture 14 RTSP and Transport Protocols/ RTP

The Session Initiation Protocol

ENSC 833-3: NETWORK PROTOCOLS AND PERFORMANCE. Implement Session Initiation Protocol (SIP) User Agent Prototype

Internet Telephony: Advanced Services. Overview

Internet Streaming Media. Reji Mathew NICTA & CSE UNSW COMP9519 Multimedia Systems S2 2007

Multimedia and the Internet

Media Communications Internet Telephony and Teleconference

Multimedia Networking

Multimedia networks. Additional references. Jargon. Analog to Digital (S5 4.3) KR: Kurose and Ross chapter 7 (KR3: 3 rd ed)

VoIP Basics. VoIP Basics, X/Stra, Oct 2,

Transporting Voice by Using IP

Digital Asset Management 5. Streaming multimedia

Outline. Multimedia is different Real Time Protocol (RTP) Session Description Protocol (SDP) Session Initiation Protocol (SIP)

13. Internet Applications 최양희서울대학교컴퓨터공학부

Secure Telephony Enabled Middle-box (STEM)

ICE: the ultimate way of beating NAT in SIP

[MS-EUMSDP]: Exchange Unified Messaging Session Description Protocol Extension

CS 218 F Nov 3 lecture: Streaming video/audio Adaptive encoding (eg, layered encoding) TCP friendliness. References:

Summary of last time " " "

Transport protocols Introduction

Phillip D. Shade, Senior Network Engineer. Merlion s Keep Consulting

Real-time Services BUPT/QMUL

MySip.ch. SIP Network Address Translation (NAT) SIP Architecture with NAT Version 1.0 SIEMENS SCHWEIZ AKTIENGESELLSCHAFT

Internet Networking recitation #

EDA095 Audio and Video Streaming

NAT Traversal for VoIP

Session Initiation Protocol (SIP) Overview

Introduction to VoIP. Cisco Networking Academy Program Cisco Systems, Inc. All rights reserved. Cisco Public. IP Telephony

RTP Transport & Extensions

Configuring SIP Connection-Oriented Media Forking and MLPP Features

TODAY AGENDA. VOIP Mobile IP

Information About SIP Compliance with RFC 3261

Transcoding Services Invocation in the Session Initiation Protocol

Introduction to the Application Layer. Computer Networks Term B14

Lecture 6: Internet Streaming Media

ETSF10 Part 3 Lect 1

RTP: A Transport Protocol for Real-Time Applications

P2PSIP, ICE, and RTCWeb

Approaches to Deploying VoIP Technology Instead of PSTN Case Study: Libyan Telephone Company to Facilitate the Internal Work between the Branches

Media server and QoS (so far)

CS 457 Multimedia Applications. Fall 2014

Overview. Slide. Special Module on Media Processing and Communication

Multimedia Applications. Internet Technologies and Applications

Advanced Computer Networks

Implementation of Embedded SIP-based VoIPv6 System

Transcription:

Advanced Computer Networks VoIP Jianping Pan Summer 2007 6/6/07 csc485b/586b/seng480b 1

Feedback on reading & summaries Be aware of deadlines the day before the presentation Read papers not someone else's reading summaries Write summaries in your own words the problem, main ideas strengths, weaknesses, improvement Ask questions papers cited by this one and citing this one be active in class 6/6/07 csc485b/586b/seng480b 2 http://www.cs.uvic.ca/~pan/485/csc485-rs.txt http://www.cs.uvic.ca/~pan/485/reading.txt

Today's topics Network support for voice over IP (VoIP) application session transport network and challenges A peer-to-peer implementation Skype 6/6/07 csc485b/586b/seng480b 3

VoIP Voice over IP voice is still a major means of communication trend: analog, digital, packetized Application requirements reasonable bandwidth with a non-zero minimum dependent on encoding schemes (10~100 Kbps) tolerate some packet losses normally less than 1% sensitive to packet delay and jitter one-way mouth-to-ear delay: less than 150 ms average one-way delay jitter: less than 30 ms 6/6/07 csc485b/586b/seng480b 4

Deal with network impairments Packet loss (or equivalently excessive delay) application impacts voice clipping and skipping, decoding dependence, etc application strategies loss concealment: add background noise, repeat the last packet, interpolate with the next packet, etc effective up to around 20 ms (about one packet) End-to-end delay encoding and decoding transmission, propagation, processing, queuing Delay jitter playback buffering: tradeoff 6/6/07 csc485b/586b/seng480b 5 Q: small buffer or big buffer?

SIP Session initiation protocol signaling: similar to SS7 in PSTN SIP is not just limited to VoIP SIP functions setup calls make changes to ongoing calls terminate calls and more (e.g., presence) SIP does not offer media transport, QoS support, server control, etc 6/6/07 csc485b/586b/seng480b 6

SIP operations Design guidelines client-server model, HTTP+MIME syntax SIP entities UA, registration, proxy, redirect server Registration name/location binding sip:a@b.com sip:1.2.3.4 REGISTER sip:b.com SIP/2.0 From: sip:a@b.com To: sip:a@b.com Contact: <sip:1.2.3.4> Expires: 3600 SIP/2.0 200 OK b.com registrar location server a@1.2.3.4 6/6/07 csc485b/586b/seng480b 7

SIP proxy location server INVITE sip:a@1.2.3.4 SIP/2.0 From: sip:x@y.com To: sip:a@b.com Call-ID: 5678@y.com?a INVITE sip:a@b.com SIP/2.0 From: sip:x@y.com To: sip:a@b.com Call-ID: 5678@y.com media SIP/2.0 200 OK From: sip:x@y.com To: sip:a@b.com Call-ID: 5678@y.com BYE b.com proxy ACK sip:a@b.com SIP/2.0 media OK 6/6/07 csc485b/586b/seng480b 8

SIP redirect location server a@home.com?a b.com redirect INVITE sip:a@b.com SIP/2.0 SIP/2.0 302 Moved temporarily Contact: a@home.com media SIP/2.0 200 OK INVITE sip:a@home.com SIP/2.0 ACK sip:a@home.com SIP/2.0 media 6/6/07 csc485b/586b/seng480b 9 Explore further: http://www.cs.columbia.edu/~hgs/sip/

SDP Session description protocol used in SIP to describe sessions include media type, network/transport parameters e.g., media: media, port, protocol, format_list m=audio 2000/2 RTP/AVP 0 98 format attributes a=rtpmap:0 PCMU/8000 connection: net_type, add_type, address/ttl/# c=in IP4 1.2.3.4/127/3 Ref: http://www.ietf.org/rfc/rfc4566.txt 6/6/07 csc485b/586b/seng480b 10

RTP/RTCP Real-time transport protocol does NOT guarantee real-time itself but does provide mechanisms to achieve so RTP profile Marker: e.g., the start of a talk spurt Payload Type: e.g., specific audio codec PT=0: upcm 64Kbps PT=3: GSM 13Kbps timestamp: e.g., sampling rate, 8KHz PCM packet size: e.g., about 20ms samples in PCM packets independent as much as possible: ALF other issues: e.g., mixed audio channels 6/6/07 csc485b/586b/seng480b 11 Explore further: http://www.cs.columbia.edu/~hgs/rtp/

RTCP Real-time control protocol RTP's control companion purpose: feedback control information for flow/error/congestion/quality control two consecutive UDP ports for RTP and RTCP Sender report offer sending/reception statistics NTP/RTP time stamp, byte/packet count, etc Receiver report offer reception statistics short/long-term loss ratio, time stamp, jitter, etc 6/6/07 csc485b/586b/seng480b 12 Q: how does RTCP deal with scalability?

NAT Network address translation was to deal with IPv4 address shortage now pervasive in all networking scenarios Directional connectivity outgoing connections are OK mappings are created to filter incoming packets incoming connections are blocked Problems with VoIP applications how SIP server reaches UA how caller reaches callee 6/6/07 csc485b/586b/seng480b 13 Q: problems when behind your home router?

NAT traversal NAT characterization full cone restricted cone port-restricted cone symmetric cone NAT traversal static configuration UPnP (universal plug and play) application-layer gateway STUN, TURN (relay) ICE (interactive connection establishment) 6/6/07 csc485b/586b/seng480b 14 Explore further: http://www.cs.uvic.ca/~pan/seng490

STUN and TURN Simple traversal of UDP through NAT probe and learn allocated address/port at NATs work with many but not all NATs Tell me my NATed addr/port Aa:Ap=>Sa:Sp Na:Np=>Sa:Sp Na:Np STUN server Traversal using relay NAT request to allocate address/port at this NAT act as a masquerade relay 6/6/07 csc485b/586b/seng480b 15 TURN A B

Challenges Internet: best-effort service no guarantee on minimal throughput excessive packet loss, excessive delay, jitter, etc better than best-effort services? Application: client-server model scalability issues peer-to-peer models? NAT and firewall NAT traversal is not bullet-proof Security who else can hear you? 6/6/07 csc485b/586b/seng480b 16

IP telephony examples Vonage: proprietary VoIP infrastructure good PSTN interworking SIP compatible phone adapter: SIP UA and more Skype: without specialized infrastructure better NAT traversal capability with the help of other users voice encryption proprietary protocols an peer-to-peer implementation 6/6/07 csc485b/586b/seng480b 17

Student presentation Chun-Hung Chiu: Skype [BS06] Salman A. Baset and Henning Schulzrinne, "An Analysis of the Skype Peer-to-Peer Internet Telephony Protocol", IEEE Infocom 2006. [Skype] 6/6/07 csc485b/586b/seng480b 18

This lecture VoIP and P2P network support for VoIP applications application, session, transport, network challenges from the viewpoint of applications and networks Skype a peer-to-peer implementation Explore further Q and Explore further footnotes we still know little about Skype! 6/6/07 csc485b/586b/seng480b 19

Next lectures Congestion Control June 11: [JK88] V. Jacobson and M. Karels, Congestion Avoidance and Control, In Proc. ACM SIGCOMM '88. [TCPCC] June 13: [BOP94] L. Brakmo, S. O'Malley and L. Peterson TCP- Vegas: new techniques for congestion detection and avoidance, In Proc. of ACM SIGCOMM '94. [TCPVegas] June 18: [PFTK98] Padhye, J., Firoiu, V., Towsley, D., and Kurose, J., "Modeling TCP Throughput: a Simple Model and its Empirical Validation". In Proceedings of ACM S IGCOMM 1998. [TCPmodel] June 20: [KDR02] Dina Katabi, Mark Handley, and Chalrie Rohrs. Congestion Control for High Bandwidth-Delay Product Networks. In the proceedings on ACM Sigcomm 2002. [XCP] Bring up your course project web page at the google group 6/6/07 csc485b/586b/seng480b 20