1 / 23

SIP for Instant Messaging and Presence Leveraging Extensions (SIMPLE)

SIP for Instant Messaging and Presence Leveraging Extensions (SIMPLE). Reporter : Allen. Outline. Introduction IMPP Model SIP for presence SIP for instant messaging Conclusion. Introduction. WHAT IS PRESENCE?

quinto
Download Presentation

SIP for Instant Messaging and Presence Leveraging Extensions (SIMPLE)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. SIP for Instant Messaging and Presence Leveraging Extensions (SIMPLE) Reporter : Allen

  2. Outline • Introduction • IMPP Model • SIP for presence • SIP for instant messaging • Conclusion

  3. Introduction • WHAT IS PRESENCE? • Also known as presence information, conveys the ability and willingness of a user to communicate across a set of devices • WHAT IS Instant Message? • “Real-time email”

  4. FETCHER POLLER IMPP ModelPresence Service(1) • FETCHER • Simply requests the current value of some PRESENTITY’s presence information from the presence service • POLLER • A special kind of FETCHER is one that fetches information on a regular basis • SUBSCRIBR • Requests notification from the presence service of change in some PRESENTITY’s presence information Presence Service WATCHER SUBSCRIBER PRESENTITY WATCHER

  5. Presence Service Presence Protocol Presentity Watcher • Subscriber • Fetcher Presentity UA Principal IMPP ModelPresence Service(3)

  6. Presence Service Presence Protocol PRESENTITY WATCHER PRESENTITY UA WATCHER UA Principal Principal IMPP ModelPresence Service(4)

  7. Instant Messaging Service Sender Instant Inbox IMPP ModelInstant Messaging(1) • Sender • provides instant messages to Instant Messaging Service • Instant Inbox • receives instant messages from Instant Messaging Service

  8. Instant Messaging Service Instant Messaging Protocol Sender Instant Inbox Sender UA Principal IMPP ModelInstant Messaging(2)

  9. Instant Messaging Service Instant Messaging Protocol Sender Instant Inbox Sender UA Inbox UA Principal Principal IMPP ModelInstant Messaging(3)

  10. SIP for presence(1) • two new methods: SUBSCRIBE, NOTIFY • Presence Agent (PA) accepts subscriptions for presence notifications and sends these on state changes • PA mostly co-located with SIP User Agent • But can also be with SIP registrar or separate • PA receives SUBSCRIBE request and gets authorization from target • if authorized, a positive response gets back (i.e. 200 OK) • target changes state • PA sends changed state as presence information (in body) via NOTIFY request to subscribers

  11. SIP for presence(2) • subscription to a PA (Presentity) expires as indicated by the Expires: header • subscriber has to re- SUBSCRIBEto get further notifications

  12. WATCHER SERVER PUA SUBSCRIBE 200 OK NOTIFY 200 OK UPDATE PRESENCE NOTIFY 200 OK SIP for presenceWorkflow

  13. SIP for presence: subscription (1) SUBSCRIBE sip:resource@example.com SIP/2.0 Via: SIP/2.0/TCP watcherhost.example.com;branch=z9hG4bKnashds7 To: <sip:resource@example.com> From: <sip:user@example.com>;tag=xfg9 Call-ID: 2010@watcherhost.example.com CSeq: 17766 SUBSCRIBE Max-Forwards: 70 Event: presence Accept: application/cpim-pidf+xml Contact: <sip:user@watcherhost.example.com> Expires: 600 Content-Length: 0

  14. SIP for presence: subscription (2) SIP/2.0 200 OK Via: SIP/2.0/TCP watcherhost.example.com;branch=z9hG4bKnashds7;received=192.0.2.1 To: <sip:resource@example.com>;tag=ffd2 From: <sip:user@example.com>;tag=xfg9 Call-ID: 2010@watcherhost.example.com CSeq: 17766 SUBSCRIBE

  15. SIP for presence: notification (1) NOTIFY sip:user@watcherhost.example.com SIP/2.0 Via: SIP/2.0/TCP server.example.com;branch=z9hG4bKnk From: <sip:resource@example.com>;tag=ffd2 To: <sip:user@example.com>;tag=xfg9 Call-ID: 2010@watcherhost.example.com Event: presence Subscription-State: active;expires=599 Max-Forwards: 70 CSeq: 8775 NOTIFY Contact: sip:server.example.com Content-Type: application/cpim-pidf+xml Content-Length: .. [PIDF Document]

  16. SIP for presence: notification (2) SIP/2.0 200 OK Via: SIP/2.0/TCP server.example.com;branch=z9hG4bKnk;received=192.0.2.2 From: <sip:resource@example.com>;tag=ffd2 To: <sip:user@example.com>;tag=xfg9 Call-ID: 2010@watcherhost.example.com CSeq: 8775 NOTIFY Content-Length: 0

  17. Time SUBSCRIBE Auth ? 200 OK SIP client of subscriber SIP front- end (PA) Ok Client back-end I’m online NOTIFY 200 OK NOTIFY I’m away 200 OK Example: SIP for presence

  18. IMPP interworking: XML data formats • IMPP and SIMPLE working group have defined protocol-neutral data formats in XML for • presence information (PIDF) • watcher information • buddy lists • configuration (XCAP)

  19. Example: PIDF for presence <presence xmlns="urn:ietf:params:cpimpresence:" entity=“pres:hubert@example.com"> <tuple id=“im"> <status> <basic>open</basic> </status> <contact priority="2"> im:hubert@example.com </contact> </tuple> </presence>

  20. SIP for instant messaging Time • new method: MESSAGE • SIP client (sender) issues MESSAGE request • instant message is send in request body • reception of instant message is indicated by SIP response • subsequent messages can use same Call-ID (for threading) MESSAGE 202 Accepted SIP client (sender) SIP client (Instant Inbox)

  21. SIP for instant messaging MESSAGE sip:user@inbox.example.com SIP/2.0 Via: SIP/2.0/TCP server.example.com;branch=z9hG4bKnk From: <sip:resource@example.com>;tag=ffd2 To: <sip:user@example.com>;tag=xfg9 Call-ID: 2010@sender.example.com Max-Forwards: 70 CSeq: 1 MESSAGE Content-Type: text/plain Content-Length: 18 Watson, come here. SIP/2.0 202Accepted Via: SIP/2.0/TCP server.example.com;branch=z9hG4bKnk From: <sip:resource@example.com>;tag=ffd2 To: <sip:user@example.com>;tag=xfg9 Call-ID: 2010@sender.example.com Max-Forwards: 70 CSeq: 1 MESSAGE Content-Length: 0

  22. Conclusion • Who Will Win (XMPP and SIMPLE)? • SIP security more difficult than email or web • Try to re-use existing mechanisms: • IPsec and TLS • Digest authentication • S/MIME for end-to-end • HTTP EAP?

  23. Q & A

More Related