edited by
21,703 views
79 votes
79 votes
Every host in an $\textsf{IPv4}$ network has a $1\text{-second}$ resolution real-time clock with battery backup. Each host needs to generate up to $1000$ unique identifiers per second. Assume that each host has a globally unique $\textsf{IPv4}$ address. Design a $50\text{-bit}$ globally unique ID for this purpose. After what period (in seconds) will the identifiers generated by a host wrap around?
edited by

11 Answers

2 votes
2 votes

After what period (in seconds) will the identifiers generated by a host wrap around?

IDs generated per second by a host = 1000

Total IDs possible = $2^{50}$

So, in $\frac{2^{50}}{1000}$ seconds, host will exhaust all IDs, and will have to wrap-around. This number is too high, and not in the options.

 

So, assume that the question means: every host generates 1000 IDs per second, after what time a random host will accidentally produce a duplicate ID?

IDs generated per second by a host = 1000

Total IDs possible = $2^{50}$

Total hosts possible with IPv4 = $2^{32}$ since IPv4 is a 32 bit address.

So, when all the hosts generate 1000 IDs each second, in how much time would they exhaust the total IDs =

$\frac{2^{50}}{2^{32}*1000}$; which is roughly equal to

$\frac{2^{50}}{2^{32}*2^{10}}$

$= \frac{2^{50}}{2^{42}}$

$= 2^{8}$

edited by
0 votes
0 votes
The question needs to state it better that the global ID is a combination of unique identifiers and IP addresses. In that case, we have 32 + 18 bits to combine. The identifiers are being used at the rate of 1000 per second. As a result, it will wrap around in $\frac{2^{18}}{1000}$ = 262.144 seconds
0 votes
0 votes

THERE ARE 50 bits to be used to design Globally Unique ID ,out of which 32 bits are for IP address 

Remaining Bits : 50-32=18 bits 

Each Host needs to generate 1000 identifiers per second for which it will require 10 bits

Wrap Around time will be computed as: (Total ID’s which can be generated) / (ID required to generate per second)

i.e  --→    (2^18 / 2^10 ) = 256 ans.

 

Answer:

Related questions

50 votes
50 votes
6 answers
1
go_editor asked Sep 28, 2014
17,302 views
An IP router implementing Classless Inter-domain Routing (CIDR) receives a packet with address $131.23.151.76$. The router's routing table has the following entries:$$\be...