Microsoft redefines push mail

by Volker Weber

From the Exchange Team Blog, here is how the Microsoft Exchange "push" email works:

  • The device issues an HTTP request to Exchange, which asks Exchange to report any changes that occur in the mailbox of the requesting user within a specified time limit. The URL of this HTTP request is the same as that of other AirSync commands ("/Microsoft-Server-ActiveSync") with some differing query string parameters. The body of the HTTP request allows the client to specify those folders that Exchange should monitor for changes. Typically, these will be the Inbox, Calendar, Contacts, and Tasks folders.
  • Upon receiving this request, Exchange will monitor the specified folders until either the time limit expires or a change (such as the arrival of a piece of email) occurs in one of those folders, whichever comes first. Exchange will then issue a response to this request that notes in which folders the changes occurred. Of course, this will be empty if the time limit elapsed before any changes occurred.
  • Upon receiving an empty response, the device simply re-issues the request. This loop of issuing a request for change notifications, receiving an empty response, and re-issuing the request for change notifications is called "the heartbeat."
  • Upon receiving a non-empty response, the device issues a synchronization request against each folder in the response. When those complete, it re-issues the request for change notifications.

Let me translate this: HTTP polling over persistant data connection, followed by a full folder sync when changes occur. Does anyone want to bet on the bandwidth requirements? Why would you build "push" mail as a polling solution?

Since, by and large, mobile devices are not internet-routable without a NOC (Network Operation Center) and without having first contacted an internet-resident peer, the means by which AUTD (Always Up To Date) works must be initiated by the device.

Well, this should explain why real push mail solutions have an NOC, shouldn't it? :-)

Comments

It is possible to have an persistent tcp-connection that transmits no packets at all for several hours.

They even claim (and I would really like to know if this works) that - while there is a permanent open tcp-connection in this state and no packets are sent - the GPRS consumes not more power.

The whole system sounds quite reasonable to me.

Connect to exchange server, exchange ssl-keys, transmit some http-headers and then just leave the connection open and wait for some data for 2-5 hours.

Maybe they need a keep alive packet every 30 minutes because the mobile provider has NAT.

Stefan Fügenschuh, 2005-12-04

It may be that polling solutions based on TCP can be done in ways that consume very little network bandwidth, but this description specifies HTTP as the transport. The http client would have to receive a reply from the server (empty or not) within the http timeout limits, or it will stop waiting for the reply. Thus, the "heartbeat" is continuous (or as often as the client decides to issue the request). This is dumb.

Bob Balaban, 2005-12-04

Well,this is exactly how the Blackberry's work, and this is exactly how you can implement this technology on any portable using Domino. The mNotes package is a very good example of this. (Very good package, available today, etc, etc)

So yes - MS are basically "lying" when they claim its push-mail. Its not surprising, lets face it. They're in a fight to regain control over the portable mail space from Backberry, but with at least one arm tied behind their back - the Exchange server itself. A very old, creaky piece of single object store technology that should have been re-architected during Kodiak, but wasnt. Horrible.

---* Bill

Bill Buchan, 2005-12-04

Good catch, vowe. You were the first person I read this from, but it seems others have mentioned it.

I took a look, and threw together some random thoughts here:
http://www.not-so-rapid.com/philipstorry/dxblog/not-so-rapid.nsf/dx/thoughts-on-microsofts-push-email-system

Philip Storry, 2005-12-04

Philip, I think you are making a good point regarding this being a good SMB solution.

BTW: There is a hint on the preview page how to make your URL behave like a link. :-)

Volker Weber, 2005-12-04

What is the difference between push and POLL?

Microsoft is NOT sending packets from the phone to the exchange server every 5 minutes or so.

Instead they try to send NO packets at all for hours! (The http timeout surely can be changed)

An open TCP-connection without keep-alive can be seen as PUSH-thing: TCP is bidirectional and the direction from Exchange to the phone gets an IP-paket pushed to the phone when there is new mail.

Is it really important who started the bidirectional tcp-connection?

Don't Blackberries register to RIM that they have network whenever they have connectivity?

Stefan Fügenschuh, 2005-12-05

I'd like to get clomide, xelode, sarafeme, femere, menosane, sarafeme. Where I may find trusted e-shop? What is somebody's experience?

Hok Hanci, 2008-07-04

Old vowe.net archive pages

I explain difficult concepts in simple ways. For free, and for money. Clue procurement and bullshit detection.

vowe

Paypal vowe