Changeset 2014
- Timestamp:
- 05/03/08 12:21:43 (7 months ago)
- Files:
-
- 1 modified
-
trunk/src/tcpreplay_opts.def (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/tcpreplay_opts.def
r2006 r2014 80 80 81 81 Packet timing at high speeds is a black art and very OS/CPU dependent. 82 Your best bet is to use @var{--timing=rdtsc}, do your own testing and tweak the83 @var{--rdtsc-clicks} option accordingly. Newer CPU's and Linux kernels84 with HPET enabled may have good results with @var{--timing=gtod}.85 82 86 83 Replaying captured traffic may simulate odd or broken conditions on your 87 network and cause problems.84 network and cause all sorts of problems. 88 85 89 86 In most cases, you can not replay traffic back to/at a server. … … 91 88 Some operating systems by default do not allow for forging source MAC 92 89 addresses. Please consult your operating system's documentation and the 93 tcpreplay FAQ if you experi ance this issue.90 tcpreplay FAQ if you experience this issue. 94 91 EOMan; 95 92 … … 121 118 name = timer; 122 119 value = T; 120 arg-default = "gtod"; 123 121 max = 1; 124 122 arg-type = string; … … 128 126 @enumerate 129 127 @item nano 130 - Use nanosleep() API [default]128 - Use nanosleep() API 131 129 @item select 132 130 - Use select() API … … 135 133 @item rdtsc 136 134 - Use the x86/x86_64/PPC RDTSC 137 @item gtod 135 @item gtod [default] 138 136 - Use a gettimeofday() loop 139 137 @item abstime 140 - Use OS X's AbsoluteTime 138 - Use OS X's AbsoluteTime API 141 139 @end enumerate 142 140 … … 147 145 name = sleep-accel; 148 146 arg-type = number; 149 arg-default = 5;147 arg-default = 0; 150 148 descrip = "Reduce the amount of time to sleep by specified usec"; 151 149 doc = <<- EOText 152 150 Reduce the amount of time we would normally sleep between two packets by the 153 specified number of usec. This is primarily intended to compensate for the 154 overhead in tcpreplay to process & send packets. Default is 5usec which seems 155 to work well on my 2.16Ghz MacBook Pro. 151 specified number of usec. This provides a "fuzz factor" to compensate for 152 running on a non-RTOS and other processes using CPU time. Default is disabled. 156 153 EOText; 157 154 }; … … 437 434 fprintf(stderr, "Packet editing: disabled\n"); 438 435 #endif 436 #ifdef ENABLE_FRAGROUTE 437 fprintf(stderr, "Fragroute engine: enabled\n"); 438 #else 439 fprintf(stderr, "Fragroute engine: disabled\n"); 440 #endif 439 441 exit(0); 440 442
