+3 votes
in Computer Networks by

1 Answer

+1 vote
by
selected by
 
Best answer

If the first and the last addresses are known, the block is fully defined. We can first find the number of addresses in the block. We can then use the relation

N = 232 − n → n = 32 − log2N

to find the prefix length. For example, if the first address is 17.24.12.64 and the last address is 17.24.12.127, then the number of addresses in the block is 64. We can find the prefix length as

n = 32 − log2N = 32 − log264 = 26

The block is then 72.24.12.64/26.

Related questions

Welcome to CPEN Talk
Solution-oriented students of computer engineering on one platform to get you that

ONE SOLUTION

Each hair in Chuck Norris's beard contributes to make the world's largest DDOS.
...