Skip to content

Commit dedb467

Browse files
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

File tree

examples/ipv6/nclients/omnetpp.ini

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,21 @@
1010
abstract = true
1111

1212
# number of client computers
13-
*.n = 1
13+
*.n = 4
1414

1515
[Config TCP_APP]
1616
abstract = true
1717

1818
# tcp apps
1919
**.cli[*].numApps = 1
2020
**.cli[*].app[*].typename = "TelnetApp"
21+
**.cli[*].app[0].localAddress = ""
2122
**.cli[*].app[0].localPort = -1
2223
**.cli[*].app[0].connectAddress = "srv"
2324
**.cli[*].app[0].connectPort = 1000 #same destination port numbers
2425
**.cli[*].app[0].startTime = uniform(10s,15s)
25-
**.cli[*].app[0].numCommands = int(exponential(1))
26-
**.cli[*].app[0].commandLength = intWithUnit(exponential(1B))
26+
**.cli[*].app[0].numCommands = int(exponential(10))
27+
**.cli[*].app[0].commandLength = intWithUnit(exponential(10B))
2728
**.cli[*].app[0].keyPressDelay = exponential(0.1s)
2829
**.cli[*].app[0].commandOutputLength = intWithUnit(exponential(40B))
2930
**.cli[*].app[0].thinkTime = truncnormal(2s,3s)

0 commit comments

Comments
 (0)