Top Banner
TSIN02 - Internetworking © 2004 Image Coding Group, Linköpings Universitet Lecture 9: SIP and H323 Literature: SIP: Protocol Overview (by Radvision) RFC3261 (SIP) pp. 1-20 IP Telephony Cookbook, Section 2.2-2.2.3 Forouzan 3 rd ed. Section 25.8 SIP vs. H.323, A Business Analysis, Wind River White paper (optional extra material)
40

TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

Jul 28, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

© 2004 Image Coding Group, Linköpings Universitet

Lecture 9: SIP and H323

Literature:● SIP: Protocol Overview (by Radvision)

● RFC3261 (SIP) pp. 1-20

● IP Telephony Cookbook, Section 2.2-2.2.3

● Forouzan 3rd ed. Section 25.8

● SIP vs. H.323, A Business Analysis, Wind River White paper (optional extra material)

Page 2: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

2

Lecture 8: SIP and H323 Goals: After this lecture you should

● Understand the basics of SIP and it's architecture● Understand H.323 and how it compares to SIP● Understand MGCP (MEGACO/H.248)

Page 3: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

3

Lecture 8: SIP and H323

Outline:

● Introduction – Voice over IP

● SIP

● H.323

● MEGACO/H.248

Page 4: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

4

Introduction – Voice over IP● Telephony services can now be provided over IP

networks. ● An IP telephony system needs:

– Signaling protocols that can locate users, set up, modify and tear down calls.

– SIP, H.323

– Media transport protocols for transmission of packetized audio/video.

● RTP, TCP and UDP

– Supporting protocols to provide QoS, security etc.● DNS, TRIP, RSVP, DIAMETER...

Page 5: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

5

SIP

“Session Initiation Protocol - An application layer control protocol that can establish, modify, and terminate multimedia sessions (conferences) such as Internet telephony.” - IETF RFC3261

Page 6: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

6

SIP - Facets● User location: Determination of the end system to be used for

communication● User availability: Determination of the willingness of called party

to communicate● User capabilities: Determination of the media and parameters

to be used● Session setup: “ringing”, establishment of session parameters

at both called and calling party● Session management: including transfer and termination of

sessions, modifying session parameters, and invoking services

Page 7: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

7

SIP - Features● Based on HTTP-like request/response transaction model● Client request invokes function on server

– At least one response

● Uses most HTTP header fields, encoding rules, and status codes– Readable format for displaying information

● Uses concepts similar to recursive and iterative searches of DNS

● Incorporates Session Description Protocol (SDP)– Defines session content using types similar to MIME

Page 8: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

8

SIP – Transport Layer● SIP typically runs on UDP for performance

– Own reliability mechanisms

– May also use TCP

– May use Transport Layer Security (TLS) protocol for secure connection

Page 9: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

9

SIP - functionality● “SIP is a component that can be used with other IETF

protocols to build a complete multimedia architecture.”– RTP – transports real time data and provides QoS

feedback– RTSP – controls delivery of streaming media.– MEGACO – controls gateways to the Public

Switched Telephone Network (PSTN).– SDP – describes multimedia sessions

Page 10: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

10

SIP – Components

Redirect Server

Location Server

Registrar Server

User AgentProxy Server

Gateway

PSTN

SIP Components

Proxy Server

Page 11: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

11

User Agents● Clients – send SIP requests (initiates a call) and

receive responses.● Servers – receive SIP requests and send responses● Both servers and clients can terminate calls

Page 12: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

12

Proxy Server● Acts as both a server and a client.● Responds to requests directly or passes them on to

other servers.● Interprets, rewrites or translates a request before

forwarding it.

Page 13: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

13

Location Server● Provides information about a called party's possible

location(s)

Page 14: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

14

Redirect Server● Used when a user cannot be found at his/her normal

address.● Returns zero or more new addresses to the client.● Does not initiate its own SIP requests.● Does not accept or terminate calls.

Page 15: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

15

Registrar Server● Accepts register requests and uses the received

information to update data at a location server.● May support authentication● Typically co-located with a proxy or redirect server

and may offer location services.

Page 16: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

16

SIP Messages

SIP Methods:– INVITE – Initiates a call by

inviting user to participate in session.

– ACK - Confirms that the client has received a final response to an INVITE request.

– BYE - Indicates termination of the call.

– CANCEL - Cancels a pending request.

– REGISTER – Registers the user agent.

– OPTIONS – Used to query the capabilities of a server.

– INFO – Used to carry out-of-bound information, 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:

Page 17: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

17

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.0Via: SIP/2.0/UDP 192.168.6.21:5060From: sip:[email protected]: <sip:[email protected]>Call-ID: [email protected]: 100 INVITEExpires: 180User-Agent: Cisco IP Phone/ Rev. 1/ SIP enabledAccept: application/sdpContact: sip:[email protected]:5060Content-Type: application/sdp

Page 18: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

18

SIP Addressing

– The SIP address is identified by a SIP URI, in the format: user@host.

– Examples of SIP URI:s:● sip:[email protected]● sip:[email protected]● sip:[email protected]

Page 19: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

19

Communication Establishement

Establishing communication using SIP usually occurs in 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 response message to indicate willingness to communicate – accept or reject.

4. Call setup.5. Call modification or handling – example, call transfer (optional).6. Call termination.

Page 20: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

20

Registration

