Module netsim::device [] [src]

The types in this module allow you to construct arbitrary network topologies. Have a look at the node module if you just want to construct simple, hierarchical networks.

Structs

EtherAdaptorV4

Adapts between an Ipv4 network and a raw ethernet network. This can, for instance, act as a gateway between an ethernet network and the Ipv4 internet.

HopV4

Connects two Ipv4Plugs and adds a hop between them. This causes the TTL value of all packets to be decremented while travelling along the connection (and dropped if the TLL reaches zero).

Hub

An ethernet hub. This is a stupid hub which just blindly forwards all incoming frames to all connected peers.

HubBuilder

Used to build a Hub

LatencyV4

Links two Ipv4Plugs and adds delay to packets travelling between them.

NatV4

An Ipv4 NAT.

NatV4Builder

A builder for NatV4

PacketLossV4

Simulate packet loss on a link

RouterV4

Connects a bunch of Ipv4 networks and routes packets between them.

RouterV4Builder

Builder for creating a RouterV4.