Documente Academic
Documente Profesional
Documente Cultură
tocol (SIP)
2
Motivation
The telephony applications introduced signaling into
IP network
SIP was designed to mimic the call setup and signaling
characteristics of the traditional telephone network ov
er an IP infrastructure
3
Facets of Establishing a Call
4
SIP Protocol Stack
SIP is rather a component that can be used with other IE
TF protocols to build a complete multimedia architecture
.SDP( Session Description
Protocol) for describing
multimedia sessions during
signaling
Re
e SIP Enabled-IP Network qu
I nv it es
t : Re t :I
s s nv
que OK
po ite
ns
Re s e: en
t Ac e:
on k no OK
s p dgm wl
R e le ed
n ow gm
k en
Ac t
IP Network
Media Gateway
Control Protocol
RTP (real time protocol) (MEGACO) for
defines a standardized controlling gateways
packet format for delivering
audio and video over IP SIP/PSTN Gateway
networks
PSTN Network
5
SIP – Transport Layer
TCP
TCP provides a reliable transport layer, but at a cost
of complexity and transmission delay over the network.
UDP
UDP is the simplest way of transmitting chunks of data
from one host to another in an IP network. Provided th
at the amount of data to be sent at once is not too bi
g
SCTP
SCTP preserves boundaries
SCTP avoids head of line blocking
6
SIP Client-Server Architecture Re
gis
ter User Agent – Softphone
User Agent – Hard phone -m
y IP
ad
dre
s s
te
Registrar Server ka
d
fin
s
es
to
IN
Kate’s & Sam’s location Sam
dr
on te
VI
ka
ad
ti
TE
Mike P
Servers oca E
IT
yI
L
Ka
V
IN
-m
t e
er
t
gis
ke Redirect Server
Re
mi
m
E fro IN
VIT
VIT im
E
IN j jim
TE
IN VI Proxy Server
Gateway
Kate
PSTN Network
Jim
7
SIP Operation
SIP addressing
Locating the end user
SIP messages- methods & responses
Sending SIP requests : SIP transactions
SIP Addressing
SIP clients are identified by SIP URI (Uniform Resource Indic
ator)
URI’s look like email addresses of the form user@domain
The communication is user-to-user instead of device-to-device
The user@domain needs to be resolved to user@host by using a
SIP Proxy server and DNS lookups at the time of call
examples
sip:alan@wcom.com (user@domain)
sip:J.T. Kirk <kirk@starfleet.gov>
sip:+1-613-555-1212@wcom.com;user=phone
sip:guest@10.64.1.1 (user@host)
9
Locating the End User
When client wants to send a request URI, the client will eit
her send it to
Locally configured Proxy server or
IP address & port corresponding to the request URI
Locates Jane
Request Request
11
Request Line
Request-Line = Method SP Request-URI SP SIP-Version
CRLF
• REGISTER
SIP version
registering contact User to which the request
information is addressed
• BYE
terminating sessions
INVITE ash@xyz.com SIP/2.0
• OPTIONS
12
Status Line
Status-Line = SIP-Version SP Status-Code SP Reason-Phr
ase CRLF
SIP/2.0
The Reason-Phrase
1xx: Provisional -- request received, continuing to is intended to give a
process the request; short textual
description of the
2xx: Success -- the action was successfully received, Status-Code.
understood, and accepted;
13
Message Header fields
Parameter Description
14
Marconi Accepted
Tesla Marconi
INVITE
g
180 Ringin
200 OK
ACK
Media Session
BY E
200 OK
15
Proxy Bob
Alice
Server
INVITE INVITE
g
180 Ringin
g
180 Ringin 200 OK
200 OK
ACK
Media Session
BYE
200 OK
16
Alice Registrar Server
REGISTER
Contact: sip:
alice@ 128.175.13.1
6
200 OK
17
SUBSCRIBE
200 OK
NOTIFY
200 OK
…
NOTIFY
200 OK
MESSAGE
200 OK
MESSAGE
200 OK
18
SIP/2.0 REGISTER
19
Simple Call Establishment
INVITE sip:alice@udel.com SIP/2.0
Via: SIP/2.0/UDP 100.101.102.103:5060;
branch=z9hG4bKmp17a
Alice To: Bob <sip:bob@yahoo.com>
SIP/2.0 180 Ringing
Bob
From: Alice <sip:alice@udel.edu>;tag=42
Via: SIP/2.0/UDP 100.101.102.103:5060;
Call-ID: j2qu348ek2328ws
branch=z9hG4bKmp17a
Cseq: 1 IINVITE
Inserts a “From” SIP/2.0
To: Bob 200 OKsip:alice@pc.udel.edu
sip:bob@yahoo.com;tag=75
Contact:
tag and sets the Via:
From:SIP/2.0/UDP
Alice
Subject: 100.101.102.103:5060;
<sip:alice@udel.edu>;tag=42
Where are you exactly?
branch=z9hG4bKmp17a
Call-ID: j2qu348ek2328ws
session parameters
To: Bob
Cseq: sip:bob@yahoo.com;tag=75
1 INVITE
From: Alice
Contact: <sip:alice@udel.edu>;tag=42
<sip:bob@tower.yahoo.com>
Call-ID: j2qu348ek2328ws
Cseq: 1 INVITE
SIP/2.0 ACK
Inserts a “To” tag Contact: <sip:bob@tower.yahoo.com>
Via: SIP/2.0/UDP 100.101.102.103:5060;
and sets the
branch=z9hG4bK321g
session parameters To:
v=0Bob sip:bob@yahoo.com;tag=75
From: Alice
o=alice <sip:alice@udel.edu>;tag=42
2890844526 2890844526 IN IP4
Call-ID: j2qu348ek2328ws
alice.udel.edu
Cseq: 1 ACK
Call ID, from and to s=Phone Call
tags identify a v=0 IP4 100.101.102.103
c=IN
dialog o=bob
t=0 0 2890844528 2890844528IN IP4
tower.yahoo.com
m=audio 49170 RTP/AVP 0
s=Phone Call
a=rtpmap:0 PCMU/8000
c=IN IP4 200.201.202.203
t=0 0
m=audio 60000 RTP/AVP 0
a=rtpmap:0 PCMU/8000
20
SIP Proxy Server INVITE sip:bob@yahoo.com SIP/2.0
Via: SIP/2.0/UDP proxy.udel.com:5060;
INVITE sip:bob@yahoo.com SIP/2.0
branch=z9hG4bK83842.1
Via: SIP/2.0/UDP
Via: SIP/2.0/UDP Location
proxy.yahoo.com:5060;
DNS server 100.101.102.103:5060;
branch=z9hG4bKmp17a server
branch=z9hG4bKtiop3
Via: SIP/2.0/UDP
INVITE sip:bob@yahoo.com SIP/2.0 To: Bob <sip:bob@yahoo.com>
proxy.udel.com:5060;
Via: SIP/2.0/UDP From: Alice
branch=z9hG4bK83842.1
100.101.102.103:5060; <sip:alice@udel.edu>;tag=42
Via: SIP/2.0/UDP
branch=z9hG4bKmp17a Subject: Where are you exactly?
100.101.102.103:5060;
To: Bob <sip:bob@yahoo.com> Contact: <sip:alice@pc.udel.edu>
branch=z9hG4bKmp17a
From: Alice Outbound To: Bob <sip:bob@yahoo.com>
<sip:alice@udel.edu>;tag=42 Inbound
From: Alice
Subject: Where areproxy server
you exactly? proxy server
<sip:alice@udel.edu>;tag=42
Contact: <sip:alice@pc.udel.edu> 100180
Trying
Ringing Subject: Where are you exactly?
200 OK
100 Trying Contact: <sip:alice@pc.udel.edu>
180 Ringing
200 OK
180 Ringing
200 OK
Media BYE
(RTP)
ACK
Alice Bob
200 OK
SIP Trapezoid
21
SIP Proxy Server
Location Service
INVITE Bob
INVITE Bob
Bob’s
Phone
486 Busy Here
Proxy Server
Alice
INVITE Bob
22
SIP Redirect Server
SIP/2.0 301 Moved Permanently
Via: SIP/2.0/UDP
INVITE sip:bob@yahoo.com SIP/2.0 100.101.102.103:5060;
Via: SIP/2.0/UDP branch=z9hG4bKmp17a
100.101.102.103:5060; To: Bob
branch=z9hG4bKmp17a <sip:bob@yahoo.com>;tag=64
To: Bob <sip:bob@yahoo.com> From: Alice
From: Alice <sip:alice@udel.edu>;tag=42
<sip:alice@udel.edu>;tag=42 INVITE
Subject: Where are sip:bob@200.201.202.203 SIP/2.0
you exactly?
Subject: Where are you exactly? Contact: sip:bob@200.201.202.203
Via: SIP/2.0/UDP 100.101.102.103:5060;
Contact: <sip:alice@pc.udel.edu> Redirect Server
ACK branch=z9hG4bKmp17a
To: Bob <sip:bob@yahoo.com>
From: Alice
<sip:alice@udel.edu>;tag=13473
Subject: Where are you exactly?
Contact: <sip:alice@pc.udel.edu>
Alice
Bob
23
Terminal Mobility- Pre-call
Mobile -JIM Home Proxy/registrar JANE
REGISTER
200 OK
INVITE INVITE
200 OK 200 OK
ACK
Media Session
24
Terminal Mobility- Mid Call
AC
Media Session
20
K
0
O
K
IN
VI
TE
Home Network
Visited Network
25
Personal Mobility
Bob’s Cell
Location Service INVITE
200 Bob
OK Phone
26
Session Mobility
27
Transfer Modes
Addressing of Devices
All devices are assumed to have dedicated SIP URI’s
A device has a unique URI and registers a separate contact URI
for itself
28
Local Device Mobile Node Corresponding Node
Media Session
INVITE
200 OK CN
parameters
ACK CN ACK
Parameters
Media Session
29
Local Device Mobile Node Corresponding Node
Media Session
REFER ,refer-to
200 Accepted
INVITE, Replaces
200 OK
Media Session
ACK
Media Session
NOTIFY
200 OK
BYE
200 OK
30
References
31
Questions
32