Verifying the traffic

Getting Started with Napatech Link-Virtualization™ Software

Napatech SmartNIC
Content Type
Getting Started
Getting Started Guide
Capture Software Version
Link-Virtualization™ Software 4.5

Verify the traffic using your preferred traffic generator tool. This example describes how to verify the traffic using the TRex traffic generator.

About this task

To generate traffic that’s easily distributed, this test uses a modified version of the file trex/scripts/stl/ included in the standard TRex package.


  1. Copy the script to
    cp trex/scripts/stl/ trex/scripts/stl/
  2. Modify the IP range:
    <     ip_range['src'] = {'start': '', 'end': ''}
    >    ip_range['src'] = {'start': '', 'end': ''}
  3. Start the TRex server:
    cd /opt/trex-core/scripts
    ./t-rex-64 -i -c <cores>

    where cores is the number of available cores.

  4. On the same host, in a new terminal window, connect to the TRex server using trex-console in cli mode:
    cd /opt/trex-core/scripts
  5. Start the traffic generator to transmit on port 0 with rate-controlled load:

    Enter the following command in the TRex console to start the traffic generator at 10 Mpps, varying the source IP address field:

    start -p 0 -f stl/ -t size=64,vm=var1 -m 10mpps
  6. Record and compare to expected results:

    In this example, OVS is expected to return all incoming traffic to SmartNIC port 0 while copying 1 in 5 packets (2 Mpps) to the monitoring port (port 1).