appneta / tcpreplay

Pcap editing and replay tools for *NIX and Windows - Users please download source from
http://tcpreplay.appneta.com/wiki/installation.html#downloads
1.19k stars 270 forks source link

Is it possible to configure a delay between loop? #125

Closed morphyno closed 9 years ago

morphyno commented 10 years ago

I'm interested in playing a pcap in a burst mode, so I would like to have a way to configure a delay (us to ms). Is it possible to do this through tcpreplay? If not, can this be a feature request for future releases?

morphyno commented 10 years ago

To be more specific, I'm looking to play burst profiles, which calls for a period of no activity between high network activity, right now I have a script that is running tcpreplay without the the "loop" option, but tcpreplay will re-initialize the the netmap interface everytime, adding too much delay. If it is possible, it will be ideal to add a "inter-loop" delay option for future tcpreplay releases

aindeev commented 9 years ago

Added a --loopdelay-ms option that will sleep in milliseconds between loops