PowerPoint 프레젠테이션
Download
Report
Transcript PowerPoint 프레젠테이션
SIP Overview
Contents
What is Sip?
SIP Benefits
SIP message structure
SIP components
SIP mobility
SIP
2
What is SIP?
Sip is signaling protocol defined by the Internet
Engineering Task Force (IETF) for initiating,
managing and terminating voice and video
sessions across packet networks
A textual based client-server protocol
Application layer protocol
It’s not Transport Protocol
It’s not QoS Reservation Protocol
SIP
3
SIP history
Work began in 1995 in IETF mmusic WG
03/1999: RFC 2543, 153 pages, 6 methods
11/1999: SIP WG formed
11/2000: draft-ietf-sip-rfc2543bis-02, 171 pages,
6 methods
SIP
4
SIP benefits
Integration with existing protocols
Integration well with Web(Http) and e-mail(Smtp)
Simplicity
Simple protocol vs H.323
Textual based, so parsing generation are simple
Extensibility
HTTP and SMTP extensibility
Modularity
Initiation,termination,change,user location, basic
registration.
Separating notion of a session to invite a user
Scalability
Off DNS, BGP
Server processing.
SIP
5
SIP Messages
SIP Requests:
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 – bind a permanent address to current
location
OPTIONS – Used to query the capabilities of a
server.
SIP
6
SIP Response Codes
1yz Informational
200 ok
3yz Redirection
300 Multiple Choices
301 Moved Permanently
302 Moved Temporarily
4yz Client error
100 Trying
180 Ringing (processed
locally)
181 Call is Being
Forwarded
2yz Success
5yz Server failure
SIP
400 Bad Request
401 Unauthorized
404 Not Found
405 Method not Allowed
407 Proxy Authentication
Required
415 Unsupported Media
Type
482 Loop Detected
486 Busy Here
500 Server Internal Error
6yz Global Failure
600 Busy Everywhere
7
Invite Message Example
Request Method
Response Status
INVITE sip:[email protected] SIP/2.0
Via: SIP/2.0/UDP here.com:5060
From: BigGuy <sip:[email protected]>
To: LittleGuy <sip:[email protected]>
Message
Call-ID: [email protected]
CSeq: 1 INVITE
Header
Subject: Happy Christmas
Fields
Contact: BigGuy
<sip:[email protected]>
Content-Type: application/sdp
Content-Length: 147
SIP/2.0 200 OK
Via: SIP/2.0/UDP here.com:5060
From: BigGuy <sip:[email protected]>
To: LittleGuy
<sip:[email protected]>;tag=65a35
Call-ID: [email protected]
CSeq: 1 INVITE
Subject: Happy Christmas
Contact: LittleGuy <sip:[email protected]>
Content-Type: application/sdp
Content-Length: 134
v=0
o=UserA 2890844526 2890844526 IN IP4 here.com
s=Session SDP
c=IN IP4 100.101.102.103
t=0 0
m=audio 49172 RTP/AVP 0
a=rtpmap:0 PCMU/8000
v=0
o=UserB 2890844527 2890844527 IN IP4 there.com
s=Session SDP
c=IN IP4 110.111.112.113
t=0 0
m=audio 3456 RTP/AVP 0
a=rtpmap:0 PCMU/8000
Payload
“receive RTP G.711-encoded audio at
SIP
100.101.102.103:49172”
8
Address Header Fields
From: message originator
To: final recipient
Request-URI: current destination; may change along
signaling path
Contact: appears in INVITE / OPTIONS / ACK / REGISTER
requests and in responses. It indicates direct response
address to which subsequent transactions are sent.
A UA may send subsequent BYE or ACK to Contact: address
(unless configured to use an outbound proxy).
It includes redirection address in 3xx and 485 responses.
It includes additional error information in 4xx, 5xx, and 6xx
responses.
It may include preference weights.
It includes current location in REGISTER requests.
Multiple Contact: header fields may be included.
SIP
9
Session Description Protocol (SDP)
Convey sufficient information to
enable participation in a multimedia
session
SDP includes description of:
Session name and purpose
Times the session is active
Media to use
Information where to send and receive
media
Contact information
SIP
10
Session Description Protocol (SDP)
o=sisalem 28908044538 289080890 IN IP4 193.175.132.
118
s=SIP Example
[email protected]
c=IN IP4 126.16.69.4
v=0
t=28908044900 28908045000
m=audio 49170 RTP/AVP 0
a=rtpmap:0 PCMU/8000
SIP
11
SIP Distributed Architecture
SIP Components
H.323
Location
Server
Redirect
Server
Registrar
Server
SIP/H.323 Gateway
PSTN
User Agent
SIP/PSTN Gateway
Proxy
Server
Proxy
Server
SIP
12
SIP Components
User agent(user application)
UA Client(caller)
UA Server(called party)
Proxy Server
Redirect Server
Register
SIP
13
User Agents
An application that initiates, receives
and terminates calls.
User Agent Clients (UAC) – An entity
that initiates a call.
User Agent Server (UAS) – An entity that
receives a call.
Both UAC and UAS can terminate a call.
Both SW and HW available
SIP
14
Proxy Server
An intermediary program that acts as both a
server and a client to make requests on behalf
of other clients.
Requests are serviced internally or by passing
them on, possibly after translation, to other
servers.
Interprets, rewrites or translates a request
message before forwarding it.
Stateless proxy server
No information about the message is stored
Stateful proxy server
Forking
reliability
SIP
15
SIP Operation in Proxy Mode
User [email protected] on left-hand side
is initiating a call to [email protected]
on right-hand side; Callee registered with his
server previously
Location Server
#6
#7
Callee
INVITE sip:[email protected]
From: sip:[email protected]
To: sip: [email protected] #1
Call-ID: [email protected]
Callee@support
#2
#3
INVITE sip:[email protected]
From: sip:[email protected]
To: sip: [email protected]
#4
Call-ID: [email protected]
OK 200
From: sip:[email protected]
Proxy/Registrar
To: sip: [email protected]
Call-ID: [email protected]
OK 200
From: sip:[email protected] #5
To: sip: [email protected]
Call-ID: [email protected]
ACK [email protected]
[email protected]
[email protected]
Media stream #8
SIP
16
Location Server
A location server is used by a SIP
redirect or proxy server to obtain
information about a called party’s
possible location(s).
Locating service
LDAP
SQL
SIP
17
Redirect Server
After location service to look up a user,
location information is sent back to the
caller in a redirection class response,
which concludes the transaction.
Unlike a proxy server, the redirect server
does not forward SIP request.
Unlike a user agent server, the redirect
server does not accept or terminate calls.
SIP
18
SIP Operation in Redirect Mode
Redirect Server/Location Server
Callee
[email protected]
#1 INVITE [email protected]
#4
[email protected]
#2
#3
302 moved temporarily
Contact: [email protected]
Proxy
#5 ACK [email protected]
[email protected]
#6 INVITE [email protected]
#7 OK 200
#8 ACK [email protected]
SIP
19
Registrer Server
A server that accepts REGISTER
requests.
The register server may support
authentication.
A registrer server is typically co-located
with a proxy or redirect server and may
offer location services.
SIP
20
SIP Registration
SIP
21
Simplified SIP Call Setup and Teardown
Proxy Server
User Agent
INVITE
Location/Redirect Server
INVITE
302
(Moved Temporarily)
User Agent
Proxy Server
ACK
INVITE
INVITE
302
(Moved Temporarily)
ACK
Call
Setup
INVITE
180 (Ringing)
200 (OK)
ACK
Media
Path
Call
Teardown
180 (Ringing)
200 (OK)
ACK
180 (Ringing)
200 (OK)
ACK
RTP MEDIA PATH
BYE
BYE
BYE
200 (OK)
200 (OK)
200 (OK)
SIP
22
SIP and Terminal Mobility
Home Network
HP
REGISTER
#2
Cell 2
Signalling
FP
REGISTER
Cell 1
#1
Visited Network
SIP
23
SIP and Terminal Mobility
Home Network
#1
INVITE
HP
#4
#2
INVITE
Cell 2
Signalling
Data
FP
Cell 1
INVITE
#3
Visited Network
SIP
24
SIP and Terminal Mobility
Home Network
HP
reINVITE #3
#1
#4
REGISTER
#3
Cell 2
Signalling
Data
FP
REGISTER
Cell 1
#2
Visited Network
SIP
25
Personal Mobility
[email protected]
Invest: [email protected]
SIP
26