Network Network

Package: inet.examples.inet.igmp
File: examples/inet/igmp/Network.ned

TODO documentation

StandardHost Router Router StandardHost StandardHost EtherSwitch IPv4NetworkConfigurator

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Properties:

Name Value Description
isNetwork

Unassigned submodule parameters:

Name Type Default value Description
Alice.status.initialStatus string "UP"

TODO @signal, @statistic

Alice.routingTable.forwarding bool
Alice.routingTable.multicastForwarding bool
Alice.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

Alice.pcapRecorder.verbose bool false

whether to log packets on the module output

Alice.pcapRecorder.pcapFile string ""

the PCAP file to be written

Alice.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

Alice.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

Alice.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

Alice.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

Alice.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

Alice.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

Alice.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

Alice.lo0.lo.mtu int 4470B
FITgate1.status.initialStatus string "UP"

TODO @signal, @statistic

FITgate1.routingTable.forwarding bool
FITgate1.routingTable.multicastForwarding bool
FITgate1.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

FITgate1.pcapRecorder.verbose bool false

whether to log packets on the module output

FITgate1.pcapRecorder.pcapFile string ""

the PCAP file to be written

FITgate1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

FITgate1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

FITgate1.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

FITgate1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

FITgate1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

FITgate1.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

FITgate1.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

FITgate1.lo0.lo.mtu int 4470B
FITgate1.bgp.interfaceTableModule string

The path to the InterfaceTable module

FITgate1.bgp.routingTableModule string
FITgate1.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
FITgate1.bgp.dataTransferMode string
FITgate2.status.initialStatus string "UP"

TODO @signal, @statistic

FITgate2.routingTable.forwarding bool
FITgate2.routingTable.multicastForwarding bool
FITgate2.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

FITgate2.pcapRecorder.verbose bool false

whether to log packets on the module output

FITgate2.pcapRecorder.pcapFile string ""

the PCAP file to be written

FITgate2.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

FITgate2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

FITgate2.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

FITgate2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

FITgate2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

FITgate2.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

FITgate2.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

FITgate2.lo0.lo.mtu int 4470B
FITgate2.bgp.interfaceTableModule string

The path to the InterfaceTable module

FITgate2.bgp.routingTableModule string
FITgate2.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
FITgate2.bgp.dataTransferMode string
Bob.status.initialStatus string "UP"

TODO @signal, @statistic

Bob.routingTable.forwarding bool
Bob.routingTable.multicastForwarding bool
Bob.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

Bob.pcapRecorder.verbose bool false

whether to log packets on the module output

Bob.pcapRecorder.pcapFile string ""

the PCAP file to be written

Bob.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

Bob.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

Bob.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

Bob.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

Bob.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

Bob.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

Bob.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

Bob.lo0.lo.mtu int 4470B
Carlos.status.initialStatus string "UP"

TODO @signal, @statistic

Carlos.routingTable.forwarding bool
Carlos.routingTable.multicastForwarding bool
Carlos.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

Carlos.pcapRecorder.verbose bool false

whether to log packets on the module output

Carlos.pcapRecorder.pcapFile string ""

the PCAP file to be written

Carlos.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

Carlos.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

Carlos.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

Carlos.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

Carlos.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

Carlos.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

Carlos.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

Carlos.lo0.lo.mtu int 4470B
etherSwitch.status.initialStatus string "UP"

TODO @signal, @statistic

etherSwitch.l2NodeConfigurator.interfaceTableModule string
etherSwitch.l2NodeConfigurator.l2ConfiguratorModule string "l2NetworkConfigurator"

the absolute path to the L2NetworkConfigurator; use "" if there is no configurator

etherSwitch.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

etherSwitch.macTable.agingTime double
etherSwitch.macTable.addressTableFile string
etherSwitch.stp.helloTime double
etherSwitch.stp.forwardDelay double
etherSwitch.stp.maxAge double
etherSwitch.stp.bridgePriority int
etherSwitch.stp.visualize bool
configurator.minLinkWeight double 1E-3
configurator.assignAddresses bool true

assign IP addresses to all interfaces in the network

configurator.assignDisjunctSubnetAddresses bool true

avoid using the same address prefix and netmask on different links when assigning IP addresses to interfaces

configurator.addStaticRoutes bool true

add static routes to the routing tables of all nodes to route to all destination interfaces (only where applicable; turn off when config file contains manual routes)

configurator.addDefaultRoutes bool true

add default routes if all routes from a source node go through the same gateway (used only if addStaticRoutes is true)

configurator.addSubnetRoutes bool true

add subnet routes instead of destination interface routes (only where applicable; used only if addStaticRoutes is true)

configurator.optimizeRoutes bool true

optimize routing tables by merging routes, the resulting routing table might route more packets than the original (used only if addStaticRoutes is true)

configurator.dumpTopology bool false

print extracted network topology to the module output

configurator.dumpLinks bool false

print recognized network links to the module output

configurator.dumpAddresses bool false

print assigned IP addresses for all interfaces to the module output

configurator.dumpRoutes bool false

print configured and optimized routing tables for all nodes to the module output

configurator.dumpConfig string ""

write configuration into the given config file that can be fed back to speed up subsequent runs (network configurations)

Source code:

//
// TODO documentation
//
network Network
{
    submodules:
        Alice: StandardHost {
            @display("p=76,62");
        }
        FITgate1: Router {
            @display("p=314,58");
        }
        FITgate2: Router {
            @display("p=314,168");
        }
        Bob: StandardHost {
            @display("p=76,172");
        }
        Carlos: StandardHost {
            @display("p=314,257");
        }
        etherSwitch: EtherSwitch {
            @display("p=203,124");
        }
        configurator: IPv4NetworkConfigurator {
            @display("p=195,25");
            config = xmldoc("config.xml");
        }
    connections allowunconnected:
        Alice.ethg++ <--> Eth100M <--> etherSwitch.ethg++;
        Bob.ethg++ <--> Eth100M <--> etherSwitch.ethg++;
        FITgate1.ethg++ <--> Eth100M <--> etherSwitch.ethg++;
        FITgate2.ethg++ <--> Eth100M <--> etherSwitch.ethg++;
        Carlos.ethg++ <--> Eth100M <--> FITgate2.ethg++;
}