voip training

66
VoIP Training Network Operation Center

Upload: marcelo-a-czerewacz

Post on 18-Jan-2016

30 views

Category:

Documents


3 download

DESCRIPTION

Voice over IP Technology training for Network Operation Centers

TRANSCRIPT

Page 1: Voip Training

VoIP TrainingNetwork Operation Center

Page 2: Voip Training

MAIN TOPICS

VoIP Essentials

SIP Fundamentals

Page 3: Voip Training

VOIP OVERVIEW

VoIP enables a voice-enabled router to carry voice traffic, such as telephone calls and faxes over an IP network.

Circuit-switched vs Packet Switched

 Circuit-switched networks reserve a dedicated channel for the entire communication.

Packet Switched networks move data in separate small plackets based on destination address.

Page 4: Voip Training

BASIC COMPONENTS OF A TRADITIONAL TELEPHONY NETWORK

BostonSan Jose

EdgeDevices

CO COTie

TrunksTie

Trunks

COTrunks

COTrunks

LocalLoops

LocalLoops

Switch SwitchPBX PBX

PSTN

Page 5: Voip Training

CIRCUIT SWITCHING CENTER (BELL)

Page 6: Voip Training

PACKET SWITCHED

Page 7: Voip Training

COMPONENTS OF A VOIP NETWORK

CallAgent (IP PBX)

IP Phone

IP Phone

Router orGateway

Router orGateway

Router orGateway

PSTN

PBXIP Backbone

Page 8: Voip Training

SIGNALING PROTOCOLS

Protocol Description

H.323ITU standard protocol for interactive conferencing; evolved from H.320 ISDN standard; flexible, complex

MGCP IETF standard for PSTN gateway control; thin device control

SIPIETF protocol for interactive and noninteractive conferencing; simpler, but less mature, than H.323

SCCP or “Skinny”Cisco proprietary protocol used between Cisco Unified Communications Manager and Cisco VoIP phones

Page 9: Voip Training

H323

H.323 suite:• Approved in 1996 by the ITU-T.• Peer-to-peer protocol where end devices initiate

sessions.• Widely used with gateways, gatekeepers, or third-

party H.323 clients, especially video terminals in Cisco Unified Communications.

• H.323 gateways are never registered with Cisco Unified Communications Manager; only the IP address is available to confirm that communication is possible.

Page 10: Voip Training

MGCP

Media Gateway Control Protocol (MGCP):• IETF RFC 2705 developed in 1999.• Client/server protocol that allows a call-control device

to take control of a specific port on a gateway.• For an MGCP interaction to take place with Cisco

Unified Communications Manager, you have to make sure that the Cisco IOS software or Cisco Catalyst operating system is compatible with Cisco Unified Communications Manager version.

• MGCP version 0.1 is supported on Cisco Unified Communications Manager.

• The PRI backhaul concept is one of the most powerful concepts to the MGCP implementation with Cisco Unified Communications Manager.

• BRI backhauling is implemented in recent Cisco IOS versions.

Page 11: Voip Training

SIP

Session Initiation Protocol (SIP):• IETF RFC 2543 (1999), RFC 3261 (2002), and RFC

3665 (2003).• Based on the logic of the World Wide Web.• Widely used with gateways and proxy servers within

service provider networks.• Peer-to-peer protocol where end devices (user agents)

initiate sessions.• ASCII text-based for easy implementation and

debugging.• SIP gateways are never registered with Cisco Unified

Communications Manager; only the IP address is available to confirm that communication is possible.

Page 12: Voip Training

SCCP

Skinny Call Control Protocol (SCCP):• Cisco proprietary terminal control protocol. • Stimulus protocol: For every event, the end device

sends a message to the Cisco Unified Communications Manager.

• Can be used to control gateway FXS ports.• Proprietary nature allows quick additions and changes.

Page 13: Voip Training

COMPARING SIGNALING PROTOCOLS

H.323 suite:• Peer-to-peer protocol• Gateway configuration necessary because gateway must

maintain dial plan and route pattern.• Examples: Cisco VG224 Analog Phone Gateway (FXS

only) and, Cisco 2800 Series and, Cisco 3800 Series routers.

Q.931

Q.921H.323

PSTN

Page 14: Voip Training

MGCP:• Works in a client/server architecture• Simplified configuration • Cisco Unified Communications Manager maintains the dial

plan• Examples: Cisco VG224 Analog Phone Gateway (FXS only)

and, Cisco 2800 Series and , Cisco 3800 Series routers• Cisco Catalyst operating system MGCP example: Cisco

Catalyst 6000 WS-X6608-T1 and Catalyst 6000 ws-X6608-E1

