01 - Introduction To Telephony VoIP
01 - Introduction To Telephony VoIP
01 - Introduction To Telephony VoIP
Lesson 1
Telephony & VoIP
2012
1
Lesson Objectives
2
The Analog Circuit
3
Typical Analog Circuit
• The twisted pair cooper wire from the central switch office to a
subscriber's home is called a subscriber loop
• The subscriber loop handles two types of information on the same
twisted pair:
• Signaling
• Voice
4
Loop Start Signaling
Loop
Receiver
5
On-Hook
• In on-hook stage the switch is open and there is no current flow
Telephone Switch
6
Off-Hook
• When the handset is picked up (going off-hook) a switch on the phone closes
the connection between the two wires and a -48 VDC current is drawn from the
central office switch
• The switch determines that current is being drawn and provides dial tone so the
person on the phone knows it is time to dial a number
Telephone Switch
Dial Tone
7
Dialing
• Upon hearing the dial tone, the user pushes the number buttons,
which are connected to a tone generator inside the dial, which
generates DTMF tones
• The Telephone Switch collects the DTMF digits and maps them to
a physical subscriber
Telephone Switch
Dialing
(DTMF Transmissions)
8
DTMF – Dual Tone Multi-Frequency
• DTMF is the common method of sending dialing information
(replaced pulse dialing of the original telephone networks)
• Each number is represented by two tones which are transmitted
simultaneously over the voice path
• Each row representing a low frequency and each column
representing a high frequency 1209 1336 1477 1633
697 1 2 3 A
770 4 5 6 B
852 7 8 9 C
941 * 0 # D
9
Call Progress Tones
• In Telephony, call progress tones are audible tones sent from the
PSTN or a PBX to calling/called parties to indicate the status of
phone calls
This tone assures the calling party that a ringing signal is being sent
Ringback Tone on the called party's line
Busy Tone Indicates to the calling party that the remote phone is occupied
Reorder Tone Indicate that a person has dialed an invalid code, or that all trunks
(Fast Busy) are busy and/or their call is unroutable
10
Ringing
Telephone Switch
11
Conversation
Voice Voice
12
Call Tear Down
Telephone Switch
13
Telephony Network (1)
415-577-3800
415-577-3801
Telephone Switch
415-577-3700
(Central Office)
415-577-3701
415-577-3722
415-577-3733
Company X
415-577-3760
415-577-3785
14
Telephony Network (2)
415-577-3800
415-577-3801
Telephone Switch
415-577-3700
415-577-3701
415-577-3702
415-577-37xx
415-577-3703
PBX Digital Trunk
415-577-3704
415-577-3705
15
Digital Communication
16
Digital Communication
17
Pulse Code Modulation (PCM)
• A method of encoding an audio signal in digital format
• A standard audio signal is encoded as 8000 analog samples per
second, of 8 bits each, giving a 64 Kbit/s digital signal known as DS0
• The default signal compression encoding on a DS0 is either μ-law
(North America and Japan) or A-law (Europe and most of the rest of
the world)
18
Time Division Multiplexing (TDM)
1 1
64 Kbps
2 2
64 Kbps
3 2 1
3 3
64 Kbps
. . . 32 . . . 32
64 Kbps
19
E1
• Data rate of 2.048 Mbit/s (full duplex)
• Split into 32 time slots
• Each time slot sends and receives an 8-bit sample 8000 times per second
(8 x 8000 x 32 = 2,048 Mbit/s)
• Ideal for voice telephone calls where the voice is sampled into an 8 bit number
(PCM)
• One timeslot (TS0) is reserved for framing purposes
• One timeslot (TS16) is often reserved for signaling purposes
1 2 15 17 30
Maintenance
Signaling
Framing
Voice
Voice
Voice
Voice
Voice
... ...
and
0 1 2 15 16 17 31
2.048 Mb/s
20
T1
• Data rate of 1.544 Mbit/s
• Split into 24 time slots each encoded in 64 Kbit/s streams
• 8 Kbit/s of framing information for synchronization
• 64,000 x 24 + 8 = 1544 Mbit/s
• Timeslot (TS24) is often reserved for signaling purposes
1 2
Signaling
R
Voice
Voice
A
M
I
N
G
Frames
1.536Mb/s
21
Signaling Methods
• In-band signaling is the exchange of signaling (call control) information on
the same B-channel that the telephone call itself is using
• CAS (Channel Associated Signaling)
Voice + Signaling Link
Signaling Link
Voice Link
22
ISDN
• Integrated Services Digital Network is an ITU-T term for
integrated transmission of voice, video and data on the digital
public telecommunications network
23
ISDN (Q.931) Call Flow
Calling Party Called Party
Call Proceeding
Connect
Off hook
Voice Channel
On hook Disconnect
Release
Release complete
24
BRI
• Point to Point
ISDN Switch
• Point to Multi-Point
TE TE TE TE
ISDN Switch
25
BRI (cont.)
• ISDN Basic Rate Interface (BRI) service offers two B-channels and one
D-channel (2B+D)
• B-channel service operates at 64 kbps and is meant to carry user data
• D-channel service operates at 16 kbps and is meant to carry control
and signaling information
1 2
Signaling
Framing
Voice
Voice
and
0 1 2
144 Kb/s
26
Clock Synchronization
Master Clock
Timing
Toll Center
Timing Timing
Timing Timing
PBX PBX
27
Voice over IP (VoIP)
28
What is VoIP ?
29
Circuit vs. Packet Switching
• Circuit Switching
• Traditional voice calls, running over the PSTN, are made using circuit switching,
where a dedicated circuit or channel is set up between two points before the
users talk to one another
• Packet Switching
• Data transmission technique in which data is separated into small 'packets',
each with its own routing information and then sent through a shared, often
public, network; at the other end the packets are reassembled into the original
data format
• In this method bandwidth is only used when something is actually being
transmitted
30
VoIP Protocol Stack
31
RTP
• RTP (Real-Time Transport Protocol) is used to encapsulate VoIP
data packets inside UDP packets
• RTP provides end-to-end network transport functions suitable for
applications transmitting real-time data
V P X CC M PT Sequence Number
Voice Bits
32
Voice Codecs
• A codec (Coder/Decoder) converts analog signals to a digital
bitstream, and back into an analog signal for transmission across IP
networks
• Codecs generally provide a compression capability to save network
bandwidth
• Some codecs also support silence suppression, where silence is not
encoded or transmitted
Codec Bit Rate (kbps)
G.711 PCM (A-Law / Mu-Law) 64
G.726 ADPCM 16, 24, 32 and 40
G.729 CS-ACLEP 8
G.723.1 CELP 6.3 and 5.3
33
VoIP Challenges
34
Delay
Network
Network Transit
Processing Delay
Processing t
Delay Delay
End-to-End Delay
35
Jitter
• Jitter (delay variation) caused when voice packets suffer different
transit delays, causing variation in arrival times at the receiver end
• The jitter buffer collects voice packets, stores them and sends them
to the voice processor in evenly spaced intervals
A B C Sender
A B C Receives
D1 D2 = D1 D3 = D2 t
36
VoIP Gateways
37
Enterprise PSTN & Data Network
Headquarters Branch
Backup
PSTN
IP
Telecommuter
38
FXS Gateways
• FXS (Foreign Exchange Station) – Emulates a PSTN/PBX
Provides battery power, sends dial tone and generates ringing voltage
• A standard telephone/fax machine plugs into such an interface to
receive telephone services
• FXS gateways convert (in real time) loop start signaling to SIP and
variable electric current to RTP
IP Phone
IP Signaling
Local Loop IP
IP Voice
39
FXO Gateways
• FXO (Foreign Exchange Office) – Generates the on-hook and off-
hook indicators used to signal a loop closure at the FXS end of the
circuit
• FXO gateways convert (in real time) loop start signaling to SIP and
variable electric current to RTP
PBX
IP Signaling
IP Phone
IP Voice
Local Loop
IP
40
Digital Gateway
PBX
E1 / T1
41
Media Processing
42