25 Dec, 2009
The evolution of push email
Posted by Bhavin Turakhia | (11) Comments
I have been meaning to compile research on push technologies and the evolution of push email since a while. A conversation with ramki on how gmail offers push email using Microsoft Direct Push triggered my research and here is a summarized compilation of my findings
Blackberry
Blackberry works by downloading your email to its NOC. Whenever it finds a new mail it pushes it out to your cellphone. This is why Blackberry requires you to subscribe to a specific blackberry plan through your Telco. If you have a blackberry plan, your Telco forwards your registration to Blackberry and whenever you are online, Blackberry knows how to find you. Whenever the Blackberry NOC downloads a new mail from your mail servers it pushes the mail out to your cellphone through your Telco. This last bit is proprietary and presumably requires support from the Telcos end. Since a data-push is made to your cellphone only when there is data to be pushed, your battery life is conserved
References
Microsoft AUTD
This was the earlier version of Microsoft’s push technology. Basically Microsoft Exchange (or any mail server) is configured to simply send out a special SMS to your cellphone number each time new data needs to be pushed to your cellphone, and your cellphone is not currently connected. This SMS does not get displayed in your inbox, but rather triggers the mail application (or any other applicable app) in the background to sync with the server. This mechanism requires the use of an SMS gateway and/or possible support from your Telco to be able to send out these type of SMSes.
References
Microsoft Direct Push
This is the latest version of Microsoft’s push technology. It sounded esoteric, but upon close investigation it turned out to be a fancy microsoft name for a technology that has existed for nearly a decade viz. Comet. The way this works is as follows -
- The application on your mobile (lets say your email client) makes a Comet HTTP request to an http server. Along with this request it sends the server a timeout value – say T=15 minutes
- If in the next 15 minutes the server receives a new mail, the server immediately sends an HTTP response with a status that results in the client syncing with the server and then once again issuing a long poll http request
- If in the next 15 minutes the server receives no new mail, the server must at the end of 15 minutes send an empty status response to the client, upon receiving which, the client once again initiates a new HTTP request
- Since this method requires a poll to the server every ‘x’ minutes it typically consumes more battery than Blackberry but the difference should not be too high
- Since the Telco en route may have its own enfroced timeout values on any http connections, it may disconnect a long-running HTTP connection
- Therefore the actual timeout time must be negotiated between the client handset and the server during bootstrapping by attempting higher and higher timeout values until the highest value that the Telco permits is discovered
- The HTTP connection may also get dropped due to network failures and switch-overs. Clients can detect this at the TCP/IP level and re-attempt connections. I am not entirely sure about this part, but the HTTP client presumably also uses TCP Keep alive internally to ensure the TCP connection remains alive
- One may want to lookup the actual port numbers and protocol implementation of Microsoft Direct Push, since it is likely that most Telcos support Microsoft Direct Push and therefore if one was to emulate their push service on the same server port it is likely that Telcos would let the long-running HTTP connection persist
- The advantage of this method is it does not require any special Blackberry plan
References
- How Direct Push really works - http://www.techatplay.com/?p=11
- Comparison between Direct Push and Blackberry - http://www.techatplay.com/?p=13
- What uses lesser traffic – Microsoft Direct Push or Blackberry – http://www.rysavy.com/Articles/Rysavy_Wireless_EMail.pdf
- http://en.wikipedia.org/wiki/Comet_(programming)
- http://www.emansio.com/ – A push email product for windows mobile
- http://tldp.org/HOWTO/TCP-Keepalive-HOWTO/overview.html – Overview on TCP Keep Alive
Misc References
- A detailed guide on Direct Push - http://www.techatplay.com/?p=8
- Definition of Push email - http://www.techatplay.com/?p=32
- A detailed list of all the push technologies out there – http://en.wikipedia.org/wiki/Push_e-mail
-
http://en.wikipedia.org/wiki/Lemonade_Profile
- Another interesting push email technology that uses IMAP notify and IDLE – http://en.wikipedia.org/wiki/Lemonade_Profile









