Skip to content

Instantly share code, notes, and snippets.

@narutaro
Created January 5, 2016 04:58
Show Gist options
  • Save narutaro/427f6ca0e055b8e33b19 to your computer and use it in GitHub Desktop.
Save narutaro/427f6ca0e055b8e33b19 to your computer and use it in GitHub Desktop.
tcpreplay

Usage

root@tcpreplay:/tcpreplay# tcpreplay -i eth0 -K --mbps 10 smallFlows.pcap 
File Cache is enabled
Actual: 14261 packets (9216531 bytes) sent in 7.03 seconds.
Rated: 1249999.6 Bps, 9.99 Mbps, 1934.15 pps
Flows: 1209 flows, 163.97 fps, 14243 flow packets, 18 non-flow
Statistics for network device: eth0
	Attempted packets:         14261
	Successful packets:        14261
	Failed packets:            0
	Truncated packets:         0
	Retried packets (ENOBUFS): 0
	Retried packets (EAGAIN):  0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment