Skip to main content

Encapsulation Packet

Implementation of CCSDS 133.1-B-3 Encapsulation Packet Protocol. Encapsulation packets carry non-CCSDS protocol data (e.g. IP datagrams) over CCSDS space links. They share the same packet layer as Space Packets but use a different header format, distinguished by a Packet Version Number of 7 (binary 111) instead of 0.

The mandatory header is 2 bytes. A variable-length packet length field follows, sized by the Length of Length field.

FieldBitsDescription
Packet Version3Always 111 (7)
Protocol ID4Identifies the encapsulated protocol
Length of Length2Number of bytes for the packet length field
User Defined4Mission-specific
Protocol ID Ext4Extends Protocol ID when Protocol ID = 0010
CCSDS Defined1Reserved for CCSDS use

Protocol ID

The 4-bit Protocol ID identifies what is encapsulated:

ValueNameDescription
0000IdleIdle packet (all-zeros payload)
0001IPEInternet Protocol Extension
0010CCSDS DefinedType specified by extension field
0111User DefinedMission-specific protocol
1000IPv4Internet Protocol version 4
1001IPv6Internet Protocol version 6

When Protocol ID is 0010 (CCSDS Defined), the 4-bit Protocol ID Extension field selects the specific CCSDS protocol.

Packet Length

The Length of Length field determines how many bytes encode the packet length:

Length of LengthBytesMaximum packet size
000Implicit/undefined
011255
10265 535
1144 294 967 295

The total header size is 2 bytes (mandatory) plus the packet length bytes (0, 1, 2, or 4).

Comparison with SPP

Both SPP and Encapsulation Packets live in the same packet layer and can be multiplexed on the same virtual channel. They are distinguished by the Packet Version Number in the first 3 bits: 0 for SPP, 7 for Encapsulation. This lets a receiver demultiplex them without any additional framing.