[come from: http://www.cnblogs.com/davidlili/archive/2006/08/29/489918.html] IP TCP UDP 结构 IP Header Format : RFC 791
The IP header structure is as follows:
4 8 16 32 bits Ver.IHLType of serviceTotal lengthIdentificationFlagsFragment offsetTime to liveProtocolHeader checksumSource addressDestination addressOption + PaddingData IP header structure IPV6 :
The IPv6 header structure is as follows:
4 4 16 24 32 bits Ver.PriorityFlow labelPayload lengthNext headerHop limitSource address(128 Bits)Destination address(128 bits) IPv6 header structure TCP Header Format : RFC 793The TCP header structure is as follows:
16 32 bits Source portDestination portSequence numberAcknowledgement numberOffsetResrvdUAPRSFWindowChecksumUrgent pointerOption + PaddingData TCP header structure
The UDP header structure is shown as follows:
16 32 bits Source portDestination portLengthChecksumData UDP header structure