retagged by
35,417 views
69 69 votes
Consider an IP packet with a length of $4,500\;\text{bytes}$ that includes a $20\text{-byte}\;\textsf{IPv4}$ header and a $40\text{-byte}$ TCP header. The packet is forwarded to an $\textsf{IPv4}$ router that supports a Maximum Transmission Unit (MTU) of $600\;\text{bytes}$. Assume that the length of the IP header in all the outgoing fragments of this packet is $20\;\text{bytes}$. Assume that the fragmentation offset value stored in the first fragment is $0$.

The fragmentation offset value stored in the third fragment is ________.

11 Answers

Best answer
126 126 votes

Packet Length $= 4500\;\textsf{B}$

IP Payload $= 4500-20 = 4480\;\textsf{B}$

MTU $= 600\;\textsf{B}$
MTU Payload $= 600\;\textsf{B} -20\;\textsf{B} = 580\;\textsf{B}$
But payload should be multiple of $8$ so number nearest to $580$ and multiple of $8$ is $576$, so MTU payload $= 576\;\textsf{B}$
IP Packet size $= 576\;\textsf{B} + 20\;\textsf{B} = 596\;\textsf{B}$
Size of Offset $= \frac{576}{8} = 72$

  • $1^{\text{st}}$ fragment offset  $= 0$
  • $2^{\text{nd}}$ fragment offset  $= 72$
  • $3^{\text{rd}}$ fragment offset  $= 144$
edited by
54 54 votes

IP Packet $=$ Data $+$ Header

i.e $4500$ bytes $= 4480$ (Data) $+ 20$ (Header) bytes [Given]

Now MTU is $600$ bytes.

MTU includes Data $+$ Header

$\therefore$ Max data that can be sent is $580$ bytes.

However, the total length should be a multiple of $8$ (except for the last fragment), because this number will be stored in the Fragmentation offset, which specifies the number of bytes ahead of this fragment.

The nearest number to $580$ which is a multiple of $8$ is $576$

Therefore, the fragmentation will be done in this way $\Rightarrow$

$\begin{array}{l|c|c|c|c|c|c|c|c} \hline \text{Fragment#} & 1 & 2 & \textbf{3} & 4 & 5 & 6 & 7 & 8 \\\hline \text{Data(B)} & 576 & 576 & \textbf{576} & 576 & 576 & 576 & 576 & 448 \\\hline \text{Header Length(B)} & 20 & 20 & \textbf{20} & 20 & 20 & 20 & 20 & 20 \\\hline \text{Total Length(B)} & 596 & 596 & \textbf{596} & 596 & 596 & 596 & 596 & 468 \\\hline \text{Fragment Offset(B)} & 0 & 72 & \textbf{144} & 216 & 288 & 360 & 432 & 504 \\\hline \text{More Fragement} & 1 & 1 & \textbf{1} & 1 & 1 & 1 & 1 & 0 \\\hline \end{array}$

Since they have mentioned that the first fragment has an offset of $0$, the third fragment has an offset value of $144.$  

edited by
27 27 votes

In diagram data at network layer is 4480 small mistake 

Number of fragments=4480/576= =8

Offset of third fragment = (0+576+576)/8 =144

Offset of fourth fragment = (0+576+576+576)/8 =216 and so on..

Hence 144 is correct answer

edited by
1 flag:
✌ Edit necessary (Sameer Bawane “In the diagram, its not 4460, its 4480”)
5 5 votes
IP length = 4500B. Payload = 4480B.

MTU = 600B.

So, max packet we can make here is: Header(20) + Payload (580). But the payload isn't a multiple of 8 here.

Hence legally the max packet here is: Header(20) + Payload(576).

Seven such packets make up a total payload of 4032B.

 

So, last packet would be Header(20) + Payload (448).

 

Offset of first packet = 0.

Offset of second packet = 576B = 72

Offset of third packet = 72 + 72 = 144.
3 3 votes
Packet Length =4500B=4500B
IP Payload =4500−20=4480B=4500−20=4480B

MTU =600B=600B
MTU Payload =600B−20B=580B=600B−20B=580B
But payload should be multiple of 88 so number nearest to 580580 and multiple of 88 is 576576, so MTU payload =576B=576B
IP Packet size =576+20B=596B=576+20B=596B
Size of Offset == 57685768  =72=72

1st fragment offset  =0
2nd fragment offset  =72
3rd fragment offset  =144

and so on.........
Answer:
Position:
Show:

Related questions

17 17 votes
5 5 answers
12.9k
12.9k views
Arjun asked Feb 27, 2025
12,873 views
Suppose a message of size $15000$ bytes is transmitted from a source to a destination using IPv4 protocol via two routers as shown in the figure. Each router has a define...
27 27 votes
3 3 answers
12.1k
12.1k views
Arjun asked Feb 27, 2025
12,059 views
​​​​​Consider a network that uses Ethernet and $IPv4$. Assume that $IPv4$ headers do not use any options field. Each Ethernet frame can carry a maximum of $1500$ bytes in...
91 91 votes
13 answers 13 answers
34.3k
34.3k views
go_editor asked Apr 24, 2016
34,338 views
Consider three IP networks $A, B$ and $C$. Host $H_A$ in network $A$ sends messages each containing $180$ $bytes$ of application data to a host $H_C$ in network $C$. The ...
72 72 votes
10 answers 10 answers
55.9k
55.9k views
Arjun asked Sep 24, 2014
55,944 views
In an IPv4 datagram, the $M$ bit is $0$, the value of $HLEN$ is $10$, the value of total length is $400$ and the fragment offset value is $300$. The position of the datag...