Commit graph

6 commits

Author SHA1 Message Date
Havard Graff
b8b4124c8b netsim: add "allow-reordering" property
Reordering of packets is not very common in networks, and the delay
functions will always introduce reordering if delay > packet-spacing,
so by setting allow-reordering to FALSE you guarantee that the packets
are in order, while at the same time introducing delay/jitter to them.
2017-11-25 11:10:27 +00:00
Stian Selnes
c9002e3dd5 netsim: Add gamma distribution for delay
This simulates the delay on wifi networks better.
2017-11-25 11:10:27 +00:00
Stian Selnes
9416d36463 netsim: Add "delay-distribution" property plus normal distribution
By using the property "delay-distribution" the user can control how the
delay applied to delayed packets is distributed. This is either the
uniform distribution (as before) or the normal distribution.

"min-delay" and "max-delay" control both distributions. For the normal
distribution it defines the bounds of the 95% confidence interval.
2017-11-25 11:10:27 +00:00
Havard Graff
3eb733d95f netsim: add token bucket algorithm for simulating network congestion 2017-11-25 11:10:27 +00:00
Tim-Philipp Müller
5187fdfb07 netsim: remove private struct and padding
There's no need for these things, since the plugin headers
are not public, and all the extra ->priv-> just clutter the
code.
2017-11-25 11:10:27 +00:00
Stian Selnes
e3f9e854f0 netsim: Add netsim element
Resurrected from the Farstream repository and given an
overhaul to fix races, deadlocks etc.

https://bugzilla.gnome.org/show_bug.cgi?id=756252
2016-02-12 10:08:06 +00:00