Académique Documents
Professionnel Documents
Culture Documents
Background
Currently, two Independent networks (voice and
data)
Circuit Switched and packet switched
Both undergone tremendous enhancements over
the years
Packet network is relatively a later entry, but more
aggressive
Convergence combining both into one network
talked quite often from early eighties
ISDN/SS7 was the first instance of convergence
Voice network
Fixed (assured) bandwidth, optimally matched for
Poisson voice traffic
High reliability
Five 9s Availability (5 min/ year downtime)
Disadvantages:
Inefficient usage of bandwidth
Closed architecture, single vendor
Long turn-around time for new features (18 months)
Data network
Rapid growth of data traffic
Data traffic has overtaken US voice traffic in 1998, UK
in 1999 (voice 8% total US traffic by 2004)
US Internet users increased from 10 to 50 million in 4
years
VOIP protocols
Media Gateway Control Protocols
MGCP, MEGACO (H.248)
H.323
the first VOIP protocol defined by ITU-T
Conversation
Speech transmission between users
SIGNALLING
Media transmission
SIGNALLING
SIGNALLING
voice
Signaling
CALL
CONTROL
Users
User
Access
SWITCH/Matrix
RESOURCES
CONTROL
SERVICES/
FEATURES
IP
User
Access
RESOURCES
NGN ELEMENTS
SIGNALLING
GATEWAY
FEATURE
SERVER
Call Agent/MGC
Announcement Server
MEDIA
GATEWAY
IP
CO/IXC
Trunks
H.323
MEDIA
GATEWAY
Trunking
Gateway
SIP
MEDIA
GATEWAY
POTS ISDN
RESIDENTIAL/ACCESS GATEWAY
RTP/RTCP
IP Network
MG
MG
MGCP/MEGACO
Application
MEGACO/MGCP
TCP/UDP
IP
Data Link
Physical
MGCP/MEGACO
MGC
Application
RTP/RTCP
UDP
IP
Data Link
Physical
Residential gateway
Analogue Lines (RJ11) (typically One or two)
Trunking Gateway
SCN to IP Network, T1/E1 lines,
Normally uses SS7 for signalling
SCP
STP
LEC
PBX
IXC
LEC
ACC GW
TRK GW
MGC
TRK GW
RES GW
IP Network
MEGACO
Assumptions:
Call Processing intelligence with MGC
MGs are as dumb as possible
MGC instructs MG for every possible stage of
the call
MEGACO-Connection model
PSTN
Network
DS0 Ch
Physical
Context C1
RTP Stream,
Ephemeral
IP
Network
Packages
Package identifies the type of termination
Each Termination is associated with a
package:
Signals
MGC orders MG to apply a signal
Signals are applied to terminations
e.g. Dial tone, Ring, DTMF tones (O/G side)
Events
MGC orders MG to detect events
Events are detect by MG on termination
e.g. on/off hook, DTMF digits
Digit Map
Simple way to instruct MG to collect sequence of
digits as per dial plan
(0S|00S|[1-7]xLxx|8Lxxxxxxx|*xx|9L1xxx)
S short timer
L Long timer
x any digit
| or
[1-7] Any digit between 1 to 7
Media Negotiation
Different types of codecs can be used for the call
Session Description Protocol (SDP) is used for
codec negotiation
Originator (MG) sends set of codec choices
MGC passes them to terminator
Terminator normally selects one of them and sends it
back
MGC sends the selected one to originator
Thus, selected codec will be used for the call
Typical codecs:
G.711 (u/a law, 64 KBPS), G.729 (8 KBPS). G.723.1 (5.3/6/3
KBPS)
MEGACO/MGCP-Commands
ADD (MGC to MG)
Add terminations to a context.
Add on first terminations creates Context.
Create connection (CRCX) in MGCP
Commands- Continued
Subtract (MGC to MG)
Commands- continued
Audit Value (MGC to MG)
Current state of properties, events and signals
of a termination
Commands - continued
Service Change (mainly from MG to MGC)
Need for REGISTRATION due to physically
distributed architecture
Registration with MGC (primary and list of secondary
MGCs)
Indicate termination state (OOS/INS) by MG
Hand over to another MGC by MGC
Request MG to take termination OOS (MEGACO
only).
Restart In Progress (RSIP) in MGCP
MEGACO-transactions
Transaction Request: Transaction ID1
Context1 (Command 11, Command 12, Command 13
Context2 (Command 21, Command 22)
MGCP-Example
CRCX 24323 tg2@examles.net MGCP 1.0
C: A3C47F223456789F0
K: 6234-6237, 6888, 19045-19048
M: sendonly
N: Call-agent@ca.example.net:5234
L: p:10, a:PCMU, b:32-65, e:off
X: 0123456789B1
R: hd(E(R([0-9#T] (D),hu[N],s[dl],D[0-9].[#T])))
D: (0T| 00T| [1-7]xxx| 8xxxxxxx|#xxxxxxx)
------------------------------------------------------200 24323 OK
I: 234ABC432432
v=0
c=IN IP4 128.96.41.1
M=audio 3456 RTP/AVP 0 96
Call flow-Registration
MG1
MGC
MG2
Service Change
ROOT term, Restart method
Service Change
ROOT term, Restart method
Reply
Self/other MGC Id to try
Reply
Self/other MGC Id to try
MGC
Modify, termId *,
Event=Offhook
Reply
Notify, termId x1
MG2
MGC
Modify, termId x1,
MG2
MGC
Add, Context $
Reply, Context C1
Add, Context $
Mode=Receive only
Reply, Context C2
termID y1, termID y2 (ephemeral)
Media=selected SDP
MG2
MGC
Modify, Context C1
Modify, Context C2
Reply, Context C1
Signals=Ring, Event=OffHook
Reply, Context C2
Notify, Context C2
Modify, Context C1
Signals =Stop Tone, Event=OnHook
Mode=Send/Receive
Reply, Context C2
MG2
Call flow-disconnect
MG1
MGC
MG2
Notify, Context C1
Observed Event=onHook
Reply, Context C1
Subtract, Context C1
Audit statistics, termId x1, x2,,
Event=Offhook
Reply, Context C1
Statistics for termId x1, x2
Subtract, Context C2
Audit statistics, termId y1, y2,
Event=Offhook
Reply, Context C2
Statistics for termId y1, y2
H.323 Protocol
H.323 introduction
Standard for multimedia communication
over IP network
For Audio, video and data communications
Umbrella standard -pointer to many other
standards
H.323 Network
PSTN
H.323
Gateway
IP Network
IP/TCP/UDP/RTP/RTCP
Gate Keeper
H.323 Terminal
H.323 Gateway
PSTN
H.323 terminal
Client endpoint on the network
Supports:
H.323 Gateways
Provides translation function between
H.323 and Circuit Switched network
Gateway are optional in H.323 network
Admission control
Bandwidth control and management
Address translation (E.164 # to IP Address)
Registration/Admission/Status (RAS)
Manages all components of H.323
Optional, but must be consulted if present
Video
Data
A/V
Control
Control
RTCP
RAS
G.7xx H.26x
H.225 H.245 T.120
(Q.931)
RTP
TCP
UDP
IP
Gate
Keeper
Gate
Keeper
Call termination
End Session Command (H.245)
End Session Command
Release Complete (Q.931)
Disconnect Request (RAS)
Disconnect Confirm
Disconnect Request
Disconnect Confirm
SIP introduction
SIP is an application layer control protocol that can
establish, modify and terminate multimedia
sessions or calls.
Direct competition with H.323. Microsoft migrated
from net-meeting (H.323) to MSN
messenger/windows XP(SIP)
Mainly addresses all IP network (end user on IP),
though gateways concept are used in real
implementation
SIP message format is based on the Hyper Text
Transport Protocol (HTTP) message format, which
uses a human-readable, text-based encoding.
SIP introduction..contd.
SIP is transport-layer independent protocol i.e. it can
be used with any datagram or stream protocol like
UDP, TCP, SCTP, ATM etc.
It uses the session description protocol (SDP) for
media negotiations (similar to MEGACO/MGCP)
SIP Architecture
Consists of User Agent, Network server (proxy, redirect,
registrar and location server)
SIP Registrar
Registrar receives Registration from clients (UA)
regarding current location and stores in a location server
(non-SIP)
This information is used for routing (terminating) the call
SIP Messages
Request and Response messages
Request Messages:
SIP Messages..Contd.
Response Messages:
Proxy 1
INVITE
100 Trying
Proxy 2
INVITE
100 Trying
180 Ringing
180 Ringing
User B
INVITE
180 Ringing
Alerting User B
200 OK
200 OK
200 OK
ACK
ACK
ACK
established
INVITE
BYE
200 OK
200 OK
Called party
hangs up
up first
Conclusion: