In this chapter
- NT400D11 SmartNICs running on a test and measurement image
- NT200A02 SmartNICs running on a capture/replay image
- NT100A01 SmartNICs running on a test and measurement image
Reducing frame length
Frame slicing reduces the frame length by removing the last part of the frame.
Dynamic slicing
Dynamic slicing is provided in the SmartNIC, where the slice length depends on the type of frame received. The sliced frame can thereby contain the protocol header of dynamic length plus packet data of an optional fixed length. Dynamic slicing can be specified per filter.
Fixed slice length
A fixed slice length can be selected by discarding the dynamic protocol-dependent header length. As a result all frames of the same frame class are sliced to the same definable length.
Header adjust
The number of protocol layers to include in the dynamic length is controlled with the header adjust. These modes are available:
- Slicing disabled
- Fixed length
- Fixed length + ISL
- Fixed length + ISL + ETH + VLAN
- Fixed length + ISL + ETH + VLAN + MPLS
- Fixed length + ISL + ETH + VLAN + MPLS + L3
- Fixed length + ISL + ETH + VLAN + MPLS + L3 + L4
- Fixed length + ISL + ETH + VLAN + MPLS + L3 + L4 + ODT
- Fixed length + ISL + ETH + VLAN + MPLS + L3 + L4 + ODT + inner L3
- Fixed length + ISL + ETH + VLAN + MPLS + L3 + L4 + ODT + inner L3 + inner L4
- End of frame
The combination of fixed length and header adjust can be specified per filter.
Clearing of packet data after slice length
The slice length defines the amount of packet data transferred to the host. The SmartNIC will clear any additional packet data that could fit in the transfer word size, in order to protect any sensitive packet data.
Slicing using NTPL
Slicing is not an independent NTPL command but is a part of the Assign command.
NTPL example 1
Assign[StreamId = 0; Slice=Layer4Header[64] = Layer4Protocol == TCP
NTPL example 2
Assign[Slice=EndOfFrame[-4]] = All