G
G
gd1xza2021-01-24 15:24:49
Communication protocols
gd1xza, 2021-01-24 15:24:49

Why is the maximum ipv4 packet size 65535?

Why exactly 65535?
If mtu ethernet is usually 1500 so as not to take up a long channel, this is understandable, but why does ipv4 have exactly 65535 and not 1500 like the one in which it is encapsulated or not a different size?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-01-24
@gd1xza

By the fact that only 16 bits are allocated for the packet size. https://en.wikipedia.org/wiki/IPv4
2^16 is about 65k. It is physically impossible to specify a larger packet size.
Well, IP and Ethernet overlap a little. A single IP packet can be carried by multiple Ethernet (or non-ethernet) frames.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question