[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE:



thanks juergen. do you have any number comparing the efficiencies
of ASCII and BER encoding ?

Subrata


-----Original Message-----
From: Juergen Schoenwaelder [mailto:schoenw@ibr.cs.tu-bs.de]
Sent: Wednesday, December 05, 2001 4:54 PM
To: sgoswami@umich.edu
Cc: eos@ops.ietf.org
Subject: Re:



>>>>> Subrata Goswami writes:

Subrata> Questions on the draft "Efficient Transfer of Bulk SNMP
Subrata> Data".

Subrata> 2. How much overhead does BER added compared to simple ASCII
Subrata> ?

BER encoding is usually (a) more space efficient than ASCII and (b)
more time efficient (in terms of CPU cycles needed to encode/decode)
than ASCII.

Just make a simple exercise: Encode/decode some large numbers using
BER and ASCII and look at the result and CPU cycles needed.

The price for this efficency is that you can't use printf() and
friends to encode/decode messages. People who argue for "simple ASCII"
encodings usually confuse efficiency on the wire or CPU wise with the
"efficiency" of creating protocol messages with string processing
languages.

If you use good SNMP tools, then the whole issue of creating messages
will be hidden from the programmer.

/js

--
Juergen Schoenwaelder      Technical University Braunschweig
<schoenw@ibr.cs.tu-bs.de>  Dept. Operating Systems & Computer Networks
Phone: +49 531 391 3289    Muehlenpfordtstr. 23, 38106 Braunschweig, Germany
Fax:   +49 531 391 5936    <http://www.ibr.cs.tu-bs.de/~schoenw/>