Q.931

Q.921MGCP

PSTN

Comparing Signaling Protocols

Page 15: Voip Training

SIP:• Peer-to-peer protocol.• Gateway configuration is necessary because the

gateway must maintain a dial plan and route pattern.• Examples: Cisco 2800 Series and Cisco 3800 Series

routers.

Q.931

Q.921SIP

PSTN

Comparing Signaling Protocols

Page 16: Voip Training

SCCP• Works in a client/server architecture.• Simplified configuration.• Cisco Unified Communications Manager maintains a

dial plan and route patterns.• Examples: Cisco VG224 (FXS only) and, Cisco VG248

Analog Voice Gateways, Cisco ATA 186, and Cisco 2800 Series with routers FXS ports.

FXSSCCP

PSTN

SCCP Endpoint

Comparing Signaling Protocols

Page 17: Voip Training

VOIP SERVICE CONSIDERATIONS

• Latency• Jitter• Bandwidth• Packet loss• Reliability• Security

Page 18: Voip Training

• Provides end-to-end network functions and delivery services for delay-sensitive, real-time data, such as voice and video

• Runs on top of UDP• Works well with queuing to prioritize voice traffic over

other traffic• Services include:

Payload-type identification Sequence numbering Time stamping Delivery monitoring

RTP Stream

GW1

GateKeeper

GW2

H.323

SCCPSCCP

H.323

REAL-TIME TRANSPORT PROTOCOL

Page 19: Voip Training

UNDERSTANDING VOIP GATEWAYS

• A gateway connects IP communication networks to analog devices, to the PSTN, or to a PBX

• Specifically, its role is the following:

Convert IP telephony packets into analog or digital signals

Connect an IP telephony network to analog or digital trunks or to individual analog stations

• Two gateway signaling types: Analog Digital

Page 20: Voip Training

DEPLOYING GATEWAYS

IP WAN

PSTN

San Jose Chicago

MGCPSJ-GW

Denver

Unified Communications Manager Cluster

Unified Communications Manager Express H.323

CHI-GW

SIPDNV-GW

SIP Proxy Server

Page 21: Voip Training

CISCO - GATEWAY HARDWARE PLATFORMS

Modern enterprise models:

Cisco 2800 Series Routers Cisco 3800 Series Routers Cisco Catalyst 6500 Series

Page 22: Voip Training

MISC - Gateway Hardware Platforms

Sangoma

Audiocodes

Digium

Page 23: Voip Training

FACTORS AFFECTING AUDIO CLARITY

• Fidelity: Audio accuracy or quality• Echo: Usually due to impedance mismatch• Jitter: Variation in the arrival of voice packets• Delay: Time it takes for the signal to propagate from

one end to the other end of the conversation• Packet loss: Loss of packets on the network• Side tone: Allows speakers to hear their own voice• Background noise: Low-volume noise heard at the far

end of the conversation

Page 24: Voip Training

JITTER

Time

Steady Stream of Packets

Same Packet Stream After Congestion or Improper Queuing

Page 25: Voip Training

SOURCES OF DELAY

Router

64 kb/s

64 kb/sRouter

Packet Flow

E1

E1

FixedDejitterBuffer

FixedCoderDelay

Fixed:Packetization

DelayVariable:Output

QueuingDelay

Fixed:Serialization

Delay

Fixed:SwitchDelay Fixed:

SwitchDelay

Fixed:SwitchDelay

Page 26: Voip Training

ACCEPTABLE DELAY: ITU G.114

Range in Milliseconds Description

0–150 Acceptable for most user applications

150–400Acceptable, provided that administrators are aware of the transmission time and its impact on the transmission quality of user applications

Above 400Unacceptable for general network planning purposes (However, it is recognized that in some exceptional cases, this limit will be exceeded.)

Page 27: Voip Training

EFFECT OF PACKET LOSS

Packet 1 Packet 3Lost Packet 2

Lost Audio

Page 28: Voip Training

• Mean opinion score• Defined in ITU-T Recommendation

P.800• Results in subjective measures• Scores from 1 (worst) to 5 (best); 4.0 is

toll quality

MOS

Page 29: Voip Training

QOS DEFINITION AND OBJECTIVE

• Support dedicated bandwidth• Improve loss characteristics• Avoid and manage network congestion• Shape network traffic• Set traffic priorities across the network

• Quality of Service (QoS) refers to the capability of a network to provide better service to selected network traffic over various technologies

Definition

Objetives

Page 30: Voip Training

APPLYING QOS

VoIPQoS

In the WANIn the Output Queue

In Conjunction with IP

