how is the packet checksum and packet header checksum calculated for the tcp handshake packets, what is the matematichal formula?
Announcement
Collapse
No announcement yet.
packet checksum
Collapse
X
-
Originally posted by wezyaphow is the packet checksum and packet header checksum calculated for the tcp handshake packets, what is the matematichal formula?Last edited by Thorn; September 24, 2005, 17:58.Thorn
"If you can't be a good example, then you'll just have to be a horrible warning." - Catherine Aird
-
Originally posted by wezyapwell, what all those pages from that search tells me that the packets have a checksums inside them, but not how those is calculated... and seting the checksum to zero would make the reciver discard it, right?
TCP, IP, UDP, ICMP? questions about these? Check the RFC.
rfc793
Originally posted by url[chop]
Checksum: 16 bits
The checksum field is the 16 bit one's complement of the one's complement sum of all 16 bit words in the header and text. If a segment contains an odd number of header and text octets to be checksummed, the last octet is padded on the right with zeros to form a 16 bit word for checksum purposes. The pad is not transmitted as part of the segment. While computing the checksum, the checksum field itself is replaced with zeros.
...[chop]
Be careful when following RFC. Newer RFC can obselete older ones, or alter definitions or enhance them.
Comment
-
books
have read the rfc793 document, and now I am thinking about buy some books on this subject, and I surfed amazon.com and found The Protocols (TCP/IP Illustrated, Volume 1) and The Implementation (TCP/IP Illustrated, Volume 2) , and I wondered if someone have read them and would recomand them? and if so why/why not? and witch one of them have the most in-depth information about this tread's subject (checksum in tcp/ip packets), and is they up to date?
Comment
-
Originally posted by wezyaphave read the rfc793 document, and now I am thinking about buy some books on this subject, and I surfed amazon.com and found The Protocols (TCP/IP Illustrated, Volume 1) and The Implementation (TCP/IP Illustrated, Volume 2) , and I wondered if someone have read them and would recomand them? and if so why/why not? and witch one of them have the most in-depth information about this tread's subject (checksum in tcp/ip packets), and is they up to date?
There is disagreement on Volume 2. Some people criticize the suggested methods for implementing TCP/IP WRT embedded devices, and OS with optimization for [speed|memory|resources|whatever].
It has been a while since I looked at Vol 2 or Vol 3, but Vol 2 was good as food for thought the last time I looked at it. (6 or 7 years ago)
I bought Vol 2 to better guess fundamental assumptions made by at least one coder on implementing TCP/IP suite of protocols, and see if I could find security issues that might be shared by other implementors who used closed source models.
There are several books on IPv6, but I have not found one that met my search criteria for estimating "a good book."
I like the style of Stevens with TCP/IP Illustrated an his other books. I also like Djitskra's style of writing. I strongly dislike the writing style of Tannenbaum.
Comment
-
Originally posted by wezyapthanks again TheCotMan, I trust your review and order them.
Maybe you won't like Steven's style.
Comment
Comment