Filtering UDP Frames

Link-Capture™ Software Getting Started Guide

Platform
Napatech SmartNIC
Content Type
Getting Started
Capture Software Version
Link™ Capture Software 12.11

Set up a filter to capture UDP frames.

About this task

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.


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.

Procedure

  1. Create a file with the following NTPL commands.
    Delete = All
    Assign[StreamId=0] = Layer4Protocol==UDP
    Apply the configuration. For example:
    /opt/napatech3/bin/ntpl -f config.ntpl
    An 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
  2. Start the monitoring tool.
    /opt/napatech3/bin/monitoring
  3. Start throughput.
    /opt/napatech3/bin/throughput -s 0
  4. Transmit 10,000 UDP frames on the traffic generator.
  5. 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
    
  6. Check the statistics in the monitoring tool.

Results

UDP frames are filtered and delivered to stream 0.