session initiation protocol sip sess o o o oco s part ii
play

Session Initiation Protocol (SIP) Sess o o o oco (S ) Part II - PowerPoint PPT Presentation

Session Initiation Protocol (SIP) Sess o o o oco (S ) Part II Prof. Ai-Chun Pang Graduate Institute of Networking and Multimedia, Dept. of Comp. Sci. and Info. Engr., National Taiwan University Email: acpang@csie.ntu.edu.tw


  1. Session Initiation Protocol (SIP) Sess o o o oco (S ) Part II Prof. Ai-Chun Pang Graduate Institute of Networking and Multimedia, Dept. of Comp. Sci. and Info. Engr., National Taiwan University Email: acpang@csie.ntu.edu.tw http://www.csie.ntu.edu.tw/~acpang

  2. Examples of SIP Message Sequences Examples of SIP Message Sequences � Via: � From: and To: � Call-ID: � host-specific � host specific � Contact: (for future SIP message transmission) � Content Length: � Content-Length: � Zero, no msg body � CSeq: � A response to any request must use the same value of CSeq as used in the request. � Expires: � Expires: � TTL � 0, unreg 2 Prof. Ai-Chun Pang, NTU 2011/3/28

  3. Invitation Invitation � A two-party call � Subject: � optional � Content Type: � Content-Type: � application/sdp � A dialog ID � T o identify a peer-to-peer relationship between two user agents � Tag in From � Tag in From � Tag in T o � Call-ID 3 Prof. Ai-Chun Pang, NTU 2011/3/28

  4. Termination of a Call Termination of a Call � CSeq has changed. Daniel< sip:collins@station1.work.com> Boss< sip:manager@station2.work.com> a BYE sip:manager@station2.work.com SI P/ 2.0 Via: SI P/ 2.0/ UDP station1.work.com Max Forwards: 70 Max-Forwards: 70 From: Daniel< sip:collins@work.com> ; tag= 44551 To: Boss< sip:manager@work.com> ; tag= 11222 Call-I D: 123456@station1.work.com CSeq: 2 BYE q Content-Length: 0 b SI P/ 2.0 200 OK Via: SI P/ 2.0/ UDP station1.work.com Via: SI P/ 2.0/ UDP station1.work.com From: Daniel< sip:collins@work.com> ; tag= 44551 To: Boss< sip:manager@work.com> ; tag= 11222 Call-I D: 123456@station1.work.com CSeq: 2 BYE Content Length: 0 Content-Length: 0 4 Prof. Ai-Chun Pang, NTU 2011/3/28

  5. Redirect Server Redirect Server � An alternative address � 302, Moved T 302 M d T emporarily il � Another INVITE � Same Call-ID � Same Call ID � CSeq ++ 5 Prof. Ai-Chun Pang, NTU 2011/3/28

  6. Proxy Server [1/2] Proxy Server [1/2] � Sits between a user-agent client and the far-end user-agent server � Numerous proxies can reside in a chain between the caller and callee. ll � The most common scenario will have at least two proxies: one at the caller and one at the callee end. � It is likely that only the last proxy in the chain changes the Request-URI. � The other proxies in the chain would simply use the domain part of the received Request-URI to determine the next hop. d R URI d h h 6 Prof. Ai-Chun Pang, NTU 2011/3/28

  7. Proxy Server [2/2] Proxy Server [2/2] � Via: � The path taken by a request � Loop detected, 482 (status code) � The response finds its way back to the originator of the request � The response finds its way back to the originator of the request. � Branch: used to distinguish between multiple responses to the same request � Forking Proxy: Issue a single request to multiple destinations 7 Prof. Ai-Chun Pang, NTU 2011/3/28

  8. Proxy State [1/2] Proxy State [1/2] � Can be either stateless or stateful � If stateless, the proxy takes an incoming request, performs whatever translation and forwards the p corresponding outgoing request and forgets anything. � Retransmission takes the same path (no change on p ( g retransmission). � If stateful, the proxy remembers incoming requests , p y g q and corresponding outgoing request. � The proxy is able to act more intelligently on subsequent p y g y q requests and responses related to the same session. 8 Prof. Ai-Chun Pang, NTU 2011/3/28

  9. Proxy State [2/2] Proxy State [2/2] � Record-Route: and Route: Headers � The subsequent requests may not pass through the same path as the initial request/response. � E g use Contact: � E.g., use Contact: � A Proxy might require that it remains in the signaling path for all subsequent requests to provide some advanced service. � In particular for a stateful proxy � Insert its address into the Record-Route: header � The response includes the Record Route: header � The response includes the Record-Route: header � The information contained in the Record-Route: header is used in the subsequent requests related to the same call. q q � The Route: header is used to record the path that the request is enforced to pass. 9 Prof. Ai-Chun Pang, NTU 2011/3/28

  10. 10 Prof. Ai-Chun Pang, NTU 2011/3/28

  11. 11 Prof. Ai-Chun Pang, NTU 2011/3/28

  12. Forking Proxy Forking Proxy � A proxy can “fork” requests � A user is registered at several locations � ;branch=xxx � In order to handle such forking, a proxy must be stateful. 12 Prof. Ai-Chun Pang, NTU 2011/3/28

  13. 13 Prof. Ai-Chun Pang, NTU 2011/3/28

  14. 14 Prof. Ai-Chun Pang, NTU 2011/3/28

  15. SIP Extensions and Enhancements SIP Extensions and Enhancements � RFC 2543, March 1999 � RFC 3261, June 2002 � SIP attracts enormous interest. � Traditional telecommunications companies, cable TV providers and ISP � A large number of extensions to SIP have been proposed. p p � SIP will be enhanced considerably before it becomes an Internet standard. 15 Prof. Ai-Chun Pang, NTU 2011/3/28

  16. 183 Session Progress 183 Session Progress � It has been included within the revised SIP spec. � T o open one-way audio path from called end to calling end � Enable in-band call progress information to be transmitted � T ones or announcements � Interworking with SS7 network � ACM (Address Complete Message) � ACM (Address Complete Message) � For SIP-PSTN-SIP connections 16 Prof. Ai-Chun Pang, NTU 2011/3/28

  17. INFO Method INFO Method � Be specified in RFC 2976 � For transferring information during an ongoing session � DTMF digits, account-balance information, mid-call signaling information (from PSTN) � Application-layer information could be transferred in the middle of a call. � A powerful, flexible tool to support new services 17 Prof. Ai-Chun Pang, NTU 2011/3/28

  18. Event Notification Event Notification � Several SIP-based applications have been devised based on the concept of a user being informed of some event. f b i i f d f � E.g., Instant messaging � RFC 3265 has addressed the issue of event notification. � RFC 3265 h dd d th i f t tifi ti Subscriber Notifier � SUBSCRIBE and NOTIFY � The Event header � The Event header a SUBSCRIBE b 200 OK Current state c NOTIFY information d 200 OK Updated state e NOTIFY information f 200 OK 18 Prof. Ai-Chun Pang, NTU 2011/3/28

  19. Instant Messaging Instant Messaging � The IETF working group – SIP for Instant Messaging and Presence Leveraging Extensions (SIMPLE) � A new SIP method – MESSAGE � This request carries the actual message in a message body. 19 Prof. Ai-Chun Pang, NTU 2011/3/28

  20. Boss<sip:Manager@pc1.home.com> sip:Server.work.com Daniel<sip:Collins@station1.work.com> a MESSAGE sip:Collins@work com SIP/2 0 MESSAGE sip:Collins@work.com SIP/2.0 b Via: SIP/2.0/UDP pc1.home.net MESSAGE sip:Collins@station1.work.com SIP/2.0 Max-Forwards: 70 Via: SIP/2.0/UDP server.work.com From: Boss<sip:Manager@home.net> Via: SIP/2.0/UDP pc1.home.net T o: Daniel<sip:Collins@work.com> Max-Forwards: 69 Call-ID: 123456@pc1.home.net From: Boss<sip:Manager@home.net> CSeq: 1 MESSAGE T o: Daniel<sip:Collins@work.com> Content-Type: text/plain Call-ID: 123456@pc1.home.net Content-Length: 19 CSeq: 1 MESSAGE Content-Disposition: render p Content-Type: text/plain Co te t ype: te t/p a Content-Length: 19 Hello. How are you? Content-Disposition: render Hello. How are you? c SIP/2.0 200 OK d Via: SIP/2.0/UDP server.work.com SIP/2.0 200 OK Via: SIP/2.0/UDP pc1.home.net Via: SIP/2.0/UDP pc1.home.net From: Boss<sip:Manager@home.net> From: Boss<sip:Manager@home.net> From: Boss<sip:Manager@home net> T o: Daniel<sip:Collins@work.com> T o: Daniel<sip:Collins@work.com> Call-ID: 123456@pc1.home.net Call-ID: 123456@pc1.home.net CSeq: 1 MESSAGE CSeq: 1 MESSAGE Content-Length: 0 Content-Length: 0 20 Prof. Ai-Chun Pang, NTU 2011/3/28

  21. Boss<sip:Manager@pc1.home.com> sip:Server.work.com Daniel<sip:Collins@station1.work.com> e MESSAGE sip:Manager@home net SIP/2 0 MESSAGE sip:Manager@home.net SIP/2.0 f Via: SIP/2.0/UDP station1.work.com MESSAGE sip:Manager@pc1.home.net SIP/2.0 Max-Forwards: 70 Via: SIP/2.0/UDP server.work.com; From: Daniel<sip:Collins@work.com> Via: SIP/2.0/UDP station1.work.com T o: Boss<sip:Manager@home.net> Max-Forwards: 69 Call-ID: 456789@station1.work.com From: Daniel<sip:Collins@work.com> CSeq: 1101 MESSAGE T o: Boss<sip:Manager@home.net> Content-Type: text/plain Call-ID: 456789@station1.work.com Content-Length: 22 CSeq: 1101 MESSAGE Content-Disposition: render p Content Type: text/plain Content-Type: text/plain Content-Length: 22 I ’ m fine. How are you? Content-Disposition: render I ’ m fine. How are you? g h SIP/2.0 200 OK SIP/2.0 200 OK Via: SIP/2.0/UDP server.work.com Via: SIP/2.0/UDP station1.work.com Via: SIP/2.0/UDP station1.work.com From: Daniel<sip:Collins@work.com> From: Daniel<sip:Collins@work com> From: Daniel<sip:Collins@work com> From: Daniel<sip:Collins@work.com> T o: Boss<sip:Manager@home.net> T o: Boss<sip:Manager@home.net> Call-ID: 456789@station1.work.com Call-ID: 456789@station1.work.com CSeq: 1101 MESSAGE CSeq: 1101 MESSAGE Content-Length: 0 Content-Length: 0 21 Prof. Ai-Chun Pang, NTU 2011/3/28

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend