ntpcap_replay

Reference Documentation

Platform
Napatech SmartNIC
Content Type
Reference Information
Capture Software Version
Link™ Capture Software 12.6
Napatech Software Suite: ntpcap_replay
ntpcap_replay

ntpcap_replay

The ntpcap_replay tool replays any pcap or pcap-ng capture file. The packets are transmitted on the pcap interface specified by the -i option or on the port specified by the -p option. The replay rate is identical to the rate at which the packets were received (captured).

Syntax

ntpcap_replay -f <file name> -i <interface> [-p <port no.>] [-c <number>] [-n] [-l ] [-h]

Commands
Command Description
-h
--help
, -h
Displays the help
-n
--nocache
By default, the ntpcap_replay tool caches data before replaying begins in order to support replaying at line-rate and not be limited by the hard drive. When specifying the --nocache parameter, the tool does not cache the data but reads it directly from the file.
-c
--count
Number of times to replay the file (0=infinite replay).
-f <file>
-file <file>
Specifies the file to replay. This file contains the data to be replayed.
-p <port no.>
-p <port no.>
The Port number used to replay data.
Port number and interface cannot be spedified at the same time.
-i <interface>
--interface <interface>
pcap interface used to transmit data.
Port number and interface cannot be spedified at the same time.
-l
--list
list all available Tx-capable interfaces.

Examples

  • Replay on an NT40E3 adapter using port number.
    ntpcap_replay -f file.cap -p 3
  • Replay on an NT40E3 adapter using pcap interface.
    ntpcap_replay -f file.cap -i napa2