Skip to main content
Version: 0.78.5

NormalPacketDelayDistribution

The NormalPacketDelayDistribution creates a packet delay distribution that follows a normal distribution. This can be used in conjunction with ConnectionConfig to introduce latency between two subnetworks. See set_connection instruction to learn more about its usage.


delay = NormalPacketDelayDistribution(
# Non-Negative Integer
# Amount of mean delay added to outgoing packets from the subnetwork
# MANDATORY
mean_ms = 1000,

# Non-Negative Integer
# Amount of variance (jitter) added to outgoing packets from the subnetwork
# MANDATORY
std_dev_ms = 10,

# Non-Negative Float
# Percentage of correlation observed among packets. It means that the delay observed in next packet
# will exhibit a corrlation factor of 10.0% with the previous packet.
# OPTIONAL
# DEFAULT = 0.0
correlation = 10.0,
)