Commit e85e083
committed
Support Gilbert-Elliott packet-loss model
Replace LinkConditioner's per-packet drop rate with a two-state
Gilbert-Elliott Markov model so simulated packet loss occurs in
correlated bursts, matching real packet-loss behavior.
Give `LinkConditioner` a good/bad state. A good state denotes the link
is healthy and not dropping packets. A bad state denotes the link is
dropping a lot of packets. It also opens up the possibility of adding an
extra latency to packets during a bad state.
Add builder methods to `LinkConditionerConfig` to configure the packet
loss model.
Closes #1546.1 parent fdaa88d commit e85e083
3 files changed
Lines changed: 388 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 | | |
32 | 35 | | |
33 | 36 | | |
| |||
0 commit comments