sip 逄愛君 ijpong@pcs.csie.nctu.edu.tw. sip&sdp2 industrial technology research institute...

Post on 21-Dec-2015

235 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

SIP

逄愛君ijpong@pcs.csie.nctu.edu.tw

SIP&SDP 2

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

Outline SIP Overview SIP Components SIP Messages SIP Services SDP Conclusion

SIP&SDP 3

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

SIP Overview Session Initiation Protocol

The signaling protocol for creating, modifying and terminating sessions

Session=audio, video… IETF Proposed Standard (RFC 2543)

February 2, 1999 Currently under development within the Multiparty

Multimedia Session Control (MMUSIC) working group

SIP&SDP 4

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

SIP Overview 15 Companies test interoperability between their equi

pment April 1999 3Com, Alcatel, Cisco, British, British Telecom, Col

umbia University, Dialogic, Ericsson, HP, Lucent, MCI, Nortel,…

SIP Architecture

SIP&SDP 6

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

SIP’s Role

to SS7

Signaling Gateway

Signaling Gateway

MediaGateway

Controller

MediaGateway

Controller MGCMGC

SGSG

SIPProxy

SIPProxy

RTP

Megaco

IP Network

to PSTN

SIPsigtran

MediaGateway

MediaGateway Media

Gateway

MediaGateway

SIPClient

SIPClient

sigtran

Megaco

to PSTN

to SS7

SIP&SDP 7

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

SIP Overview Client-Server Model Flexibility & Extensibility

Text-based Encoding Transport Independence

UDP or TCP Security

Secure Sockets Layer (SSL) for TCP-based SIP

SIP&SDP 8

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

SIP Components User Agents

Client (UAC) To initiate a SIP request

Server (UAS) To receive the request and return responses

Servers Proxy Redirect Registrar

SIP&SDP 9

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

Addressing & Naming The entities addressed by SIP are users at host

s email-like identifier of the form user@host

Examples sip:patrik@example.com sip:beagleboy@176.7.6.1

SIP&SDP 10

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

SIP Messages Two kinds of SIP messages

Request and Response Request message format

Request Line Method, Request URI, Version

General, Request, Entity Headers An Empty Line (CRLF)

Indicating the end of the header fields Message Body

Session Description Protocol (SDP) : Optional

SIP&SDP 11

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

SIP Messages(cont’d)

Response message format Start-line

Status-Line General, Response, Entity Headers An Empty Line (CRLF)

Indicating the end of the header fields Message Body

Session Description Protocol (SDP) : Optional

SIP&SDP 12

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

Methods INVITE

The user is being invited to participate in a session.

ACK The request confirms that the client has received a

final response to an INVITE request. BYE

The client wishes to release the call.

SIP&SDP 13

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

Methods (cont’d) OPTIONS

It queries the features the other side supports. CANCEL

It cancels a pending request (not completed request).

REGISTER It conveys the user’s location information to a SIP

server.

SIP&SDP 14

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

Header Fields General

Apply to both request and response messages Entity

Define information about the message body Request

Allow the user agent client to pass additional information about the request

Response Allow the user agent server to pass additional

information about the response

SIP&SDP 15

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

SIP HeadersGeneral-headers Entity-headers Request-headers Response-headers

Call-ID Content-Encoding Accept AllowContact Content-Length Accept-Encoding Proxy-

AuthenticationCseq Content-Type Accept-Language UnsupportedDate Authorization Warning

Encryption HideExpires Max-ForwardsFrom Organization

Record-Route PriorityTo Proxy-AuthenticationVia Proxy-Require

RequireResponse-Key

SubjectUser-Agent

SIP&SDP 16

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

SIP Request Example

INVITE sip:pgn@example.se SIP/2.0

Via: SIP/2.0/UDP science.fiction.com

From: Fingal <sip:ffl@fiction.com>

To: Patric <sip:pgn@example.se>

Call-ID: 1234567890@science.fiction.com

Cseq: 1 INVITE

Subject: lunch at La Empenada?

Content-Type: applcation/sdp

Content-Length: …

SIP&SDP 17

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

Response

1xx Informational Provisional

2xx Success Final

3xx Redirection Final

4xx Client Error Final

5xx Server Error Final

6xx Global Failure Final

SIP&SDP 18

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

Response (cont’d)100 Continue

180 Ringing

200 OK

300 Multiple Choices

301 Moved Permanently

302 Moved Temporarily

400 Bad Request

403 Forbidden

408 Request Timeout

480 Temporarily Not Available

481 Invalid Call ID

482 Loop Detected

5xx Server Error

600 Busy

604 Does Not Exist

606 Not Acceptable

SIP&SDP 19

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

SIP Response ExampleSIP/2.0 200 OK

Via: SIP/2.0/UDP sippo.example.se

Via: SIP/2.0/UDP science.fiction.com

From: Fingal <sip:ffl@fiction.com>

To: Patric <sip:pgn@example.se>

Call-ID: 1234567890@science.fiction.com

Cseq: 1 INVITE

Content-Type: applcation/sdp

Content-Length: …

SIP&SDP 20

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

Invitation for SIP Proxy

ffl@ fiction.com

science.fiction.com

fiction.com

example.com

location server

sippo

pepperoni(1) INVITE

pgn@ example.se

(7) 200 OK

(8) ACK pgn@ example.se(2

) p

gn

(3)

pg

n@

pep

per

on

i

(4) INVITE pgn@ pepperoni

(6) 200 OK

(9) ACK pgn@ pepperoni

pgn@ pepperoni

(5)

SIP&SDP 21

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

Invitation for Redirect Server

ffl@ fiction.com

science.fiction.com

fiction.com

example.com

location server

sippo

pepperoni

(1) INVITEpgn@ example.se

(4) 302 Moved temporarilyContact: pgn@ pepperoni.exam ple.se

(5) ACK pgn@ example.se

(2)

pg

n

(3)

pg

n@

pep

pero

ni

pgn@ pepperoni

(6) INVITE pgn@ pepperoni.example.se

(7) 200 OK

(8) ACK pgn@ pepperoni.example.se

SIP&SDP 22

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

SIP+ISDN (Q.931)

SIP+MGCP

SIP / MGCP / ISUP

Telephone

To SS7

CA CAIAM Create Conn

Invite

Create Conn

ACK IAM

ACMRinging

ACM

ANM200 O K

ACKANM

ACK

Telephone

MGCP

MGCP

GatewayCA

CA

To SS7

Gateway

IP

ACKM odify Conn

G W G W

SS7 SS7M G C P M G C PSIP

R TP Audio

SIP&SDP 25

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

SIP Services

Similar to the Intelligent Network (IN) services Call Transfer, Call Forwarding, Conference

Calling, User Mobility…

SIP Mobility

SIP&SDP 27

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

Conclusion SIP is a light-weight signaling protocol. The amount of companies backing SIP is crucia

l for survival. MCI (the biggest backer), 3Com, Lucent and Dy

namicSoft… The low complexity level of the SIP, compared t

o H.323 (H.245 & H.225), should make companies interested.

3G Wireless Technology 3GPP-> H.323 3GIP->SIP

SIP&SDP 28

Industrial Technology Research InstituteComputer & Communication Research Laboratories

Elgin Pang

Discussion

top related