1voipoverview-090907045814-phpapp01

Upload: kapil-bhutani

Post on 03-Apr-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    1/66

    Voice over IP Protocols

    An Overview

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    2/66

    Version 2 - March 9, 2001 2

    What is in this Module

    Objectives:

    This module provides an introductory overview of the voice over IPprotocols: SIP, H.323 and MGCP. At the end of this module, you will:

    Understand the basics of SIP and its architecture.

    Understand H.323 and how it compares to SIP.

    Understand MGCP.

    Target Audience:Marketing or business development professional who would like an

    introductory yet technical overview of the voice over IP protocols.

    Module Title:

    Voice over IP Protocol An Overview

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    3/66

    Voice over IP Protocols

    Pictorial Overview

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    4/66

    Version 2 - March 9, 2001 4

    RTCPRTP

    SIP, H.323 and MGCP

    IP

    MGCP

    Call Control and Signaling Signaling and

    Gateway Control

    Media

    H.225

    Q.931

    H.323

    H.323 Version 1 and 2 supports H.245 over TCP, Q.931 over TCP and RAS over UDP.

    H.323 Version 3 and 4 supports H.245 over UDP/TCP and Q.931 over UDP/TCP and RAS over UDP.

    SIP supports TCP and UDP.

    TCP

    RAS

    UDP

    SIPH.245

    Audio/

    Video

    RTSP

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    5/66

    Session Initiation Protocol

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    6/66

    Version 2 - March 9, 2001 6

    What is SIP?

    Session Initiation Protocol - An

    application layer signaling protocol thatdefines initiation, modification andtermination of interactive, multimedia

    communication sessions between users.

    IETF RFC 2543 Session Initiation Protocol

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    7/66Version 2 - March 9, 2001 7

    SIP Framework

    Session initiation.

    Multiple users.

    Interactivemultimediaapplications.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    8/66Version 2 - March 9, 2001 8

    Redirect

    Server

    SIP Distributed Architecture

    Location

    Server

    Registrar

    Server

    User Agent

    Proxy

    Server

    GatewayPSTN

    SIP Components

    Proxy

    Server

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    9/66Version 2 - March 9, 2001 9

    User Agents

    An application that initiates, receives andterminates calls.

    User Agent Clients (UAC) An entity that

    initiates a call.

    User Agent Server (UAS) An entity thatreceives a call.

    Both UAC and UAS can terminate a call.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    10/66Version 2 - March 9, 2001 10

    Proxy Server

    An intermediary program that acts as both aserver and a client to make requests on behalfof other clients.

    Requests are serviced internally or by passingthem on, possibly after translation, to otherservers.

    Interprets, rewrites or translates a request

    message before forwarding it.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    11/66Version 2 - March 9, 2001 11

    Location Server

    A location server is used by a SIP redirect orproxy server to obtain information about acalled partys possible location(s).

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    12/66Version 2 - March 9, 2001 12

    Redirect Server

    A server that accepts a SIP request, maps theaddress into zero or more new addresses andreturns these addresses to the client.

    Unlike a proxy server, the redirect server doesnot initiate its own SIP request.

    Unlike a user agent server, the redirect serverdoes not accept or terminate calls.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    13/66Version 2 - March 9, 2001 13

    Registrar Server

    A server that accepts REGISTER requests.

    The register server may supportauthentication.

    A registrar server is typically co-located with aproxy or redirect server and may offer locationservices.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    14/66Version 2 - March 9, 2001 14

    SIP Messages Methods andResponses

    SIP Methods:

    INVITE Initiates a call by invitinguser to participate in session.

    ACK - Confirms that the client hasreceived a final response to anINVITE request.

    BYE - Indicates termination of thecall.

    CANCEL - Cancels a pendingrequest.

    REGISTER Registers the useragent.

    OPTIONS Used to query thecapabilities of a server.

    INFO Used to carry out-of-boundinformation, such as DTMF digits.

    SIP Responses:

    1xx - Informational Messages.

    2xx - Successful Responses.

    3xx - Redirection Responses. 4xx - Request Failure Responses.

    5xx - Server Failure Responses.

    6xx - Global Failures Responses.

    SIP components communicate by exchanging SIP messages:

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    15/66Version 2 - March 9, 2001 15

    SIP Headers

    SIP borrows much of the syntax and semantics from HTTP.

    A SIP messages looks like an HTTP message message formatting,header and MIME support.

    An example SIP header:-----------------------------------------------------------------

    SIP Header

    -----------------------------------------------------------------

    INVITE sip:[email protected] SIP/2.0

    Via: SIP/2.0/UDP 192.168.6.21:5060

    From: sip:[email protected]

    To:

    Call-ID: [email protected]

    CSeq: 100 INVITE

    Expires: 180

    User-Agent: Cisco IP Phone/ Rev. 1/ SIP enabled

    Accept: application/sdp

    Contact: sip:[email protected]:5060

    Content-Type: application/sdp

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    16/66Version 2 - March 9, 2001 16

    SIP Addressing

    The SIP address is identified by a SIP URL, inthe format: user@ host.

    Examples of SIP URLs:

    sip:hostname@ vovida.org

    sip:hostname@ 192.168.10.1

    sip:14083831088@ vovida.org

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    17/66Version 2 - March 9, 2001 17

    Process for EstablishingCommunication

    Establishing communication using SIP usually occursin six steps:

    1. Registering, initiating and locating the user.

    2. Determine the media to use involves delivering a

    description of the session that the user is invited to.3. Determine the willingness of the called party to

    communicate the called party must send a responsemessage to indicate willingness to communicate acceptor reject.

    4. Call setup.5. Call modification or handling example, call transfer

    (optional).

    6. Call termination.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    18/66Version 2 - March 9, 2001 18

    Registration

    Each time a user turns on the SIPuser client (SIP IP Phone, PC, orother SIP device), the clientregisters with the proxy/registration

    server.

    Registration can also occur whenthe SIP user client needs to inform

    the proxy/registration server of itslocation.

    The registration information isperiodically refreshed and each

    user client must re-register with theproxy/registration server.

    Typically the proxy/registrationserver will forward this informationto be saved in the location/redirectserver.

    SIP Messages:

    REGISTER

    Registers the address listed in the Toheader field.

    200 OK.

    Proxy/

    Registration

    Server

    SIP Phone

    UserLocation/

    Redirect

    Server

    REGISTER REGISTER

    200200

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    19/66

    Version 2 - March 9, 2001 19

    Simplified SIP Call Setup andTeardown

    302

    (Moved Temporarily)

    INVITE

    200 (OK)200 (OK)

    ACK

    INVITE

    302

    (Moved Temporarily)

    ACK

    INVITE

    180 (Ringing)180 (Ringing)180 (Ringing)

    200 (OK)ACKACK ACK

    RTP MEDIA PATH

    BYEBYE BYE

    200 (OK)200 (OK) 200 (OK)

    CallTeardown

    MediaPath

    CallSetup

    INVITE

    Location/Redirect ServerProxy Server Proxy Server User AgentUser AgentINVITE

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    20/66

    Version 2 - March 9, 2001 20

    SIP Design Framework

    SIP was designed for:

    Integration with existing IETF protocols.

    Scalability and simplicity.

    Mobility.

    Easy feature and service creation.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    21/66

    Version 2 - March 9, 2001 21

    Integration with IETFProtocols (1)

    Other IETF protocol standards can be used to build aSIP based application. SIP can works with existing IETFprotocols, for example:

    RSVP - to reserve network resources.

    RTP Real Time Protocol -to transport real time dataand provide QOS feedback.

    RTSP Real Time Streaming Protocol - for controllingdelivery of streaming media.

    SAP Session Advertisement Protocol - foradvertising multimedia session via multicast.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    22/66

    Version 2 - March 9, 2001 22

    Integration with IETFProtocols (2)

    SDP Session Description Protocol for describingmultimedia sessions.

    MIME Multipurpose Internet Mail Extensiondefacto standard for describing content on the

    Internet.

    HTTP Hypertext Transfer Protocol - HTTP is thestandard protocol used for serving web pages overthe Internet.

    COPS Common Open Policy Service.

    OSP Open Settlement Protocol.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    23/66

    Version 2 - March 9, 2001 23

    Scalability

    The SIP architecture is scalable, flexible anddistributed.

    Functionality such as proxying, redirection,

    location, or registration can reside indifferent physical servers.

    Distributed functionality allows newprocesses to be added without affecting

    other components.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    24/66

    Version 2 - March 9, 2001 24

    Simplicity

    SIP is designed to be:

    Fast and simple in the core.

    Smarter with less volume at the edge.

    Text based for easy implementation anddebugging.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    25/66

    Version 2 - March 9, 2001 25

    Mobility

    SIP supports user mobility by proxying andredirecting requests to a users currentlocation.

    The user can be using a PC at work, PC athome, wireless phone, IP phone, or regularphone.

    The user must register their current location.

    The proxy server will forward calls to theusers current location.

    Example mobility applications include

    presence and call forking.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    26/66

    Version 2 - March 9, 2001 26

    Feature Creation

    A SIP based system can support rapidfeature and service creations.

    For example, features and services canbe created using:

    Call Processing Language (CPL).

    Common Gateway Interface (CGI).

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    27/66

    Version 2 - March 9, 2001 27

    Feature Creation (2)

    SIP can support these features and applications:

    Basic call features (call waiting, call forwarding, callblocking etc.).

    Unified messaging. Call forking.

    Click to talk.

    Presence.

    Instant messaging.

    Find me / Follow me.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    28/66

    Version 2 - March 9, 2001 28

    References

    For more information on SIP refer to:

    IETF

    http://www.ietf.org/html.charters/sip-charter.html

    Henning Schulzrinne's SIP page

    http://www.cs.columbia.edu/~hgs/sip/

    http://www.ietf.org/html.charters/sip-charter.htmlhttp://www.ietf.org/html.charters/sip-charter.htmlhttp://www.cs.columbia.edu/~hgs/sip/http://www.cs.columbia.edu/~hgs/sip/http://www.ietf.org/html.charters/sip-charter.htmlhttp://www.ietf.org/html.charters/sip-charter.htmlhttp://www.ietf.org/html.charters/sip-charter.html
  • 7/28/2019 1voipoverview-090907045814-phpapp01

    29/66

    H.323

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    30/66

    Version 2 - March 9, 2001 30

    What is H.323?

    Describes terminals and other entities that

    provide multimedia communications servicesover Packet Based Networks (PBN) which maynot provide a guaranteed Quality of Service.H.323 entities may provide real-time audio,

    video and/or data communications.

    ITU-T Recommendation H.323 Version 4

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    31/66

    Version 2 - March 9, 2001 31

    H.323 Framework

    H.323 defines:

    Call establishment and teardown.

    Audio visual or multimedia conferencing.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    32/66

    Version 2 - March 9, 2001 32

    H.323 Components

    Terminal GatewayPacket Based

    Networks

    MultipointControl Unit

    Gatekeeper

    Circuit Switched

    Networks

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    33/66

    Version 2 - March 9, 2001 33

    H.323 Terminals

    H.323 terminals are client endpoints thatmust support:

    H.225 call control signaling.

    H.245 control channel signaling.

    RTP/RTCP protocols for media packets.

    Audio codecs.

    Video codecs support is optional.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    34/66

    Version 2 - March 9, 2001 34

    H.323 Gateway

    A gateway provides translation:

    For example, a gateway can providetranslation between entities in a packet

    switched network (example, IP network) andcircuit switched network (example, PSTNnetwork).

    Gateways can also provide transmission

    formats translation, communicationprocedures translation, H.323 and non-H.323endpoints translations or codec translation.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    35/66

    Version 2 - March 9, 2001 35

    H.323 Gatekeepers

    Gatekeepers provide these functions:

    Address translation.

    Admission control.

    Bandwidth control.

    Zone management.

    Call control signaling (optional).

    Call authorization (optional).

    Bandwidth management (optional).

    Call management (optional).

    Gatekeepers are optional but if present in a H.323 system, allH.323 endpoints must register with the gatekeeper and receivepermission before making a call.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    36/66

    Version 2 - March 9, 2001 36

    H.323 Multipoint Control Unit

    MCU provide support for conferences ofthree or more endpoints.

    An MCU consist of:

    Multipoint Controller (MC) provides controlfunctions.

    Multipoint Processor (MP) receives and

    processes audio, video and/or data streams.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    37/66

    Version 2 - March 9, 2001 37

    H.323 is an UmbrellaSpecification

    Call Control and Signaling

    H.245 - Capabilities advertisement, mediachannel establishment, and conferencecontrol.

    H.225

    Q.931 - call signaling and call setup.

    RAS - registration and other admission

    control with a gatekeeper.

    Call Control and

    Signaling

    Data/FaxMedia

    IP

    UDP

    RTP

    Audio

    Codec

    G.711

    G.723

    G.729

    Video

    Codec

    H.261

    H.263RTCP

    H.225

    Q.931

    H.225

    RASH.245T.120 T.38

    TCP TCPUDPTCP

    Data/Fax

    T.120 Data conferencing.

    T.38 Fax.

    Media

    H.261 and H.263 Video codecs.

    G.711, G.723, G.729 Audio codecs.

    RTP/RTCP Media.

    H.323

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    38/66

    Version 2 - March 9, 2001 38

    Other ITU H. Recommendationthat work with H.323

    Protocol Description

    H.235 Specifies security and encryption for H.323 and H.245 based terminals.

    H.450.N H.450.1 specifies framework for supplementary services. H.450.Nrecommendation specifies supplementary services such as call transfer,call diversion, call hold, call park, call waiting, message waitingindication, name identification, call completion, call offer, and callintrusion.

    H.246 Specifies internetworking of H Series terminals with circuit switchedterminals.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    39/66

    Version 2 - March 9, 2001 39

    H.323 Components andSignaling

    H.245 A protocol for capabilities advertisement, media channel establishment and conferencecontrol.

    H.225 - Call Control.

    - Q.931 A protocol for call control and call setup.

    - RAS Registration, admission and status protocol used for communicating between anH.323 endpoint and a gatekeeper.

    PSTN

    Gatekeeper

    Terminal

    H.225/RAS messagesover RAS channel

    GatewayH.245 messages overcall control channel

    H.225/Q.931 messages overcall signaling channel

    H.225/RAS messagesover RAS channel

    H.225/Q.931 (optional) H.225/Q.931 (optional)

    H.245 messages (optional) H.245 messages (optional)

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    40/66

    Version 2 - March 9, 2001 40

    Process for EstablishingCommunication

    Establishing communication using H.323may occurs in five steps:

    1. Call setup.

    2. Initial communication and capabilitiesexchange.

    3. Audio/video communication establishment.

    4. Call services.

    5. Call termination.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    41/66

    Version 2 - March 9, 2001 41

    Simplified H.323 Call Setup

    Both endpoints have previouslyregistered with the gatekeeper.

    Terminal A initiate the call to thegatekeeper. (RAS messages areexchanged).

    The gatekeeper provides

    information for Terminal A tocontact Terminal B.

    Terminal A sends a SETUPmessage to Terminal B.

    Terminal B responds with a CallProceeding message and also

    contacts the gatekeeper forpermission.

    Terminal B sends a Alerting andConnect message.

    Terminal B and A exchange H.245messages to determine master

    slave, terminal capabilities, andopen logical channels.

    Terminal A Gatekeeper Terminal B

    RAS messages

    Call Signaling Messages

    1. ARQ

    2. ACF

    5. ARQ

    6. ACF

    3. SETUP

    4. Call Proceeding

    7.Alerting

    8.Connect

    H.245 Messages

    RTP Media Path

    Note: This diagram only illustrates a simplepoint-to-point call setup where call signaling isnot routed to the gatekeeper. Refer to the H.323recommendation for more call setup scenarios.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    42/66

    Version 2 - March 9, 2001 42

    Versions of H.323

    Version Reference for key feature summary

    H.323 Version 3 http://www.packetizer.com/iptel/h323/whatsnew_v3.html

    Date

    H.323 Version 1 New release. Refer to the specification.

    http://www.packetizer.com/iptel/h323/

    May 1996

    H.323 Version 2 http://www.packetizer.com/iptel/h323/whatsnew

    _v2.html

    January 1998

    September 1999

    H.323 Version 4 November 2000 http://www.packetizer.com/iptel/h323/whatsnew_v4.html

    http://www.packetizer.com/iptel/h323/whatsnew_v3.htmlhttp://www.packetizer.com/iptel/h323/whatsnew_v3.htmlhttp://www.packetizer.com/iptel/h323/whatsnew_v2.htmlhttp://www.packetizer.com/iptel/h323/whatsnew_v2.htmlhttp://www.packetizer.com/iptel/h323/whatsnew_v2.htmlhttp://www.packetizer.com/iptel/h323/whatsnew_v4.htmlhttp://www.packetizer.com/iptel/h323/whatsnew_v4.htmlhttp://www.packetizer.com/iptel/h323/whatsnew_v4.htmlhttp://www.packetizer.com/iptel/h323/whatsnew_v4.htmlhttp://www.packetizer.com/iptel/h323/whatsnew_v2.htmlhttp://www.packetizer.com/iptel/h323/whatsnew_v2.htmlhttp://www.packetizer.com/iptel/h323/whatsnew_v2.htmlhttp://www.packetizer.com/iptel/h323/whatsnew_v3.htmlhttp://www.packetizer.com/iptel/h323/whatsnew_v3.html
  • 7/28/2019 1voipoverview-090907045814-phpapp01

    43/66

    Version 2 - March 9, 2001 43

    References

    For more information on H.323 refer to:

    ITU-T

    http://www.itu.int/itudoc/itu-t/rec/index.html

    Packetizer

    http://www.packetizer.com/iptel/h323/

    Open H.323

    http://www.openH323.org

    http://www.itu.int/itudoc/itu-t/rec/index.htmlhttp://www.packetizer.com/iptel/h323/http://www.openh323.org/http://www.openh323.org/http://www.packetizer.com/iptel/h323/http://www.itu.int/itudoc/itu-t/rec/index.htmlhttp://www.itu.int/itudoc/itu-t/rec/index.htmlhttp://www.itu.int/itudoc/itu-t/rec/index.html
  • 7/28/2019 1voipoverview-090907045814-phpapp01

    44/66

    SIP and H.323

    Comparing

    C i SIP d H 323

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    45/66

    Version 2 - March 9, 2001 45

    Comparing SIP and H.323 -Similarities

    Functionally, SIP and H.323 are similar. Both SIPand H.323 provide:

    Call control, call setup and teardown.

    Basic call features such as call waiting, callhold, call transfer, call forwarding, call return,call identification, or call park.

    Capabilities exchange.

    C i SIP d H323

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    46/66

    Version 2 - March 9, 2001 46

    Comparing SIP and H.323 -Strengths

    H.323 Defines sophisticated multimediaconferencing. H.323 multimedia conferencing cansupport applications such as whiteboarding, datacollaboration, or video conferencing.

    SIP Supports flexible and intuitive feature creationwith SIP using SIP-CGI (SIP-Common GatewayInterface) and CPL (Call Processing Language).

    SIP Third party call control is currently only

    available in SIP. Work is in progress to add thisfunctionality to H.323.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    47/66

    Version 2 - March 9, 2001 47

    Table 1 - SIP and H.323

    H.323SIP

    ITU.IETF.

    Peer-to-Peer.Peer-to-Peer.

    Telephony based. Borrows callsignaling protocol from ISDNQ.SIG.

    Internet based and web centric.Borrows syntax and messagesfrom HTTP.

    Intelligent H.323 terminals.Intelligent user agents.

    H.323 Gatekeeper.SIP proxy, redirect, location, andregistration servers.

    Widespread.Interoperability testing betweenvarious vendors products isongoing at SIP bakeoffs.

    SIP is gaining interest.

    Information

    Standards Body

    Relationship

    Origins

    Client

    Core servers

    Current

    Deployment

    Interoperability IMTC sponsors interoperability events among SIP, H.323, and MGCP.For more information, visit: http://www.imtc.org/

    http://www.imtc.org/http://www.imtc.org/
  • 7/28/2019 1voipoverview-090907045814-phpapp01

    48/66

    Version 2 - March 9, 2001 48

    Table 2 - SIP and H.323

    Information H.323SIP

    CapabilitiesExchange

    Supported by H.245 protocol.H.245 provides structure fordetailed and precise informationon terminal capabilities.

    SIP uses SDP protocol forcapabilities exchange. SIP doesnot provide as extensivecapabilities exchange as H.323.

    ControlChannelEncoding Type

    Binary ASN.1 PER encoding.Text based UTF-8 encoding.

    ServerProcessing

    Version 1 or 2 Stateful.

    Version 3 or 4 Stateless orstateful.

    Stateless or stateful.

    Quality ofService

    Bandwidth management/controland admission control is managedby the H.323 gatekeeper.

    The H323 specificationrecommends using RSVP forresource reservation.

    SIP relies on other protocols suchas RSVP, COPS, OSP toimplement or enforce quality ofservice.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    49/66

    Version 2 - March 9, 2001 49

    Table 3 - SIP and H.323

    Information H.323SIP

    Security Registration - If a gatekeeper ispresent, endpoints register andrequest admission with thegatekeeper.

    Authentication and Encryption -

    H.235 provides recommendationsfor authentication and encryptionin H.323 systems.

    Registration - User agentregisters with a proxy server.

    Authentication - User agentauthentication uses HTTP

    digest or basic authentication.Encryption - The SIP RFCdefines three methods ofencryption for data privacy.

    EndpointLocation and

    Call Routing

    Uses E.164 or H323ID alias and aaddress mapping mechanism if

    gatekeepers are present in theH.323 system.

    Gatekeeper provides routinginformation.

    Uses SIP URL for addressing.

    Redirect or location servers

    provide routing information.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    50/66

    Version 2 - March 9, 2001 50

    Table 4 SIP and H.323

    Information H.323SIP

    Features Basic call features.Basic call features.

    Conferencing Basic conferencing withoutconference or floor control.

    Comprehensive audiovisualconferencing support.

    Data conferencing orcollaboration defined by T.120specification.

    Service orFeature

    Creation

    Supports flexible and intuitivefeature creation with SIP usingSIP-CGI and CPL.

    Some example features includepresence, unified messaging, orfind me/follow me.

    H.450.1 defines a framework forsupplementary service creation.

    Note: Basic call features include: call hold, call waiting, call transfer, call

    forwarding, caller identification, and call park.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    51/66

    Version 2 - March 9, 2001 51

    Reference

    This section cites a document that provides acomprehensive comparison on H.323 and SIP:

    Dalgic, Ismail. Fang, Hanlin. Comparison

    of H.323 and SIP for IP TelephonySignaling in Proc. of Photonics East,(Boston, Massachusetts), SPIE, Sept.1999.

    http://www.cs.columbia.edu/~hgs/papers/others/Dalg9909_Comparison.pdf

    http://www.cs.columbia.edu/~hgs/papers/others/%20Dalg9909_Comparison.pdfhttp://www.cs.columbia.edu/~hgs/papers/others/%20Dalg9909_Comparison.pdfhttp://www.cs.columbia.edu/~hgs/papers/others/%20Dalg9909_Comparison.pdfhttp://www.cs.columbia.edu/~hgs/papers/others/%20Dalg9909_Comparison.pdf
  • 7/28/2019 1voipoverview-090907045814-phpapp01

    52/66

    MGCP

    Media Gateway Control

    Protocol

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    53/66

    Version 2 - March 9, 2001 53

    What is MGCP?

    Media Gateway Control Protocol - A

    protocol for controlling telephonygateways from external call controlelements called media gatewaycontrollers or call agents.

    IETF RFC 2705 Media Gateway Control Protocol

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    54/66

    Version 2 - March 9, 2001 54

    Components

    Call agentor media gatewaycontroller

    Provides call signaling, controland processing intelligence tothe gateway.

    Sends and receivescommands to/from thegateway.

    Gateway

    Provides translations betweencircuit switched networks andpacket switched networks.

    Sends notification to the callagent about endpoint events.

    Execute commands from thecall agents.

    Call Agent or

    Media Gateway

    Controller

    (MGC)

    Call Agent or

    Media Gateway

    Controller

    (MGC)

    SIP

    H.323

    MGCP MGCP

    Media Gateway

    (MG)

    Media Gateway

    (MG)

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    55/66

    Version 2 - March 9, 2001 55

    Simplified Call Flow

    When Phone A goes offhookGateway A sends a signal tothe call agent.

    Gateway A generates dial toneand collects the dialed digits.

    The digits are forwarded to

    the call agent. The call agent determines

    how to route the call.

    The call agent sendscommands to Gateway B.

    Gateway B rings phone B.

    The call agent sendscommands to both gatewaysto establish RTP/RTCPsessions.

    Gateway A Gateway B

    Analog

    Phone AAnalog

    Phone B

    Call AgentMedia Gateway Controller

    MGCP MGCP

    RTP/RTCP

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    56/66

    Version 2 - March 9, 2001 56

    MGCP Commands

    Call AgentCommands:

    EndpointConfiguration

    NotificationRequest CreateConnection

    ModifyConnection

    DeleteConnection

    AuditEndpoint

    AuditConnection

    Gateway Commands:

    Notify

    DeleteConnection

    RestartInProgress

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    57/66

    Version 2 - March 9, 2001 57

    Characteristics of MGCP

    MGCP:

    A master/slave protocol.

    Assumes limited intelligence at the edge(endpoints) and intelligence at the core (callagent).

    Used between call agents and media gateways.

    Differs from SIP and H.323 which are peer-to-peerprotocols.

    Interoperates with SIP and H.323.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    58/66

    Version 2 - March 9, 2001 58

    MGCP, SIP and H.323

    MGCP divides call setup/controland media establishmentfunctions.

    MGCP does not replace SIP orH.323. SIP and H.323 providesymmetrical or peer-to-peer callsetup/control.

    MGCP interoperates with H.323and SIP. For example,

    A call agent accepts SIP or H.323call setup requests.

    The call agent uses MGCP tocontrol the media gateway.

    The media gateway establishesmedia sessions with other H.323or SIP endpoints.

    Call Agent/Media

    GatewayController

    MediaGateway

    MGCP

    H.323 Gateway

    H.323

    Gateway

    H.323

    Media RTP/RTCP

    In this example, an H.323 gateway isdecomposed into:

    A call agent that provides signaling.

    A gateway that handles media.

    MGCP protocol is used to control thegateway.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    59/66

    Version 2 - March 9, 2001 59

    Example Comparison

    MGCP1. A user picks up analog phone and dials a

    number.

    2. The gateway notifies call agent of the phone(endpoint) event.

    3. The Call agent determines capabilities,routing information, and issues a commandto the gateways to establish RTP/RTCPsession with other end.

    H.323

    Gateway H.323GatewayAnalog

    PhoneAnalog

    Phone

    Gateway A Gateway B

    Analog

    Phone

    Call Agent/Media

    GatewayController

    RTP/RTCP

    Analog

    Phone

    H.3231. A user picks up analog phone and

    dials a number.

    2. The gateway determines how toroute the call.

    3. The two gateways exchangecapabilities information.

    4. The terminating gateway rings thephone.

    5. The two gateways establishRTP/RTCP session with each other.

    5.RTP/RTCP

    1

    3

    4

    1

    2

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    60/66

    Version 2 - March 9, 2001 60

    What is Megaco?

    A protocol that is evolving from MGCP and developedjointly by ITU and IETF:

    Megaco - IETF.

    H.248 or H.GCP - ITU.

    For more information refer to:

    IETF - http://www.ietf.org/html.charters/megaco-

    charter.html Packetizer - http://www.packetizer.com/iptel/h248/

    http://www.ietf.org/html.charters/megaco-charter.htmlhttp://www.ietf.org/html.charters/megaco-charter.htmlhttp://www.packetizer.com/iptel/h248/http://www.packetizer.com/iptel/h248/http://www.ietf.org/html.charters/megaco-charter.htmlhttp://www.ietf.org/html.charters/megaco-charter.htmlhttp://www.ietf.org/html.charters/megaco-charter.html
  • 7/28/2019 1voipoverview-090907045814-phpapp01

    61/66

    Version 2 - March 9, 2001 61

    References

    For more information on MGCP refer to:

    IETF

    http://www.ietf.org/rfc/rfc2705.txt?number=2705

    http://www.ietf.org/rfc/rfc2705.txt?number=2705http://www.ietf.org/rfc/rfc2705.txt?number=2705
  • 7/28/2019 1voipoverview-090907045814-phpapp01

    62/66

    Summary

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    63/66

    Version 2 - March 9, 2001 63

    Summary

    SIP and H.323 are comparable protocols thatprovide call setup, call teardown, call control,capabilities exchange, and supplementaryfeatures.

    MGCP is a protocol for controlling mediagateways from call agents. In a VoIP system,MGCP can be used with SIP or H.323. SIP orH.323 will provide the call control functionalityand MGCP can be used to manage mediaestablishment in media gateways.

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    64/66

    Additional References

  • 7/28/2019 1voipoverview-090907045814-phpapp01

    65/66

    Version 2 - March 9, 2001 65

    General VoIP Reference

    Pulver IP Telephony News

    http://www.pulver.com

    Internet Telephony

    http://www.internettelephony.com

    An overview poster of the SIP, MGCP,and H323 protocols.

    http://www.protocols.com/voip/posvoip.pdf

    http://www.pulver.com/http://www.internettelephony.com/http://www.protocols.com/voip/posvoip.pdfhttp://www.protocols.com/voip/posvoip.pdfhttp://www.internettelephony.com/http://www.pulver.com/
  • 7/28/2019 1voipoverview-090907045814-phpapp01

    66/66

    End of Module

    This is the end of theVoIP ProtocolOverview trainingmodule.

    For additional trainingand documentationvisit us at

    www.vovida.org.