Escolar Documentos
Profissional Documentos
Cultura Documentos
Introduction
A powerful alternative to H.323 More flexible, simpler Easier to implement
Advanced features
Better suited to the support of intelligent user devices A part of IETF multimedia data and control architecture SDP, RTSP (Real-Time Streaming Protocol), SAP (Session Announcement Protocol)
2
A separate SIP working group RFC 3261 Many developers The VoIP signaling in the future Test products against each other Organized by SIP Forum
3
SIP + MGCP/MEGACO
The 18th SIPit event in Tokyo, Japan took place April 17-21, 2006, and will be hosted by JPNIC The 17th SIPit event in Stockholm, Sweden took place 2005-09-11 to 2005-09-16 and was hosted by Hotsip The 16th SIPit event in Banff, Canada took place 2005-04-04 to 2005-04-08 and was hosted by Jasomi Networks The 15th SIPit event in Taiwan took place 2004-0823 to 2004-08-27 and was hosted by CCL/ITRI The 14th SIPit event in Cannes, France took place 2004-02-08 to 2004-02-13 and was hosted by ETSI
4
SIP Architecture
A signaling protocol
The setup, modification, and tear-down of multimedia sessions Describe the session characteristics
SIP + SDP
User agent clients Application programs sending SIP requests Responds to clients requests
Servers
Proxy servers
Handle requests or forward requests to other servers Can be used for call forwarding
Redirect servers
Map the destination address to zero or more new addresses Do not initiate any SIP requests
Accept SIP requests and contacts the user The user responds an SIP response A SIP device E.g., an SIP-enabled telephone Accepts SIP REGISTER requests
A registrar
10
SIP Advantages
Attempt to keep the signaling as simple as possible Offer a great deal of flexibility Various pieces of information can be included within the messages
Including non-standard information Enable the users to make intelligent decisions No need to subscribe call features
11
12
Similar to HTTP
SIP messages
Message headers
Message body
Could include an ISDN User Part message Examined only at the two ends
14
SIP Requests
method SP request-URI SP SIP-version CRLF request-URI
Methods
extensions: INFO, REFER, UPDATE, Initiate a session Information of the calling and called parties The type of media = IAM (initial address message) of ISUP ACK only the final response
INVITE
15
BYE
Terminate a session Can be issued by either the calling or called party Query a server as to its capabilities
Options
CANCEL
Terminate a pending request E.g., an INVITE did not receive a final response
16
REGISTER
Log in and register the address with a SIP server all SIP servers multicast address (224.0.1.75) Can register with multiple servers Can have several registrations with one server RFC 2976 Transfer information during an ongoing session
INFO
DTMF digits account balance information Mid-call signaling information generated in another network
17
SIP Responses
SIP version SP status code SP reason-phrase CRLF
reason-phrase
status code
Should be ACKed
18
19
SIP Addressing
SIP URLs (Uniform Resource Locators)
user@host E.g.,
sip:collins@home.net sip:3344556789@telco.net
20
Message Headers
Provide further information about the message
E.g.,
From:header
21
General Headers
E.g., To:, From:, Call-ID:, A URL for future communication May be different from the From: header
Contact:
22
Request Headers
Apply only to SIP requests Addition information about the request or the client E.g.,
Subject: Priority:, urgency of the request Authorization:, authentication of the request originator
Response Headers
Entity Header
Content-Length, the length of the message body Content-Type, the media type of the message Content-Encoding, for message compression Content Disposition, Content-Language, Allow, used in a Request to indicate the set of methods supported Expires, the date and time
24
Via: Call-ID:
Content-Length:
Cseg:
Expires:
Contact:
Invitation
A two-party call
Subject:
optional
Content-Type:
application/sdp
26
27
Termination of a Call
Cseq:
Has changed
28
Redirect Servers
An alternative address
Another INVITE
29
Proxy Servers
Entity headers are omitted Changes the Req-URI Via:
30
31
Proxy state
The messages and responses may not pass through the same proxy
Insert its address into the Record-Route: header The response includes the Record-Route: header The Record-Route: header is used in the subsequent requests The Route: header = the Record-Route: header in reverse order, excluding the first proxy Each proxy remove the next from the Route: header
32
Forking Proxy
fork requests A user is registered at several locations
;branch=xxx
33
34
Name The originator The time Media type Port number Transport protocol Media format
35
36
SDP Syntax
A number of lines of text In each line
field=value
37
Mandatory Fields
v=(protocol version) o=(session origin or creator and session id) s=(session name), a text string t=(time of the session)
t=<start time> <stop time> NTP time values in seconds m=<media> <port> <transport> <fmt list> Media type The transport port The transport protocol The media format, an RTP payload format
38
m=(media)
i=(session information)
A text description At both session and media levels Where further session information can be obtained Only at session level
u=(URI of description)
e=(e-mail address)
p=(phone number)
c=(connection information)
Connection type, network type, and connection address At session or media level In kilobits per second At session or media level
b=(bandwidth information)
For regularly scheduled session How often and how many times
40
z=(timezone adjustments)
z=<adjustment time> <offset> <adjustment time> <offset> .... For regularly scheduled session Standard time and Daylight Savings Time
k=(encryption key)
a=(attributes)
Ordering of Fields
Session Level
Media level
Protocol version (v) Origin (o) Session name (s) Session information (i) URI (u) E-mail address (e) Phone number (p) Connection info (c) Bandwidth info (b) Time description (t) Repeat info (r) Time zone adjustments (z) Encryption key (k) Attributes (a)
42
Subfields (1)
address type
Address, a fully-qualified domain name or the IP address o=mhandley 2890844526 2890842807 IN IP4 43 126.16.64.4
Subfields (2)
Connection Data
The network and address at which media data are to be received Network type, address type, connection address c=IN IP4 224.2.17.12/127 Media type
Media Information
List the various types of media RTP/AVP payload types G.728, GSM, G.711
44
Subfields (3)
Attributes
Property attribute
a=sendonly a=recvonly a=orient:landscape The use of dynamic payload type a=rtpmap:<payload type> <encoding name>/<clock rate> [/<encoding parameters>]. m=video 54678 RTP/AVP 98 a=rtpmap 98 L16/16000/2
45
value attribute
rtpmap attribute
46
Negotiation of Media
Fig 5-15
If a mismatch
47
48
Offer/answer
49
50
OPTIONS Method
51
Will be enhanced considerably before it becomes an Internet standard 183 session progress (RFC 3261) Supported: header (RFC 3261)
Require: Supported:
52
From the called party to calling party convey information about the progress of the call that is not otherwise classified
Tones or announcements
ACM (address complete message) of SS7 For SIP PSTN SIP connections
When a temporary media stream is needed Note that alerting signal can be
UACs tell UASs about options that the UAC expects the UAS to support require: 100rel may receiver 420 (Bad Extension) enumerates all the extensions supported by the UAC or UAS Included in both requests and responses
BYE, CANCEL, INVITE, OPTIONS and REGISTER Should not be included in the ACK The UAS needs a particular extension to process the 54 request
55
The transfer of information in the middle of a call DTMF digits, account-balance information, midcall signaling information (from PSTN) A powerful, flexible tool to support new services e.g., the users prepaid account balance
56
be informed of some event(s) RFC 3265 subscribe to certain event Event: header inform the user 200 (OK) response
57
SUBSCRIBE
NOTIFY
58
IMs are usually grouped together into brief live comversations a message body in the form text/plain, or message/cpim (common presence and instant message) using XML
59
Doesnt establish a SIP dialog Can be associated with an existing SIP dialog Contact: header is forbidden No RecordRoute: or Route: header
60
61
REFER Method
RFC 3515 Instruct the receiver to contact a third party Refer-to: Can be interpreted as an implicit SUBSCRIBE
202 (accepted)
62
63
64
100 (trying), 180 (ringing), 183 (session in progress) Are not answered with an ACK Unreliable
Lost provisional response may cause problems when interoperating with other network
65
RSeq
Rack
Response ACK
Prov Resp ACK 100rel Apply to 100 hop-by-hop
PRACK
Should not
66
67
UPDATE Method
RFC 3311 Change the media format in the early state
68
On a per-session basis On an aggregate basis Resources reservation is needed The user should not yet be alerted
A new method, PRECONDITION-MET The far-end phone will not ring until Also specifies extensions to SDP Can define any number of preconditions in SDP without revise SIP every time The response is sent using reliable signaling Once the resource is reserved
71
Three status
desired, current, and confirmed end-to-end (e2e), local, and remote send, recv, and sendrecv mandatory, optional, none and failure
72
Resource reservation
Purpose
Strength
Examples
m=audio 4444 RTP/RTCP 0 a=curr: qos e2e none a=des: qos mandatory e2e sendrecv a=curr: qos e2e send a=des: qos mandatory e2e sendrecv a=curr: qos e2e sendrecv a=des: qos mandatory e2e sendrecv
73
74
75
Call Forwarding
On busy 486, busy here
76
Consultation Hold
A SIP UPDATE
77
Interworking
PSTN Interworking
Fig. 5-28
79
80
81
82
83
84
85
Summary
The future for signaling in VoIP networks
Simple, yet flexible Easier to implement Fit well with the media gateway control protocols
86
Muchas gracias
Extrado del curso Internet Telephony de MFC, Taiwan