Use this information to configure a filter that captures UDP frames.
It is possible to set up a filter, filtering frames based on the protocol information. This
example shows how to set up a filter to capture UDP frames. This figure shows the test
setup.
Figure 1. Setup overview for filtering UDP frames
Page-1
Rounded Rectangle
DUT
DUT
Sheet.2
Round Corner Rectangle.23
SmartNIC
SmartNIC
Round Corner Rectangle.24
Round Corner Rectangle.26
Round Corner Rectangle.27
Round Corner Rectangle.28
Round Corner Rectangle.29
Round Corner Rectangle.30
Round Corner Rectangle.31
L Shape
Round Corner Rectangle.33
Round Corner Rectangle.34
L Shape.38
Round Corner Rectangle.188
Round Corner Rectangle.189
Rounded Rectangle.17
throughput
throughput
Dynamic connector
Sheet.42
Rounded Rectangle.19
Traffic generator
Traffic generator
Port 0 of the SmartNIC is connected to the traffic generator.
Create a file with the following NTPL commands.
Delete = All
Assign[StreamId=0] = Layer4Protocol==UDPApply the
configuration. For example:
/opt/napatech3/bin/ntpl -f config.ntplAn
output
example:
NTPL CMD: Delete = All
NTPL ID: 0NTPL CMD: Delete = All
NTPL ID: 0
NTPL CMD: Assign[StreamId=0] = Layer4Protocol==UDP
NTPL ID: 3
Start the monitoring tool.
/opt/napatech3/bin/monitoring
Start throughput .
/opt/napatech3/bin/throughput -s 0
Transmit 10,000 UDP frames on the traffic generator.
Stop throughput and check the output.
An output
example:
Throughput: 0 packets @ 0 pps, 0 packets dropped, Wire: 0.000 Mb
...
Throughput: 10000 packets @ 10000 pps, 0 packets dropped, Wire: 63.39
Throughput: 10000 packets @ 0 pps, 0 packets dropped, Wire: 0.00
...
Done: Received: 10000 packets Wire: 7924585 bytes Pci: 8084585 bytes Dropped: 0 packets 0 bytes
Max throughput: 10000 pps Wire: 63.396 Mbps Pci: 64.676 Mbps
Min throughput: 0 pps Wire: 0.000 Mbps Pci: 0.000 Mbps
Avg throughput: 1000 pps Wire: 6.339 Mbps Pci: 6.467 Mbps
Total throughput: Received: 10000 packets Wire: 7924585 bytes Pci: 8084585 bytes Dropped: 0 packets 0 bytes
Check the statistics in the monitoring tool.
UDP frames are filtered and delivered to stream 0.