RE: [Rfid] XML vs. Text vs. Binary

"Frederico, Gustavo" <gustavo.frederico@allstream.com> Thu, 21 July 2005 12:55 UTC

Received: from localhost.localdomain ([127.0.0.1] helo=megatron.ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1DvaaR-0002wX-RY; Thu, 21 Jul 2005 08:55:39 -0400
Received: from odin.ietf.org ([132.151.1.176] helo=ietf.org) by megatron.ietf.org with esmtp (Exim 4.32) id 1DvaaQ-0002wK-TV for rfid@megatron.ietf.org; Thu, 21 Jul 2005 08:55:38 -0400
Received: from ietf-mx.ietf.org (ietf-mx [132.151.6.1]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id IAA26833 for <rfid@ietf.org>; Thu, 21 Jul 2005 08:55:37 -0400 (EDT)
Received: from caluxsmtp2.allstream.com ([209.82.17.131]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1Dvb4R-0005kb-Qe for rfid@ietf.org; Thu, 21 Jul 2005 09:26:41 -0400
Received: from calvs002.att-intra.com (calvs002 [10.1.1.46]) by caluxsmtp2.allstream.com (Postfix) with SMTP id 8D6EBA3257 for <rfid@ietf.org>; Thu, 21 Jul 2005 06:55:27 -0600 (MDT)
Received: From torex006.att-intra.com ([10.18.6.173]) by calvs002.att-intra.com (WebShield SMTP v4.5 MR2); id 1121950521334; Thu, 21 Jul 2005 06:55:21 -0600
X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
Subject: RE: [Rfid] XML vs. Text vs. Binary
Date: Thu, 21 Jul 2005 08:55:25 -0400
Message-ID: <F0A5661C0654E141B2BA417705F2B2782007D8E2@TOREX006.att-intra.com>
Thread-Topic: [Rfid] XML vs. Text vs. Binary
Thread-Index: AcWNmsImysFM/F8sTzm60PozG2YbcQAVZhkw
From: "Frederico, Gustavo" <gustavo.frederico@allstream.com>
To: rfid@ietf.org
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 34d35111647d654d033d58d318c0d21a
Content-Transfer-Encoding: quoted-printable
Cc:
X-BeenThere: rfid@lists.ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: Control and Access of Infrastructure for RFID Operations Discussion List <rfid.lists.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/rfid>, <mailto:rfid-request@lists.ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/rfid>
List-Post: <mailto:rfid@lists.ietf.org>
List-Help: <mailto:rfid-request@lists.ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/rfid>, <mailto:rfid-request@lists.ietf.org?subject=subscribe>
Sender: rfid-bounces@lists.ietf.org
Errors-To: rfid-bounces@lists.ietf.org

  XML is already the de facto standard for interaction between disparate
systems. That is clear to people that work in software and systems
integration. Perhaps it's not so obvious to folks that work mostly with
hardware. I would be concerned to used a protocol that is not XML-based
and defines software interface. The size of XML does not have to be so
much of a concern. It will probably be x % of what it would be if it
were not XML-based anyway. The human-readability of XML is not a problem
either, with a plethora of XML tools that facilitate editing and
generation. There are lots of packages for parsing in Java, Perl and
.NET compact framework. There's NanoXML, for instance, a light-weight
Java xml parser that requires 6K. There is work on W3C on a binary
representation of XML  ( http://www.w3.org/XML/Binary/ ), but it doesn't
seem to be finalized, and maybe it isn't necessary in this case either.
XML brings many benefits that are well-documented. What the group may
also consider is the use of RDF or OWL-Lite, for strong semantics and
scalability, that I think would fit configuration management very well.

Regards,
Gustavo Frederico
Allstream

-----Original Message-----
From: rfid-bounces@lists.ietf.org [mailto:rfid-bounces@lists.ietf.org]
On Behalf Of Margaret Wasserman
Sent: Wednesday, July 20, 2005 10:19 PM
To: rfid@ietf.org
Subject: [Rfid] XML vs. Text vs. Binary


We've had some discussion on this list about XML encoding vs. binary 
encoding...

I'm not sure that we are in agreement on all of the related points, 
but the concerns with XML seem to be code size on the reader and 
protocol overhead on the wire.  These concerns can be minimized by 
the use of a restricted XML subset, such as canonical XML (see RFC 
3076).  However, there still seem to be some concerns along those 
lines.

The only advantages that I remember being discussed for a binary 
encoding were the complement to the concerns with XML:  smaller code 
size on the reader and less protocol overhead.

I think, though, that our discussions have missed a major benefit of 
any text-based encoding (whether a protocol-specific text encoding or 
canonical XML):  the ability to access the device using text 
processing tools (such as Perl scripts) and/or for a human to 
interact with the device directly.

In 2002, the IAB held a Network Management workshop that is 
documented in RFC 3535.  I would suggest that folks on this list read 
this report which can be found at:

http://www.ietf.org/rfc/rfc3535.txt?number=3535

One of the interesting findings of that workshop was that one of the 
significant barriers to the use of SNMP as a configuration or control 
protocol is that it uses a binary encoding, which means that 
SNMP-specific client software (an SNMP browser or manager) is needed 
to interact with the device via SNMP.  This prevents SNMP access 
using text processing tools or via human interaction.

I would not like to see the industry create the same problem with an 
RFID control protocol.

If there is real evidence that canonical XML would require too much 
code size on the reader and/or would result in an unacceptable level 
of protocol overhead, perhaps we could consider a protocol-specific 
text-based encoding (similar to FTP, SMTP and HTTP)?  I don't believe 
that parsing a well-defined text-based encoding would require much 
more code than processing a binary encoding.  And, in some cases a 
text based encoding would actually result in less data on the wire -- 
for instance a 32 bit integer with the value of 3 would be encoded in 
one byte of text ("3"), while it would require 4 bytes in binary 
encoding ("0x00000003').

Personally I like canonical XML, because I think it strikes a good 
balance between being human readable and machine-parsable.  I also 
like the fact that the syntax is already well-defined.  However, I 
think that well-defined, protocol-specific textual encodings could 
also achieve that balance, perhaps with less impact in the areas of 
concern (code size and protocol overhead).

What do others think?  Should we at least consider a text-based
encoding?

Margaret



_______________________________________________
Rfid mailing list
Rfid@lists.ietf.org
https://www1.ietf.org/mailman/listinfo/rfid

_______________________________________________
Rfid mailing list
Rfid@lists.ietf.org
https://www1.ietf.org/mailman/listinfo/rfid