traffic: add option to reanimate dying conversations
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Mon, 22 Oct 2018 22:58:52 +0000 (11:58 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Tue, 8 Jan 2019 22:55:34 +0000 (23:55 +0100)
commit524777e681b1fecf5686843f10ae01637285a891
tree28f4579a468ad8e4a4750fb52dd7e0aedd261093
parentbda7f35a5e1418a3e9d4f582f72d2bbe9cb10f44
traffic: add option to reanimate dying conversations

The traffic model is generated from a window in time, which makes
conversations appear to start and stop unnaturally at the window
boundaries. When the window is short compared to the traffic replay
time and the true expected conversation length, this has a significant
distorting effect, leading to more conversations than would be
expected to generate a given number of packets.

To offset this slightly we add the --conversation-persistence option
which tries to convert apparent death into a longish wait.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/emulate/traffic.py
python/samba/tests/blackbox/testdata/traffic_replay-2.expected [new file with mode: 0644]
python/samba/tests/blackbox/traffic_replay.py
script/traffic_replay
selftest/knownfail.d/traffic [deleted file]