Introduction to VoIP. RFCs (RTP, SIP, H.323) Various books on VoIP

Similar documents
Unit 23. RTP, VoIP. Shyam Parekh

Encapsulating Voice in IP Packets

Introduction to VoIP. 陳 懷 恩 博 士 副 教 授 兼 所 長 國 立 宜 蘭 大 學 資 訊 工 程 研 究 所 TEL: # 255

VOICE over IP H.323 Advanced Computer Network SS2005 Presenter : Vu Thi Anh Nguyet

Advanced Networking Voice over IP: RTP/RTCP The transport layer

Voice over IP: RTP/RTCP The transport layer

Multimedia Communications Voice over IP

Voice over IP. Demonstration 1: VoIP Protocols. Network Environment

Curso de Telefonía IP para el MTC. Sesión 2 Requerimientos principales. Mg. Antonio Ocampo Zúñiga

point to point and point to multi point calls over IP

Voice over IP. Presentation Outline. Objectives

IP-Telephony Real-Time & Multimedia Protocols

NTP VoIP Platform: A SIP VoIP Platform and Its Services

Indepth Voice over IP and SIP Networking Course

SIP Trunking and Voice over IP

How to make free phone calls and influence people by the grugq

TECHNICAL CHALLENGES OF VoIP BYPASS

Computer Networks. Voice over IP (VoIP) Professor Richard Harris School of Engineering and Advanced Technology (SEAT)

Internet Working 15th lecture (last but one) Chair of Communication Systems Department of Applied Sciences University of Freiburg 2005

Cisco Networks (ONT) 2006 Cisco Systems, Inc. All rights reserved.

Session Initiation Protocol (SIP) The Emerging System in IP Telephony

Chapter 10 Session Initiation Protocol. Prof. Yuh-Shyan Chen Department of Computer Science and Information Engineering National Taipei University

Applied Networks & Security

Understanding Voice over IP Protocols

Formación en Tecnologías Avanzadas

Voice over IP (VoIP) Overview. Introduction. David Feiner ACN Introduction VoIP & QoS H.323 SIP Comparison of H.323 and SIP Examples

VoIP with SIP. Session Initiation Protocol RFC-3261/RFC

VIDEOCONFERENCING. Video class

Clearing the Way for VoIP

Voice Over IP. Priscilla Oppenheimer

Implementing VoIP support in a VSAT network based on SoftSwitch integration

Overview of Voice Over Internet Protocol

Requirements of Voice in an IP Internetwork

SIP : Session Initiation Protocol

Internet Services & Protocols Multimedia Applications, Voice over IP

An Introduction to VoIP Protocols

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme

VoIP QoS. Version 1.0. September 4, AdvancedVoIP.com. Phone:

Online course syllabus. MAB: Voice over IP

Internet Services & Protocols Multimedia Applications, Voice over IP

Optimizing Converged Cisco Networks (ONT)

2.1 Introduction. 2.2 Voice over IP (VoIP)

White paper. SIP An introduction

internet technologies and standards

Voice-Over-IP. Daniel Zappala. CS 460 Computer Networking Brigham Young University

QoS issues in Voice over IP

How To Use Wineyeq Vip Call Monitor And Protocol Analyzer

Voice over IP Fundamentals

SIP Trunking Manual Technical Support Web Site: (registration is required)

Introduction to VoIP Technology

GW400 VoIP Gateway. User s Guide

Combining Voice over IP with Policy-Based Quality of Service

VoIP Analysis Fundamentals with Wireshark. Phill Shade (Forensic Engineer Merlion s Keep Consulting)

Agilent Technologies Performing Pre-VoIP Network Assessments. Application Note 1402

Speaker: Nader F. Mir

Project Code: SPBX. Project Advisor : Aftab Alam. Project Team: Umair Ashraf (Team Lead) Imran Bashir Khadija Akram

By Paolo Galtieri The public switched telephone network The Internet Convergence

VoIP. Overview. Jakob Aleksander Libak Introduction Pros and cons Protocols Services Conclusion

