O
old.Requ!em
Guest
- Thread starter
- #61
UDP
You must also allow for length and optional checksum in the UDP header. The IP header ( UDP/IP ) adds an extra overhead as well. Example of a UDP/IP header follows:
[Edited by Requ!em on 13-03-01 at 14:11]
Originally posted by wz|Acronym
plus whatever the UDP header overhead is, which is less than 22 bytes that TCP inflicts; let's call it 8 (you need at least 8; sending address and receiving address, each being one word.)
You must also allow for length and optional checksum in the UDP header. The IP header ( UDP/IP ) adds an extra overhead as well. Example of a UDP/IP header follows:
IP: ----- IP Header -----
IP:
IP: Version = 4
IP: Header length = 20 bytes
IP: Type of service = 0x00
IP: xxx. .... = 0 (precedence)
IP: ...0 .... = normal delay
IP: .... 0... = normal throughput
IP: .... .0.. = normal reliability
IP: Total length = 180 bytes
IP: Identification = 16822
IP: Flags = 0x4
IP: .1.. .... = do not fragment
IP: ..0. .... = last fragment
IP: Fragment offset = 0 bytes
IP: Time to live = 254 seconds/hops
IP: Protocol = 17 (UDP)
IP: Header checksum = de8e
IP: Source address = 62.7.7.123, me
IP: Destination address = 213.221.174.66, them
IP: No options
IP:
UDP: ----- UDP Header -----
UDP:
UDP: Source port = 27950
UDP: Destination port = 27911
UDP: Length = 160
UDP: Checksum = 094B
[Edited by Requ!em on 13-03-01 at 14:11]