Network NetworkPathRIPShowcase

Package: inet.showcases.visualizer.networkpathactivity
File: showcases/visualizer/networkpathactivity/NetworkPathVisualizerShowcase.ned

TODO documentation

IntegratedVisualizer IPv4NetworkConfigurator Ieee80211ScalarRadioMedium ScenarioManager LifecycleController StandardHost StandardHost WirelessHost WirelessHost StandardHost StandardHost AccessPoint AccessPoint EtherSwitch EtherSwitch Router Router Router Router

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
display bgb=1100,680

Unassigned submodule parameters:

Name Type Default value Description
configurator.minLinkWeight double 1E-3
configurator.config xml xml("")

XML configuration parameters for IP address assignment and adding manual routes

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)

radioMedium.neighborCache.refillPeriod double
scenarioManager.script xml xml("")
wiredSource.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

wiredSource.pcapRecorder.verbose bool false

whether to log packets on the module output

wiredSource.pcapRecorder.pcapFile string ""

the PCAP file to be written

wiredSource.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

wiredSource.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

wiredSource.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

wiredSource.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

wiredSource.pcapRecorder.alwaysFlush bool false

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

wiredSource.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

wiredSource.lo0.lo.mtu int 4470B
wiredDestination.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

wiredDestination.pcapRecorder.verbose bool false

whether to log packets on the module output

wiredDestination.pcapRecorder.pcapFile string ""

the PCAP file to be written

wiredDestination.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

wiredDestination.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

wiredDestination.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

wiredDestination.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

wiredDestination.pcapRecorder.alwaysFlush bool false

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

wiredDestination.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

wiredDestination.lo0.lo.mtu int 4470B
wirelessSource.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

wirelessSource.pcapRecorder.verbose bool false

whether to log packets on the module output

wirelessSource.pcapRecorder.pcapFile string ""

the PCAP file to be written

wirelessSource.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

wirelessSource.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

wirelessSource.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

wirelessSource.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

wirelessSource.pcapRecorder.alwaysFlush bool false

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

wirelessSource.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

wirelessSource.lo0.lo.mtu int 4470B
wirelessDestination.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

wirelessDestination.pcapRecorder.verbose bool false

whether to log packets on the module output

wirelessDestination.pcapRecorder.pcapFile string ""

the PCAP file to be written

wirelessDestination.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

wirelessDestination.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

wirelessDestination.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

wirelessDestination.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

wirelessDestination.pcapRecorder.alwaysFlush bool false

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

wirelessDestination.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

wirelessDestination.lo0.lo.mtu int 4470B
host1.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

host1.pcapRecorder.verbose bool false

whether to log packets on the module output

host1.pcapRecorder.pcapFile string ""

the PCAP file to be written

host1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

host1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

host1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

host1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

host1.pcapRecorder.alwaysFlush bool false

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

host1.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

host1.lo0.lo.mtu int 4470B
host2.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

host2.pcapRecorder.verbose bool false

whether to log packets on the module output

host2.pcapRecorder.pcapFile string ""

the PCAP file to be written

host2.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

host2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

host2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

host2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

host2.pcapRecorder.alwaysFlush bool false

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

host2.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

host2.lo0.lo.mtu int 4470B
accessPoint0.status.initialStatus string "UP"

TODO @signal, @statistic

accessPoint0.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

accessPoint0.macTable.agingTime double
accessPoint0.macTable.addressTableFile string
accessPoint1.status.initialStatus string "UP"

TODO @signal, @statistic

accessPoint1.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

accessPoint1.macTable.agingTime double
accessPoint1.macTable.addressTableFile string
etherSwitch0.status.initialStatus string "UP"

TODO @signal, @statistic

etherSwitch0.l2NodeConfigurator.interfaceTableModule string
etherSwitch0.l2NodeConfigurator.l2ConfiguratorModule string "l2NetworkConfigurator"

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

etherSwitch0.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

etherSwitch0.macTable.agingTime double
etherSwitch0.macTable.addressTableFile string
etherSwitch0.stp.helloTime double
etherSwitch0.stp.forwardDelay double
etherSwitch0.stp.maxAge double
etherSwitch0.stp.bridgePriority int
etherSwitch0.stp.visualize bool
etherSwitch1.status.initialStatus string "UP"

TODO @signal, @statistic

etherSwitch1.l2NodeConfigurator.interfaceTableModule string
etherSwitch1.l2NodeConfigurator.l2ConfiguratorModule string "l2NetworkConfigurator"

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

etherSwitch1.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