Introduction to Packet Voice Technologies and VoIP

IP Telephony and Network Convergence

VoIP / SIP Planning and Disclosure

ARCHITECTURES TO SUPPORT PSTN SIP VOIP INTERCONNECTION

VoIP telephony over internet

Receiving the IP packets Decoding of the packets Digital-to-analog conversion which reproduces the original voice stream

Introduction VOIP in an Network VOIP 3

Mixer/Translator VOIP/SIP. Translator. Mixer

B12 Troubleshooting & Analyzing VoIP

VOICE OVER IP AND NETWORK CONVERGENCE

Course 4: IP Telephony and VoIP

Understanding Latency in IP Telephony

Operation Manual Voice Overview (Voice Volume) Table of Contents

Chapter 10 VoIP for the Non-All-IP Mobile Networks

12 Quality of Service (QoS)

RTP / RTCP. Announcements. Today s Lecture. RTP Info RTP (RFC 3550) I. Final Exam study guide online. Signup for project demos

Voice over IP (VoIP) Part 2

IxLoad: Advanced VoIP

Voice Over Internet Protocol(VoIP)

TSIN02 - Internetworking

Voice Over IP Per Call Bandwidth Consumption

4. H.323 Components. VOIP, Version 1.6e T.O.P. BusinessInteractive GmbH Page 1 of 19

QoS and the Advantages of Multimedia over IP

IxLoad VoIP SIP, MGCP Features

Hands on VoIP. Content. Tel +44 (0) Introduction

VoIP Bandwidth Considerations - design decisions

Internet Technology Voice over IP

Special Module on Media Processing and Communication

Voice over IP (VoIP) Instructor Matrix

Voice Over Internet Protocol (VoIP)

Packetized Telephony Networks

Call Admission Control and Traffic Engineering of VoIP

Network administrators must be aware that delay exists, and then design their network to bring end-to-end delay within acceptable limits.

Network Connection Considerations for Microsoft Response Point 1.0 Service Pack 2

Troubleshooting Voice Over IP with WireShark

EE4607 Session Initiation Protocol

Curso de Telefonía IP para el MTC. Sesión 1 Introducción. Mg. Antonio Ocampo Zúñiga

Cisco ATA 187 Analog Telephone Adaptor

Transcription:

Introduction to VoIP RFCs (RTP, SIP, H.323) Various books on VoIP

Telephony Analo line Analo telephone network Manual operators on switchboard or Electromechanical ear Problems: Maintenance nihtmare Noise multiplex, diff voice circuits on diff freq

Diital Telephony Analo line Central Office Diital lines Diital telephone network Diitize voice [8 bits/sample, 8000 samples/s] Multiplex voice samples 125 microseconds 8 bits of call i

Statistical MUX/Asynchronous Transmission Approximately 35% of time we talk; other 65% of time we listen and pause Why transmit silence? Transmit someone else s speech or data Need less bandwidth or pack more calls Uncertainty, jitter

Call Quality 20% Traffic loss 10% Potentially Useful Poor 5% Good Toll Quality 100 ms 150 ms 400 ms Delay (one direction)

Need for VoIP Voice is diitized and transmitted in current telecom networks anyway Interate voice and data (no need to build and maintain two separate networks) Make use of statistical multiplexin and use bandwidth more effectively Silence, mostly half-duplex conversation, etc, can be exploited.

Main issues Encodin/decodin voice quality Loss of voice packets Variable delay of the IP network (between packets of the same conversation); jitter End-to-end delay (because of router delays, encodin/decodin delays), etc. Data and sinalin parts VoIP <> PSTN (Public Switched Telephone Network)

Protocols Used (PC-PC call) PC IP Network PC Voice Voice RTP UDP IP Voice Packets SIP/H.323 TCP/UDP IP Sinalin packets

Mic A/D Encoder Architecture Speaker D/A Decoder Jitter Buffer IP Stack IP Network

