TweetFollow Us on Twitter

Jun 01 MacTech Online

Volume Number: 17 (2001)
Issue Number: 06
Column Tag: MacTech Online

Jabber

by Jeff Clites online@mactech.com

Last month we began our coverage of P2P (peer-to-peer) technologies. The P2P field is being fueled by open-source projects which have sprung up in response to the popularity of specific proprietary applications in this genre, by generalizing, improving, or simply imitating them. Last month we discussed Gnutella, an open-source protocol for peer-to-peer sharing of files and other resources. Gnutella was inspired by Napster, generalizing the concept to support sharing of things other than music files, and decentralizing searches to avoid any one critical point which could be attacked, by either technological or legal means. This month we are going to look into Jabber, which takes its cue from instant messaging (IM) and chat products such as AIM (AOL Instant Messenger), Yahoo Pager, MSN Messenger, ICQ, and IRC. Jabber's goal is to provide a "universal" XML-based platform for instant messaging, which can bridge to other protocols as well as support new applications of messaging.

Jabber originated with Jeremie Miller's frustration with having to use multiple pieces of IM software in order to keep up with all of his friends, who were using a variety of different IM systems. His response to this proliferation was to come up with a protocol which was designed to both serve as a messaging platform on its own and to transparently bridge to others, so that he could use one protocol (and one client application) to communicate with all of his friends. Unsurprisingly, he chose XML as the basis for Jabber. So what is Jabber, exactly?

Jabber in a Nutshell

Jabber isn't a specific application, and the Jabber community likes to point out that it isn't a protocol either—they prefer to call it a platform. In truth, Jabber represents a collection of XML-based message formats, and the protocol for communicating them.

Jabber is completely XML-based, and communicates over client-server based TCP/IP connections, modeled on the email system. Users are identified by Jabber IDs, which resemble email addresses, and are of the form user@server/resource. (The "resource" portion allows the same user to connect multiple times from different applications or locations, and so the name of the client application or location, such as "home" or "laptop", is often used.) Jabber users begin a session by connecting to their local Jabber server. Messages are sent by addressing them to other Jabber IDs and handing them off to the local server, which routes them to the remote user's server in a manner similar to how email is routed and delivered. The remote user then receives the message via a connection to his local server.

Jabber's design philosophy takes XML seriously, and also sees as fundamental the placing of the bulk of the logic on the server. As mentioned above, one of Jabber's original goals was to bridge to other IM system, so that Jabber users could talk to other IM users without either really having to care or fully realize that they are using different systems. The technology which allows this accordingly lives on the server side, and Jabber users bridge to other IM systems by having the server act as their proxy—from the point of view of the foreign IM system, the server is the AIM client (for example), and it takes care of translating Jabber messages into AIM messages, and vice versa. This translation is done by components of the server called "transports" (or more recently, just "components"). The value of this approach is that it makes the creation of Jabber clients relatively simple, and additional functionality can be added by upgrading Jabber servers, without requiring a widespread client upgrade.

But Jabber doesn't just bridge to other systems—in the ideal situation, everyone could just use Jabber natively. As an IM technology in its own right, Jabber is full-featured: it supports "buddy lists" as well as notification of whether these users are currently online. It goes a step further than most other IM systems, in that buddy lists (called "rosters") are stored server-side, which facilitates notification of online status (called "presence"), as well as allowing users to connect to Jabber server from different machines using different client software without having to keep separate rosters in sync. Additionally, notification under Jabber occurs only with consent—a user must "subscribe" to another user in order to receive notification of whether they are online, and the other user has to authorize the subscription. This affords additional privacy, and could be used to combat spammers (by refusing messages from users to which one is not already subscribed, for instance). Also, Jabber supports the concept of traditional IM messages (which Jabber calls "chat"), group chats similar to IRC (called "group chat"), and more passive messages.

Strengths and Weaknesses

