Capture Frames of a Specific Size

Link-Capture™ Software Getting Started Guide

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

This describes how to capture frames larger than or equal to 1,000 bytes.

About this task

This test is done using port 0 of the SmartNIC which is connected to the traffic generator.

Procedure

  1. Create a file with the following NTPL commands. It sets up a filter to capture all frames larger than or equal to 1,000 bytes.
    Delete = All
    Assign[StreamId=0] = Length >= 1000
    Apply the NTPL commands.
    /opt/napatech3/bin/ntpl -f <file_name>
    An output example:
    NTPL CMD: Delete = All
    NTPL ID:    0
    NTPL CMD: Assign[StreamId=0] = Length >= 1024
    NTPL ID:    5
  2. Start the monitoring tool.
    /opt/napatech3/bin/monitoring
    Press r to reset the statistics.
  3. Start throughput.
    /opt/napatech3/bin/throughput -s 0
  4. Start transmitting 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:  3262 packets @      3262 pps,  0 packets dropped,   Wire:    33.112
    Throughput:  3262 packets @         0 pps,  0 packets dropped,   Wire:     0.000
    ...Done:  Received: 3262 packets   Wire: 4138957 bytes   Pci: 4191149 bytes   Dropped: 0 packets  0 bytes
    
    Max throughput:       3262 pps  Wire:    33.111 Mbps  Pci:    33.529 Mbps
    Min throughput:          0 pps  Wire:     0.000 Mbps  Pci:     0.000 Mbps
    Avg throughput:        543 pps  Wire:     5.518 Mbps  Pci:     5.588 Mbps
    
    Total throughput:  Received: 3262 packets   Wire: 4138957 bytes   Pci: 4191149 bytes   Dropped: 0 packets  0 bytes
  6. Check the statistics in the monitoring tool.
    An output example:
    *───────────────────── monitoring (v. 3.25.5.11-9bcd529a) ─────────────────────┐
    │  P  A        Type       Link    Down          Rx          Tx  Max  Temp.     │
    │  0  0 SFP28-SR-DR   25G Full       0       0.00M       0.00M  9018 36.10 C   │
    │  1  0 SFP28-SR-DR   25G Full       0       0.00M       0.00M  9018 35.90 C   │
    └──────────────────────────────────────────────────────────────────────────────┘
     Port  0 - Adapter 0 Intf 0: NT50B01_2x25
    ┌──────────────────────────────────────────────────────────────────────────────┐
    │                                RX RMON1 counters                      Totals │
    │ Packets         : #000000000000010000  Octets          : #000000000007796108 │
    │ Broadcast       : #000000000000000000  Multicast       : #000000000000004934 │
    │ 64 octets       : #000000000000000011  65-127 octets   : #000000000000000463 │
    │ 128-255 octets  : #000000000000000882  256-511 octets  : #000000000000001777 │
    │ 512-1023 octets : #000000000000003605  1024-1518 octets: #000000000000003262 │
    │ Undersize       : #000000000000000000  Oversize        : #000000000000000000 │
    │ Fragments       : #000000000000000000  Collisions      : #000000000000000000 │
    │ Drop events     : #000000000000000000  Crc/Align errors: #000000000000000000 │
    │ Jabbers         : #000000000000000000  Ext drops       : #000000000000000000 │
    └──────────────────────────────────────────────────────────────────────────────┘
     Reset Tx/Rx 0RMON 1ExtRMON 2Checksum 3Decode 4Drop 5IPF Dec/Hex Tot/Spd
     Quit  Sensors Color stat XTimeSync IEEE 1588 PTP EStream LFlowstat FDump