– Each time a user turns on the SIP user client (SIP IP Phone, PC, or other SIP device), the client registers with the proxy/registration server.

– Registration can also occur when the SIP user client needs to inform the proxy/registration server of its location.

– The registration information is periodically refreshed and each user client must re-register with the proxy/registration server.

– Typically the proxy/registration server will forward this information to be saved in the location/redirect server.

SIP Messages:REGISTER – Registers the address listed in the To header field.200 – OK.

Proxy/ Registration Server

SIP PhoneUser

Location/Redirect Server

REGISTER REGISTER

200200

Page 21: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

21

Example

Page 22: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

22

Example

Figure from Forouzan

Page 23: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

23

Design Framework

SIP was designed for:– Integration with existing IETF protocols.– Scalability and simplicity.– Mobility.– Easy feature and service creation.

Page 24: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

24

Features

SIP can support these features and applications:– Basic call features (call waiting, call forwarding, call

blocking etc.).– Unified messaging.– Call forking.– Click to talk.– Presence.– Instant messaging.– Find me / Follow me.

Page 25: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

25

H.323

“Describes terminals and other entities that provide multimedia communications services over Packet Based Networks (PBN) which may not 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

Page 26: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

26

H.323 Framework

H.323 defines:– Call establishment and teardown.– Audio visual or multimedia conferencing.

Page 27: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

27

H.323 Overview● H.323 is an umbrella recommendation from the

International Telecommunications Union (ITU) that sets standards for multimedia communications over Local Area Networks (LANs) that do not provide a guaranteed Quality of Service.

Page 28: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

28

H.323 Components

Terminal Gateway

Packet Based

Networks

Multipoint Control Unit

Gatekeeper

Circuit Switched

Networks

Page 29: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

29

Terminals

H.323 terminals are client endpoints that must support:– H.225 call control signaling.– H.245 control channel signaling.– RTP/RTCP protocols for media packets.– Audio codecs.

Video codecs support is optional.

Page 30: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

30

Gateway

A gateway provides translation:– For example, a gateway can provide

translation between entities in a packet switched network (example, IP network) and circuit switched network (example, PSTN network).

– Gateways can also provide transmission formats translation, communication procedures translation, H.323 and non-H.323 endpoints translations or codec translation.

Page 31: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

31

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, all H.323 endpoints must register with the gatekeeper and receive permission before making a call.

Page 32: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

32

Multipoint Control Unit

MCU:s provide support for conferences between three or more endpoints.

An MCU consist of:– Multipoint Controller (MC) – provides control

functions.– Multipoint Processor (MP) – receives and

processes audio, video and/or data streams.

Page 33: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

33

Umbrella specification

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/FaxT.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

Call Control and SignalingH.245 - Capabilities advertisement,

media channel establishment, and conference control.

H.225

Q.931 - call signaling and call setup.

RAS - registration and other admission control with a gatekeeper.

Page 34: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

34

Communication Establishment

Establishing communication in H.323 is done in five steps:

1. Call setup.

2. Initial communication and capabilities exchange.

3. Audio/video communication establishment.

4. Call services (media communication).

5. Call termination.

Page 35: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

35

Comparing SIP and H323

Functionally, SIP and H.323 are similar. Both SIP and H.323 provide:– Call control, call setup and teardown.– Basic call features such as call waiting, call

hold, call transfer, call forwarding, call return, call identification, or call park.

– Capabilities exchange.

Page 36: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

36

Comparison – different strengths

– H.323 – Defines sophisticated multimedia conferencing. H.323 multimedia conferencing can support applications such as whiteboarding, data collaboration, or video conferencing.

– SIP – Supports flexible and intuitive feature creation with SIP using SIP-CGI (SIP-Common Gateway Interface) and CPL (Call Processing Language).

– SIP – Third party call control is currently only available in SIP. Work is in progress to add this functionality to H.323.

Page 37: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

37

MGCP

Call agent or media gateway controller– Provides call signaling,

control and processing intelligence to the gateway.

– Sends and receives commands to/from the gateway.

Gateway– Provides translations

between circuit switched networks and packet switched networks.

– Sends notification to the call agent about endpoint events.

– Execute commands from the call agents.

Call Agent or Media Gateway

Controller(MGC)

Call Agent or Media Gateway

Controller(MGC)

SIPH.323

MGCP MGCP

Media Gateway(MG)

Media Gateway(MG)

Page 38: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

38

MGCP Characteristics

MGCP:– A master/slave protocol.

● Assumes limited intelligence at the edge (endpoints) and intelligence at the core (call agent).

● Used between call agents and media gateways.● Differs from SIP and H.323 which are peer-to-

peer protocols.– Interoperates with SIP and H.323.

Page 39: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

39

MEGACO/H.248A protocol that is evolving from MGCP and developed jointly by

ITU and IETF:

– Megaco - IETF.

– H.248 or H.GCP - ITU.

Page 40: TSIN02 - Internetworking · 2007-03-19 · TSIN02 - Internetworking 4 Introduction – Voice over IP Telephony services can now be provided over IP networks. An IP telephony system

TSIN02 - Internetworking

40

Summary● SIP and H.323 are comparable protocols that provide

call setup, call teardown, call control, capabilities exchange, and supplementary features.

● MGCP is a protocol for controlling media gateways from call agents. In a VoIP system, MGCP can be used with SIP or H.323. SIP or H.323 will provide the call control functionality and MGCP can be used to manage media establishment in media gateways.