What is the complete size of an IP Packet?
|
feedback
|
|
There is no default size, it varies, ranging from 20 to 65535 bytes including the minimal header size. An IP packet with a length of only 20 bytes is unlikely however, it would only be possible with a packet without payload or data. The header length can vary between 20 and 60 bytes, the header contains information about the packet/protocol and no actual packet data is included in the header. | |||||||||||
feedback
|
|
Depends what's in it. IPv4 packets have a header that is a minimum of 160 bits, but have an variably-sized options field (up to 480 bits that will be padded out to be an even multiple of 32 bits) and a variable size of payload. You also have a TCP tag - TCP segments also have a header than is a minimum of 160 bits plus up to 320 bits of options field - which, again is padded out to be a multiple of 32 bits in necessary - and a variable payload size. The TCP segment will then be used as the payload of the network layer protocol packet which, in TCP's case, is almost always IP so the absolute minimum size of a TCP message as it reached the data link layer would be 320 bits, plus the size of the payload. | |||
|
feedback
|