Skip to main content

Appendix A. Packet Formats

This section describes the packet formats for the encapsulation protocol.

        0               8              16              24            31
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Vers | HL | MT | RC | Checksum |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Flow ID |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Figure A.1: Encapsulation Protocol Header Example

Vers (4 bits): The version number of the encapsulation protocol. The version of the protocol described by this document is 1.

HL (4 bits): The header length of the Encapsulation Protocol Header in octets.

MT (4 bits): The message type of the Encapsulation Protocol message. A data message has a message type of 1. An error message has a message type of 2.

RC (4 bits): The reason code. This field is unused in the Data Message and must have a value of 0. In the Error Message it contains the reason code for the Error Message. Defined reason code values are:

  • 1 Unknown Flow ID
  • 2 ICMP returned

Checksum (16 bits): A one's complement checksum for the Encapsulation Protocol Header. This field is set to 0 upon calculation of the checksum and is filled with the checksum calculation result before the data message is sent.

Flow ID (32 bits): The Flow ID as seen by the Decapsulator or Encapsulator to which this message is being sent. In the case of an Unknown Flow ID error, the Flow ID causing the error is used.

For Data Messages, the Encapsulation Protocol Header is followed by the Clear Datagram. For Error Messages, the header is followed by the ICMP message being forwarded along a flow.