etherSwitch1.macTable.agingTime double
etherSwitch1.macTable.addressTableFile string
etherSwitch1.stp.helloTime double
etherSwitch1.stp.forwardDelay double
etherSwitch1.stp.maxAge double
etherSwitch1.stp.bridgePriority int
etherSwitch1.stp.visualize bool
router0.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

router0.pcapRecorder.verbose bool false

whether to log packets on the module output

router0.pcapRecorder.pcapFile string ""

the PCAP file to be written

router0.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

router0.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

router0.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

router0.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

router0.pcapRecorder.alwaysFlush bool false

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

router0.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

router0.bgp.routingTableModule string
router0.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
router0.bgp.dataTransferMode string
router1.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

router1.pcapRecorder.verbose bool false

whether to log packets on the module output

router1.pcapRecorder.pcapFile string ""

the PCAP file to be written

router1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

router1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

router1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

router1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

router1.pcapRecorder.alwaysFlush bool false

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

router1.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

router1.bgp.routingTableModule string
router1.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
router1.bgp.dataTransferMode string
router2.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

router2.pcapRecorder.verbose bool false

whether to log packets on the module output

router2.pcapRecorder.pcapFile string ""

the PCAP file to be written

router2.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

router2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

router2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

router2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

router2.pcapRecorder.alwaysFlush bool false

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

router2.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

router2.bgp.routingTableModule string
router2.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
router2.bgp.dataTransferMode string
router3.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

router3.pcapRecorder.verbose bool false

whether to log packets on the module output

router3.pcapRecorder.pcapFile string ""

the PCAP file to be written

router3.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

router3.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

router3.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

router3.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

router3.pcapRecorder.alwaysFlush bool false

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

router3.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

router3.bgp.routingTableModule string
router3.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
router3.bgp.dataTransferMode string

Source code:

//
// TODO documentation
//
network NetworkPathRIPShowcase
{
    @display("bgb=1100,680");
    submodules:
        visualizer: IntegratedVisualizer {
            parameters:
                @display("p=100,50");
        }
        configurator: IPv4NetworkConfigurator {
            parameters:
                @display("p=100,150");
        }
        radioMedium: Ieee80211ScalarRadioMedium {
            parameters:
                @display("p=100,250");
        }
        scenarioManager: ScenarioManager {
            parameters:
                @display("p=100,350");
        }
        lifecycleController: LifecycleController {
            @display("p=100,450");
        }
        wiredSource: StandardHost {
            @display("p=257.28,535.464");
        }
        wiredDestination: StandardHost {
            @display("p=802.392,149.544");
        }
        wirelessSource: WirelessHost {
            @display("p=406.824,80.4");
        }
        wirelessDestination: WirelessHost {
            @display("p=786.312,567.624");
        }
        host1: StandardHost {
            @display("p=445.41602,535.464");
        }
        host2: StandardHost {
            @display("p=993.744,149.544");
        }
        accessPoint0: AccessPoint {
            @display("p=319.992,154.368");
        }
        accessPoint1: AccessPoint {
            @display("p=876.36,479.184");
        }
        etherSwitch0: EtherSwitch {
            @display("p=876.36,276.576");
        }
        etherSwitch1: EtherSwitch {
            @display("p=329.64,402");
        }
        router0: Router {
            @display("p=383.73126,279.6875");
        }
        router1: Router {
            @display("p=633.552,192.96");
        }
        router2: Router {
            @display("p=787.60004,404.98752");
        }
        router3: Router {
            @display("p=554.76,458.28");
        }
    connections:
        router0.pppg++ <--> Eth100M <--> router1.pppg++;
        router0.pppg++ <--> Eth100M <--> router3.pppg++;
        router1.pppg++ <--> Eth100M <--> router2.pppg++;
        router2.pppg++ <--> Eth100M <--> router3.pppg++;
        router2.ethg++ <--> Eth100M <--> etherSwitch0.ethg++;
        etherSwitch0.ethg++ <--> Eth100M <--> wiredDestination.ethg++;
        router2.ethg++ <--> Eth100M <--> accessPoint1.ethg++;
        router0.ethg++ <--> Eth100M <--> etherSwitch1.ethg++;
        etherSwitch1.ethg++ <--> Eth100M <--> wiredSource.ethg++;
        router0.ethg++ <--> Eth100M <--> accessPoint0.ethg++;
        host1.ethg++ <--> Eth100M <--> etherSwitch1.ethg++;
        host2.ethg++ <--> Eth100M <--> etherSwitch0.ethg++;
}