Page 31: Voip Training

DTMF SUPPORT

DTMF tones are distorted when gateways use compression on slower WAN links.

DTMF relay addresses this problem.

S0256 kb/s

G.729 Codec Being Used

S1256 kb/s

Page 32: Voip Training

CODECS

• Codecs perform encoding and decoding on a digital data stream or signal.

• Codecs translate VoIP media streams into another format: A to D, D to D, or D to A.

• Various codec standards define the compression rate of the voice payload.

• Supported Cisco codecs include: G.711 G.722 G.726 G.728 G.729 G.723.1 GSM FR iLBC

Page 33: Voip Training

IMPACT OF VOICE SAMPLES AND SAMPLE SIZE ON BANDWIDTH

Codec Bandwidth Sample Size Packets

G.711 64 kb/s 240 33

G.711 64 kb/s 160 50

G.726r32 32 kb/s 120 33

G.726r32 32 kb/s 80 50

G.726r24 24 kb/s 80 25

G.726r24 24 kb/s 60 33

G.726r16 16 kb/s 80 25

G.726r16 16 kb/s 40 50

G.728 16 kb/s 80 13

G.728 16 kb/s 40 25

G.729 8 kb/s 40 25

G.729 8 kb/s 20 50

G.723r63 6.3 kb/s 48 16

G.723r63 6.3 kb/s 24 33

G.723r53 5.3 kb/s 40 17

G.723r53 5.3 kb/s 20 33

Page 34: Voip Training

DATA-LINK OVERHEAD

• Ethernet II: 18 bytes of overhead• PPP: 6 bytes of overhead• FRF.12 Layer 2 header: 6 bytes of overhead• MP: 6 bytes of overhead

Page 35: Voip Training

CALCULATING THE TOTAL BANDWIDTH FOR A VOIP CALL

Codec Codec Speed Sample Size Frame

RelayFrame Relay

with cRTP Ethernet

  Bits per Second Bytes Bits per

Second Bits per Second Bits per Second

G.711 64,000 240 76,267 66,133 79,467

G.711 64,000 160 82,400 67,200 87,200

G.726r32 32,000 120 44,267 34,133 47,467

G.726r32 32,000 80 50,400 35,200 55,200

G726r24 24,000 80 37,800 26,400 41,400

G.726r24 24,000 60 42,400 27,200 47,200

G.726r16 16,000 80 25,200 17,600 27,600

G.726r16 16,000 40 34,400 19,200 39,200

G.728 16,000 80 25,200 17,600 27,600

G.728 16,000 40 34,400 19,200 39,200

G.729 8000 40 17,200 9600 19,600

G.729 8000 20 26,400 11,200 31,200

G.723r63 6300 48 12,338 7350 13,913

G.723r63 6300 24 18,375 8400 21,525

G.723r53 5300 40 11,395 6360 12,985

G.723r53 5300 20 17,490 7420 20,670

Page 36: Voip Training

VAD – VOICE ACTIVITY DETECTION

Voice activity detection (VAD), also known as speech activity detection or speech detection, is a technique used in speech processing in which the presence or absence of human speech is detected.Main objective: it can avoid unnecessary coding/transmission of silence packets in Voice over Internet Protocol applications, saving on computation and on network bandwidth.

Page 37: Voip Training

EFFECTS OF VAD

Codec Codec Speed Sample Size Frame Relay Frame Relay with VAD

G.711 64,000 240 76,267 49,573

G.711 64,000 160 82,400 53,560

G.726r32 32,000 120 44,267 28,773

G.726r32 32,000 80 50,400 32,760

G726r24 24,000 80 37,800 24,570

G.726r24 24,000 60 42,400 27,560

G.726r16 16,000 80 25,200 16,380

G.726r16 16,000 40 34,400 22,360

G.728 16,000 80 25,200 16,380

G.728 16,000 40 34,400 22,360

G.729 8000 40 17,200 11,180

G.729 8000 20 26,400 17,160

G.723r63 6300 48 12,338 8019

G.723r63 6300 24 18,375 11,944

G.723r53 5300 40 11,395 7407

G.723r53 5300 20 17,490 11,369

Page 38: Voip Training

UNDERSTANDING CALL TYPES

• Local: Does not traverse the WAN or PSTN.

• On-net: Occurs between two telephones on the same data network.

• Off-net: Occurs when a user dials an access code (such as “9”) to gain access to the public switched telephone network (PSTN).

Page 39: Voip Training

LOCAL CALLS

IP WAN

555-0188Dial “555-0188”PBX

GatewayGateway

Ring!

Page 40: Voip Training

ON-NET CALLS

IP WAN

