Understanding SIP: Dorgham Sisalem Jiri Kuthan Mobile Integrated Services GMD Fokus
Understanding SIP: Dorgham Sisalem Jiri Kuthan Mobile Integrated Services GMD Fokus
Dorgham Sisalem
Jiri Kuthan
Mobile Integrated Services
GMD Fokus
Sisalem,[email protected]
Attention!
a Update Notice
Authors are committed to ongoing improvement of this tutorial.
Thus, this version may include updates and differ slightly from
printed version. You can get the updated version at the following
address:
http://www.fokus.gmd.de/mobis/siptutorial/
a Frequent Misunderstandings
There are numerous issues that turned out to be difficult to
understand. Such issues are labeled with the symbol bellow. Please,
pay special attention to them.
Frequently
Misunderstood
Issue
Outline
etc.
IP Service Model
a Split of Transport and Application Services
`these are different businesses run on top of different
technologies
`service promiscuity: anyone can access services brought by any
providers
`anyone with IP connectivity can become a provider
`setting up a signaling service as easy setting up a web server
¿ service market is completely open
`Applications Are Split As Well
`Example:
`IP operated by UUNET
`SIP signaling by WCOM
`PSTN call termination by mypstn.com and another-pstn.xy
`least-cost PSTN termination routing by yet another company
Example: Trial Site
a Provides just signaling services
` gives users a unique globally reachable address
` resembles Web-hosting in IP world or NetCentrex in PSTN world
` no media transport -- only signaling relayed, media does not hit the
server at all
a To set it up, we needed
` PC
` Freely available software
` IP access
` one part-time undergraduate student
a Users need
` IP phone (either in SW or HW)
a Complimentary services may be easily provided by other parties,
users just need to set up their signaling preferences:
` bridging to PSTN, voicemail--2-email, etc.
IP Design Concepts
#3 SIP/2.0 200 OK
SIP Registrar
(domain iptel.org)
SIP Operation in Proxy
Mode
Location Server
#0
[email protected]
DNS SRV Query ? iptel.org #2 #3
Reply: IP Address of iptel.org SIP Server
INVITE sip:[email protected]
jiri
INVITE sip:[email protected] From: sip:[email protected]
From: sip:[email protected] To: sip: [email protected] #4
To: sip: [email protected] #1 Call-ID: [email protected]
Call-ID: [email protected]
OK 200 OK 200
#6
From: sip:[email protected] From: sip:[email protected] #5
To: sip: [email protected] Proxy To: sip: [email protected]
Call-ID: [email protected] Call-ID: [email protected]
#7 ACK sip:[email protected]
[email protected] sip:[email protected]
Media streams #8
Proxy Server Functionality
#2 #3 #4
#1
BYE takes
direct path
Frequently
Misunderstood
Issue
SIP Operation in Redirect
Mode
Location Server
#2
[email protected]
Callee
#3
[email protected]
#1 INVITE [email protected]
[email protected]
#6 INVITE [email protected]
#7 OK 200
#8 ACK [email protected]
SIP Server -- Proxy versus
Redirection
v=0 v=0
o=UserA 2890844526 2890844526 IN IP4 here.com o=UserB 2890844527 2890844527 IN IP4 there.com
s=Session SDP s=Session SDP
c=IN IP4 100.101.102.103 c=IN IP4 110.111.112.113
t=0 0 t=0 0
m=audio 49172 RTP/AVP 0
Payload m=audio 3456 RTP/AVP 0
a=rtpmap:0 PCMU/8000 a=rtpmap:0 PCMU/8000
v=0
o=sisalem 28908044538 289080890 IN IP4 193.175.132.118
s=SIP Tutorial
[email protected]
c=IN IP4 126.16.69.4
t=28908044900 28908045000
m=audio 49170 RTP/AVP 0 98
a=rtpmap:98 L16/11025/2
Address Header Fields
a From: message originator
a To: final recipient
a Request-URI: current destination; may change along signaling path
a 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 Protocol Design
a Infrastructure follows IP state model
`Most intelligence and state in the end-devices
`Network core maintains at most transactional state
`Network edge may maintain session state
`Benefits: memory and CPU consumption low in
servers, reliability and scalability high (no single point
of failure)
a UDP Support
`faster set-up, less state
a Idempotent INVITEs (no collection of data spanning
multiple requests)