In additional to serving as a traditional human-to-human communication technology, Jabber is aspiring to serve as a mechanism for facilitating application-to-application (A2A) communication, or as a middleware to transport other types of messages. Fanciful potential applications include "smart" appliances which communicate in order to negotiate for resources (such as a coffee pot which turns itself on when the alarm clock goes off). As of yet, there don't seem to be any applications in this arena, and it isn't clear if this is a reasonable goal—other technologies such as Java's Jini have not seemed to take off in the "smart appliance" area, and for more traditional application-to-application communication there is already a great deal of underutilized technology out there, and the idea of an AI-like communication between desktop applications isn't realistically on the horizon. As a transport mechanism for other forms of inter-process communication there is potential, but Jabber doesn't have a clear advantage over the alternatives already available, and for some applications a protocol more directly designed for this task might work better.

In general, Jabber seems to suffer a little from what I would call the "premature need for generalization", and this is just one of the symptoms. Although Jabber is trying to be general-purpose, it's clear that it was designed with instant messaging in mind—for instance, its message types are "chat", "groupchat", "default", and "error". In truth, many of the new XML-based protocols today are trying to fill some perceived general need at the same time they are trying to fill a specific one. In general, I'd prefer to see a strong solution to a particular problem (such as the need for an open instant messaging protocol), and have generalization come later, if it's really needed and after some experience has been gained with the concrete application. Then, the original use could become one application of a more general technology, possibly after reimplementation.

Jabber is composed of open protocols and formats, and there are open-source implementations of clients and servers as well. The importance of this shouldn't be underestimated, in light of the proliferation of mutually incompatible, restrictive IM technologies. But the most valuable and immediately useful aspects of Jabber, in my opinion, aren't really the direct consequence of the "open source" approach: they are actually security-related. First, it's straightforward for companies to set up a private Jabber server behind the corporate firewall. This is actually more significant than it may sound, because despite the inherent insecurity of using AIM (for instance) for communication of confidential material, it's so useful that people often do it anyway. With Jabber, all of this communication can happen without the need for it to pass through an external server, whose security isn't under the control of its users. In the same vein, Jabber is incorporating support for encryption, both PGP-like procedures for the encryption of message content, and SSL for encryption of client-server and server-server communication. They do get points off, however, for not incorporating this from the start; we have enough insecure protocols which originated while the internet was a safe, private playground, and anyone developing new protocols today has no excuse for ignoring the need for some level of encryption as a fundamental component.

Jabber Resources

If you're interested in Jabber from a developer's perspective (or as a user, for that matter), the central hub of all things Jabber is Jabber.org. Here you can find developer documentation, as well as FAQs, user guides, and links to client implementations. Developers will want to look at the Technology Overview, the Protocol Overview, and the Programmers Guide, as well as the links to available code libraries. Also, those implementing Jabber clients in particular will want to check out The Jabber Client Developer's Cheat Sheet, which will help steer you around the "gotchas". For examples of some alternative uses of Jabber, take a look at DJ Adams' articles on the O'Reilly Network, or on his own Fun with Jabber site. Adams' applications use the Net::Jabber Perl module, which makes this sort of experimentation a snap, and you'll want to get your hands on this if you are Perl-savvy. He also has an experimental implementation of doing XML-RPC over Jabber. O'Reilly has some additional general coverage of Jabber, both on their portal site and in their Peer-to-Peer book, the Jabber chapter of which is available online. Finally, try Eric Peyton's Fire IM client for Mac OS X, which supports Jabber as well as a variety of other IM protocols, and keep an eye on JabberCentral for coverage of current related news.

Jabber - Open Source XML-Based Interoperable Instant Messaging and Presence Platform
http://www.jabber.org/

Jabber FAQ
http://docs.jabber.org/general/html/faq.html

Jabber Technology Overview
http://docs.jabber.org/general/html/overview.html

Jabber Protocol Overview
http://docs.jabber.org/general/html/protocol.html

Jabber Programmer's Guide
http://docs.jabber.org/jpg/html/main.html

