summaryrefslogtreecommitdiff
path: root/trafgen.8
diff options
context:
space:
mode:
authorJon Schipp <jonschipp@gmail.com>2013-10-14 12:59:25 -0700
committerTobias Klauser <tklauser@distanz.ch>2013-10-15 11:56:38 +0200
commit859f1fe60ae57d49c6a475117f3fbbfc46293448 (patch)
treed01546f6dae649e7169522e4b9795db4041202bd /trafgen.8
parent2548dc39129485b6c78889a578d3a42f4a680bb6 (diff)
trafgen: set interpacket gap in time units (s/ms/us/ns)
Add ability to set IGP in time units in seconds, milliseconds, microseconds, and nanoseconds by appending a postfix to --gap e.g. --gap 100ms. Also, update the man page and trafgen.zsh to reflect the changes. [Fix whitespaces, coding style and minor wording changes -- tklauser] Signed-off-by: Jon Schipp <jonschipp@gmail.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Diffstat (limited to 'trafgen.8')
-rw-r--r--trafgen.820
1 files changed, 11 insertions, 9 deletions
diff --git a/trafgen.8 b/trafgen.8
index e4a4e84..d311084 100644
--- a/trafgen.8
+++ b/trafgen.8
@@ -122,14 +122,16 @@ Specify the number of processes trafgen shall fork(2) off. By default trafgen
will start as many processes as CPUs that are online and pin them to each,
respectively. Allowed value must be within interval [1,CPUs].
.PP
-.SS -t <uint>, --gap <uint>
-Specify a static inter-packet timegap in micro-seconds. If this option is given,
-then instead of packet(7)'s TX_RING interface, trafgen will use sendto(2) I/O
-for network packets, even if the <uint> argument is 0. This option is useful for
-a couple of reasons: i) comparison between sendto(2) and TX_RING performance,
-ii) low-traffic packet probing for a given interval, iii) ping-like debugging
-with specific payload patterns. Furthermore, the TX_RING interface does not cope
-with interpacket gaps.
+.SS -t <time>, --gap <time>
+Specify a static inter-packet timegap in seconds, milliseconds, microseconds,
+or nanoseconds: ''<num>s/ms/us/ns''. If no postfix is given default to
+microseconds. If this option is given, then instead of packet(7)'s TX_RING
+interface, trafgen will use sendto(2) I/O for network packets, even if the
+<time> argument is 0. This option is useful for a couple of reasons: i)
+comparison between sendto(2) and TX_RING performance, ii) low-traffic packet
+probing for a given interval, iii) ping-like debugging with specific payload
+patterns. Furthermore, the TX_RING interface does not cope with interpacket
+gaps.
.PP
.SS -S <size>, --ring-size <size>
Manually define the TX_RING resp. TX_RING size in ''<num>KiB/MiB/GiB''. On
@@ -358,7 +360,7 @@ are going to transmit raw 802.11 frames through the air. Use the
''beacon-test.txf'' configuration file, set trafgen into verbose mode and
use only 2 CPUs.
.PP
-.SS trafgen --dev em1 --conf frag_dos.cfg --rand --gap 1000
+.SS trafgen --dev em1 --conf frag_dos.cfg --rand --gap 1000us
Use trafgen in sendto(2) mode instead of TX_RING mode and sleep after each
sent packet a static timegap for 1000us. Generate packets from ''frag_dos.cfg''
and select next packets to send randomly instead of a round-robin fashion.