mobile instant messaging by ahyThG

VIEWS: 23 PAGES: 25

									                                           Master Thesis Theme:

         “Instant Messaging and Presence Services: Analysis
         of the standards and example implementation”


                           Technical University Hamburg-Harburg
                                           Angélica García Gutiérrez




                                             December 2nd, 2004




Analysis of IM and Presence Services — 1                               1
                                             Agenda

                               Instant Messaging and Presence Services
                               IETF Standards for IM and Presence Services
                               Prototype Implementation
                               Results
                               Demo
                               Conclusion




Analysis of IM and Presence Services — 2                                     2
 Background (1) Fixed Instant Messaging


 Real-time (nearly)
  Communication
                                                    23 mi.
         Presence
        Awareness
 Find others online and
create personalized lists
  of team members &                        50 mi.            60 mi.
       colleagues

          Services                                  45 mi.
    Chat, Multichat, File
     Sharing/Transfer,
      VideoChat,etc




Analysis of IM and Presence Services — 3                              3
 Background (2) Mobile Instant Messaging


                SMS                                Mobile IM
   1 million of SMS / 90 sec,              For network operators it may
  In 2002, 1 billion SMS/day                represent an extra revenue
            Globally1

  Text-only messaging (160
  characters per message)                     End users benefit from
                                            added value services such
    Instant Messaging                         as Presence Services

  300 million fixed instant
  messaging users globally
                                           It is a key driver to enable a
   Rich messaging content                  wide range of location-based
                                                     applications




[1] Data from a GSM association report



Analysis of IM and Presence Services — 4                               4
 Background (3) Presence Services


  Extended Presence
In the mobile domain, being
online or offline is irrelevant.

      more important is:

•Location (Geographical,
Physical)

•Current status of the mobile
user(in a meeting, gone for
coffee, etc)

•Preferred method of
communication (SMS, email,
phone call, etc)

                                           See before you connect..
                                                                      eXtended Away


Analysis of IM and Presence Services — 5                                      5
 Presence Scenario (1)- sample from 3GPP
                                                        My name is Mark and I am supported by the
                                                        presence service. I have a presentity which
                                                        represents me, and I am the principal of my
                                                        presentity. As the principal, I supply
                                                        information to my presentity.




                                           Available
                                                              User Status     Access
                                           Discreet                            Rules
                                           Not available
      My presentity consists
      of information                       Invisib le
      (describing my ability
                                           City               Location
      and willingness to
      communicate) and                     Country
      access rules
      (describing how my
      presence information                                  Mark’s Presentity
      may be accessed).




Analysis of IM and Presence Services — 6                                                              6
 Presence Scenario (2)- Watchers of Mark

                                                                           Oh dear, here
         Hello Mark, the
                                                                           comes trouble!
         car needs
         fixing!
                                             Paggy
         Hello Mark, how
         about a drink?
                                                                                                     Mark


                                                           Available
                        Paul                                                  User Status   Access
                                                           Discreet                          Rules
                                                           Not available
         Hello Mark, have you seeen
                                                           Invisib le
         Paul?
                                                           City               Location

                                                           Country
                     Jude
                                                                           Mark’s Presentity

         Hello Mark,
         we’ve got a
         great job
         for you!
                                           Watcher group




Analysis of IM and Presence Services — 7                                                                    7
 Presence Scenario (3)- Mark’s access rules
        …I think the car                                                   Hello, weather is
        alarm is playing up…                                               great here!

                                             Paggy
          …see you in the
          bar at 7:30
                                                                                                        Mark


                                                           Available
                        Paul                                                 User Status       Access
                                                           Discreet                             Rules
                                                           Not available

                                                           Invisib le

                                                           City              Location

                                                           Country
                    Jude

             …shame, Mark can’t                                            Mark’s Presentity
             tell me where Paul is




         …looks like
         Mark is not                       Watcher group
         around!




