955 views
0 0 votes
Suppose a $TCP$ message that contains $1024$ bytes of data and $20$ bytes of $TCP$ header is passed to $IP$ for delivery across two networks interconnected by a router (i.e., it travels from the source host to a router to the destination host). The first network has an $MTU$ of $1024$ bytes; the second has an $MTU$ of $576$ bytes. Each network's $MTU$ gives the size of the largest $IP$ datagram that can be carried in a link layer frame. Give the sizes and offsets of the sequence of fragments delivered to the network layer at the destination host. Assume all $IP$ headers are $20$ bytes.

1 Answer

0 0 votes

Before entering the first network,we have an IP datagram of 1024+20(TCP header)+20(IP header)=1064 bytes.so the IP payload is 1044 bytes .This datagram needs to split into 2 fragments.

  • Fragment 1: IP header of 20 bytes and data of 1000 bytes.Offset is 0.
  • Fragment 2:IP header of 20 bytes and data of 48 bytes.offset is 1000/8=125.

When fragment 1 goes through the second network,it needs to be split into two fragments.Each fragment can contain at most 576-20=556 bytes of data.since 556 bytes is not a multiple of 8,each fragment can in fact contain atmost 552 bytes of data.so we have following 2 fragments:

  • Fragment 3: IP header of 20 bytes and data of 552 bytes.Offset is 0.
  • Fragment 4:IP header of 20 bytes and data of 56 bytes.offset is 552/8=69

Finally,fragment 2 goes as is through the second network since it is of size 48 bytes.

The fragment that reach the destination are 3,4 and 2.They are assembled in this order this is because their offsets are in increasing order(0,69,125).

Position:
Show:

Related questions

0 0 votes
2 2 answers
1.1k
1.1k views
Misbah Ghaya asked Apr 24, 2016
1,051 views
Suppose an $IP$ packet is fragmented into $10$ fragments, each with a $1$% (independent) probability of loss. To a reasonable approximation, this means there is a $10$% c...
0 0 votes
1 1 answer
1.0k
1.0k views
Misbah Ghaya asked Apr 24, 2016
1,015 views
Suppose an $IP$ packet is fragmented into $10$ fragments, each with a $1$% (independent) probability of loss. To a reasonable approximation, this means there is a $10$% c...
0 0 votes
2 2 answers
794
794 views
Misbah Ghaya asked Apr 24, 2016
794 views
Suppose an $IP$ packet is fragmented into $10$ fragments, each with a $1$% (independent) probability of loss. To a reasonable approximation, this means there is a $10$% c...
0 0 votes
1 1 answer
1.3k
1.3k views
Misbah Ghaya asked Apr 24, 2016
1,255 views
Path $MTU$ is the smallest $MTU$ of any link on the current path (route) between two hosts. Assume we could discover the path $MTU$ of the path used in the previous exerc...