Table Of Contents

IP Fragmentation - Q&A

Questions

  1. What is meant by IP fragmentation?
  2. Why is an IP datagram fragmented?
  3. Which RFCs discuss IP fragmentation?
  4. Is it possible to select an IP datagram size to always avoid fragmentation?
  5. Where an IP datagram may get fragmented?
  6. Where are the IP datagram fragments reassembled?
  7. How to prevent an IP datagram from being fragmented?
  8. What happens when a datagram must be fragmented to traverse a network, but the "don't fragment" flag in the datagram is set?
  9. Will all the fragments of a datagram reach the destination using the same path?
  10. Will all the fragments of a datagram arrive at the destination system in the correct order?
  11. What happens to the original IP datagram when one or more fragments are lost?
  12. What is the minimum size of an IP fragment?
  13. What are the limitations on the size of a fragment?
  14. How is an IP datagram fragment differentiated from a non-fragmented IP datagram?
  15. How are the fragments of a single IP datagram identified?
  16. How is the last fragment of an IP datagram identified?
  17. How is the length of a complete IP datagram calculated from the received IP fragments?
  18. How is an IP datagram fragmented?
  19. How a destination system reassembles the fragments of an IP datagram?
  20. What fields are changed in an IP header due to fragmentation?
  21. What happens to the IP options field when an IP datagram is fragmented?
  22. Which IP options are copied to all the fragments of an IP datagram?

Answers

  1. What is meant by IP fragmentation?
    The breaking up of a single IP datagram into two or more IP datagrams of smaller size is called IP fragmentation.

  2. Why is an IP datagram fragmented?
    Every transmission medium has a limit on the maximum size of a frame (MTU) it can transmit. As IP datagrams are encapsulated in frames, the size of IP datagram is also restricted. If the size of An IP datagram is greater than this limit, then it must be fragmented.

  3. Which RFCs discuss IP fragmentation?
    RFC 791 & RFC 815 discusses about IP datagrams, fragmentation and reassembly.

  4. Is it possible to select an IP datagram size to always avoid fragmentation?
    It is not possible to select a particular IP datagram size to always avoid fragmentation, as the MTU for different transmission It is possible, though, for a given path to choose a size that will not lead to fragmentation. This is called Path MTU Discovery and is discussed in the RFC 1191. The TCP transport protocol tries to avoid fragmentation using the Maximum Segment Size (MSS) option.

  5. Where an IP datagram may get fragmented?
    An IP datagram may get fragmented either at the sending host or at one of the intermediate routers.

  6. Where are the IP datagram fragments reassembled?
    The IP fragments are reassembled only at the destination host.

  7. How to prevent an IP datagram from being fragmented?
    A IP datagram can be prevented from fragmentation, by setting the "don't fragment" flag in the IP header.

  8. What happens when a datagram must be fragmented to traverse a network, but the "don't fragment" flag in the datagram is set?
    The datagram whose "don't fragment" flag is set is discarded, if it must be fragmented to traverse a network. Also, a ICMP error message is sent back to the sender of the datagram.

  9. Will all the fragments of a datagram reach the destination using the same path?
    The different fragments of the same IP datagram can travel in either in the same path or in different paths to the destination.

  10. Will all the fragments of a datagram arrive at the destination system in the correct order?
    The different fragments of a single IP datagram can arrive in any order to the destination system.

  11. What happens to the original IP datagram when one or more fragments are lost?
    When one or more fragments of an IP datagram are lost, then the entire IP datagram is discarded after a timeout period.

  12. What is the minimum size of an IP fragment?
    The minimum size of an IP fragment is the minimum size of an IP header plus eight data bytes. Most firewall-type devices will drop an initial IP fragment (offset 0) that does not contain enough data to hold the transport headers. In other words, the IP fragment normally need 20 octets of data in addition to the IP header in order to get through a firewall if offset is 0.

  13. What are the limitations on the size of a fragment?
    The size of an IP datagram fragment is limited by
    1. The amount of remaining data in the original IP datagram
    2. The MTU of the network and
    3. Must be a multiple of 8, except for the final fragment.

  14. How is an IP datagram fragment differentiated from a non-fragmented IP datagram?
    A complete IP datagram is differentiated from an IP fragment using the offset field and the "more fragments" flags. For a non-fragmented IP datagram, the fragment offset will be zero and the "more fragments" flag will be set to zero.

  15. How are the fragments of a single IP datagram identified?
    The "identification" field in the IP header is used to identify the fragments of a single IP datagram. The value of this field is set by the originating system. It is unique for that source-destination pair and protocol for the duration in which the datagram will be active.

  16. How is the last fragment of an IP datagram identified?
    The last fragment of an IP datagram is identified using the "more fragments" flag. The "more fragment" flag is set to zero for the last fragment.

  17. How is the length of a complete IP datagram calculated from the received IP fragments?
    Using the fragment offset field and the length of the last fragment, the length of a complete IP datagram is calculated.

  18. How is an IP datagram fragmented?
    In the following example, an IP datagram is fragmented into two. This same algorithm can be used to fragment the datagram into 'n' fragments.
    1. The IP layer creates two new IP datagrams, whose length satisfies the requirements of the network in which the original datagram is going to be sent.
    2. The IP header from the original IP datagram is copied to the two new datagrams.
    3. The data in the original IP datagram is divided into two on an 8 byte boundary. The number of 8 byte blocks in the first portion is called Number of Fragment Blocks (NFB).
    4. The first portion of the data is placed in the first new IP datagram.
    5. The length field in the first new IP datagram is set to the length of the first datagram.
    6. The fragment offset field in the first IP datagram is set to the value of that field in the original datagram.
    7. The "more fragments" field in the first IP datagram is set to one.
    8. The second portion of the data is placed in the second new IP datagram.
    9. The length field in the second new IP datagram is set to the length of the second datagram.
    10. The "more fragments" field in the second IP datagram is set to the same value as the original IP datagram.
    11. The fragment offset field in the second IP datagram is set to the value of that field in the original datagram plus NFB.

  19. How a destination system reassembles the fragments of an IP datagram?
    1. When a host receives an IP fragment, it stores the fragment in a reassembly buffer based on its fragment offset field.
    2. Once all the fragments of the original IP datagram are received, the datagram is processed.
    3. Upon receiving the first fragment, a reassembly timer is started.
    4. If the reassembly timer expires before all the fragments are received, the datagram is discarded.

  20. What fields are changed in an IP header due to fragmentation?
    The following IP header fields are changed due to IP fragmentation:
    1. Total Length
    2. Header Length
    3. More Fragments Flag
    4. Fragment Offset
    5. Header Checksum
    6. Options

  21. What happens to the IP options field when an IP datagram is fragmented?
    Depending on the option, either it is copied to all the fragments or to only the first fragment.

  22. Which IP options are copied to all the fragments of an IP datagram?
    If the most significant bit in the option type is set (i.e. value one), then that option is copied to all the fragments. If it is not set (i.e. value zero), it is copied only to the first fragment.


Table Of Contents

Author: Yegappan Lakshmanan
Page Created On: 26 Dec. 1998
Page Last updated on: 28 Oct. 1999
1