4 Replies Latest reply: Jan 28, 2018 2:01 AM by arteq RSS

    Identification vs Fragment Offset

    Mohamed

      Hi CLN

      1.jpg

      2.jpg

      hat is the difference between "Fragment Offset " and "Identification "?

      edmondgyampohdaniel.dibsdavids5670jilse-iphsergun4ik

        • 1. Re: Identification vs Fragment Offset
          Steven Davidson

          Consider:

           

          R1 --- 12.0.0.0/24 --- R2 --- 23.0.0.0/24 --- R3 --- 34.0.0.0/24 --- R4

           

          If the IP MTU between R2 and R3 is 68 and we send a ping from R4 -> R1 with a size of 68 bytes we get this:

           

          no_frag.png

           

          However, if we do that same ping but make the size 69 bytes we get this:

           

          ip_frag.png

          Notice how the IP fragment shows up?  The router split the packet almost in half. The first fragment carried 24 of the 69 bytes and the offset was set to 0.  The 2nd packet carried the remainder of the packet and begins at byte offset 24.  Since the offset is expressed in multiples of 8, the actual value store is '00 03' - 13 bits are allowed for the offset value.  That allows the receiver to stitch the packet back together from the fragments it receives.

          • 2. Re: Identification vs Fragment Offset
            Mohamed

            sdavids5670

            Since the offset is expressed in multiples of 8, the actual value store is '00 03' - 13 bits are allowed for the offset value.

            i do`t understand this line

            • 3. Re: Identification vs Fragment Offset
              eddylynx

              Mo,

               

              Imagine we have data ,say 6000 bytes that we want to send on a data link with 1500 bytes MTU. We must fragment this data into chunks of 1500 bytes and when it gets to the destination, it will be reassembled.

               

              So how does the destination know that if it received four fragments, those fragments are part of the same data that was fragmented? That is where the IDENTIFIER comes in. The fragments are marked with the same number in the Identifier field so that when the destination receives the four fragments, it will know that these are part of the same data flow.

               

              But the fragments might not always arrive in sequence. The receiver must however reassemble to fragments in the right order to make sense of the data. That is where the FRAGMENT OFFSET comes in; which defines the position of each fragment in the flow so that the destination can reassemble in the right order.

               

              Regards.

              • 4. Re: Identification vs Fragment Offset
                arteq