DataLinkVisualizerEnablingWirelessShowcase

Package: inet.showcases.visualizer.canvas.datalinkactivity

DataLinkVisualizerEnablingWirelessShowcase

network

(no description)

linkVisualizer : DataLinkCanvasVisualizer

Visualizes data link layer links on a 2D canvas.

Source:
linkVisualizer: DataLinkCanvasVisualizer {
    parameters:
        @display("p=100,50");
} configurator : Ipv4NetworkConfigurator

Assigns IPv4 addresses and sets up static routing for an IPv4 network.

Source:
configurator: Ipv4NetworkConfigurator {
    parameters:
        @display("p=100,120");
} radioMedium : Ieee80211RadioMedium

This radio medium model is part of the IEEE 802.11 physical layer model.

Source:
radioMedium: Ieee80211RadioMedium {
    parameters:
        @display("p=100,190");
} wirelessSource : AdhocHost

A mobile wireless node that participates in ad hoc networks without centralized infrastructure.

Source:
wirelessSource: AdhocHost {
    @display("p=300,110");
} wirelessDestination : AdhocHost

A mobile wireless node that participates in ad hoc networks without centralized infrastructure.

Source:
wirelessDestination: AdhocHost {
    @display("p=600,110");
}

Usage diagram

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

Properties

Name Value Description
isNetwork
display bgb=700,250

Unassigned submodule parameters

Name Type Default value Description
linkVisualizer.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

linkVisualizer.visualizationTargetModule string "^"

Module path relative to the visualizer which determines where the visualization should appear in the user interface, parent module by default

linkVisualizer.visualizationSubjectModule string "^"

Module path relative to the visualizer which determines what part of the simulation model the visualizer displays in the user interface, parent module by default

linkVisualizer.tags string ""

Tag added to each visualization for disambiguation in the runtime environment

linkVisualizer.displayLinks bool false

Display arrows for active links, disabled by default

linkVisualizer.activityLevel string "service"

Determines what level of activity is displayed, service level by default

linkVisualizer.nodeFilter string "*"

Which nodes are considered, matches all nodes by default

linkVisualizer.interfaceFilter string "*"

Which interfaces are considered, matches all interfaces by default

linkVisualizer.packetFilter object "*"

Which packets are considered, matches all packets by default

linkVisualizer.lineColor string "darkcyan"

Link arrow color, black by default

linkVisualizer.lineStyle string "solid"

Link arrow style (solid, dashed, dotted)

linkVisualizer.lineWidth double 3

Link arrow width

linkVisualizer.lineShift double 16

Line shift to avoid overlapping arrows

linkVisualizer.lineShiftMode string "normal"

Determines how overlapping arrows are shifted, possible values are: none, normal, x, y, z; optional prefix + or -

linkVisualizer.lineContactSpacing double 3

Spacing between arrow end and submodule icon

linkVisualizer.lineContactMode string "rectangular"

Determines how arrows are clipped at the submodules

linkVisualizer.labelFormat string "%n"

Determines what link data is displayed

linkVisualizer.labelFont string ", 8px"

Label font, automatic by default

linkVisualizer.labelColor string "darkcyan"

Label color, black by default

linkVisualizer.fadeOutMode string "realTime"

Specifies how inactive links fade out

linkVisualizer.fadeOutTime double 1s

How quickly inactive links fade away, 1 second by default

linkVisualizer.fadeOutAnimationSpeed double 0

Animation speed while there are active links, value must be in the range (0, +inf)

linkVisualizer.holdAnimationTime double 0s

Hold simulation (no progress) for the specified amount of animation time when the link is activated

linkVisualizer.zIndex double 2

Determines the drawing order of figures relative to other visualizers

configurator.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

configurator.minLinkWeight double 1E-3
configurator.configureIsolatedNetworksSeparatly bool false
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.assignUniqueAddresses bool true

Avoid using the same address and raise an error if not possible

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.addDirectRoutes bool true

Add direct routes towards local network members (i.e. directly connected interfaces) to the routing table (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.updateRoutes bool false

Recalculate static routes if an interface goes down/up or a carrier is lost/back

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
wirelessSource.status.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessSource.status.initialStatus string "UP"

TODO @signal, @statistic

wirelessSource.environment.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessSource.environment.initStage int 0

Initialization stage for the setup command

wirelessSource.environment.globalNamespace bool false

Create new network namespaces under /var/run/netns/ (Linux only)

wirelessSource.environment.namespace string ""

Name of the host OS network namespace (optional) (Linux only)

wirelessSource.environment.setupCommand string ""

A host OS system command

wirelessSource.environment.teardownCommand string ""

A host OS system command

wirelessSource.pcapRecorder.displayStringTextFormat string "rec: %n pks"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessSource.pcapRecorder.verbose bool true

Whether to log packets on the module output

wirelessSource.pcapRecorder.recordEmptyPackets bool true

Specifies if zero length packets are recorded or not

wirelessSource.pcapRecorder.enableConvertingPackets bool true

Specifies if converting packets to link type is allowed or not

wirelessSource.pcapRecorder.pcapFile string ""

The PCAP file to be written, suggested value: pcapFile = "${resultdir}/${configname}-#${runnumber}" + fullpath() + ".pcap"

wirelessSource.pcapRecorder.fileFormat string "pcapng"
wirelessSource.pcapRecorder.snaplen int 65535

Maximum number of bytes to record per packet

wirelessSource.pcapRecorder.timePrecision int 6

Time precision in recorded file. pcap supports only 6 (usec) or 9 (nanosec), pcapng supports more values (see 'if_tsresol' option in pcapng file format).

wirelessSource.pcapRecorder.dumpBadFrames bool true

Enable dump of frames with hasBitError

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

Space-separated list of sibling module names to listen on

wirelessSource.pcapRecorder.sendingSignalNames string "transmissionEnded"

Space-separated list of outbound packet signals to subscribe to

wirelessSource.pcapRecorder.receivingSignalNames string "receptionEnded"

Space-separated list of inbound packet signals to subscribe to

wirelessSource.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

Space-separated list of protocol names as defined in the Protocol class

wirelessSource.pcapRecorder.packetFilter object "*"

Which packets are considered, matches all packets by default

wirelessSource.pcapRecorder.helpers string ""

Usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

wirelessSource.pcapRecorder.alwaysFlush bool false

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

wirelessSource.interfaceTable.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessSource.interfaceTable.displayAddresses bool false

Whether to display IP addresses on links

wirelessSource.cb.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessSource.cb.interfaceTableModule string

Module path to the ~InterfaceTable module

wirelessSource.cb.forwardServiceRegistration bool true
wirelessSource.cb.forwardProtocolRegistration bool true
wirelessSource.cb.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

wirelessSource.cb.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

wirelessSource.cb.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

wirelessSource.bl.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessSource.bl.interfaceTableModule string

Module path to the ~InterfaceTable module

wirelessSource.bl.forwardServiceRegistration bool true
wirelessSource.bl.forwardProtocolRegistration bool true
wirelessSource.bl.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

wirelessSource.bl.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

wirelessSource.bl.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

wirelessSource.li.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessSource.li.interfaceTableModule string

Module path to the ~InterfaceTable module

wirelessSource.li.forwardServiceRegistration bool true
wirelessSource.li.forwardProtocolRegistration bool true
wirelessSource.li.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

wirelessSource.li.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

wirelessSource.li.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

wirelessSource.eth.bitrate double
wirelessSource.nl.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessSource.nl.interfaceTableModule string

Module path to the ~InterfaceTable module

wirelessSource.nl.forwardServiceRegistration bool true
wirelessSource.nl.forwardProtocolRegistration bool true
wirelessSource.nl.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

wirelessSource.nl.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

wirelessSource.nl.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

wirelessSource.tn.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessSource.tn.interfaceTableModule string

Module path to the ~InterfaceTable module

wirelessSource.tn.forwardServiceRegistration bool true
wirelessSource.tn.forwardProtocolRegistration bool true
wirelessSource.tn.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

wirelessSource.tn.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

wirelessSource.tn.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

wirelessSource.at.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessSource.at.interfaceTableModule string

Module path to the ~InterfaceTable module

wirelessSource.at.forwardServiceRegistration bool true
wirelessSource.at.forwardProtocolRegistration bool true
wirelessSource.at.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

wirelessSource.at.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

wirelessSource.at.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

wirelessDestination.status.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessDestination.status.initialStatus string "UP"

TODO @signal, @statistic

wirelessDestination.environment.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessDestination.environment.initStage int 0

Initialization stage for the setup command

wirelessDestination.environment.globalNamespace bool false

Create new network namespaces under /var/run/netns/ (Linux only)

wirelessDestination.environment.namespace string ""

Name of the host OS network namespace (optional) (Linux only)

wirelessDestination.environment.setupCommand string ""

A host OS system command

wirelessDestination.environment.teardownCommand string ""

A host OS system command

wirelessDestination.pcapRecorder.displayStringTextFormat string "rec: %n pks"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessDestination.pcapRecorder.verbose bool true

Whether to log packets on the module output

wirelessDestination.pcapRecorder.recordEmptyPackets bool true

Specifies if zero length packets are recorded or not

wirelessDestination.pcapRecorder.enableConvertingPackets bool true

Specifies if converting packets to link type is allowed or not

wirelessDestination.pcapRecorder.pcapFile string ""

The PCAP file to be written, suggested value: pcapFile = "${resultdir}/${configname}-#${runnumber}" + fullpath() + ".pcap"

wirelessDestination.pcapRecorder.fileFormat string "pcapng"
wirelessDestination.pcapRecorder.snaplen int 65535

Maximum number of bytes to record per packet

wirelessDestination.pcapRecorder.timePrecision int 6

Time precision in recorded file. pcap supports only 6 (usec) or 9 (nanosec), pcapng supports more values (see 'if_tsresol' option in pcapng file format).

wirelessDestination.pcapRecorder.dumpBadFrames bool true

Enable dump of frames with hasBitError

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

Space-separated list of sibling module names to listen on

wirelessDestination.pcapRecorder.sendingSignalNames string "transmissionEnded"

Space-separated list of outbound packet signals to subscribe to

wirelessDestination.pcapRecorder.receivingSignalNames string "receptionEnded"

Space-separated list of inbound packet signals to subscribe to

wirelessDestination.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

Space-separated list of protocol names as defined in the Protocol class

wirelessDestination.pcapRecorder.packetFilter object "*"

Which packets are considered, matches all packets by default

wirelessDestination.pcapRecorder.helpers string ""

Usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

wirelessDestination.pcapRecorder.alwaysFlush bool false

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

wirelessDestination.interfaceTable.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessDestination.interfaceTable.displayAddresses bool false

Whether to display IP addresses on links

wirelessDestination.cb.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessDestination.cb.interfaceTableModule string

Module path to the ~InterfaceTable module

wirelessDestination.cb.forwardServiceRegistration bool true
wirelessDestination.cb.forwardProtocolRegistration bool true
wirelessDestination.cb.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

wirelessDestination.cb.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

wirelessDestination.cb.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

wirelessDestination.bl.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessDestination.bl.interfaceTableModule string

Module path to the ~InterfaceTable module

wirelessDestination.bl.forwardServiceRegistration bool true
wirelessDestination.bl.forwardProtocolRegistration bool true
wirelessDestination.bl.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

wirelessDestination.bl.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

wirelessDestination.bl.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

wirelessDestination.li.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessDestination.li.interfaceTableModule string

Module path to the ~InterfaceTable module

wirelessDestination.li.forwardServiceRegistration bool true
wirelessDestination.li.forwardProtocolRegistration bool true
wirelessDestination.li.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

wirelessDestination.li.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

wirelessDestination.li.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

wirelessDestination.eth.bitrate double
wirelessDestination.nl.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessDestination.nl.interfaceTableModule string

Module path to the ~InterfaceTable module

wirelessDestination.nl.forwardServiceRegistration bool true
wirelessDestination.nl.forwardProtocolRegistration bool true
wirelessDestination.nl.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

wirelessDestination.nl.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

wirelessDestination.nl.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

wirelessDestination.tn.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessDestination.tn.interfaceTableModule string

Module path to the ~InterfaceTable module

wirelessDestination.tn.forwardServiceRegistration bool true
wirelessDestination.tn.forwardProtocolRegistration bool true
wirelessDestination.tn.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

wirelessDestination.tn.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

wirelessDestination.tn.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

wirelessDestination.at.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

wirelessDestination.at.interfaceTableModule string

Module path to the ~InterfaceTable module

wirelessDestination.at.forwardServiceRegistration bool true
wirelessDestination.at.forwardProtocolRegistration bool true
wirelessDestination.at.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

wirelessDestination.at.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

wirelessDestination.at.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

Source code

network DataLinkVisualizerEnablingWirelessShowcase
{
    @display("bgb=700,250");
    submodules:
        linkVisualizer: DataLinkCanvasVisualizer {
            parameters:
                @display("p=100,50");
        }
        configurator: Ipv4NetworkConfigurator {
            parameters:
                @display("p=100,120");
        }
        radioMedium: Ieee80211RadioMedium {
            parameters:
                @display("p=100,190");
        }
        wirelessSource: AdhocHost {
            @display("p=300,110");
        }
        wirelessDestination: AdhocHost {
            @display("p=600,110");
        }
}

File: showcases/visualizer/canvas/datalinkactivity/DataLinkVisualizerShowcase.ned