GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
NMREPLAY(8) FreeBSD System Manager's Manual NMREPLAY(8)

nmreplayplayback a pcap file through a netmap interface

nmreplay
[-f pcap-file] [-i netmap-interface] [-B bandwidth] [-D delay] [-L loss] [-b batch size] [-w wait-link] [-v] [-C cpu-placement]

nmreplay works like tcpreplay to replay a pcap file through a netmap interface, with programmable rates and possibly delays, losses and packet alterations. nmreplay is designed to run at high speed, so the transmit schedule is computed ahead of time, and the thread in charge of transmission only has to pump data through the interface. nmreplay can connect to any type of netmap port.

Command line options are as follows

pcap-file
Name of the pcap file to replay.
interface
Name of the netmap interface to use as output. See netmap(4) for interface name format.
Enable verbose mode
batch-size
Maximum batch size to use during transmissions. nmreplay normally transmits packets one at a time, but it may use larger batches, up to the value specified with this option, when running at high rates.
bps | ,bps | ,bps | [,speedup]
Bandwidth to be used for transmission. bps is a floating point number optionally follow by a character (k, K, m, M, g, G) that multiplies the value by 10^3, 10^6 and 10^9 respectively. constant (can be omitted) means that the bandwidth will be computed with reference to the actual packet size (excluding CRC and framing). ether indicates that the ethernet framing (160 bits) and CRC (32 bits) will be included in the computation of the packet size. real means transmission will occur according to the timestamps recorded in the trace. The optional speedup multiplier (defaults to 1) indicates how much faster or slower than real time the trace should be replayed.
dt | ,dt | ,dmin,dmax | , dmin,davg
Adds additional delay to the packet transmission, whose distribution can be constant, uniform or exponential. dt, dmin, dmax, avt are times expressed as floating point numbers optionally followed by a character (s, m, u, n) to indicate seconds, milliseconds, microseconds, nanoseconds. The delay is added to the transmit time and adjusted so that there is never packet reordering.
x | ,x | ,x
Simulates packet or bit errors, causing offending packets to be dropped. x is a floating point number indicating the packet or bit error rate.
wait-link
indicates the number of seconds to wait before transmitting. It defaults to 2, and may be useful when talking to physical ports to let link negotiation complete before starting transmission.

nmreplay creates an in-memory schedule with all packets to be transmitted, and then launches a separate thread to take care of transmissions while the main thread reports statistics every second.

netmap(4)

nmreplay has been written by Luigi Rizzo, Andrea Beconcini, Francesco Mola and Lorenzo Biagini at the Universita` di Pisa, Italy.

December 21, 2018 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 8 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.