On Wed, Mar 10, 2010 at 5:47 AM, Yohann Lepage <[email protected]> wrote:
> Dear,
>
> I created un pcap file with scapy  :
>
> a=Ether()/IP(dst="anip")/UDP(sport=RandShort(),dport=53)/DNS(rd=1,qd=DNSQR(qname="adomain",
> qtype="A"))
> p=[]
> for i in range(0,100000):
>        p.append(a)
>
> wrpcap("file.pcap",p)
>
> I can replay packet with option --pps.
>
> Now i need to send packets with an affine rate like this :
> rate = a.t
> Where :
> -rate = the rate in pps
> -a=a coefficient (float/integer)
> -t=the time in second
>
> Is it possible to do this with tcpreplay ?
> Or, do i need to set the time with scapy and uses option --time=abstime ?

Not 100% sure what the question is, but if you're asking if tcpreplay
supports variable replay rates, the answer is no.

If Scapy supports defining the timestamp of each packet in the pcap,
you could use that to define your ramp rate and then tcpreplay can
send that at a user defined multiplier.

I'll add this to my todo list, sounds like a useful feature.

-- 
Aaron Turner
http://synfin.net/
http://tcpreplay.synfin.net/ - Pcap editing and replay tools for Unix & Windows
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
    -- Benjamin Franklin
"carpe diem quam minimum credula postero"

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Tcpreplay-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tcpreplay-users
Support Information: http://tcpreplay.synfin.net/trac/wiki/Support

Reply via email to