Basic VoIP
Basic VoIP
Basic VoIP
Objectives
At the end of the module, the participants will be able to:
Course Outline
VoIP scenarios
Voice payload
Voice Quality
VoIP Regulation
Is it a service?
Voice over IP is ?
Is it a new technology?
Is it a Protocol?
VoIP Defined
What is VoIP?
VoIP is a category of hardware and software
that enables people to use the Internet as the
transmission medium for telephone calls by
sending voice data in packets using IP rather
than by traditional circuit transmissions of the
PSTN.
[Source: Webopedia]
Another Definition
Voice over IP (also called VoIP, IP
Telephony, and Internet telephony)
is a technology enabling routing of voice
conversations over the Internet or any
other IP network.
[Source: Wikipedia]
Benefits of VoIP
For the provider:
Cost savings
Distributed nature
Source: Cisco
Reduce or eliminate
dependency on
proprietary solutions
Source: Cisco
Operators need a
single network to
cater for voice and
data
Source: Cisco
Cheaper calls
No toll charges
Increased Functionality
Multiple numbers
Incoming phone calls
automatically routed to
IP-phone wherever it is
plugged-in
Source: Cisco
VoIP Scenarios
Voice over IP
PC-to-PC
PC-to-Phone
Phone-to-PC
Phone-to-Phone
PC to PC VoIP Connection
Cebu, Philippines
Internet
PC-to-Phone / Phone-to-PC
Operating System
Windows
Linux
Sound Card
Headset
Microphone
Softphone
Broadband / DSL
Connection
Softphones
Softphone: EyeBeam
Popular softphones
SKYPE
Can call regular
phones
Cheaper rates for
numerous international
destinations
P2P architecture
Proprietary signaling
Cisco AT 186
Mediatrix ATA-1104
ATA Connections
Ordinary Phone
RJ-45
IP Network
Router
What is an IP Phone?
LAN-ready phones
RJ-45 connection
to IP network
Built-in Ethernet
switch
Built-in codec
IP Phones
Connecting to IP Network
IP Network
Router
IP Phone
Phone-to-Phone
Cebu
ISP /
VoIP Provider
DSL Modem
3Com 3101
New York
Internet
Router
Mitel 5240
Media Transport
RTP Real Time Protocol
MGCP
Megaco / H.248
H.323 Stack
H.323 vs OSI
H.323 Components
H.323 Terminal
MCU Multi-
Gatekeeper
Gateway
H.323 Components
Terminal
Computer or workstation
Address translation
Admission control
Call authorization
Directory services
Implemented as software
Interworking device
SIP message:
INVITE sip:esjabonete@smart.com.ph
Capabilities management
SIP Advantages
SIP Entities
Logical SIP Entities:
User Agent
Proxy Server
Redirect Server
Registrar
Endpoint entity
Initiate and terminate sessions
requests
Workstations, IP-phones,
telephony gateways are
examples of SIP User Agent
Intermediary entity
Acts both as server and client
requests
Stateless proxy forgets about
the data after sending it
Intermediary entity
SIP in Action
SIP Flow
IP Telephony Protocols
H.323
SIP
H.248 /
Megaco
MGCP
Standardization
ITU
IETF
ITU / IETF
IETF
Architectural Model
Peer-to-Peer
Peer-to-Peer
Master /
Slave
Master / Slave
Media Types
Voice, video,
data
Voice, video,
data
Voice, video
voice
Call Control
Gatekeeper
Proxy Server
MGC
MGC
Endpoints
Gateway,
terminal
User Agent
Media
Gateway
Media Gateway
Signaling Transport
TCP or UDP
TCP or UDP
UDP
Network Scope
Intra-, Extra-,
Internet
Intra-, Extra-,
Internet
Intranet
Intranet
Extensibility
Low
High
Medium
Medium
Scalability
Medium
High
Low
Low
Ease of Deployment
Low
High
Medium
Medium
Media Bearer
(RTP)
RFC 3550
VoIP Packet
Port 5005
Other Protocols
Supporting Protocols
Media information
Port 9895
RFC 2974
Other Protocols
Telephony Routing over IP (TRIP)
Defined in RFC 3219 / 2871
Internet protocol that supports the discovery and
exchange of IP telephony gateway routing tables
between providers
Policy driven dynamic routing protocol for
advertising the reachability of telephony destinations
Modeled after BGP-4 and enhanced with some linksate features of OSPF
TRIP uses BGP's
inter-domain
transport mechanism
peer communication
Voice Payload
Analog to Digital
Sampling
Quantization
Encapsulation
Packetization
Transport
Voice payload
48 or 56 or 64 kbps BW
digital
circuit
ITU G.728
8 kbps BW
Conjugate
Structure
Algebraic-Code-Excited
Prediction (CS-ACELP)
Linear
Royalty-free codec
Two modes
Bandwidth Requirement
Bandwidth Calculation
Amount of bandwidth required to transport
Codec used
Sample period
Headers
Transmission medium
Silence suppression
BW = bandwidth (bps)
FPS = frames per second
Example:
G.711 codec
Packet Overhead
RTP/UDP/IP Overhead
RTP = 12 octets
UDP = 8 octets
IP
= 20 octets
Total = 40 octets
Layer 2 Overhead
Datalink Overhead
Usually Ethernet/802.3
Preamble 8 octets
Source & Destination MAC 12 octets
Length 2 octets
CRC 4 octets
Gap 12 octets
Bandwidth Requirement
Total Overhead = IP + Ethernet overhead
= 40 + 38
= 78 octets
For every 20 ms of speech:
Other Features
cRTP
Reduces 40 octets into ~2-4 octets
Exercise
1. Compute the bandwidth requirement for Voice
over IP traffic using a G.729A codec
a)
b)
Codec Summary
Codec
BW
(kbps)
Sample
Period
(ms)
Frame
Size
(octets)
Frames
/Packet
Ethernet
Bandwidth
(kbps)
G.711
64
20
160
95.2
G.723.1
6.4
30
24
27.2
G.726
32
20
80
63.2
G.728
16
2.5
78.4
G.729a
10
10
iLBC
13.3
30
50
VoIP/PSTN Gateway
Used to connect a
VoIP network to PSTN
PSTN gateways
convert SIP or H.323
messages into ISUP
messages
VoIP to PSTN
VoIP to PSTN
SIP Phone
Proxy / Gateway
PSTN Switch
INVITE
IAM
100 Trying
ACM
18x
ANM
200 OK
CONVERSATION
BYE
REL
200 OK
RLC
200 OK
VoIP/GSM Gateway
ATEUS VoiceBlue from
2N Telekomnikace
Up to 4 GSM channels
SIP-based gateway
RJ-45 interface to IP
network
Codecs supported:
G.711
G.723.1
G.729A
What is ENUM?
What is ENUM?
(2)
Utilizes DNS
e164.arpa domain
PSTN/VoIP Gateway
At The Gateway
ENUM-capable gateway creates a DNS
query
DNS
The gateway sends a query for the domain
Sample Record
$ORIGIN 4.8.7.8.2.6.2.2.3.3.6.e164.arpa.
DNS Response
enum
SIP:jane_doe@smart.com.ph
DNS
Connecting . . .
sip: jane_doe@smart.com.ph
INVITE sip:jane_doe@smart.com.ph
Conversation begins
enum
DNS
SIP Proxy
IP Network
INVITE sip:jane_doe@smart.com.ph
Cebu City
Voice Quality
specialized and
costly process
E Model
R = Ro - Is - Id - Ie + A + W
E Model (2)
R = Ro - Is - Id - Ie + A + W
Ro
Is
Id
Ie
VoIP Quality
Main factors that affect voice quality
Delay
Echo
Packet Loss
Jitter
Delay
300 ms round-trip
End-to-End Delay
Types of Delay
Propagation delay
Handling delay
Serialization delay
Delay vs MOS
Echo
Echo is a problem in voice-over-packet networks
because delay is always > 25 ms
Networks use echo-cancellation techniques to
minimize echo
Sound Files
Packet Loss
Networks should have <1% packet loss
Packet loss results in degraded voice
quality
engineering:
Bernoulli model
Gilbert-Elliot model
Markov model
Sound File
Jitter
Types of Jitter
LAN Congestion
Happens on serialization
Route flapping
Jitter Effect
Jitter Buffers
Fixed buffer
Constant size
Adaptive buffer
VoIP Regulation
VoIP is what?
NTC: VoIP is Value-Added Service
RA 7925 has no explicit definition what Value Added
Service means.
Value Added Service Provider an entity
which relying on the transmission,switching
and local distribution facilities of the local
exchange and inter-exchange operators, and
overseas carriers, offers enhanced services
beyond those ordinarily provided by such
carriers.
[ Source: http://www.ntc.gov.ph ]
VoIP Challenges
VoIP Challenges
Emergency Services