[Juser] XMPP bandwidth consumption vs SIP/SIMPLE?

Peter Saint-Andre stpeter at jabber.org
Thu Mar 1 13:08:21 CST 2007


Colin Garvey wrote:
> I’ve heard claims about XMPP instant messages consuming less bandwidth 
> than equivalent messages sent/received by SIP/SIMPLE clients…
> 
>  
> 
> --are these claims true?
> 
> --if yes, can anyone provide documentation to support these claims?

Here is a basic XMPP message stanza:

******

<message from='juliet at example.com/foo' to='romeo at example.net'>
   <body>Art thou not Romeo, and a Montague?</body>
</message>

******

Here is the SIMPLE equivalent:

******

MESSAGE sip:romeo at example.net SIP/2.0
Via: SIP/2.0/TCP x2s.example.com;branch=z9hG4bK776sgdkse
Max-Forwards: 70
From: sip:juliet at example.com;tag=49583
To: sip:romeo at example.net
Call-ID: Hr0zny9l3 at example.com
CSeq: 1 MESSAGE
Content-Type: text/plain
Content-Length: 35

Art thou not Romeo, and a Montague?

******

It's worse for presence (which is often the most verbose part of an IM 
and presence system). Here is a basic XMPP presence stanza:

******

<presence from='juliet at example.com/foo' to='romeo at montague.net/bar'/>

******

Here is the SIMPLE equivalent:

******

NOTIFY sip:192.0.2.2 SIP/2.0
Via: SIP/2.0/TCP x2s.example.com;branch=z9hG4bKna998sk
From: <sip:juliet at example.com>;tag=gh19
To: <sip:romeo at example.net>;tag=yt66
Call-ID: j4s0h4vny at example.com
Event: presence
Subscription-State: active;expires=599
Max-Forwards: 70
CSeq: 157 NOTIFY
Contact: <sip:sipgate.example.com;transport=tcp>
Content-Type: application/pidf+xml
Content-Length: 192

<?xml version='1.0' encoding='UTF-8'?>
<presence xmlns='urn:ietf:params:xml:ns:pidf'
           entity='pres:juliet at example.com'>
   <tuple id='foo'>
     <status>
       <basic>open</basic>
     </status>
   </tuple>
</presence>

******

For more examples, go here:

http://www.xmpp.org/internet-drafts/draft-saintandre-xmpp-simple-09.html

See also:

http://www.ietf.org/internet-drafts/draft-ietf-simple-interdomain-scaling-analysis-00.txt

Peter

-- 
Peter Saint-Andre
XMPP Standards Foundation
http://www.xmpp.org/xsf/people/stpeter.shtml


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 7358 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.jabber.org/pipermail/juser/attachments/20070301/b3e9bf3d/attachment-0001.bin>


More information about the JUser mailing list