Matching the TEID and QFI header fields

Link-Inline™ Software User Guide

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

Matching specific TEID and QFI values of GTPv1-U traffic are crucial in telecom core networks for differentiating between various service types and quality of service (QoS) levels.

Filtering frames with specific TEID and QFI values

The following testpmd commands configure flow rules which filter IPv4/UDP frames with specific TEID and QFI values within the GTPv1-U header and transmit these frames on port 1.
flow create 0 group 0 pattern ipv4 / end actions jump group 1 / end
flow create 0 group 1 pattern ipv4 / udp / gtp teid is 15 / gtp_psc qfi is 6 / end actions port_id id 1 / end
The first testpmd command creates a flow rule in group 0 that matches IPv4 traffic.
  • pattern ipv4 / end: Specifies the pattern to match IPv4 traffic.
  • actions jump group 1 / end: Specifies the action to jump to group 1 if the frame matches the IPv4 pattern.
The second testpmd command creates a flow rule in group 1 that matches specific TEID and QFI values in the frame.
  • pattern ipv4 / udp / gtp teid is 15 / gtp_psc qfi is 6 / end: Specifies the pattern to match IPv4 frames with UDP encapsulation, GTPv1-U TEID value of 15, and GTPv1-U PDU session container (PSC) QFI (QoS Flow Identifier) value of 6.
  • actions port_id id 1 / end: Specifies the action to take for frames matching the specified pattern. In this case, it directs the frames to be transmitted out through port 1.