On 03/05/2013 08:36 PM, Jon Schipp wrote:
On Tue, Mar 5, 2013 at 2:22 PM, Daniel Borkmann <[email protected]> wrote:
On 03/05/2013 07:51 PM, Jon Schipp wrote:

On Tue, Mar 5, 2013 at 1:30 PM, Daniel Borkmann <[email protected]>
wrote:

On 03/05/2013 05:15 PM, [email protected] wrote:

I wish to stress test a packet sniffer to see what throughput it can
have.
is it possible with trafgen to send over a million TCP packet per second
to an IP ?


Depending on your hardware, yes.

what command should I use?


See `trafgen -e` for an example. Otherwise `trafgen -h` will further
assist
you.

There are also community wikis, e.g. for Ubuntu
https://help.ubuntu.com/community/Netsniff-NG .


Zack, the _quickest_ way would be to generate the packet you want with
mausezhan or another similar packet crafting tool e.g. hping3, nmap scapy
etc.
Write the single packet to disk and then convert it to a trafgen
configuration
   and send it out.

sth like this ( off top of head ).
# Send a single TCP segment with SYN bit set
$ hping3 -c 1 -I eth0 -p 443 -S 192.168.1.1
# Capture single packet, write to disk
$ netsniff-ng --in eth0 --out tcpsyn.pcap
# Convert pcap to trafgen config
$ netsniff-ng --in tcpsyn.pcap --out tcpsyn.cfg
# Send packet x 1000
$ trafgen --in tcpsyn.cfg --out eth0 --num 1000


Why so complicated ?! Seriously ...

trafgen -e, the built-in example already has a TCP SYN packet with dynamic
elemets in it. It's really not that difficult.

Alternatively, mausezahn would do the job. If you need a full stream,
then use iperf.

He didn't say what kind of TCP packet he wanted. If it wasn't a TCP SYN packet
he would need to configure his own with the trafgen language. I suppose he could
modify the -e config instead. He also mentioned speed though. Okay,
well, maybe mine
was a little more complicated.

Yep, what exactly is needed was not really specified, but as one can see there
are quite a lot of possibilities available. ;-)

--
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/groups/opt_out.


Reply via email to