UPF Offload Configuration using testpmd

Link-Inline™ Software User Guide

Platform
Napatech SmartNIC
Content Type
User Guide
Capture Software Version
Link-Inline™ Software 3.2

Use testpmd command examples to quickly test the UPF offload capability of the Napatech SmartNIC running Napatech Link-Inline™ Software.

UPF offload test setup

This figure shows a test setup example which can be used with provided testpmd commands where traffic on uplink is received on port 0, and traffic on downlink is received on port 1 of the SmartNIC.


A test setup example showing that traffic on uplink is received on port 0, and traffic on downlink is received on port 1 of the SmartNIC

Port 0 receives traffic on the N3 interface carrying GTPv1-U tunneled packets, and port 1 receives traffic on the N6 interface carrying IP packets. For received frames on each direction, the provided testpmd example configures the SmartNIC to perform the following actions:
Offload feature Port 0 (uplink) Port 1 (downlink)
Matched flows (frames with specified IP addresses and UDP port numbers) Policing and metering Drop if exceeds the maximum bit rate. Drop if exceeds the maximum bit rate.
Protocol encapsulation and decapsulation GTPv1-U decapsulation and MAC encapsulation. MAC decapsulation and GTPv1-U encapsulation.
DSCP tagging Modify the DSCP field. Modify the DSCP field of the inner layer.
NAT Modify source IP / UDP port. Modify destination IP / UDP port of the inner layer.
Decrementing IP TTL Decrement IP TTL. -
IP fragmentation Fragment if exceeds the MTU. Fragment if exceeds the MTU.
Unmatched flows (the rest frames) RSS Distribute to queue 0, 1, 2 and 3. Distribute to queue 4, 5, 6 and 7.
Note: If GTPv1-U encapsulation is performed, IPv4 TTL or IPv6 hope limit are set when the GTP header is added.