Main Page | Report this Page
Linux Forum Index  »  Linux Networking  »  Stream Identifier Option in RFC 791...
Page 1 of 1    

Stream Identifier Option in RFC 791...

Author Message
Bhaktavatsalam Nallanthighal...
Posted: Sat Sep 26, 2009 11:20 am
Guest
Hi,

Under the options of RFC 791, there is a Stream Identifier
option. The length is given as 4. But, the binary is given as 0000010,
which is 2. Is this a mistake or is there some wizardry associated?

Bhaktavatsalam Nallanthighal
bhaktavatsalam.n at (no spam) gmail.com
 
Lew Pitcher...
Posted: Sat Sep 26, 2009 4:41 pm
Guest
On September 26, 2009 17:20, in comp.os.linux.networking, Bhaktavatsalam
Nallanthighal (bhaktavatsalam.n at (no spam) gmail.com) wrote:

Quote:
Hi,

Under the options of RFC 791, there is a Stream Identifier
option. The length is given as 4. But, the binary is given as 0000010,
which is 2. Is this a mistake or is there some wizardry associated?

It is a mistake, and is noted in the Errata for RFC791
( http://www.rfc-editor.org/errata_search.php?rfc=791 )
where it says:

Section 3.1 says:

+--------+--------+--------+--------+
|10001000|00000010| Stream ID |
+--------+--------+--------+--------+
Type=136 Length=4

It should say:

+--------+--------+--------+--------+
|10001000|00000100| Stream ID |
+--------+--------+--------+--------+
Type=136 Length=4

Rationale:

This number count the length which is 4 and not 2.
10 in binary is 2 in decimal, 100 in binary is 4 in decimal.

The option-length octet counts the option-type octet and the
option-length octet as well as the option-data octets.(see page 15)
The length is 4 for the Stream identifier option as we have 4 bytes and
it is well written in page 16 of RFC 791:

....

--
Lew Pitcher

Master Codewright & JOAT-in-training | Registered Linux User #112576
http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Wed Dec 09, 2009 5:37 am