Module netsim::node::ip[][src]

Nodes for creating IP networks

Structs

LatencyNode

A node representing latency on an IP connection.

MachineNode

A node representing a machine with an IP interface.

PacketLossNode

A Node which adds packet loss to an underlying node.

Traits

IpNode

An IpNode describes a recipe for constructing a network when given the IP range that the network should operate on. The functions in the node::ip module return IpNodes that you can run as a network with the spawn::network_ip function.

Functions

latency

Add latency between nodes. Packets entering the connection from either end will be delayed before arriving at the other end.

machine

Create a node for a machine with an IP interface. This node will run the given function in a network namespace with a single interface.

packet_loss

Create a node which adds packet loss to the underlying node.