Package: inet.examples.inet.hierarchical
Hierarchical
network(no description)
Usage diagram
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| columns | int | 3 | |
| rows | int | 3 |
Properties
| Name | Value | Description |
|---|---|---|
| isNetwork |
Unassigned submodule parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| 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.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) |
| router.status.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| router.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| router.environment.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| router.environment.initStage | int | 0 |
Initialization stage for the setup command |
| router.environment.globalNamespace | bool | false |
Create new network namespaces under /var/run/netns/ (Linux only) |
| router.environment.namespace | string | "" |
Name of the host OS network namespace (optional) (Linux only) |
| router.environment.setupCommand | string | "" |
A host OS system command |
| router.environment.teardownCommand | string | "" |
A host OS system command |
| router.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 |
| router.pcapRecorder.verbose | bool | true |
Whether to log packets on the module output |
| router.pcapRecorder.recordEmptyPackets | bool | true |
Specifies if zero length packets are recorded or not |
| router.pcapRecorder.enableConvertingPackets | bool | true |
Specifies if converting packets to link type is allowed or not |
| router.pcapRecorder.pcapFile | string | "" |
The PCAP file to be written, suggested value: pcapFile = "${resultdir}/${configname}-#${runnumber}" + fullpath() + ".pcap" |
| router.pcapRecorder.fileFormat | string | "pcapng" | |
| router.pcapRecorder.snaplen | int | 65535 |
Maximum number of bytes to record per packet |
| router.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). |
| router.pcapRecorder.dumpBadFrames | bool | true |
Enable dump of frames with hasBitError |
| router.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
Space-separated list of sibling module names to listen on |
| router.pcapRecorder.sendingSignalNames | string | "transmissionEnded" |
Space-separated list of outbound packet signals to subscribe to |
| router.pcapRecorder.receivingSignalNames | string | "receptionEnded" |
Space-separated list of inbound packet signals to subscribe to |
| router.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
Space-separated list of protocol names as defined in the Protocol class |
| router.pcapRecorder.packetFilter | object | "*" |
Which packets are considered, matches all packets by default |
| router.pcapRecorder.helpers | string | "" |
Usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| router.pcapRecorder.alwaysFlush | bool | false |
Flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| router.interfaceTable.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| router.interfaceTable.displayAddresses | bool | false |
Whether to display IP addresses on links |
| router.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 |
| router.cb.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| router.cb.forwardServiceRegistration | bool | true | |
| router.cb.forwardProtocolRegistration | bool | true | |
| router.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 |
| router.cb.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| router.cb.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| router.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 |
| router.bl.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| router.bl.forwardServiceRegistration | bool | true | |
| router.bl.forwardProtocolRegistration | bool | true | |
| router.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 |
| router.bl.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| router.bl.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| router.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 |
| router.li.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| router.li.forwardServiceRegistration | bool | true | |
| router.li.forwardProtocolRegistration | bool | true | |
| router.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 |
| router.li.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| router.li.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| router.eth.bitrate | double | ||
| router.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 |
| router.nl.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| router.nl.forwardServiceRegistration | bool | true | |
| router.nl.forwardProtocolRegistration | bool | true | |
| router.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 |
| router.nl.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| router.nl.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| router.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 |
| router.tn.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| router.tn.forwardServiceRegistration | bool | true | |
| router.tn.forwardProtocolRegistration | bool | true | |
| router.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 |
| router.tn.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| router.tn.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| router.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 |
| router.at.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| router.at.forwardServiceRegistration | bool | true | |
| router.at.forwardProtocolRegistration | bool | true | |
| router.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 |
| router.at.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| router.at.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| router.bgp.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| router.bgp.routingTableModule | string | ||
| router.bgp.ospfRoutingModule | string | parent.hasOspf ? "^.ospf" : "" | |
| area.lan.switch.macTable.agingTime | double | ||
| area.lan.switch.macTable.forwardingTableFile | string | ||
| area.lan.switch.interfaceTable.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| area.lan.switch.interfaceTable.displayAddresses | bool | false |
Whether to display IP addresses on links |
| area.lan.switch.status.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| area.lan.switch.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| area.lan.switch.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 |
| area.lan.switch.pcapRecorder.verbose | bool | true |
Whether to log packets on the module output |
| area.lan.switch.pcapRecorder.recordEmptyPackets | bool | true |
Specifies if zero length packets are recorded or not |
| area.lan.switch.pcapRecorder.enableConvertingPackets | bool | true |
Specifies if converting packets to link type is allowed or not |
| area.lan.switch.pcapRecorder.pcapFile | string | "" |
The PCAP file to be written, suggested value: pcapFile = "${resultdir}/${configname}-#${runnumber}" + fullpath() + ".pcap" |
| area.lan.switch.pcapRecorder.fileFormat | string | "pcapng" | |
| area.lan.switch.pcapRecorder.snaplen | int | 65535 |
Maximum number of bytes to record per packet |
| area.lan.switch.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). |
| area.lan.switch.pcapRecorder.dumpBadFrames | bool | true |
Enable dump of frames with hasBitError |
| area.lan.switch.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
Space-separated list of sibling module names to listen on |
| area.lan.switch.pcapRecorder.sendingSignalNames | string | "transmissionEnded" |
Space-separated list of outbound packet signals to subscribe to |
| area.lan.switch.pcapRecorder.receivingSignalNames | string | "receptionEnded" |
Space-separated list of inbound packet signals to subscribe to |
| area.lan.switch.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
Space-separated list of protocol names as defined in the Protocol class |
| area.lan.switch.pcapRecorder.packetFilter | object | "*" |
Which packets are considered, matches all packets by default |
| area.lan.switch.pcapRecorder.helpers | string | "" |
Usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| area.lan.switch.pcapRecorder.alwaysFlush | bool | false |
Flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| area.lan.switch.mrp.ccmInterval | double | ||
| area.lan.switch.mrp.mrpRole | string | ||
| area.lan.switch.mrp.timingProfile | int | ||
| area.lan.switch.mrp.uuid0 | int | ||
| area.lan.switch.mrp.uuid1 | int | ||
| area.lan.switch.mrp.ringPort1 | int | ||
| area.lan.switch.mrp.ringPort2 | int | ||
| area.lan.switch.mrp.interconnectionLinkCheckAware | bool | ||
| area.lan.switch.mrp.interconnectionRingCheckAware | bool | ||
| area.lan.switch.mrp.nonblockingMrcSupported | bool | ||
| area.lan.switch.mrp.reactOnLinkChange | bool | ||
| area.lan.switch.mrp.visualize | bool | ||
| area.lan.switch.stp.helloTime | double | ||
| area.lan.switch.stp.forwardDelay | double | ||
| area.lan.switch.stp.maxAge | double | ||
| area.lan.switch.stp.bridgePriority | int | ||
| area.lan.switch.stp.visualize | bool | ||
| area.lan.switch.gptp.gptpNodeType | string | "BRIDGE_NODE" | |
| area.lan.switch.sc.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 |
| area.lan.switch.sc.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| area.lan.switch.sc.forwardServiceRegistration | bool | true | |
| area.lan.switch.sc.forwardProtocolRegistration | bool | true | |
| area.lan.switch.sc.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 |
| area.lan.switch.sc.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| area.lan.switch.sc.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| area.lan.switch.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 |
| area.lan.switch.cb.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| area.lan.switch.cb.forwardServiceRegistration | bool | true | |
| area.lan.switch.cb.forwardProtocolRegistration | bool | true | |
| area.lan.switch.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 |
| area.lan.switch.cb.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| area.lan.switch.cb.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| area.lan.switch.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 |
| area.lan.switch.bl.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| area.lan.switch.bl.forwardServiceRegistration | bool | true | |
| area.lan.switch.bl.forwardProtocolRegistration | bool | true | |
| area.lan.switch.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 |
| area.lan.switch.bl.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| area.lan.switch.bl.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| area.lan.switch.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 |
| area.lan.switch.li.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| area.lan.switch.li.forwardServiceRegistration | bool | true | |
| area.lan.switch.li.forwardProtocolRegistration | bool | true | |
| area.lan.switch.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 |
| area.lan.switch.li.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| area.lan.switch.li.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| area.lan.switch.eth.bitrate | double | ||
| area.lan.host.status.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| area.lan.host.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| area.lan.host.environment.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| area.lan.host.environment.initStage | int | 0 |
Initialization stage for the setup command |
| area.lan.host.environment.globalNamespace | bool | false |
Create new network namespaces under /var/run/netns/ (Linux only) |
| area.lan.host.environment.namespace | string | "" |
Name of the host OS network namespace (optional) (Linux only) |
| area.lan.host.environment.setupCommand | string | "" |
A host OS system command |
| area.lan.host.environment.teardownCommand | string | "" |
A host OS system command |
| area.lan.host.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 |
| area.lan.host.pcapRecorder.verbose | bool | true |
Whether to log packets on the module output |
| area.lan.host.pcapRecorder.recordEmptyPackets | bool | true |
Specifies if zero length packets are recorded or not |
| area.lan.host.pcapRecorder.enableConvertingPackets | bool | true |
Specifies if converting packets to link type is allowed or not |
| area.lan.host.pcapRecorder.pcapFile | string | "" |
The PCAP file to be written, suggested value: pcapFile = "${resultdir}/${configname}-#${runnumber}" + fullpath() + ".pcap" |
| area.lan.host.pcapRecorder.fileFormat | string | "pcapng" | |
| area.lan.host.pcapRecorder.snaplen | int | 65535 |
Maximum number of bytes to record per packet |
| area.lan.host.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). |
| area.lan.host.pcapRecorder.dumpBadFrames | bool | true |
Enable dump of frames with hasBitError |
| area.lan.host.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
Space-separated list of sibling module names to listen on |
| area.lan.host.pcapRecorder.sendingSignalNames | string | "transmissionEnded" |
Space-separated list of outbound packet signals to subscribe to |
| area.lan.host.pcapRecorder.receivingSignalNames | string | "receptionEnded" |
Space-separated list of inbound packet signals to subscribe to |
| area.lan.host.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
Space-separated list of protocol names as defined in the Protocol class |
| area.lan.host.pcapRecorder.packetFilter | object | "*" |
Which packets are considered, matches all packets by default |
| area.lan.host.pcapRecorder.helpers | string | "" |
Usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| area.lan.host.pcapRecorder.alwaysFlush | bool | false |
Flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| area.lan.host.interfaceTable.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| area.lan.host.interfaceTable.displayAddresses | bool | false |
Whether to display IP addresses on links |
| area.lan.host.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 |
| area.lan.host.cb.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| area.lan.host.cb.forwardServiceRegistration | bool | true | |
| area.lan.host.cb.forwardProtocolRegistration | bool | true | |
| area.lan.host.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 |
| area.lan.host.cb.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| area.lan.host.cb.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| area.lan.host.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 |
| area.lan.host.bl.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| area.lan.host.bl.forwardServiceRegistration | bool | true | |
| area.lan.host.bl.forwardProtocolRegistration | bool | true | |
| area.lan.host.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 |
| area.lan.host.bl.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| area.lan.host.bl.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| area.lan.host.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 |
| area.lan.host.li.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| area.lan.host.li.forwardServiceRegistration | bool | true | |
| area.lan.host.li.forwardProtocolRegistration | bool | true | |
| area.lan.host.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 |
| area.lan.host.li.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| area.lan.host.li.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| area.lan.host.eth.bitrate | double | ||
| area.lan.host.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 |
| area.lan.host.nl.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| area.lan.host.nl.forwardServiceRegistration | bool | true | |
| area.lan.host.nl.forwardProtocolRegistration | bool | true | |
| area.lan.host.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 |
| area.lan.host.nl.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| area.lan.host.nl.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| area.lan.host.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 |
| area.lan.host.tn.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| area.lan.host.tn.forwardServiceRegistration | bool | true | |
| area.lan.host.tn.forwardProtocolRegistration | bool | true | |
| area.lan.host.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 |
| area.lan.host.tn.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| area.lan.host.tn.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| area.lan.host.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 |
| area.lan.host.at.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| area.lan.host.at.forwardServiceRegistration | bool | true | |
| area.lan.host.at.forwardProtocolRegistration | bool | true | |
| area.lan.host.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 |
| area.lan.host.at.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| area.lan.host.at.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| area.router.status.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| area.router.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| area.router.environment.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| area.router.environment.initStage | int | 0 |
Initialization stage for the setup command |
| area.router.environment.globalNamespace | bool | false |
Create new network namespaces under /var/run/netns/ (Linux only) |
| area.router.environment.namespace | string | "" |
Name of the host OS network namespace (optional) (Linux only) |
| area.router.environment.setupCommand | string | "" |
A host OS system command |
| area.router.environment.teardownCommand | string | "" |
A host OS system command |
| area.router.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 |
| area.router.pcapRecorder.verbose | bool | true |
Whether to log packets on the module output |
| area.router.pcapRecorder.recordEmptyPackets | bool | true |
Specifies if zero length packets are recorded or not |
| area.router.pcapRecorder.enableConvertingPackets | bool | true |
Specifies if converting packets to link type is allowed or not |
| area.router.pcapRecorder.pcapFile | string | "" |
The PCAP file to be written, suggested value: pcapFile = "${resultdir}/${configname}-#${runnumber}" + fullpath() + ".pcap" |
| area.router.pcapRecorder.fileFormat | string | "pcapng" | |
| area.router.pcapRecorder.snaplen | int | 65535 |
Maximum number of bytes to record per packet |
| area.router.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). |
| area.router.pcapRecorder.dumpBadFrames | bool | true |
Enable dump of frames with hasBitError |
| area.router.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
Space-separated list of sibling module names to listen on |
| area.router.pcapRecorder.sendingSignalNames | string | "transmissionEnded" |
Space-separated list of outbound packet signals to subscribe to |
| area.router.pcapRecorder.receivingSignalNames | string | "receptionEnded" |
Space-separated list of inbound packet signals to subscribe to |
| area.router.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
Space-separated list of protocol names as defined in the Protocol class |
| area.router.pcapRecorder.packetFilter | object | "*" |
Which packets are considered, matches all packets by default |
| area.router.pcapRecorder.helpers | string | "" |
Usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| area.router.pcapRecorder.alwaysFlush | bool | false |
Flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| area.router.interfaceTable.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| area.router.interfaceTable.displayAddresses | bool | false |
Whether to display IP addresses on links |
| area.router.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 |
| area.router.cb.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| area.router.cb.forwardServiceRegistration | bool | true | |
| area.router.cb.forwardProtocolRegistration | bool | true | |
| area.router.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 |
| area.router.cb.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| area.router.cb.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| area.router.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 |
| area.router.bl.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| area.router.bl.forwardServiceRegistration | bool | true | |
| area.router.bl.forwardProtocolRegistration | bool | true | |
| area.router.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 |
| area.router.bl.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| area.router.bl.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| area.router.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 |
| area.router.li.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| area.router.li.forwardServiceRegistration | bool | true | |
| area.router.li.forwardProtocolRegistration | bool | true | |
| area.router.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 |
| area.router.li.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| area.router.li.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| area.router.eth.bitrate | double | ||
| area.router.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 |
| area.router.nl.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| area.router.nl.forwardServiceRegistration | bool | true | |
| area.router.nl.forwardProtocolRegistration | bool | true | |
| area.router.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 |
| area.router.nl.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| area.router.nl.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| area.router.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 |
| area.router.tn.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| area.router.tn.forwardServiceRegistration | bool | true | |
| area.router.tn.forwardProtocolRegistration | bool | true | |
| area.router.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 |
| area.router.tn.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| area.router.tn.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| area.router.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 |
| area.router.at.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| area.router.at.forwardServiceRegistration | bool | true | |
| area.router.at.forwardProtocolRegistration | bool | true | |
| area.router.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 |
| area.router.at.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| area.router.at.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| area.router.bgp.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| area.router.bgp.routingTableModule | string | ||
| area.router.bgp.ospfRoutingModule | string | parent.hasOspf ? "^.ospf" : "" |
Source code
network Hierarchical { parameters: int columns = default(3); int rows = default(3); types: module LAN { parameters: int numHosts = default(3); @display("i=misc/cloud"); gates: inout ethg[]; submodules: switch: EthernetSwitch; host[numHosts]: StandardHost; connections: for i=0..numHosts-1 { host[i].ethg++ <--> Eth100M <--> switch.ethg++; } for i=0..sizeof(ethg) - 1 { switch.ethg++ <--> ethg++; } } module Area { parameters: int numAreas = default(3); @display("i=misc/cloud"); gates: inout ethg[]; submodules: lan[numAreas]: LAN; router[numAreas]: Router; connections: for i=0..numAreas-1 { router[i].ethg++ <--> Eth1G <--> router[(i+1)%numAreas].ethg++ if numAreas > 1; router[i].ethg++ <--> Eth1G <--> lan[i].ethg++; } router[0].ethg++ <--> ethg++; } submodules: configurator: Ipv4NetworkConfigurator { @display("p=100,100;is=s"); config = xmldoc("hierarchical.xml"); } router[columns*rows]: Router { @display("p=250,100,m,$columns,200,200"); } area[columns*rows]: Area; connections: for i=0..rows-1, for j=0..columns-1 { router[i*columns+j].ethg++ <--> Eth100G <--> router[(i+1)*columns+j].ethg++ if i!=rows-1; router[i*columns+j].ethg++ <--> Eth100G <--> router[i*columns+j+1].ethg++ if j!=columns-1; } for i=0..rows*columns-1 { router[i].ethg++ <--> Eth100G <--> area[i].ethg++; } }File: examples/inet/hierarchical/Hierarchical.ned