Commit dedb467
committed
IPv6: examples: fix degenerate traffic parameters in nclients
The Telnet traffic in examples/ipv6/nclients was parameterized so
sparsely that the statistical test effectively measured RNG noise
rather than behavior. With a single client (n=1),
numCommands=int(exponential(1)) (which is 0 about 63% of the time) and
commandLength=exponential(1B), a whole run carried only a handful of
mostly-control packets. Any RNG-stream shift between commits flipped
entire sessions in and out of existence, so the test failed spuriously
and could not distinguish a real regression from a reseeding.
Align the traffic with the sibling examples/inet/nclients example:
n=4 clients, numCommands=int(exponential(10)), commandLength=
intWithUnit(exponential(10B)). Router-forwarded packet counts rise from
~20-40 to ~2600, making the statistics meaningful and robust.
Keep startTime=uniform(10s,15s) rather than the IPv4 example's
exponential(5s): IPv6 needs ~2s of ND/DAD before a host can connect,
and clients that start earlier never establish a working session
(observed as 0-packet clients under exponential(5s)).1 parent c33236e commit dedb467
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
0 commit comments