On 07/18/2014 03:49 PM, Tobias Klauser wrote:
> On 2014-07-18 at 15:09:55 +0200, 'peter' via netsniff-ng
<[email protected] <javascript:>> wrote:
>> hi,
>>
>>
>> im looking for a way to automate packet generation for traffic
>> shaper testing.
>> found a testfile online and modified it a bit, only
>> source/destination ip are valid for the interface ...the rest is
>> from the sourcefile so there are wrong mac addresses and so on.
>> for traffic shaping testing (HFSC) i only need a mix of small / big
>> packets that i can capture and graph.
>> its udp, its 322bytes long (according to trafgen output).
>>
>>
>> when i run:
>> trafgen --cpp --dev wlan0 --conf packets/322bytes -t 10ms -n 10
>>
>> and:
>> tcpdump -i wlan0 port 7777
>>
>>
>> it shows 10 packets, each about 10ms apart from another but it takes
>> some seconds before the packets show up in tcpdump...why is that?
>You are running this on the same machine? Note that trafgen (at
>least recent versions) bypass the qdisc layer completely and thus
>you *won't* be able to see the traffic from that looped back into
>packet sockets (and thus libpcap/tcpdump).
>Have you tried running tcpdump on a different machine (e.g. the
>receiving end)?
running with "-n 100" does produce the same output on a remote machine,
31 packets captured
100 packets received by filter
69 packets dropped by kerne
and yes i was testing locally.
since i want the traffic to go trough the qdisc's for the shaper to work
with them, could you recommendate another tool that does this?
although this trafgen-0.5.8 appears to send it through the qdiscs, just
not all.
and sorry for replys comming in out of order, i wasnt subscribed to the
group yet.
--
You received this message because you are subscribed to the Google Groups
"netsniff-ng" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.