in Computer Networks edited by
590 views
1 vote
1 vote
In an $\textsf{IPv4}$ datagram, the value of $\textsf{HLEN}$ is $15,$ the value of total length is $300$ and the fragment offset value is $200.$ The sum of the sequence numbers of the first and the last bytes of the payload is _________
in Computer Networks edited by
590 views

1 Answer

1 vote
1 vote

Internet Header Length (is a multiple of 32 bits or 4 bytes) $ = \textsf{HLEN} \times 4 = 15 \times 4 = 60.$

Payload size $ = 300-60 = 240.$

Offset (scaling is $8$ bytes) $ = 200 \times 8 = 1600.$

So, sequence number of first byte, $a = 1600.$

Sequence number of last byte, $b = 1600 + 240 - 1 = 1839.$

$a + b = 1600+1839 = 3439.$

edited by
Answer: