Skip to main content

9. Fragmentation Issues

Fragmentation allows the exchange of packets that are greater than the maximum frame size supported by the underlying network. In the case of Frame Relay, the network may support a maximum frame size as small as 262 octets. Because of this small maximum size, it is advantageous to support fragmentation and reassembly.

Unlike IP fragmentation procedures, the scope of Frame Relay fragmentation procedure is limited to the boundary (or DTEs) of the Frame Relay network.

The general format of fragmented packets is the same as any other encapsulated protocol. The most significant difference being that the fragmented packet will contain the encapsulation header. That is, a packet is first encapsulated (with the exception of the address and control fields) as defined above. Large packets are then broken up into frames appropriate for the given Frame Relay network and are encapsulated using the Frame Relay fragmentation format. In this way, a station receiving fragments may reassemble them and then put the reassembled packet through the same processing path as a packet that had not been fragmented.

Within Frame Relay fragments are encapsulated using the SNAP format with an OUI of 0x00-80-C2 and a PID of 0x00-0D. Individual fragments will, therefore, have the following format:

          +---------------+---------------+
| Q.922 Address |
+---------------+---------------+
| Control 0x03 | pad 0x00 |
+---------------+---------------+
| NLPID 0x80 | OUI 0x00 |
+---------------+---------------+
| OUI 0x80-C2 |
+---------------+---------------+
| PID 0x00-0D |
+---------------+---------------+
| sequence number |
+---------------+---------------+
|F| RSVD |offset |
+---------------+---------------+
| fragment data |
| . |
| . |
| . |
+---------------+---------------+
| FCS |
+---------------+---------------+

The sequence field is a two octet identifier that is incremented every time a new complete message is fragmented. It allows detection of lost frames and is set to a random value at initialization.

The reserved field is 4 bits long and is not currently defined. It must be set to 0.

The final bit is a one bit field set to 1 on the last fragment and set to 0 for all other fragments.

The offset field is an 11 bit value representing the logical offset of this fragment in bytes divided by 32. The first fragment must have an offset of zero.

The following figure shows how a large IP datagram is fragmented over Frame Relay. In this example, the complete datagram is fragmented into two Frame Relay frames.

                        Frame Relay Fragmentation Example
                                           +-----------+-----------+
                                           |     Q.922 Address     |
                                           +-----------+-----------+
                                           | Ctrl 0x03 | pad  0x00 |
                                           +-----------+-----------+
                                           |NLPID 0x80 | OUI 0x00  |
                                           +-----------+-----------+
                                           | OUI          0x80-C2  |
         +-----------+-----------+         +-----------+-----------+
         | pad 0x00  |NLPID 0xCC |         | PID          0x00-0D  |
         +-----------+-----------+         +-----------+-----------+
         |                       |         | sequence number   n   |
         |                       |         +-----------+-----------+
         |                       |         |0| RSVD |offset (0)    |
         |                       |         +-----------+-----------+
         |                       |         | pad 0x00  |NLPID 0xCC |
         |                       |         +-----------+-----------+
         |                       |         |   first m bytes of    |
         |  large IP datagram    |   ...   |     IP datagram       |
         |                       |         |                       |
         |                       |         +-----------+-----------+
         |                       |         |          FCS          |
         |                       |         +-----------+-----------+
         |                       |
         |                       |         +-----------+-----------+
         |                       |         |     Q.922 Address     |
         |                       |         +-----------+-----------+
         |                       |         | Ctrl 0x03 | pad  0x00 |
         +-----------+-----------+         +-----------+-----------+
                                           |NLPID 0x80 | OUI 0x00  |
                                           +-----------+-----------+
                                           | OUI          0x80-C2  |
                                           +-----------+-----------+
                                           | PID          0x00-0D  |
                                           +-----------+-----------+
                                           | sequence number   n   |
                                           +-----------+-----------+
                                           |1| RSVD |offset (m/32) |
                                           +-----------+-----------+
                                           |    remainder of IP    |
                                           |        datagram       |
                                           +-----------+-----------+
                                           |          FCS          |
                                           +-----------+-----------+

Fragments must be sent in order starting with a zero offset and ending with the final fragment. These fragments must not be interrupted with other packets or information intended for the same DLC. An end station must be able to re-assemble up to 2K octets and is suggested to support up to 8K octet re-assembly. If at any time during this re-assembly process, a fragment is corrupted or a fragment is missing, the entire message is dropped. The upper layer protocol is responsible for any retransmission in this case.

This fragmentation algorithm is not intended to reliably handle all possible failure conditions. As with IP fragmentation, there is a small possibility of reassembly error and delivery of an erroneous packet. Inclusion of a higher layer checksum greatly reduces this risk.