Off the top of my head, it is possible to use BOSH for mobile access to xmpp 
(and you are right, persistent access does not work well unless you are 
connected over wifi/etc) - though you might want to 'tune' the parameters and 
client code a bit.

In typical BOSH usage, there is always one connection 'pending' at the server 
from the client (for sending notifications) while and so the queue sizes are 
not too large - since if server responds, client can immeidately reinitiate 
another request.

In mobile case, since bandwidth usage is costly, connections are more 
unreliable  - particularly with potentially longer (bursty) connectivity losses 
- it might still be possible to use BOSH to give a reasonably good client 
experience by tuning the queue sizes, idle/connection timeout values and 
modifying client to not always need to make a request to server (some sort of 
exponential backoff between connections when no activity with upperbound set to 
reasonable value - the tradeoff is impact on responsiveness).


Regards,
Mridul

--- On Thu, 9/4/09, Thiranjith . <[email protected]> wrote:

> From: Thiranjith . <[email protected]>
> Subject: [BOSH] Using XMPP to talk to a mobile client
> To: [email protected]
> Date: Thursday, 9 April, 2009, 1:00 AM
> Hi,
> 
> Can we use XMPP to talk to a client on a mobile device
> (e.g. PDA/ mobile phone) that is connected to the internet
> using 3G? From what I understand, phones' end-point IP
> changes as they move around, and generally they are behind
> the network operator's (At&T, Vodafone etc)
> firewall. 
> 
> 
> 
> 
> Say that user 'A' sends a message to our mobile
> client. From what I understand, the message will go through
> the  XMPP server (e.g. Jabber.org or our own) to find where
> our client is, so it can route the message. How would the
> XMPP server know where to find our client in the place? The
> IP our client used when registering with the server could be
> different now because it could have moved around.
> 
> 
> 
> 
> Does the mobile client need to periodically notify the
> server about its IP? From what I understand, the BOSH
> technique described in http://xmpp.org/extensions/xep-0124.html#intro
> is meant to address this, but it seems to work only if the
> entity behind the firewall initiate the connection first (in
> this case, the client running within the mobile phone).
> 
> 
> 
> 
> Please correct me if I got all this wrong as I am new to
> XMPP, but I would greately appreciate if anyone can explain
> how the xmpp server finds the mobile client that is on the
> move. Does our sever needs to implement that routing logic
> ourselves? Any articles explaining this would also be
> great!
> 
> 
> 
> 
> Thank you!
> Thira
> 
> 
> 
> 


      Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Reply via email to