555-0123

Dial “555-0123”PBX

PSTN

Toll BypassSan JoseAustin

GatewayGateway

Ring!

Page 41: Voip Training

OFF-NET CALLS

PSTN

Dial Access Code “9”

Gateway

Ring!

Page 42: Voip Training

VOICE PORTS

IP WAN or PSTN

Voice Port Voice Port

PSTN

Voice Port Voice Port

IP WAN or PSTN

Voice Port Voice Port Voice Port Voice Port

Telephone to WAN

Telephone to PSTN

PBX to PBX over WAN

FXS(Analog)

FXO(Analog)

E&M(Analog)

T1, E1,or ISDNQSIG(Digital)

T1 or E1 or ISDN (Digital)

FXS(Analog)

T1,E1, orISDN(Digital)

T1,E1, orISDN(Digital)

Page 43: Voip Training

ANALOG VOICE PORTS

FXS: Connects directly to end-user equipment such as telephones, fax machines, or modems

FXS

FXO: Used for trunk, or tie line, connections to a PSTN CO or to a PBX that does not support E&M signaling

E&M: Most common form of analog trunk circuit

PSTNFXOFXO

E&M E&MWAN or PSTN

Page 44: Voip Training

ANALOG TRUNKS

E&M Interface

E&M Port

Trunk Side of PBX

FXO Interface

FXOPort

FXOPort

StationPort

CO

FXS Interface

FXSPort

FXSPort

FXSPort

PSTN

DID Interface

DIDPort

CO

PSTN

Page 45: Voip Training

DIGITAL VOICE PORTS

• T1: Uses time division multiplexing (TDM) to transmit digital data over 24 voice channels using channel associated signaling (CAS)

• E1: Uses time division multiplexing TDM to transmit digital data over 32 timeslots including 30 voice channels, 1 framing channel, and 1 signaling channel

• ISDN: A circuit-switched telephone network system designed to allow digital transmission of voice and data over ordinary telephone copper wires BRI: 128 kb/s; 2 B channels and 1 D channel T1 PRI: 1.5 Mb/s; 23 B channels and 1 D channel Uses common channel signaling (CCS)

Page 46: Voip Training

DIGITAL TRUNKS

Type Circuit Option Comments

Digital T1/E1 CAS

E1 R2

Analog signaling over digital T1/E1 Can provide ANI calling party ID (caller ID)

ISDN T1 PRI

E1 PRI

More services than CAS Separate signaling channel (D channel) Common on modern PBXs

PRI NFAS Multiple ISDN PRI interfaces controlled by a single D channel

Backup D channel can be configured

BRI Mostly for Europe, Middle East, and Africa

QSIG Created for interoperation of PBXs from different vendors

Rich in supplementary services

Page 47: Voip Training

DIGITAL TRUNKS

24 B Channels (Voice)T1 CAS

30 B Channels (Voice)E1 R2

No D Channel RequiredAnalog Signaling

No D Channel RequiredAnalog Signaling

Page 48: Voip Training

ISDN

D Channel 16 kb/s (Signaling)

2 B channels (Voice)ISDN BRI

D Channel 64 kb/s (Signaling)

30 B Channels (Voice)ISDN E1 PRI

D Channel 64 kb/s (Signaling)

24 B Channels (Voice)ISDN T1 PRI NFAS 23 B Channels (Voice)

Page 49: Voip Training

BRI AND PRI INTERFACES

BRI T1 PRI E1 PRIB Channels 2 x 64 kb/s 23 x 64 kb/s 30 x 64 kb/s

D Channels 1 x 16 kb/s 1 x 64 kb/s 1 x 64 kb/s

Framing 16 kb/s 8 kb/s 64 kb/s

Total Data Rate 160 kb/s 1.544 Mb/s 2.048 Mb/s

Framing NT, TE frame SF, ESF Multiframe

Line Coding 2B1Q or 4B3T AMI or B8ZS HDB3

Country World North America, Japan Europe, Australia

Page 50: Voip Training

T1/E1 DIGITAL VOICE CONFIGURATION

Configure controller settings• Framing• Line coding• Clock sources• Network clock timing• Create digital voice ports with the ds0-group command:

DS0 group Time slots Signal type

Configure voice port parameters• Compand-type• cptone

Page 51: Voip Training

CLOCK SOURCES

PSTN

PBX

Clock

Clock

controller E1 1/0 framing crc4 linecode hdb3 clock source internal ds0-group timeslots 1-15 type e&m-wink-start

controller T1 1/0 framing esf linecode ami clock source line ds0-group timeslots 1-12 type e&m-wink-start

1/0

1/0