RTP (Real-Time Transport Protocol) Receiver can compensate for jitter (for both voice and video) RTCP (Real Time Control Protocol) is used in conjunction with RTP (convey quality of transmission, such as averae packet loss, amount of jitter, etc.) RTP can be multicast (destination address = multicast address)

RTP Defines a way to format IP packets carryin time-sensitive data Important fields: Type of data carried time-stamp of sampled data (to replay correctly with correct timin between coded packets) Sequence numbers (detect loss; copy last frame and repeat for aps or interpolate for missin frames)

Payload Type Application determines contents Carry payload type in RTP headers Application does not need to examine contents. RTP Session: Association of participants (need two transport addresses, RTP/RTCP)

RTP Header V (2) P(1) X(1) CC(4) M(1) PT(7) Sequence number (16) Time Stamp Synchronization Source Identifier Contributin Source Identifier 1 Contributin Source Identifier n Profile Dependent Size Data

RTP Header Version (2 bits); currently = 2 P: Paddin bit: 1=payload has been padded for alinment (Last octet ives the number) X: extension bit. If 1, extension is present, fixed sinle xtn must follow header cc: Contributin SouRCe count M: Mark bit: If 1, this is the first packet after silence. (no packet durin silence) PayloadType: can vary dynamically 0=PCM mu law 8=PCM A law 9=G.722...

RTP Header Cont d Seq #: start at random number; increment by 1 for each packet time stamp[32 bits]: time value when first sample in payload was sampled; initial value chosen randomly SSRC: ID of source of RTP stream CSRC: Contributin SouRCe (If RTP stream is a combination of several streams, ids of senders)

RTCP Real-Time Transport Control Protocol Gathers stats about quality of network; periodically sends to sender of RTP packets Use: Adjust QoS parameters Types of reports: Sender Report (SR) (by active senders) Receiver Report (RR) (by participants that are not active senders) Source description-various parameters about SRC Bye - End of participation Application specific

RTCP Header V (2) P(1) count (5) Type (8) Lenth (16) Data V: Version (Same version as RTP) P: Paddin; 1 = Data is padded. (Last byte shows # of padded bytes) Count: Number of reception blocks Type: Type of report Lenth: Lenth of this RTCP packet in 32 bit words minus one, includin the header and any paddin

RTCP Header Version P (1=paddin used) RC (count): How many receiver blocks in packet PT: Payload type (200=SR, 201=RR, ) Lenth: Of sender report NTP Time Stamp: Network Time Protocol time stamp RTP Time Stamp Sender s packet count Sender s octet count

RTCP Header Cont d RR Data: Fraction Lost Total number of packets lost Hihest sequence number received Interarrival jitter [averae] see next Last SR time stamp NTP time stamp received as part of most recent RTP sender report from SSRC Delay since last SR: number of (1/65536) seconds delay between receivin last SR from this SSRC and sendin this report

Jitter Calculation Si = Time Stamp of sender of packet i Sj = Time Stamp of sender of packet j Ri = Time Stamp of receiver of packet i Rj = Time Stamp of receiver of packet j D[i,j]= (Rj-Ri)-(Sj-Si): Interarrival jitter Cumulative Jitter J = J+( D[i-1,j]) -J)/16

Echo Handlin Traditionally, 4 wire to 2 wire transformation adds echo Two types of echo: Electric echo Acoustic echo

Acoustic Echo Time between speech and the same sound ettin into the mic: <=20 milliseconds? No noticeable echo >=40 ms? Problem Speaker phone is also a source of echo

Echo Suppressers: Introduce lare loss in path from me to far end if far end person is talkin Squelch if both talk at the same time

Echo Cancellers Build an estimate of echo (based on what oes out of the mic and the delay) Remove from incomin sinal at the correct time

Sinalin Two sinalin protocols H.323 SIP [Session Initiation Protocol]

Sinalin [H.323] End point: Entity makin/receivin calls Gate Keeper: Performs Address Translation, call control, etc. (one per LAN) End point (in our case PC) reisters with GateKeeper

