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 ?
what command should I use?
Regards,
Zack
I succeeded but outgoing Syn packets are 2048 bytes long :
trafgen --in tcpsyn.cfg --out eth0 --num 1000
trafgen 0.5.7
1 packets to schedule
54 bytes in total
TX: 238.41 MiB, 122064 Frames, each 2048 Byte allocated
MD: TX fastpath RR 10us
Running! Hang up with ^C!
1000 frames outgoing
54000 bytes outgoing
0 sec, 2723 usec in total
how can I make then 54 bytes long ?
Thanks
I succesfully ran the test from another server but I am limited in outgoing traffic.
that is why I wish to send the maximum number of TCP packet on the same machine to test throughput of my program.
is that possible with trafgen ?
what command should I execute locally ?
Zack
I am just needing trafgen to bench my program on port 84 but I don't know how to tell trafgen to send all thoses packets as if it was real traffic
what command to use?
thanks
I only neeed to send raw tcp packets so trafgen is ok.
but my question is what command should I enter to send incoming packet to my application listening packet on the same server.
I would need the command line to enter
Sorry for my low knowledge of linux
I have trafgen 0.5.7 isn't it the latest stable version ?
other point. when sending 1 million packet I get 1.33s duration.
how can I make it quicker so I can send 5 Mpps with trafgen?
trafgen --in tcpsyn.cfg -o lo --num 1000000
trafgen 0.5.7
1 packets to schedule
54 bytes in total
TX: 64.00 MiB, 32768 Frames, each 2048 Byte allocated
MD: TX fastpath RR 10us
Running! Hang up with ^C!
1000000 frames outgoing
54000000 bytes outgoing
1 sec, 341868 usec in total
Thanks
I have this when I make trafgen :
make trafgen
NACL_LIB_DIR/NACL_INC_DIR is undefined, build libnacl first for curvetun!
Building trafgen:
LEX trafgen_lexer.l
YAAC trafgen_parser.y
CC xmalloc.c
/bin/sh: ccache: command not found
make: *** [trafgen/xmalloc.o] Error 127
I went to curvetun and did a ./build_nacl.sh ~/nacl
but it did not solve the problem
make trafgen
NACL_LIB_DIR/NACL_INC_DIR is undefined, build libnacl first for curvetun!
Building trafgen:
LEX trafgen_lexer.l
YAAC trafgen_parser.y
CC trafgen/trafgen_lexer.yy.c
CC trafgen/trafgen_parser.tab.c
LD trafgen
/usr/bin/ld: cannot find -lnl-genl-3
collect2: ld returned 1 exit status
make: *** [trafgen] Error 1
now I have trafgen 0.5.8-rc0
tried with --num 500 000 WORKED
tried with --num 5 000 000 crashed my server! had to reboot
but it seems to be faster and to use all cpu.
why did it crashed my server with --num 5M ?
it is my whole dedicated web server that crashed, no Ssh access, had to restart. kernel 3.2.13-grsec
is that too old?
I took a new ubuntu server with kernel 3.7.10
tried 1 M packet with 0.7 and the compiled version of 0.8rc
the 0.7 send 1 M packets and I receive 1 M packets
the 0.8rc send 1 M packets and I rceive only 150 000 .
Below is the command I use with the new trafgen.
What did I do wrong for only 1/8 packets arrive?
/home/netsniff-ng/trafgen/trafgen --in tcpsyn.cfg --out eth0 --num 1000000
8 packets to schedule
432 bytes in total
Running! Hang up with ^C!
1000000 packets outgoing
54000000 bytes outgoing
0 sec, 39748 usec on CPU0 (125000 packets)
0 sec, 27702 usec on CPU1 (125000 packets)
0 sec, 40692 usec on CPU2 (125000 packets)
0 sec, 39536 usec on CPU3 (125000 packets)
0 sec, 44668 usec on CPU4 (125000 packets)
0 sec, 339387 usec on CPU5 (125000 packets)
0 sec, 37306 usec on CPU6 (125000 packets)
0 sec, 40475 usec on CPU7 (125000 packets)
when using trafgen from 0.5.7
all 1 Mpackets are captured
when using trafgen 05.8rc
when sending 1 M packets.
only 150k arrive.
it looks like despite the text above , only few packets leave the server to go to the other server.
any idea?