T1

E1

Page 52: Voip Training

SIP FUNDAMENTALS

• SIP is a simple extensible protocol.• SIP is defined in IETF RFC 2543 and RFC 3261.• SIP creates, modifies, and terminates multimedia

sessions with one or more participants.• SIP leverages various standards: RTP, RTCP, HTTP,

SDP, DNS, SAP, MGCP, and RTSP.• SIP performs addressing by E.164, e-mail, or DNS

service record.• SIP is ASCII text-based for easy implementation and

debugging.

Page 53: Voip Training

SIP FUNDAMENTALS

SIP provides these capabilities:• Determines the location of the target endpoint • Determines the media capabilities of the target

endpoint• Determines the availability of the target endpoint• Establishes a session between the originating and

target endpoints• Handles the transfer and termination of calls

Page 54: Voip Training

HOW SIP WORKS

• ASCI-based protocol• User identified by a unique SIP address

sip:[email protected] • Users register with registrar server using their

assigned SIP addresses• When user initiates a call, a SIP request is sent to a SIP

server• Location of end user can be dynamically registered

with the SIP server

Page 55: Voip Training

WHY SIP

Advantages of SIP gateways:• Dial-plan configuration directly on the gateway• Translations defined per gateway• Advanced support for third-party telephony system

integration• Interoperability with third-party voice gateways• Support of third-party end devices (SIP phones)

Page 56: Voip Training

SIP ARCHITECTURE

SIP Gateway

Legacy PBX

PSTN

SIP

RTP

SIPSIP

SIP Proxy, Registrar,

Location, and Redirect Servers

SIP User Agents (UAs)

T1 or PRI

Page 57: Voip Training

SIP CALL FLOW

SIP Gateway

PSTN

Signaling

Bearer or MediaRTP Stream

Signaling

Invite (SDP)

100 Trying

180 Ringing

200 OK

Invite (SDP)

100 Trying

180 Ringing

200 OK

ACK

BYE

200 OK

SIP Proxy Server

ACK

Page 58: Voip Training

DIRECT CALL SETUP

SIP Gateway

IP

SIP Signaling and SDP(UDP or TCP)

Bearer or Media (UDP)

RTP Stream

Signaling

180 Ringing

200 OK

Invite (SDP)

100 Trying

ACK

BYE

200 OK

SIP Gateway

Calling Party Called Party

Page 59: Voip Training

CALL SETUP USING A PROXY SERVER

Proxy ServerSIP Gateway

IP

SIP Signaling and SDP(UDP or TCP)

Bearer or Media (UDP)

RTP Stream

180 Ringing

200 OK

Invite (SDP)

100 Trying

ACK

BYE

200 OK

SIP Gateway

Calling Party Called PartyInvite (SDP)

100 Trying

180 Ringing

200 OK

ACK

BYE

200 OK

Page 60: Voip Training

CALL SETUP USING A REDIRECT SERVER

Redirect ServerSIP Gateway

IP

SIP Signaling and SDP(UDP or TCP)

Bearer or Media (UDP)

RTP Stream

Ringing

OK

Invite

Trying

ACK

BYE

200 OK

SIP Gateway

Calling Party Called PartyInvite

Moved

Page 61: Voip Training

SIP ADDRESSES

• Fully qualified domain names sip:[email protected]

• E.164 addresses sip:[email protected]; user=phone

• Mixed addresses sip:14085551234; [email protected]

sip:[email protected]

Page 62: Voip Training

SIP DTMF CONFIGURATION CONSIDERATIONS

SCCP Phone

SIP Gateway

MTP

Out-of-Band SCCP

Out-of-Band Information

In-Band SIP

RTP RTP

SIP DTMF on Cisco Unified Communications Manager• SIP DTMF requires MTP on Cisco Unified Communications

Manager.

Page 63: Voip Training

SIP DTMF CONSIDERATIONS

SIP DTMF on Cisco IOS gateways:• SIP DTMF relay is configured on gateways in dial-peer

configuration mode. There are two methods: RTP Named Telephony Event: Forwards DTMF tones

by using RTP with the NTE payload type SIP NOTIFY: Forwards DTMF tones using SIP NOTIFY

messages• SCCP IP phones only support out-of band. Therefore

SIP NOTIFY must be used.

Page 64: Voip Training

CONFIGURING A SIP GATEWAY

• Enable SIP voice services• Configure SIP service

Transport Bind interface

• Configure SIP User Agent (UA) Timers Authentication SIP servers

• Configure dial-peer SIP parameters Session protocol Session target DTMF relay

Page 65: Voip Training

QUESTIONS

Page 66: Voip Training