Transporting Voice by Using IP

Similar documents
Session Initiation Protocol (SIP)

Transporting Voice by Using IP

陳懷恩博士助理教授兼所長國立宜蘭大學資訊工程研究所 TEL: # 255

ETSF10 Internet Protocols Transport Layer Protocols

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

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

Provides port number addressing, so that the correct destination application can receive the packet

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

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

Ai-Chun Pang, Office Number: 417. Homework x 3 30% One mid-term exam (5/14) 40% One term project (proposal: 5/7) 30%

TSIN02 - Internetworking

Multimedia in the Internet

Multimedia Applications. Classification of Applications. Transport and Network Layer

Mohammad Hossein Manshaei 1393

ABSTRACT. that it avoids the tolls charged by ordinary telephone service

Voice over IP (VoIP)

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

in the Internet Andrea Bianco Telecommunication Network Group Application taxonomy

OSI Layer OSI Name Units Implementation Description 7 Application Data PCs Network services such as file, print,

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

Kommunikationssysteme [KS]

Real-time Services BUPT/QMUL

Popular protocols for serving media

4 rd class Department of Network College of IT- University of Babylon

Data and Computer Communications. Chapter 2 Protocol Architecture, TCP/IP, and Internet-Based Applications

OSI Transport Layer. objectives

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

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

Concept Questions Demonstrate your knowledge of these concepts by answering the following questions in the space that is provided.

Implementation of Embedded SIP-based VoIPv6 System

Chapter 2 Communicating Over the Network

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

CCNA Exploration Network Fundamentals. Chapter 04 OSI Transport Layer

Overview of the Session Initiation Protocol

OSI Transport Layer. Network Fundamentals Chapter 4. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

Overview. Slide. Special Module on Media Processing and Communication

Chapter 2. Communicating Over The Network. CCNA1-1 Chapter 2

Chapter 12 Network Protocols

4.0.1 CHAPTER INTRODUCTION

Chapter 2. Communicating Over The Network

Computer Networks. Wenzhong Li. Nanjing University

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

Summary of last time " " "


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

Real-Time Control Protocol (RTCP)

Multimedia networking: outline

Chapter 7 Transport Layer. 7.0 Introduction 7.1 Transport Layer Protocols 7.2 TCP and UDP 7.3 Summary

Troubleshooting Voice Over IP with WireShark

Internet Streaming Media

Lecture 14: Multimedia Communications

Multimedia Networking. Protocols for Real-Time Interactive Applications

ETSF10 Part 3 Lect 1

IP-Telephony Introduction

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

TODAY AGENDA. VOIP Mobile IP

SUBJECT: DATA COMMUNICATION AND NETWORK SEMESTER: V SEMESTER COURSE: BCA SUBJECT TEACHER: Dr.K.Chitra Assistant Professor, Department of Computer

Overview of SIP. Information About SIP. SIP Capabilities. This chapter provides an overview of the Session Initiation Protocol (SIP).

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

Video Streaming and Media Session Protocols

Chapter 09 Network Protocols

Real-time Services BUPT/QMUL

Module 2 Overview of Computer Networks

Module 2 Overview of. Computer Networks

Multimedia Networking

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

Part 3: Lecture 3! Content and multimedia!

Streaming (Multi)media

Medical Sensor Application Framework Based on IMS/SIP Platform

Multimedia Applications. Internet Technologies and Applications

IT4405 Computer Networks (Compulsory)

CSC 4900 Computer Networks: Multimedia Applications

Digital Asset Management 5. Streaming multimedia

Multimedia Communications

The Session Initiation Protocol

Voice over IP Consortium

