Protocol Encapsulation and Decapsulation

Link-Inline™ Software Features

Platform
Napatech SmartNIC
Content Type
Feature Description
Capture Software Version
Link-Inline™ Software 3.2

Protocol headers in a frame can be added or removed.

Features

The SmartNIC with Napatech Link-Inline™ Software supports protocol encapsulation/decapsulation as follows.
  • A maximum of 256 bytes of data can be defined to be added or removed from a frame.
  • A maximum of 64000 bytes of data in total can be reserved in the SmartNIC.
  • A maximum of 1024 encapsulation/decapsulation definitions can be reserved in the SmartNIC.
  • Data to be added or removed must start with the MAC header up to the target header.
  • FCS, inner/outer layer 3 and 4 checksums are recalculated after encapsulation and decapsulation.
The following protocol header fields are supported for encapsulation/decapsulation.
  • MAC
  • VLAN
  • IPv4/IPv6
  • UDP/TCP/SCTP/ICMP
  • GTPv1-U

DPDK action types

The following DPDK action types are supported for protocol encapsulation/decapsulation.
  • RTE_FLOW_ACTION_TYPE_RAW_ENCAP
  • RTE_FLOW_ACTION_TYPE_RAW_DECAP
  • RTE_FLOW_ACTION_TYPE_MODIFY_FIELD

GTP-U decapsulation and encapsulation

The SmartNIC can fully offload GTP-U encapsulation and decapsulation for UPF frame processing in the 5G core network architecture. This figure shows how the SmartNIC performs decapsulation of GTP-U protocol on uplink for the user plane.


Page-1 Radio Tower Sheet.2 Sheet.3 Dynamic connector Rectangle UPF UPF Dynamic connector.12 Sheet.13 N3 N3 Sheet.14 N6 N6 Internet Sheet.16 gNB gNB Sheet.42 DN DN Can Sheet.44 Dynamic connector.47 Sheet.48 MAC MAC Sheet.49 IP IP Sheet.50 TCP TCP Sheet.51 Payload Payload Sheet.55 IP IP Sheet.56 UDP UDP Sheet.57 GTP GTP Dynamic connector.58 Sheet.60 GTP-U decapsulation GTP-U decapsulation Sheet.61 IP IP Sheet.62 TCP TCP Sheet.63 Payload Payload Sheet.64 IP IP Sheet.65 TCP TCP Sheet.66 Payload Payload Sheet.67 MAC MAC Dynamic connector.68 Sheet.69 MAC encapsulation MAC encapsulation Dynamic connector.70 Dynamic connector.78 Dynamic connector.80 Dynamic connector.82 Dynamic connector.83

As illustrated in the figure, the outer headers up to the GTP header are removed first, and the MAC header is added in the SmartNIC.
Note: In DPDK raw decapsulation, if a VLAN header is included in a frame, it must be removed as well along with other headers.

On downlink, the SmartNIC adds the outer headers up to the GTP header after removing the Ethernet header as shown in the following figure.


Page-1 Radio Tower Sheet.2 Sheet.3 Dynamic connector Rectangle UPF UPF Dynamic connector.12 Sheet.7 N3 N3 Sheet.8 N6 N6 Internet Sheet.10 gNB gNB Sheet.11 DN DN Can Sheet.13 Dynamic connector.47 Sheet.15 MAC MAC Sheet.16 IP IP Sheet.17 TCP TCP Sheet.18 Payload Payload Sheet.19 IP IP Sheet.20 UDP UDP Sheet.21 GTP GTP Sheet.23 GTP-U encapsulation GTP-U encapsulation Sheet.24 IP IP Sheet.25 TCP TCP Sheet.26 Payload Payload Sheet.27 IP IP Sheet.28 TCP TCP Sheet.29 Payload Payload Sheet.30 MAC MAC Dynamic connector.68 Sheet.32 MAC decapsulation MAC decapsulation Dynamic connector.70 Dynamic connector.78 Dynamic connector.80 Dynamic connector.82 Dynamic connector.83 Dynamic connector.58