Jabber Projects - Jabber libraries
http://jabber.org/?oid=71

Jabber Client Developer's Cheat Sheet
http://homepage.mac.com/jens/Jabber/JabberClientCheatSheet.html

You Have Mail! [Mar. 09, 2001]
http://www.openp2p.com/pub/a/p2p/2001/03/09/adams_1.html

A More Sensitive Mail Notifier [Apr. 13, 2001]
http://www.openp2p.com/pub/a/p2p/2001/04/13/jabber.html

Fun With Jabber
http://www.pipetree.com/jabber/

Net::Jabber
http://search.cpan.org/search?dist=Net-Jabber

XMLRPC over Jabber
http://www.pipetree.com/jabber/XMLRPC/

XML Messaging with Jabber [Oct. 06, 2000]
http://www.openp2p.com/pub/a/p2p/2000/10/06/jabber_xml.html

Jabber Works: Here's How [Oct. 06, 2000]
http://www.openp2p.com/pub/a/p2p/2000/10/06/jabber_works.html

Peer-to-Peer: Chapter 6: Jabber
http://www.oreilly.com/catalog/peertopeer/chapter/ch06.html

epicware: Fire
http://www.epicware.com/fire.html

JabberCentral
http://www.jabbercentral.com

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

The secrets of Penacony might soon come...
Version 2.2 of Honkai: Star Rail is on the horizon and brings the culmination of the Penacony adventure after quite the escalation in the latest story quests. To help you through this new expansion is the introduction of two powerful new... | Read more »
The Legend of Heroes: Trails of Cold Ste...
I adore game series that have connecting lore and stories, which of course means the Legend of Heroes is very dear to me, Trails lore has been building for two decades. Excitedly, the next stage is upon us as Userjoy has announced the upcoming... | Read more »
Go from lowly lizard to wicked Wyvern in...
Do you like questing, and do you like dragons? If not then boy is this not the announcement for you, as Loongcheer Game has unveiled Quest Dragon: Idle Mobile Game. Yes, it is amazing Square Enix hasn’t sued them for copyright infringement, but... | Read more »
Aether Gazer unveils Chapter 16 of its m...
After a bit of maintenance, Aether Gazer has released Chapter 16 of its main storyline, titled Night Parade of the Beasts. This big update brings a new character, a special outfit, some special limited-time events, and, of course, an engaging... | Read more »
Challenge those pesky wyverns to a dance...
After recently having you do battle against your foes by wildly flailing Hello Kitty and friends at them, GungHo Online has whipped out another surprising collaboration for Puzzle & Dragons. It is now time to beat your opponents by cha-cha... | Read more »
Pack a magnifying glass and practice you...
Somehow it has already been a year since Torchlight: Infinite launched, and XD Games is celebrating by blending in what sounds like a truly fantastic new update. Fans of Cthulhu rejoice, as Whispering Mist brings some horror elements, and tests... | Read more »
Summon your guild and prepare for war in...
Netmarble is making some pretty big moves with their latest update for Seven Knights Idle Adventure, with a bunch of interesting additions. Two new heroes enter the battle, there are events and bosses abound, and perhaps most interesting, a huge... | Read more »
Make the passage of time your plaything...
While some of us are still waiting for a chance to get our hands on Ash Prime - yes, don’t remind me I could currently buy him this month I’m barely hanging on - Digital Extremes has announced its next anticipated Prime Form for Warframe. Starting... | Read more »
If you can find it and fit through the d...
The holy trinity of amazing company names have come together, to release their equally amazing and adorable mobile game, Hamster Inn. Published by HyperBeard Games, and co-developed by Mum Not Proud and Little Sasquatch Studios, it's time to... | Read more »
Amikin Survival opens for pre-orders on...
Join me on the wonderful trip down the inspiration rabbit hole; much as Palworld seemingly “borrowed” many aspects from the hit Pokemon franchise, it is time for the heavily armed animal survival to also spawn some illegitimate children as Helio... | Read more »