PC GRQ GCF/GRJ RRQ RCF/RRJ Gate Keeper Gate Keeper Request (ID) Gate Keeper Confirmation or Rejection with address (MAC+TSAP) of Keeper Reister Reistration Confirmation or Reject Reistration

Call Sinalin PC Gate Keeper PC ARQ ACF/ARJ TCP connection for sinalin messaes Setup Call Processin (optional) ARQ Alertin Connect ACF/ARJ RTP Packets Alert User User answers

DTMF: Dual Tone Multi-Frequency OK with G.711 (coder with no assumption about sinal bein sound) Other codecs: Cannot transmit DTMF s (Here accuracy is more important than timin) Special messaes carry IVR (interactive Voice Response) responses Special RTP loical channel to carry DTMF

SIP (Session Initiation Protocol) Sinalin protocol to Initiate Manae and Terminate voice/video sessions on packet networks >=1 participants, unicast/multicast Text coded and can be extended

SIP entities User aent Initiates/terminates sessions [client initiates SIP request, server serves SIP request] Proxy Server Both as client and server, interprets requests, can serve locally, translate/rewrite and forward Redirect Server Accept SIP request, map to >=0 new addresses and return to client Reistrar [like HLR] accepts REGISTER request, update database

SIP Messaes Request and response SIP messaes are sent over UDP/TCP SIP is used with SDP (Session Description Protocol); SDP describes capabilities of the sender [vocoder used, etc.]

SIP Messaes INVITE initiate session; Session description included in messae body ACK confirm session establishment BYE terminate connection CANCEL cancel pendin INVITE OPTIONS capability inquiry REGISTER bind permanent address to current location

User Aent (Client) Invite x@y.com Tryin Rinin OK User Aent (Server) Rin user Examples User picks up phone Disconnect Call Ack Bye OK Call connected

PC <-> PSTN? PC IP PSTN IP-PSTN Gateway (Voice GW and Sinalin GW)

PSTN <-> PSTN over IP? PSTN IP Network PSTN IP-PSTN Gateway IP-PSTN Gateway Voice packets Sinalin packets Call Aents

IP-PSTN Gateway Services SCTP Sinalin GW Call Aent SS7 Call processin RTP MGW Voice trunks Media Gateway/Residential Gateway/ Access Gateway [many boxes]

Bi Picture Accountin/ Authorization MGCP CA Subscriber data AGW RTP MGCP TGW Trunkin GW Voice Trunks+SS7

MGCP [Media Gateway Control Protocol] 8 MGCP commands: Notification request [CA->GW] Notify [tell CA when an event has occurred] CRCX [create connection] Modify Connection [chane parameters of a previously created connection] DLCX [Delete existin connection] Audit endpoint/connection Restart in proress [GW->CA; GW is oin down or in process of comin up]

User Off hook Dial tone Res/Access Gateway Notification Request Ack Notify Ack MGCP Call Aent Initialization Routin DB Diits Notification Request Collect diits Ack Notify Ack diits Notification request Ack Stop collectin diits; Monitor for transitions

User Res/Access Gateway CRCX Ack Call Aent Routin DB Trunkin GW Create connection; seize incomin circuit, Caller id, options Query Response CRCX Ack (with id of trunk ) Create a connection for New call with parameters Vocoder details, etc. MGCP

User Rin Res/Access Gateway Modify connection Call Aent Trunkin GW LEC IAM (has IP address of TGW, port#, RTP profile..] ACK Notification Request Ack ACM IAM ACM Rin the phone [caller can hear the rinin; What kind of rinin?] Initial Address Messae Address Completion Messae Remove Rinin Notification Request Ack ANM Stop rinin ANM Answer Messae; Called party answers MDCX Ack Connection was receive only; full duplex mode now

User Res/Access Gateway Call Aent Trunkin GW LEC DLCX REL DLCX REL User disconnects call Ack Ack Off Hook Notify Ack Notification Request Ack Relay to Call Aent Reset endpoint