Mohamed Kouki wrote:
> HI list
>
> I'm trying to generate multiple data flows by replying multiple traces 
> at once
> the goal of my simulation is to replay traces sequencely by specifying 
> a timer between two consequent traces :
> e.g : 1st flow(trace) : 0ms
> 2nd flow (trace : 10 ms
> 3rd flow(trace) :20 ms
> ....................
> can anyone give me me an idea how to do it using tcpreplay ?
> thanks
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tcpreplay-users mailing list
> Tcpreplay-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
> Support Information: http://tcpreplay.synfin.net/trac/wiki/Support
Why not just write a quick wrapper in bash or perl to run your command 
with arbitrary delays.

Perl Pseudo Code:

#!/usr/bin/perl
exec('tcpreplay -i eth0 1.pcap');
select(undef, undef, undef, 0.01); # sleep for 10ms
exec('tcpreplay -i eth0 2.pcap');
select(undef, undef, undef, 0.02); # sleep for 20ms
exec('tcpreplay -i eth0 3.pcap');

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Tcpreplay-users mailing list
Tcpreplay-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support

Reply via email to