3,397 views
0 votes
0 votes
A host is sending 100 datagrams to another host. If the identification number of the
first datagram is 1024, what is the identification number of the last (in IPv4)?

my doubt in IPV4,  identification number is same for all the datagram that is 1024 .

but see

The identification field is incremented for each non-fragmented datagram. If the
first is 1024, then the last is 1024 + 99 = 1123

pls clear this

1 Answer

0 votes
0 votes
Identification number is used to uniquely identify the datagram when it leaves the source host.

For this uniqueness Ipv4 protocol uses a counter to label the datagram. Intiallly the counter is set to any positive number.

When Ipv4 protocol starts sending datagrams it copies the current value of identification field and increments the counter by 1.

When fragmentation is done, the value of fragmentation field is copied to all the fragments i.e all fragments have same identification number as original datagram.

So if source is sending 100 datagrams and for the first datagram identification no is 1024 then for the last datagram identification no is 1024 + 99 = 1123.

Suppose if any of the datagram is fragmented, say 50th datagram is fragmented into 4 fragments then these fragments have same identification no of 1024+49 = 1073.

Hope it clears you. :)

Related questions

1 votes
1 votes
2 answers
2
Overflow04 asked Sep 11, 2022
700 views
I am slightly confused in 40 Gbps. When to use 2^30 and when to use 10^3 in conversion.
0 votes
0 votes
0 answers
3
Overflow04 asked Sep 3, 2022
269 views
Please clarify the fourth option only.My doubt: if the same word in requires repeatedly, then for the first the word will be miss and there after it is continuously in u...
0 votes
0 votes
0 answers
4
Ansh Sinha asked Jan 7
142 views
In CRC, if the dataword is 5 bits and the codeword is 8 bits, how many 0s need to be added to the dataword to make the dividend? What is the size of the remainder? What i...