Module netsim::node
[−]
[src]
This module is for use with the spawn::network_v4
function. The functions herein provide a
simple way to define a hierarchical network with routes automatically configured. If you need
more flexibility in the configuration of a virtual network then you should use the device
module types directly.
Traits
EtherNode |
An |
Ipv4Node |
An |
RouterClientsV4 |
A set of clients that can be attached to a router node. |
Functions
endpoint_eth |
Create a node for an Ipv4 endpoint. This node will run the given function in a network namespace with a single interface. |
endpoint_v4 |
Create a node for an Ipv4 endpoint. This node will run the given function in a network namespace with a single interface. |
ether_adaptor_v4 |
Adapt a |
hops_v4 |
Add hops between nodes. The will cause the TTL of packets travelling on this connection to decrease by the given amount. |
hub_eth |
Create a node for an ethernet hub. |
latency_v4 |
Add latency between nodes. Packets entering the connection from either end will be delayed before arriving at the other end. |
nat_v4 |
Create a node for an Ipv4 NAT. |
packet_loss_v4 |
Create a node which adds packet loss to the underlying |
router_v4 |
Spawns a bunch of sub-nodes and routes packets between them. |