Analysis of IM and Presence Services — 8                                                                       8
 Current barriers and flaws


   Barriers and Flaws
       Closed protocols
      Non Interoperability
           Security


     In theEnterprise:
          lacks of                         interoperability
   Central management for
       policy settings

   Ability to centrally log or
   audit IM conversations

 Desktop control due to the
 proliferation of various IM
            clients

                  …..



Analysis of IM and Presence Services — 9                      9
 Towards Interoperability

                                               IMPP
 Open Standards                                                    IMPP WG
Instant Messaging and                                          Instant Messaging and
  Presence Services                                   SIMPLE
                                                                 Presence Protocol
                                            XMPP                   Working Group

    Technologies
    enabling the                                                   XMPP WG
      required                                                 eXtensible Messaging
                                                               and Presence Protocol
        Extensibility
          Security                                               SIMPLE WG
         Scalability                                              SIP for Instant
            and                                                   Messaging and
      Interoperability                                         Presence Leveraging
                                                               Extensions Working
                                                   IMPS               Group




Analysis of IM and Presence Services — 10                                        10
 XMPP (eXtensible Messaging and Presence Protocol)

    IETF – XMPP
 proposed standards
         (October 2004)
                                             • Basic syntax and semantics originally
        RFC3920 XMPP Core                   developed within the Jabber open-source
                                                       community in 1999.
                RFC3921 XMPP
              Instant Messaging

              RFC3922 XMPP                  • An open XML protocol for nearly-real-time
            Common Presence
                  and Instant
                                                messaging, presence and request-
            Messaging (CPIM)                           response services.

                     RFC3923
           End to end signing
         and object encryption
                     for XMPP




Analysis of IM and Presence Services — 11                                                 11
 XMPP/JABBER: Overview

      Characteristics
     Decentralized Server                   rlopez@alcatel.no-ip.com/PC- doitviolet@telcel.mx.com/tuhh
        architecture                                                office
    Open Source servers
        written in C

     JID (Jabber Network                               TCP socket                       TCP socket
   identifier) is of the form:                         5222                             5222

  user@domain/resource
                                                                    internet




Analysis of IM and Presence Services — 12                                                            12
 XMPP: Data Structure

     XML STANZAS
        <message/>
    To exchange common
         messages                           <message from=’garcia@tuhh.de‘ to=’ana@alcatel.com'>
                                              <body>What time are you arriving?</body>
       <Presence/>                          </message>
  To exchange presence
    information and for                     <presence>
 subscription management
                                              <show>dnd</show>
    <iq/> (info/query):
                                              <status>In an important meeting</status>
 Used in request-response                   </presence>
    mechanisms, in the
  roster(contact list), and
      authentication.




Analysis of IM and Presence Services — 13                                                    13
 SIMPLE                (SIP for Instant Messaging and Presence Leveraging Extensions)


    Drafts and RFCs
 draft-ietf-simple-presence

   Draft- A data model for
                                            How to use SIP to do Instant Messaging and
          Presence                                           Presence

RFC3856 A Presence Event
 Package for the Session
  Initiation Protocol (SIP)                        SIP signaling methods:
                                              SUBSCRIBE, NOTIFY and MESSAGE
     RFC3857 A Watcher
Information Event Template-
  Package for the Session
                                               …have been re-purposed to transport
   Initiation Protocol (SIP)                  IM-Presence data between two entities
               …..




Analysis of IM and Presence Services — 14                                                14
 SIMPLE: SIP and Presence relationship

    Presence Needs:
                                             Identifies users independent of location
User’s location awareness

     A way to forward                       Forwards requests (INVITE or otherwise)
subscription requests to the                          to the proper server
       proper server

A way for user to tell server                REGISTER allows network to tell server
   its location and other                      its location and other information
        presence data

    A network which can                     Can forward messages back to originators
   forward notifications to                           in reverse direction
        subscribers
                                                 Delivers messages in real time
 Messages delivery in real
         time                                          (call setup delays)




