SIP Tutorial
SIP Tutorial
VoIP Workshop Terena 2005 Poznan Poland By Stephen Kingham mailto:[email protected] sip:[email protected]
Stephen Kingham
This work is the intellectual property of the author. Permission is granted for this material to be shared for non-commercial, educational purposes, provided that this copyright statement appears on the reproduced materials and notice is given that the copying is by permission of the author. To disseminate otherwise or to republish requires written permission from the author.
Stephen [email protected]
SIP Standards
IETF (Internet Standard) RFC 3261 (replaced RFC 2543) Because SIP is an internet standard it leverages and is leveraged by other internet services: Instant Messaging RFC 3428 Presence (The SIMPLE Protocol) Uses SDP, Session Description Protocol RFC 2327, ie what codecs to use. And because SIP is an IETF standard it is designed to fit in with all the other Internet standards. Eg ENUM.
Stephen [email protected]
centrex-style features
attendant features
from Rohan Mahys VON Fall 2003 talk Stephen [email protected]
Lesson: do not do anything with Voice, Video, Telephony, Instant Messaging or Presence unless it uses SIP.
Stephen [email protected]
Stephen [email protected]
Stephen [email protected]
DNS
au . du e . rs e nd i l rf o f d r co re .au E u T VI s.ed RV N I r S r 3. inde o f l k @f e o c o ru L b . 2
Flinders University
err e s stt gii eg R Re 1 1.. u a au u.. E e du ed T TE s.. VII rrs NV e IIN de nd 3 3.. lliin ff @ e@ ce u uc b brr
SIP UA
Stephen [email protected]
SIP UA
2.
ok o L
V R rS o f
rd o c re
r fo
ter gis Re 1.
3. INVITE [email protected]
SIP UA
SIP UA
Stephen [email protected]
UA
DNS
Proxy Server
UA
INVITE (with sdp) [email protected] 180 RINGING 200 OK (after call is answered) with sdp
Stephen [email protected]
SIP Methods
REGISTER - login INVITE start a call ACK CANCEL abort a call setup BYE end a call OPTIONS INFO REFER - Call Transfer MESSAGE - instant messenging SUBSCRIBE / NOTIFY - presence
Presenters note: Review a live call when looking at the following material.
SIP Addressing in the future will be the preferred address, in addition to Telephone numbers
Within the next year you will see this on the bottom of email footers and on business cards of Australian Universities.
SIP User Agent INVITE DNS SRV query (sip:[email protected]) sip.udp.aarnet.edu.au Aarnet.edu.au
DNS
SIP Proxy
PRI / CAS
PBX
Stephen's Phone
Ref: http://voip.internet2.edu/SIP.edu
AARNet SIP & H.323 network (an example of the building blocks)
SIP Server
Translate telephone numbers to IP addresses
Stephen [email protected]
SIP History
H.323
ITU-T protocol May 1995 Study Group 16 Now V.5
SIP
IETF protocol Became proposed standard in March 1999. Working Groups: SIP, SIPPING, and SIMPLE Now RFC 3261
H.323
SIP
SIP UA Registrar, Redirect Server, Proxy Server Conference Server PSTN Gateway
Terminal Gatekeeper
H.323
Signaling Capacity Negotiation Codecs Real-time Communication RAS/Q.931 H.245 Any RTP/RTCP SIP SDP Any
SIP
RTP/RTCP
H.323
Message Encoding Transport Data Conference Instant Message Inter-Domain Routing Annex G Binary UDP and TCP Mostly TCP T.120 ASCII
SIP
Stephen [email protected]
$ORIGIN aarnet.edu.au. _sip._udp SRV 0 1 5060 ser.yarralumla.aarnet.edu.au. _sip._udp SRV 1 1 5060 ser.nsw.aarnet.edu.au. ser.yarrulumla.aarnet..edu.au. IN A 192.94.63.28 ser.nsw.aarnet..edu.au. IN A 138.44.16.90
Stephen [email protected]
Stephen [email protected]
Stephen [email protected]
Source: Patrik Fltstrm, Area Director Applications Area IETF, from ITU Tutorial Workshop on ENUM 8 Feb 2002 Geneva
Source: Patrik Fltstrm, Area Director Applications Area IETF, from ITU Tutorial Workshop on ENUM 8 Feb 2002 Geneva
Gateway Gateway
Adapted from: Patrik Fltstrm, Area Director Applications Area IETF, from ITU Tutorial Workshop on ENUM 8 Feb 2002 Geneva
ENUM in a nutshell
take phone number turn into domain name ask the DNS return list of URIs mailto:[email protected] sip:[email protected]
+46 86859131
1.3.1.9.5.8.6.8.6.4.e164.arpa.
Source: Patrik Fltstrm, Area Director Applications Area IETF, from ITU Tutorial Workshop on ENUM 8 Feb 2002 Geneva
Stephen [email protected]
Stephen [email protected]
Stephen [email protected]
Stephen Kingham
Stephen [email protected]
Ethereal
Full protocol analyser for Unix, Mac OS, MicroSoft. Get ethereal from http://www.ethereal.com/ For MicroSoft Wondows install WinPcap first from the same location.
Stephen [email protected]
Ethereal
Stephen [email protected]
DNS
SIP relies on DNS for routing (eg finding other SIP Servers). If something goes wrong with DNS then call setups can block for several seconds. Mitigate by: Cache DNS (eg nscd daemon in Linux) Have plenty of free children (threads) in the Proxy Server Process transactions statefully to absorb retransmissions without additional DNS lookups.
Stephen [email protected]
Hot topis
Slide 67
Stephen [email protected]