pydistsim.network.behavior

Behavioral properties for a network. These properties include message ordering, message loss, clock increment, message delay, node processing frequency and bounded communication delays. The properties are used to simulate different network behaviors, such as a network with message ordering, no message loss and synchronized clocks.

Functions

big_random_increment

Random increment between 1 and 10.

delay_based_on_network_usage

Delay a message by the number of pending messages in the network.

delay_size_network

Delay every message by the number of nodes in the network.

half_the_nodes_are_slow

Half the nodes are slow and will process every other message.

half_the_nodes_are_very_slow

Half the nodes are fast and will process every message.

random_delay_max_size_network

Delay a message by a random number between 0 and the number of nodes in the network.

random_loss

Randomly lose a message with a given probability.

small_random_increment

Random increment is 1 or 2.

Classes

NetworkBehaviorModel

Behavioral properties for a network.