edited by
2,365 views
5 votes
5 votes
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.
edited by

1 Answer

7 votes
7 votes
MTU of link = $800B$ (IPHeader + data) $800-20=780$(data)

For Fragmentation offset is stored dividing by 8 $({\frac{780}{8} \neq 0})$

$\therefore$ Units are fragmented as $ (776B \ \times\color{Blue} 5= 3880B )+ (120B \times \color{Blue} 1=\color{RED}{120B} ) = 4000B$

Answer = $6$ Fragments and size = $120$ B
edited by

Related questions

2 votes
2 votes
1 answer
2
1 votes
1 votes
1 answer
3
1 votes
1 votes
1 answer
4
arnav1827 asked Mar 21, 2023
1,219 views
One of the header fields in an IP datagram is the Time to Live (TTL) field. Which of the following statements best explains the need for this field ? It can be used to pr...