• retagged by
56,523 views
72 72 votes

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 datagram, the sequence numbers of the first and the last bytes of the payload, respectively are:

  1. Last fragment, $2400$ and $2789$
  2. First fragment, $2400$ and $2759$
  3. Last fragment, $2400$ and $2759$
  4. Middle fragment, $300$ and $689$

10 Answers

Best answer
121 121 votes

$M=0$ meaning no more fragments after this. Hence, its the last fragment.

IHL = internet header length = $10 \times 4 = 40B$ coz $4$ is the scaling factor for this field.
Total Length = $400B$
Payload size = Total length - Header length = $400 - 40 = 360B$

fragment offset = $300 \times 8 = 2400B$ = represents how many Bytes are before this. $8$ is the scaling factor here.
$\therefore$ the first byte  = $2400$

Last byte = first byte  + total bytes in payload - 1 = $2400 + 360 - 1 = 2759$

Option C is correct.

• edited by
31 31 votes

there is a similar problem has been given in "Forouzan book" 

http://erdos.csie.ncnu.edu.tw/~ccyang/TCPIP/TCPIPSlide.html

29 29 votes
payload =total length-header

             =400-40

              =360

M bit is 0 so it is last fragment

offset is 300

so packet's first bit  300*8=2400

last bit =2400+359=2759

so ans is c
9 9 votes
Since M=0; It is indication of last fragment.

Data length=Total Length-header length

Data length=400-10*4=360

Fragments offset=300

Number of data byte ahead from this fragments is=300*8=2400

Last byte of last frame is=2400+360=2760

Last byte=2759(Because we starting our counting from 0---5---59)
3 3 votes
ans c)
1 1 vote

Given Fragment offset = 300, M = 0 So Last Fragment

For Fragment offset scaling factor is 8 so Total 300*8= 2400B ahead of Last fragment which are ranging from (0 to 2399)

So Last Fragment seq no starts from 2400

Now Given Total length = 400B In this Header size = 10*4=40B (Scaling factor of IP Header = 4)

Data = Total length - header length = 400-40 =360B

So Sequence number of last byte = 2759 

Option C

 

Answer:
Position:
Show:

Related questions

93 93 votes
13 answers 13 answers
34.9k
34.9k views
go_editor asked Apr 24, 2016
34,946 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 ...
102 102 votes
9 answers 9 answers
38.5k
38.5k views
Kathleen asked Sep 18, 2014
38,515 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 $\...
28 28 votes
3 3 answers
12.2k
12.2k views
Arjun asked Feb 27, 2025
12,196 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...
18 18 votes
5 5 answers
13.0k
13.0k views
Arjun asked Feb 27, 2025
13,017 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...