Analysis of IM and Presence Services — 15                                               15
 SIMPLE: SIP extension for Presence

    Basic Operation:
                                                                 Subscriber
        Subscriber send
         SUBSCRIBE

Routed to PA using normal
           SIP

  PA authorizes subscriber                                         Proxy

     Acceptance contains
       presence state
                                                               NOTIFY
  NOTIFY sent when state
        changes                                     REGISTER       Presence Agent +
                                                                   Proxy/Registrar =
 Routed using SIP Record-                                          Presence Server
          Route                             Presentity




Analysis of IM and Presence Services — 16                                              16
 IMPS (Instant Messaging and Presence Services Protocol)




Analysis of IM and Presence Services — 17                  17
 IMPS (Instant Messaging and Presence Services Protocol)

          Basic Flow
1. Selection of the IM service
2. Phone connects to IM                         5               IMPS Server
                                            1
gateway using WV CSP
protocol over IP and/or SMS                         2         Mobile IM Gateway
3. GW acts as a proxy for                                 3
preferred IM service and
                                                                      4
optimizes mobile IM
experience
                                                        AOL     MSN       ICQ   Yahoo
4. Gateway connects to IM
providers using WV or
proprietary IM protocol
5. Operator can offer their
own IMPS services or other
services through interface




Analysis of IM and Presence Services — 18                                               18
  Prototype Description
                                                                            GMLC
                                                         Watcher            Gateway Mobile Location Center
    Components
                                                                                               MSC
   Instant Messaging                                                                           Mobile
         Server                                                                                Switching
                                             IM server                                         Center
 Gateways to ICQ,
                                                                                           SAFIRE
Yahoo, MSN and AIM                                                                         EMULATOR



       Watcher                              Registrar
  implementation for
   presence updates                                AOL    MSN      ICQ   Yahoo

    GMLC and MSC
for location information




Analysis of IM and Presence Services — 19                                                             19
 Prototype- Jabberd2

         Overview
 Jabberd2/XMPP Based

 MySQL engine for data
      storage

    Authentication
 mechanisms supported;

 Encryption mechanisms
between client and server




Analysis of IM and Presence Services — 20   20
 Prototype- Gateways to public IM systems

       Deployment
        Options
 Jabberd1.4 deployment
                                            Foreign
                                            system
    Jabber Component
        Runtime

New component creation
                                            transport

Python based transports
     for Jabberd2
                                            Jabberd2
                                             system




Analysis of IM and Presence Services — 21               21
 Prototype- Interaction of the elements

                       Watcher               IM Server               GMLC                  MSC             Subscribed
                                                                                                             Users
                                [Get_
                                Users(Server,Port,JID,pass)]


                                [Setup_
                                Monitor(JID,MSISDN, Frequency)
                                                                             [Request_Lccation
                                                                             (JID,MSISDN,Frequency)


                                                                             Ret_Location(JID,Geo coordinates)



                                                             Ret_Location
                                                     (JID,Geo_coordinates)

                                Ret_Location
                                (JID,Physical_coordinates)


                                                     Update_Presence_Status(Roster, JID,
                                                     Physical_Location




Analysis of IM and Presence Services — 22                                                                               22
 Demo



                                            1. XMPP/Jabberd2 based server
                                            alcatel.no-ip.com

                                            2. Transports to public IM systems

                                            3. Watcher

                                            4. Physical location




Analysis of IM and Presence Services — 23                                        23
 Summary of Contributions


     Analysis of current
   technologies for Instant
                                            Connection to real HLR and MSC systems
  Messaging and Presence
  Systems based on open
         standards
                                                 Comparison of performance and
     Implementation of the                  functionality with a prototype based on the
  Instant Messaging Server                                SIMPLE standard
  Integration of gateways to
    ICQ, Yahoo! and MSN


 Extension of the Presence
   attribute by including
     physical location




Analysis of IM and Presence Services — 24                                             24
                                            Thank You !




                                                          Any questions?

Analysis of IM and Presence Services — 25                              25

								
To top