218k views
5 votes
Taking into account only the structure of the IPv4 packet headers:

What is the maximum permittable size (in bits) for an IPv4 packet?
How many IPv4 addresses can exist?

User Rudolfv
by
5.5k points

1 Answer

5 votes

The IPv4 packet headers have 16 bits reserved for the length value. The maximum value you can put in 16 bits is 65535, so that is the maximum size in bytes. To get the answer in bits, multiply by 8, and you get 524280 bits.

An IPv4 address is formed from 4 bytes. Theoretically, that gives room for 256^4 = 4294967296 ip addresses, however, several ranges are reserved for special purposes.

Taking into account only the structure of the IPv4 packet headers: What is the maximum-example-1
User JustLogic
by
6.1k points