68
1 VoIP TDC 364

VoIP

Embed Size (px)

DESCRIPTION

 

Citation preview

Page 1: VoIP

1

VoIP

TDC 364

Page 2: VoIP

2

What is VoIP Used For?

• Reduced long-distance costs– Some cite this as a large business savings– Residential customers too

• More calls with less bandwidth– New technologies allow voice to travel in less

than 64 kbps channels (new voice compression techniques

– Silence suppression

Page 3: VoIP

3

What Else is VoIP Used For?

• More and better enhanced services– VoIP can be recorded, stored, processed,

converted, etc. by the same hardware used for data

– Computer telephony integration– Unified messaging

• Most efficient use of IP– One common protocol

Page 4: VoIP

4

Four Additional Uses of VoIP

• International calling

• Telemarketing– PC and LAN dial one number after another– Worker reads from a script on their monitor– Depending upon answers/stored data, script

changes dynamically– Telephone call goes through the pc

Page 5: VoIP

5

Four Additional Uses of VoIP

• Call center– Telemarketing is outbound VoIP, call center is

inbound VoIP– Automated attendant, automatic call

distribution, interactive voice response– Call centers today are as dependent on the pc

and LAN as they are on the telephone

Page 6: VoIP

6

Four Additional Uses of VoIP

• Fax– The fax is not going away

• Can be a legal document• Is tangible• Is by definition a copy of the original• Transcends languages and national borders• Millions of existing fax machines

– But fax standards are antiquated– Fax over IP makes more sense

Page 7: VoIP

7

A Model for VoIP

• From business to business– Use: Faxing, tie-line replacement– Need: Better QoS for IP, managed IP network?– Outlook: Do it now

• From business to residential– Use: Telemarketing– Need: IP-enabled PBX, ISP to PSTN gateways– Outlook: Do it carefully

Page 8: VoIP

8

A Model for VoIP

• From residential to business– Use: Call centers, catalog sales– Need: Voice-enabled Web site, IP-enabled

ACD– Outlook: Do it carefully

• From residential to residential– Use: Long distance replacement– Need: Many PSTN gateways, basic voice QoS– Outlook: Long distance now, local later?

Page 9: VoIP

9

What is the Basic VoIP Layout?Voice

CODEC

Compression

Create voice datagram

Add header (RTP, UDP,IP, etc)

Network

Page 10: VoIP

10

What is the Basic VoIP Layout?Network

Process header

Re-sequence and buffer delay

Decompression

CODEC

Voice

Page 11: VoIP

11

Traditional Network Characteristics

• Voice– ---

– Short delay

– Constant delay

– No loss

– No retransmission

– Direct pass through

• Data– Low error rate

– Reasonable delay

– Variable Delay

– Packet Loss

– Retransmission

– Uses protocols

Page 12: VoIP

12

Packet Network Technologies

• Same components, different performance– Internet – Routing (TCP/IP), frame relay, ATM– Intranet – Routing (TCP/IP), frame relay, ATM

• Voice over networks– Internet – No goals, no guarantees– Intranet – Controlled environment, performance

objectives, designed to perform

Page 13: VoIP

13

Voice Over Requirements

• Compression– Reduced bps vs. quality

• Silence suppression

• Signaling

• Echo control

• QoS

• Voice enhancements (calling features)

Page 14: VoIP

14

An Example: A Voice-Enabled Web Site

• People talk on the telephone

• People look at the web

• What about voice and the web?– Visual orientation with human interaction– Flexible– Unlimited information– Wide availability (location and time)

Page 15: VoIP

15

Examples

• Airline reservations (“Can I connect through Philadelphia instead?”)

• Hotel reservations (“Does that room have a view of the ocean?”)

• Ticket sales (“Can I get four seats together?”)

• Stock trading (“Will I make the split requirements?”)

Page 16: VoIP

16

Call Center Without VoIP

Call Me

1. User clicks Web Call

Enter Information:Name:

Account #:Phone #:

2. User enter information

Call information,Account Information,

Etc.

3. Web site forwardsTo call center

PSTN

5. User answers call,Conversation begins

4. Agent places PSTN call

Page 17: VoIP

17

Call Center With VoIP

1. User clicks Web VoIP Call

VoIP Call

Internet

Call information,Account information,

Etc.

2. VoIP software uses sameIP connection to Web site

3. Web site forwards allInfo to call center

Multimedia pcwith VoIP software

4. Conversation throughVoIP software

Page 18: VoIP

18

The Web Added to theCall Center

PSTN PBX/ACD

DatabaseVoice network to telephones

Agent withtelephone

and pc

Agent withtelephone

and pc

Agent withtelephone

and pc

Internet WebServer

VoIPGateway Still two

networks

Page 19: VoIP

19

The Web Added tothe Integrated Call Center

PSTNPBX/ACD

VoIPGateway

Database

Agent withtelephone

and pc

Agent withtelephone

and pc

Internet WebServer

Only one network

Page 20: VoIP

20

The VoIP Gateway

• The device that converts a traditional analog telephone call (voice and signals) into digital data that is sent over an IP network

• Gateway functions include:– Destination lookup: converting a telephone

number to an IP address– IP connection management: the use of protocols

to establish, maintain, and teardown a call

Page 21: VoIP

21

The VoIP Gateway

• Gateway functions continued– Compression and digitization– IP packetization and transport– Advanced IP/PSTN signaling– Authorization, access, and accounting

Page 22: VoIP

22

The VoIP Gatekeeper

• An optional device, not required for H.323• Typically found in systems of significant size• Gatekeeper functions include

– Address translation (supports the use of proprietary addressing schemes, such as mnemonics, nicknames, or e-mail address)

– Admissions control (control the setup of VoIP calls between their terminals and gateways and the rest of the world; access granted or denied based on authentication, source or destination address, time of day, etc.; essentially a security mechanism)

Page 23: VoIP

23

The VoIP Gatekeeper

• More functions:– Bandwidth management (controls calls and the

bandwidth of each channel)– Zone management (a zone is a combo

gatekeeper, gateway, terminals, etc; gatekeeper controls calls within its zone)

– Call signaling (may act as a signaling proxy for terminals it represents; or as an initial point of contact for callers)

Page 24: VoIP

24

VoIP Protocols

• There are two basic sets of protocols for supporting VoIP:– ITU-T’s H.323

• First issued in early 1996

– IETF’s SIP (Session Initiation Protocol)• Introduced in 1998

Page 25: VoIP

25

VoIP Protocols continued

• Interesting facts about the two protocols:– H.323 is named packet-based multimedia

communications systems– H.323 originally designed for X.25 and ATM– SIP designed specifically for voice over the

Internet by the people that should know the Internet the best

• Let’s talk about H.323 first

Page 26: VoIP

26

H.323

Video Audio Control Data

H.261H.263(video

coding)

G.711G.722G.723G.728G.729

RTP RTPRTCP RTCP

H.225Term.

ToGatekeepersignaling

H.225Call

signalingH.245

T.120(multipoint

datatransfer)

UDP TCPIP

Page 27: VoIP

27

The Various Pieces – G.711

• G.711 is the international standard for encoding telephone audio on an 64 kbps channel. It is a pulse code modulation (PCM) scheme operating at a 8 kHz sample rate, with 8 bits per sample, fully meeting ITU-T recommendations.

Page 28: VoIP

28

The Various Pieces – G.722• ITU-T G.722 is the benchmark coder for wideband speech

coding quality. The speech signal is sampled at 16000 samples/second. G.722 can handle speech and audio signal bandwidth up to 7 kHz, compared to 3.6 kHz in narrow band speech coders.

G.722 coder is based on the principle of Sub Band - Adaptive Differential Pulse Code Modulation (SB-ADPCM). The signal is split into two sub bands and samples from both bands are coded using ADPCM techniques. The system involving G.722 coder can be used to work in three modes 64, 56 and 48 kbit/s. The latter two modes will allow an auxiliary data channel of 8 and 16 kbit/s respectively, within the 64 kbit/s channel.

Page 29: VoIP

29

The Various Pieces – G.723

• G.723.1 is a speech compression algorithm standardized by ITU. G.723.1 has dual coding rates at 5.3 and 6.3 kbps. The vocoders process signals with 30 ms frames and have a 7.5 ms look-ahead and low distortion while passing DTMF tones through. The input/output of this algorithm is 16 bit linear PCM samples.

Page 30: VoIP

30

The Various Pieces – G.728

• ITU-T G.728 is low delay speech coder standard, for compressing toll quality speech (8000 samples/second). The typical application of this speech coder is in telephony over packet networks, especially voice over cable and VoIP. This is a very robust speech coder, with very good speech quality, comparable to 32 kbit/s ADPCM.

G.728 coders are based on the principle of Low Delay-Code Excited Linear Prediction (LD-CELP).

Page 31: VoIP

31

The Various Pieces – G.729

• G.729 is an 8 kbps Conjugate-Structure Algebraic-Code-Excited Linear Prediction (CS-ACELP) speech compression algorithm approved by ITU-T. G.729 Annex A is a reduced complexity version of the G.729 coder. G.729 AB speech coder was developed for use in multimedia simultaneous voice and data applications. The coder processes signals with 10 ms frames and has a 5 ms look-ahead which results in a total of 15 ms algorithmic delay. The input/output of this algorithm is 16 bit linear PCM samples.

• Forward error correction (FEC) is incorporated in the algorithm to achieve noise immunity of the data stream by including control bits into it.

Page 32: VoIP

32

The Various Pieces – H.225

• H.225 call signaling is used to set up connections between H.323 endpoints (terminals and gateways), over which the real-time data can be transported.

• Call signaling involves the exchange of H.225 protocol messages over a reliable call-signaling channel. For example, H.225 protocol messages are carried over TCP in an IP–based H.323 network.

Page 33: VoIP

33

The Various Pieces – H.225

• H.225 messages are exchanged between the endpoints if there is no gatekeeper in the H.323 network.

• When a gatekeeper exists in the network, the H.225 messages are exchanged either directly between the endpoints or between the endpoints after being routed through the gatekeeper.

• The first case is direct call signaling. The second case is called gatekeeper-routed call signaling. The method chosen is decided by the gatekeeper.

Page 34: VoIP

34

The Various Pieces – H.245

• H.245 control signaling consists of the exchange of end-to-end H.245 capability messages between communicating H.323 endpoints.

• The H.245 control messages are carried over H.245 control channels. The H.245 control channel is the logical channel 0 and is permanently open, unlike the media channels.

• The messages carried include messages to exchange capabilities of terminals and to open and close logical channels.

Page 35: VoIP

35

RTP – Real-time Transport Protocol

• Provides support for the transport of real-time data such as video and audio

• Used in conjunction with RTCP to get feedback on quality of data transmission (next)

• The Internet has unpredictable delay and jitter. To help alleviate these problems, RTP provides timestamping, sequence numbering, and other mechanisms.

Page 36: VoIP

36

RTP – Real-time Transport Protocol

• Timestamps are created by the originator as the data is sampled. These timestamps are then used to play the data back at the same rate.

• Since RTP is usually run over UDP, RTP adds a sequence number to all packets (some packets are broken into smaller packets, all with the same timestamp, thus the need for a sequence number)

Page 37: VoIP

37

RTP – Real-time Transport Protocol

• Payload type identifier specifies the payload format as well as the encoding and compression schemes.

• Source identification informs the receiver where the data is coming from (example – in an audio conference, a user can tell who is doing the talking)

Page 38: VoIP

38

RTCP – Real-time Control Protocol

• In an RTP session, participants periodically send RTCP packets to convey feedback on quality of data delivery and information of membership.

• Five types of RTCP packets defined:– Receiver Report

– Sender Report

– Source DEScription

– BYE

– APPlication specific functions

Page 39: VoIP

39

H.323 Call Stages

• Discovery and Registration (RAS) – This is who I am

• Call Setup (RAS/H.225/Q.931) – This is who I want to call

• Call Negotiation (H.245) – These are our capabilities

Page 40: VoIP

40

H.323 Call Stages

• Media Channel Setup (H.245) – Let’s open an audio channel

• Media Transport (RTP/RTCP) – Send audio datagrams

• Call termination (H.245/H.225/RAS) – We are done

Page 41: VoIP

41

TelephoneUser Public switch

VoIP Gateway

# 1-800-555-1200

Local Loop T1 Line

InternetTelephony

ServiceProvider

LEC

847-632-7090

Caller dials access number fro ITSP # 1-800-555-1200

Caller gets connect to VoIP Gatway of ITSP

Simple VoIP Call : Arlington Heights -Chicago

caller number # 847-632-7090

called number # 312-986-8080

ITSP number # 1-800-55-1200

Page 42: VoIP

42

TelephoneUser Public switch

VoIP Gateway

Local Loop T1 Line

InternetTelephony

ServiceProvider

LEC

847-632-7090

GateKeeper

Internet

LRQLCF

ARQACF

Simple VoIP Call : Arlington Heights -Chicago

Ÿ What is the IP address of destination Gatway for # 312-986-8080? - LRQ

Ÿ IP address of destination Gatway : 160.88.44.10 - LCF

Ÿ May I call that IP address? - ARQ

Ÿ Yes, you may use maximum xx kbps bandwidth - ACF

H.323 RAS Messages

Page 43: VoIP

43

TelephoneUser Public switch

VoIP Gateway

Local Loop T1 Line

InternetTelephony

ServiceProvider

LEC

847-632-7090

GateKeeper

Internet

Simple VoIP Call : Arlington Heights -Chicago

Ÿ Setup message to Destination Gateway

Ÿ Message consists:

H.323 H.225/Q931 Messages

VoIP GatewayInternet

TelephonyService

Provider

Connect H.225/Q.931/H.245

Called Tel Number : 312-986-8080Caller Number : 847-630-7090Dest, Gateway IP Address: 160.88.44.10Orinating Gateway IP Address: 182.44.23.20H.245 Request: Open logical channel for Audio

Page 44: VoIP

44

TelephoneUser Public switch

VoIP Gateway

Local Loop T1 Line

InternetTelephony

ServiceProvider

LEC

847-632-7090

GateKeeper

Internet

Simple VoIP Call : Arlington Heights -Chicago

H.323 : H.225/Q931 Messages

VoIP GatewayInternet

TelephonyServiceProvider

ARQ

ACF

Ÿ Destination Gateway makes request to Gatekeeper to accept call from originator

May I call originator Gateway IP address? - ARQ

Ÿ Yes, you can use bandwidth maximum up to xx kbps

Page 45: VoIP

45

TelephoneUser Public switch

VoIP Gateway

Local Loop T1 Line

InternetTelephony

ServiceProvider

LEC

847-632-7090

GateKeeper

Internet

VoIP Gateway

InternetTelephony

ServiceProvider

Originating Terminating

Connect H.245/Q.931

Simple VoIP Call : Arlington Heights -Chicago

Ÿ Destination Gatway responds connection confirm with H.245 message info of logical audio channel

Page 46: VoIP

46

TelephoneUser Public switch

VoIP Gateway

Local Loop T1 Line

InternetTelephony

ServiceProvider

LEC

847-632-7090

GateKeeper

Internet

VoIP Gateway

InternetTelephony

ServiceProvider

Originating Terminating

Simple VoIP Call : Arlington Heights -Chicago

Ÿ Destination Gatway responds connection confirm with H.245 message info of logical audio channel

Public switchTelephone

User

Ÿ Ÿ

RTP (G.729)

T1 Line Local Loop

Page 47: VoIP

47

TelephoneUser Public switch

VoIP Gateway

Local Loop T1 Line

InternetTelephony

ServiceProvider

LEC

847-632-7090

GateKeeper

Internet

VoIP Gateway

InternetTelephony

ServiceProvider

Originating Terminating

Simple VoIP Call : Arlington Heights -Chicago

Ÿ Destination Gatway established PSTN connection between PSTN circuit switch and IP H.245 logical audio channel

Public switchTelephone

User

Ÿ Ÿ

RTP (G.729)

T1 Line Local Loop

Ÿ Caller will hear audible ring tone , generated by destination switch

Page 48: VoIP

48

LAN Telephony (A Little More Detail)

EthernetLAN

PSTNPSTN

WAN orInternet

WAN orInternetIP Router

PSTNAccess

Gateway

Gatekeeper

Ethernet Phones

Analog Phones

ConverterGateway

PC-basedVirtual Phones

Page 49: VoIP

49

SIPSession Initiation Protocol

• An application layer control (signaling) protocol for creating, modifying and terminating sessions with one or more participants

• These sessions include multimedia conferences, Internet telephone calls, and multimedia distribution

Page 50: VoIP

50

SIPSession Initiation Protocol

• SIP has important features:– Scalability– Interoperability– Extensibility– Flexibility– Mobility

Page 51: VoIP

51

SIPSession Initiation Protocol

• SIP first initiates a session

• It can also modify and end a session

• In order to initiate a session SIP has to first locate the user

• After finding the user SIP delivers a description of the session in order to inform the user

Page 52: VoIP

52

SIPSession Initiation Protocol

• SIP only conveys the descriptions of the session and doesn’t know anything about the session itself

• Most common protocol to describe the session is the Session Description Protocol (SDP)

• After locating the user and conveying the description of the session, SIP conveys the response of the user

• The user can accept, reject, or forward the session.

Page 53: VoIP

53

SIPSession Initiation Protocol

• If the session is accepted then an active session has been initiated

• After initiation, SIP can also modify the session by sending a new description

• SIP is based on the request-response paradigm

Page 54: VoIP

54

SIPSession Initiation Protocol

• Some methods manage the sessions:– Invite: indicates that the user is invited to a

session (session description also included)– Ack: to confirm a session establishment (via

Invite)– Bye: terminates session– Cancel: cancel a pending Invite

Page 55: VoIP

55

SIP

• More methods to manage the sessions:– Options: used to query the server for its

capabilities– Register: used to bind a permanent address to

the current location of the user

Page 56: VoIP

56

SIP

• To establish a session, the caller sends an Invite to the user with whom they want to talk

• The user’s address has form sip:[email protected]

• User responds to Invite with Ack and session is established.

Page 57: VoIP

57

SIP

• There are numerous response codes:– Informational

• 100 Trying

• 180 Ringing

• 181 Call is being forwarded

– Success• 200 OK

– Redirection• 300 Multiple choices

• 301 Moved permanently

• 302 Moved temporarily

Page 58: VoIP

58

SIP

• More response codes:– Client error

• 400 Bad request

• 401 Unauthorized

• 482 Loop detected

• 486 Busy here

– Server failure• 500 Server internal error

– Global failure• Busy everywhere

Page 59: VoIP

59

SIP

• The messages are not directly sent to the user - instead delivered to a proxy server

• Proxy server responsible for routing and delivering messages to the called party

• Proxy servers also relay call signaling

Page 60: VoIP

60

SIP

• There are several types of proxy servers:– Call-stateful: track call state and provide a lot

of services, but are not fast– Transaction-stateful: track the request and

responses but not the call state or session– Stateless: just receive requests, forward them,

then forget them; fast but few services

Page 61: VoIP

61

SIP

• Redirect Servers– Redirect the requestor to the other servers

instead of forwarding them– Redirection is useful if a user moves or changes

the provider

• SIP Registrars– Accept the registration requests of the users

Page 62: VoIP

62

ENUM and E.164

• SIP addresses are like email addresses - both can be resolved by DNS

• What if you only have a telephone number?• You need ENUM and E.164• ENUM is a protocol that resolves fully qualified

telephone numbers to fully qualified domain name addresses using a DNS-based architecture

• ENUM relies on E.164

Page 63: VoIP

63

ENUM and E.164

• E.164 is an international telephone numbering plan• A fully qualified E.164 number is designated by a

country code, an area or city code, and a phone number

• ENUM allows users to access Internet-based services and resources from Internet-aware telephones, ordinary telephones connected to Internet gateways or proxy servers, and other Internet-connected devices where input is limited to numeric digits.

Page 64: VoIP

64

How Does ENUM Work?

• Phone number is translated into a fully qualified E.164 number: +1-312-362-5175 (first 1 is North America, + means fully qualified)

• All non-digits characters are removed: 13123625175

Page 65: VoIP

65

How Does ENUM Work?

• The order of digits are reversed: 57152632131 (Why? DNS names are structured from right to left.)

• Dots are placed between each digit: 5.7.1.5.2.6.3.2.1.3.1 (Why? Helps with administration)

• Domain “e164.arpa” appended to end: 5.7.1.5.2.6.3.2.1.3.1.e164.arpa

Page 66: VoIP

66

TRIP

• TRIP (telephony routing over IP) servers maintain and exchange information on what gateways are available to establish calls to ranges of telephone numbers

• TRIP allows multiple service providers to route calls through each other’s gateways

Page 67: VoIP

67

Example SIP Dialogue

• INVITE sip:[email protected] SIP/2.0

• Via: SIP/2.0/UDP

• alice_ws.radvision.com

• From: Alice A. <sip:[email protected]>

• To: Bob B. <sip:[email protected]>

• Call-ID: 2388990012@alice_ws.radvision.com

• Cseq: 1 INVITE

• Subject: Lunch today.

• Content-Type: application/SDP

Page 68: VoIP

68

Example SIP Dialogue

• Content-Length: 182

• v=0

• o=Alice 53655765 2353687637 IN IP4 128.3.4.5

• s=Call from Alice.

• c=IN IP4 alice_ws.radvision.com

• m=audio 3456 RTP/AVP 0 3 4 5

• Response Message would then follow