Outline Overview Multimedia Applications Signaling Protocols (SIP/SDP, SAP, H.323, MGCP) Streaming Protocols (RTP, RTSP, HTTP, etc.) QoS (RSVP, Diff-S

Business Data Networks and Security 10th Edition by Panko Test Bank

5 What two Cisco tools can be used to analyze network application traffic? (Choose two.) NBAR NetFlow AutoQoS Wireshark Custom Queuing

EEC-484/584 Computer Networks. Lecture 16. Wenbing Zhao

TCOM 370 NOTES 99-1 NETWORKING AND COMMUNICATIONS

Ch 4: Multimedia. Fig.4.1 Internet Audio/Video

Data & Computer Communication

precise rules that govern communication between two parties TCP/IP: the basic Internet protocols IP: Internet protocol (bottom level)

Introduction to computer networking

Networking Applications

RTP implemented in Abacus

Internet Streaming Media

Networking Applications

2FXS Analog Telephone Adapter

Multimedia Communications

EEC-682/782 Computer Networks I

Introduction to Networked Multimedia An Introduction to RTP p. 3 A Brief History of Audio/Video Networking p. 4 Early Packet Voice and Video

Transport Layer TCP & UDP Week 7. Module : Computer Networks Lecturers : Lucy White Office : 324

Understanding RoIP Networks

Multimedia Networking

EDA095 Audio and Video Streaming

Lecture-4. TCP/IP-Overview:

Need For Protocol Architecture

Introduction to Networking

Transcription:

Transporting Voice by Using IP National Chi Nan University Quincy Wu Email: solomon@ipv6.club.tw 1

Outline Introduction Voice over IP RTP & SIP Conclusion 2

Digital Circuit Technology Developed by telephone companies Motivation: analog signals degrade as they pass over copper wires Amplifiers distort the signal slightly and introduces noise. Designed for use in voice systems since 1962 Analog audio from user s s telephone converted to digital format Digital format sent across network Digital format converted back to analog audio 3

Illustration of Digitized Signal Pick nearest digital value for each sample 0,2,4,4,7,1,1,1,1,1,1,1,2,4,4,4,4 Telephone standard known as Pulse Code Modulation (PCM) 4

Transporting Voice over Internet Digitized Payload G.711(PCM) u-law / A-law G.729 Transport-Layer Protocol TCP UDP Network-Layer Protocol IP (IPv4 and IPv6) 5

VoIP Transport voice traffic using the Internet Protocol (IP) One of the greatest challenges to VoIP is voice quality. One of the keys to acceptable voice quality is bandwidth. Control and prioritize the access Internet: best-effort transfer VoIP!= Voice over Internet The next generation Telcos Access and bandwidth are better managed. 6

Data and Voice Data traffic Asynchronous can be delayed Extremely error sensitive Voice traffic Synchronous the stringent delay requirements More tolerant for errors IP is not for voice delivery. VoIP must Meet all the requirements for traditional telephony Offer new and attractive capabilities at a lower cost 7

Lower Bandwidth Requirements PSTN G.711-64 kbps Human speech frequency < 4K Hz The Nyquist Theorem: 8000 samples per second 8K * 8 bits Sophisticated coders 32kbps, 16kbps, 8kbps, 6.3kbps, 5.3kbps GSM 13kbps Save more bandwidth by silence-detection Traditional telephony networks can use coders, too. But it is more difficult. VoIP two ends of the call negotiate the coding scheme 8

Overview of the IP Protocol Suite IP A routing protocol for the passing of data packets Must work in cooperation with higher layer protocols and lower-layer transmission systems The OSI seven-layer model The top layer: useable information to be passed to the other side The information must be Packaged appropriately Routed correctly And it must traverse some physical medium 9

The IP suite and the OSI stack TCP UDP Reliable, error-free, in-sequence delivery No sequencing, no retransmission 10

TCP/IP 11

TCP/IP IP - A packet-based protocol Routing on a packet-by-packet base Packet transfer with no guarantees May not receive in order May be lost or severely delayed TCP Retransmission Assemble the packets in order Congestion control Useful for file-transfers and e-mail 12

Internet Overview A collection of networks The private networks LANs, WANs Institutions, corporations, business and government May use various communication protocols The public networks ISP: Internet Service Providers Using Internet Protocol To connect to the Internet Using IP 13

Interconnecting Networks 14

RFC 791 IP Amendments: RFCs 950, 919, and 920 Requirements for Internet hosts: RFCs 1122, 1123 Requirements for IP routers: RFC 1812 IP datagram Data packet with an IP header Best-effort protocol No guarantee that a given packet will be delivered 15

IP addresses: how to get one? Q: How does host get IP address? Manually configuration Wintel: control-panel->network-> configuration->tcp/ip->properties UNIX: /etc/rc.config DHCP: Dynamic Host Configuration Protocol: dynamically get address from as server plug-and-play (more shortly) 16

IP Header Protocol The higher-layer protocol TCP (6); UDP (17) Source and Destination IP Addresses 17

TCP Transmission Control Protocol RFC 793 In sequence, without omissions and errors End-to-end confirmation, packet retransmission, flow control, congestion control The source retransmits if no ACK is received within a given period. Applications: HTTP, FTP, TELNET, SMTP 18

UDP User Datagram Protocol Pass individual pieces of data from an application to IP No ACK, inherently unreliable Applications A quick, on-shot transmission of data, request/response DNS (udp port 53) If no response, the application retransmits the request Checksum 19

Voice over UDP, not TCP Speech Small packets, 10 40 ms Occasional packet loss is not a catastrophe Delay-sensitive TCP: connection set-up, ack, retransmit delays 5 % packet loss is acceptable if evenly spaced Resource management and reservation techniques A managed IP network In-sequence delivery Mostly yes But, UDP was not designed for voice traffic 20

Real-time Transport Protocol (RTP) 21

Real-Time Transport Protocol Disadvantage of UDP Packets may be lost or out-of-sequence RTP: A Transport Protocol for Real-Time Applications RFC 1889; RFC 3550 RTP Real-Time Transport Protocol RTCP RTP Control Protocol RTP over UDP A sequence number A time stamp for synchronized play-out Does not solve the problems; simply provides additional information 22

RTP Header Format 23

The RTP Header Sequence number A random number generated by the sender at the beginning of a session Incremented by one for each RTP packet Timestamp The receiver Synchronized play-out Calculate the jitter Support silence suppression The initial timestamp is a random number chosen by the sending application. Payload Type (PT) In general, a single RTP packet will contain media coded according to only one payload format. RED is an exception. 24

RTP Payload Formats [1/2] RTP carries the actual digitally encoded voice RTP header + a payload of voice/video samples UDP and IP headers are attached Many voice- and video-coding standards A payload type identifier in the RTP header Specified in RFC 1890 New coding schemes have become available A sender has no idea what coding schemes a receiver could handle. Negotiated by signaling protocols like SIP. 25

RTP Payload Formats [2/2] Separate signaling systems Capability negotiation during the call setup SIP and SDP A dynamic payload type may be used Support new coding scheme in the future The encoding name is also significant. Unambiguously refer to a particular payload specification Should be registered with the IANA RED, Redundant payload type Voice samples + previous samples May use different encoding schemes Cope with packet loss 26

Speech-coding Techniques In general, coding techniques are such that speech quality degrades as bandwidth reduces. The relationship is not linear. G.711 64kbps 4.3 G.726 32kbps 4.0 G.723 (celp) 6.3kbps 3.8 G.728 16kbps 3.9 G.729 8kbps 4.0 GSM 13kbps 3.7 ilbc 13.3kbps 3.9 27

RTCP A companion protocol Exchange messages between session users # of lost packets, delay and inter-arrival jitter Quality feedback RTCP is implicitly open when an RTP session is open E.g., RTP/RTCP uses UDP port 5004/5005 28

Session Initiation Protocol (SIP) 29

Introduction A powerful alternative to H.323 More flexible, simpler Easier to implement Advanced features Better suited to the support of intelligent user devices A part of IETF multimedia data and control architecture 30

The Popularity of SIP Originally Developed in the MMUSIC (Multiparty Multimedia Session Control) A separate SIP working group RFC 2543 Many developers The latest version: RFC 3261 SIP + MGCP/MEGACO The VoIP signaling in the future bake-off and SIPit activities Various vendors come together and test their products against each other to ensure that they have implemented the specification correctly to ensure compatibility with other implementations 31

SIP Architecture A signaling protocol The setup, modification, and tear-down of multimedia sessions SIP + SDP Describe the session characteristics Separate signaling and media streams 32

SIP Servers [1/3] Registrar Accepts SIP REGISTER requests Indicating that the user is at a particular address Personal mobility Typically combined with a proxy or redirect server 33

SIP Servers [2/3] Proxy servers Handle requests or forward requests to other servers Can be used for call forwarding, time-of-day routing, or follow-me services $% $% # &!" ' # 34

SIP Servers [3/3] Redirect servers Map the destination address to zero or more new addresses $% ( " ) # '*+ ( &$% #, # 35

SIP Call Establishment [1/2] 36

SIP Call Establishment [2/2] It is simple, which contains a number of interim responses. - / 0+ *+ (. 12 0+ 37

SIP Advantages Attempt to keep the signaling as simple as possible Offer a great deal of flexibility Does not care what type of media is to be exchanged during a session or the type of transport to be used for the media Various pieces of information can be included within the messages Including non-standard information Enable the users to make intelligent decisions The control of the intelligent features is placed in the hands of the customer, not the network operator. E.g., SUBJECT header 38

Call Completion to A Busy User 39

One number service 40

Overview of SIP Messaging Syntax Text-based Similar to HTTP Disadvantage more bandwidth consumption SIP messages message = start-line *message-header CRLF [message-body] start-line = request-line status-line Request-line specifies the type of request The response line indicates the success or failure of a given request. 41

SIP Requests [1/2] Method SP Request-URI SP SIP-version CRLF Request-URI The address of the destination Methods INVITE, ACK, OPTIONS, BYE, CANCLE, REGISTER INVITE Initiate a session Information of the calling and called parties The type of media IAM (initial address message) of ISUP ACK only when receiving the final response 42

SIP Requests [2/2] BYE Terminate a session Can be issued by either the calling or called party OPTIONS Query a server as to its capabilities A particular type of media CANCEL Terminate a pending request E.g., an INVITE did not receive a final response REGISTER Log in and register the address with a SIP server all SIP servers multicast address 224.0.1.75) Can register with multiple servers Can have several registrations with one server 43

SIP Responses SIP Version SP Status Code SP Reason-Phrase CRLF Reason-Phrase A textual description of the outcome Could be presented to the user status code A three-digit number 1XX Informational 2XX Success (only code 200 is defined) 3XX Redirection 4XX Request Failure 5XX Server Failure 6XX Global Failure All responses, except for 1XX, are considered final Should be ACKed 44

SIP Addressing SIP URI (Uniform Resource Identifier) sip:user@host:port sip:collins@home.net:5060 sip:3344556789@telco.net 45

SIP Message Body Message body Describe the type of session The most common structure for the message body is SDP (Session Description Protocol). Could include an ISDN User Part message Examined only at the two ends 46

The Session Description Protocol The Most Common Message Body Be session information describing the media to be exchanged between the parties SDP, RFC 2327 (initial publication) SIP uses SDP in an answer/offer mode. An agreement between the two parties as to the types of media they are willing to share RFC 3264 (An Offer/Answer Model with SDP) To describe how SDP and SIP should be used together 47

3 4 ) 5 14 )5 - / )67 8)3 4 ) 59:-'& )14 )5 $)/ ;<#)'& ;" ) 6 ;3 ) (:7 : '&,=77& : :& :77 :%>7776*/&'7?? : )&@'6?7776 : )'6?7776 : )7*6?7776 : )?*6?7776 : )?@>6?7776 67770+ 48

3 4 ) 5 14 )5-67770+ 8)3 4 ) 59:-'& )14 )59:!"A@?> $)/ ;<#)=' ;" ) 6 ;3 ) (:7 :&,=@?77& : :& :77 :%====6*/? :?@>6?7776 *+ )67 8)3 4 ) 59:-'& )14 )59:!"A@?> $)*+ ;<#)7 ( 49

Conclusion With better engineered network design, VoIP can be provided with good quality. Many ITSPs are doing that now. SIP is a flexible protocol which enables rich applications to be integrated with VoIP services. 50