1,475 views
1 1 vote

If a datagram of size 4000 bytes from transport layer arrives at network layer and it has to be forwarded through a link with maximum capacity of 800 bytes. Then calculate the number of fragments needed if the header size is 20 bytes. Also calculate the data size of the last fragment.

  1. 5 fragments ,100 bytes
  1. 5 fragments ,104 bytes
  1. 6 fragments ,100 bytes
  1. 6 fragments ,104 bytes

2 Answers

0 0 votes

 

Byte Address 776 +(20 header) 776 +(20) 776 +(20) 776 +(20) 776 +(20) 100 +(20)
Fragment Offset 0 97 194 291 388 485
M-bit 1 1 1 1 1 0

 

 

IP-Payload= 3980bytes ; MTU= 780bytes

Fragment Offset: ByteAddress/8 ; 

Hence No. of fragments required to accomodate 4000bytes: 6

0 0 votes
The number of fragments needed would be 6, and the data size of the last fragment would be 100 bytes. This is because, the total size of the datagram is 4000 bytes and header size is 20 bytes so, the total data size is 4000 - 20 = 3980 bytes. And the maximum capacity of the link is 800 bytes, so the number of fragments needed is 3980/800 = 4.975 = 6 (rounding up). The last fragment will have the remaining data, which is 3980 - (6-1)*800 = 100 bytes.
Position:
Show:

Related questions

1 1 vote
1 1 answer
1.5k
1.5k views
newdreamz a1-z0 asked Jan 31, 2019
1,546 views
Suppose that host A is connected to a router R1, R1 is connected to another router R2 and R2 is connected to host B. Suppose that a TCP message that contains 900 bytes of...
1 1 vote
1 1 answer
378
378 views
TanayH asked Dec 7, 2025
378 views
Can anyone please confirm:In the last fragment, if we are having 4B (which is not a multiple of 8), then do we add 4 padding bits? Below is an image from Made Easy's Ram ...
2 2 votes
3 answers 3 answers
618
618 views
ace0-0 asked Oct 30, 2025
618 views
MTU of sender's network is 520 and MTU of receiver's network is 270. If a sender wants to data of 500 bytes of data (excluding header) then what is the number of fragment...
3 3 votes
1 answers 1 answer
921
921 views
js__ asked Oct 5, 2025
921 views
A 6400 byte message is to be transmitted over a 2-hop path in store-and-forward packet switching network. The netwok limits packets to a memory size of 2032 bytes includi...