Professional Documents
Culture Documents
Basics of Protocols SIP / H.323 / MGCP
Basics of Protocols SIP / H.323 / MGCP
• Introduction
o Terminology
o Concepts
• Call vs. Media Gateway Control Protocols
• Call Control Protocols
o SIP
o H.323
o How SIP and H.323 compare
• Media Gateway Control Protocols
o MGCP and Megaco/H.248
• Summary
Concepts
• IETF-based
• Developed from work on multi-party conferences
• Releases
o RFC 2543 1999
o RFC 3261 2002 - Better scalability and resilience
• Request
o Request URI sip:user@host
o Headers To: …, From: …, etc.
o Body SDP offer
• Response
o Status Line 180 Ringing
o Headers To:…, From: …, etc.
o Body SDP answer
SIP Extensibility
• Offer/Answer handshake
o Offer contains list of supported streams and codecs
o Answer contains list of accepted streams and codecs
• Published by ITU-T
• Developed from H.320 - Conferencing over ISDN
o Adapted for unreliable packet-based networks.
• Widely used for conferencing and IP telephony
• Releases
o H.323 v1 1996
o H.323 v2 1998 - Useable VoIP support
o H.323 v3 1999 - Improved scalability
o H.323 v4 2000 - Improved web support, inc URLs
H.323 Standards
• Related standards
o H.235 Security within H.245-based systems
o H.245 Interworking with the PSTN
o H.450 Supplementary Services
H.323 Architecture
• RAS messages
o Gatekeeper Discovery (Gxx), and Registration (Rxx)
o Admission (Axx), Location (Lxx), and Bandwidth (Bxx)
o Disengage (Dxx), Information (Ixx), and various others
H.225 Call Signaling
• Provides
o Terminal capability exchange, e.g. Codecs supported
o Channel signaling to open the media sessions
o Conference control
• Optimization options
o H.245 can be tunneled in H.225 Call Signaling channel
• Normally transmitted in its own TCP connection
o Fast connect does not establish an H.245 channel
• Relevant H.245 fields passed in H.225 Setup message
Comparing SIP and H.323
• Similarities • H.323 Advantages
o Use RTP and RTCP for media o More compact messages
transport o More mature (in some areas)
o Support call routing through
proxies/gatekeepers using
username, phone numbers or • SIP Advantages
URLs o Easier to prototype (text)
o Similar flows o More flexible extensibility
o More scalable
• loop detection
• Differences
o Same messages used
o Encoding (Text vs. ASN.1) throughout network
o Standardized Feature sets o Cleaner separation of layers
• Conference control
• Attended and blind transfer
o Use of SDP is compatible with
• Caller Preferences MGCP and Megaco
Example 1: Endpoint Registration
• SIP • H.323
o Discovery and Registration o Discovery
• REGISTER -> Registrar • GRQ -> Gatekeeper
• 200 OK on success • GCF returned on success
• >= 300 on error • GRJ on error
• Text protocol
o Binary coding available for Megaco, but hardly used
• Uses SDP to describe the media
• Uses RTP and RTCP as the media transport
• MGC tells MG
o Media streams to establish
o Tones to play and events to monitor
o Digit maps against which to map received digits
• MCGP • Megaco
o Endpoint o Termination
A media source or sink. A media source or sink.
A media gateway is This could be either a
considered as a collection of physical device, e.g. DS0, or
endpoints, e.g. DS0, Analog an ephemeral termination
line, etc. such as an RTP stream.
o Connection o Context
A connection is an A connection is created by
association between two placing terminations into the
endpoints, which may be on same context
the same or different MGs.
MGCP/Megaco Features
• Media bridging
o MGCP – By connecting endpoints together
o Megaco – By placing two terminations in the same context
• Conferencing
o MCGP – By connection multiple endpoints to a conference bridge
o Megaco - By placing multiple terminations in the same context
• Media transcoding
o By bridging endpoints using different codecs
MGCP Example: Call Setup