Network DataLinkVisualizerFilteringShowcase

Package: inet.showcases.visualizer.datalinkactivity
File: showcases/visualizer/datalinkactivity/DatalinkVisualizerShowcase.ned

TODO documentation

IntegratedVisualizer IPv4NetworkConfigurator EtherSwitch EtherSwitch StandardHost EtherSwitch StandardHost StandardHost StandardHost EtherSwitch StandardHost StandardHost

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=900,600

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)

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
etherSwitch3.status.initialStatus string "UP"

TODO @signal, @statistic

etherSwitch3.l2NodeConfigurator.interfaceTableModule string
etherSwitch3.l2NodeConfigurator.l2ConfiguratorModule string "l2NetworkConfigurator"

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

etherSwitch3.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

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

TODO @signal, @statistic

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

whether to display IP addresses on links

source1.pcapRecorder.verbose bool false

whether to log packets on the module output

source1.pcapRecorder.pcapFile string ""

the PCAP file to be written

source1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

source1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

source1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

source1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

source1.pcapRecorder.alwaysFlush bool false

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

source1.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

source1.lo0.lo.mtu int 4470B
etherSwitch4.status.initialStatus string "UP"

TODO @signal, @statistic

etherSwitch4.l2NodeConfigurator.interfaceTableModule string
etherSwitch4.l2NodeConfigurator.l2ConfiguratorModule string "l2NetworkConfigurator"

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

etherSwitch4.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

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

TODO @signal, @statistic

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

whether to display IP addresses on links

destination1.pcapRecorder.verbose bool false

whether to log packets on the module output

destination1.pcapRecorder.pcapFile string ""

the PCAP file to be written

destination1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

destination1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

destination1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

destination1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

destination1.pcapRecorder.alwaysFlush bool false

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

destination1.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

destination1.lo0.lo.mtu int 4470B
destination2.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

destination2.pcapRecorder.verbose bool false

whether to log packets on the module output

destination2.pcapRecorder.pcapFile string ""

the PCAP file to be written

destination2.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

destination2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

destination2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

destination2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

destination2.pcapRecorder.alwaysFlush bool false

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

destination2.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

destination2.lo0.lo.mtu int 4470B
source2.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

source2.pcapRecorder.verbose bool false

whether to log packets on the module output

source2.pcapRecorder.pcapFile string ""

the PCAP file to be written

source2.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

source2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

source2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

source2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

source2.pcapRecorder.alwaysFlush bool false

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

source2.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

source2.lo0.lo.mtu int 4470B
etherSwitch2.status.initialStatus string "UP"

TODO @signal, @statistic

etherSwitch2.l2NodeConfigurator.interfaceTableModule string
etherSwitch2.l2NodeConfigurator.l2ConfiguratorModule string "l2NetworkConfigurator"

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

etherSwitch2.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

etherSwitch2.macTable.agingTime double
etherSwitch2.macTable.addressTableFile string
etherSwitch2.stp.helloTime double
etherSwitch2.stp.forwardDelay double
etherSwitch2.stp.maxAge double
etherSwitch2.stp.bridgePriority int
etherSwitch2.stp.visualize bool
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

Source code:

//
// TODO documentation
//
network DataLinkVisualizerFilteringShowcase
{
    @display("bgb=900,600");
    submodules:
        visualizer: IntegratedVisualizer {
            @display("p=80,50");
        }
        configurator: IPv4NetworkConfigurator {
            parameters:
                @display("p=80,120");
        }
        etherSwitch1: EtherSwitch {
            @display("p=376.896,169.12");
        }
        etherSwitch3: EtherSwitch {
            @display("p=723.592,200.528");
        }
        source1: StandardHost {
            @display("p=206.568,50.736");
        }
        etherSwitch4: EtherSwitch {
            @display("p=484.408,283.88");
        }
        destination1: StandardHost {
            @display("p=556.888,485.616");
        }
        destination2: StandardHost {
            @display("p=798.488,343.072");
        }
        source2: StandardHost {
            @display("p=173.952,227.104");
        }
        etherSwitch2: EtherSwitch {
            @display("p=329.784,428.84");
        }
        host1: StandardHost {
            @display("p=233.144,506.152");
        }
        host2: StandardHost {
            @display("p=822.648,135.296");
        }
    connections:
        etherSwitch1.ethg++ <--> Eth100M <--> source1.ethg++;
        etherSwitch1.ethg++ <--> Eth100M <--> etherSwitch4.ethg++;
        etherSwitch4.ethg++ <--> Eth100M <--> etherSwitch3.ethg++;
        etherSwitch1.ethg++ <--> Eth100M <--> source2.ethg++;
        etherSwitch3.ethg++ <--> Eth100M <--> destination2.ethg++;
        etherSwitch4.ethg++ <--> Eth100M <--> etherSwitch2.ethg++;
        etherSwitch2.ethg++ <--> Eth100M <--> destination1.ethg++;
        etherSwitch3.ethg++ <--> Eth100M <--> host2.ethg++;
        etherSwitch2.ethg++ <--> Eth100M <--> host1.ethg++;
}