Price Scanner via MacPrices.net

Apple’s 13-inch M2 MacBook Airs return to rec...
Apple retailers have 13″ MacBook Airs with M2 CPUs in stock and on sale this weekend starting at only $849 in Space Gray, Silver, Starlight, and Midnight colors. These are the lowest prices currently... Read more
Best Buy is clearing out iPad Airs for up to...
In advance of next week’s probably release of new and updated iPad Airs, Best Buy has 10.9″ M1 WiFi iPad Airs on record-low sale prices for up to $200 off Apple’s MSRP, starting at $399. Sale prices... Read more
Every version of Apple Pencil is on sale toda...
Best Buy has all Apple Pencils on sale today for $79, ranging up to 39% off MSRP for some models. Sale prices for online orders only, in-store prices may vary. Order online and choose free shipping... Read more
Sunday Sale: Apple Studio Display with Standa...
Amazon has the standard-glass Apple Studio Display on sale for $300 off MSRP for a limited time. Shipping is free: – Studio Display (Standard glass): $1299.97 $300 off MSRP For the latest prices and... Read more
Apple is offering significant discounts on 16...
Apple has a full line of 16″ M3 Pro and M3 Max MacBook Pros available, Certified Refurbished, starting at $2119 and ranging up to $600 off MSRP. Each model features a new outer case, shipping is free... Read more
Apple HomePods on sale for $30-$50 off MSRP t...
Best Buy is offering a $30-$50 discount on Apple HomePods this weekend on their online store. The HomePod mini is on sale for $69.99, $30 off MSRP, while Best Buy has the full-size HomePod on sale... Read more
Limited-time sale: 13-inch M3 MacBook Airs fo...
Amazon has the base 13″ M3 MacBook Air (8GB/256GB) in stock and on sale for a limited time for $989 shipped. That’s $110 off MSRP, and it’s the lowest price we’ve seen so far for an M3-powered... Read more
13-inch M2 MacBook Airs in stock today at App...
Apple has 13″ M2 MacBook Airs available for only $849 today in their Certified Refurbished store. These are the cheapest M2-powered MacBooks for sale at Apple. Apple’s one-year warranty is included,... Read more
New today at Apple: Series 9 Watches availabl...
Apple is now offering Certified Refurbished Apple Watch Series 9 models on their online store for up to $80 off MSRP, starting at $339. Each Watch includes Apple’s standard one-year warranty, a new... Read more
The latest Apple iPhone deals from wireless c...
We’ve updated our iPhone Price Tracker with the latest carrier deals on Apple’s iPhone 15 family of smartphones as well as previous models including the iPhone 14, 13, 12, 11, and SE. Use our price... Read more

Jobs Board

Licensed Practical Nurse - Womens Imaging *A...
Licensed Practical Nurse - Womens Imaging Apple Hill - PRN Location: York Hospital, York, PA Schedule: PRN/Per Diem Sign-On Bonus Eligible Remote/Hybrid Regular Read more
DMR Technician - *Apple* /iOS Systems - Haml...
…relevant point-of-need technology self-help aids are available as appropriate. ** Apple Systems Administration** **:** Develops solutions for supporting, deploying, Read more
Operating Room Assistant - *Apple* Hill Sur...
Operating Room Assistant - Apple Hill Surgical Center - Day Location: WellSpan Health, York, PA Schedule: Full Time Sign-On Bonus Eligible Remote/Hybrid Regular Read more
Solutions Engineer - *Apple* - SHI (United...
**Job Summary** An Apple Solution Engineer's primary role is tosupport SHI customers in their efforts to select, deploy, and manage Apple operating systems and Read more
DMR Technician - *Apple* /iOS Systems - Haml...
…relevant point-of-need technology self-help aids are available as appropriate. ** Apple Systems Administration** **:** Develops solutions for supporting, deploying, Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.