Package: inet.examples.mrp
MrpRing
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 |
|---|---|---|---|
| numNodes | int |
Properties
| Name | Value | Description |
|---|---|---|
| isNetwork |
Unassigned submodule parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| scenarioManager.displayStringTextFormat | string | "total %c changes, %l left\nnext at: %t" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| scenarioManager.script | xml | xml("") | |
| visualizer.sceneVisualizer.visualizationTargetModule | string | ||
| visualizer.sceneVisualizer.visualizationSubjectModule | string | ||
| visualizer.physicalEnvironmentVisualizer.visualizationTargetModule | string | ||
| visualizer.physicalEnvironmentVisualizer.visualizationSubjectModule | string | ||
| visualizer.networkNodeVisualizer.visualizationTargetModule | string | ||
| visualizer.networkNodeVisualizer.visualizationSubjectModule | string | ||
| visualizer.networkConnectionVisualizer.visualizationTargetModule | string | ||
| visualizer.networkConnectionVisualizer.visualizationSubjectModule | string | ||
| visualizer.mobilityVisualizer.visualizationTargetModule | string | ||
| visualizer.mobilityVisualizer.visualizationSubjectModule | string | ||
| visualizer.statisticVisualizer.visualizationTargetModule | string | ||
| visualizer.statisticVisualizer.visualizationSubjectModule | string | ||
| visualizer.infoVisualizer.visualizationTargetModule | string | ||
| visualizer.infoVisualizer.visualizationSubjectModule | string | ||
| visualizer.energyStorageVisualizer.visualizationTargetModule | string | ||
| visualizer.energyStorageVisualizer.visualizationSubjectModule | string | ||
| visualizer.mediumVisualizer.visualizationTargetModule | string | ||
| visualizer.mediumVisualizer.visualizationSubjectModule | string | ||
| visualizer.obstacleLossVisualizer.visualizationTargetModule | string | ||
| visualizer.obstacleLossVisualizer.visualizationSubjectModule | string | ||
| visualizer.packetDropVisualizer.visualizationTargetModule | string | ||
| visualizer.packetDropVisualizer.visualizationSubjectModule | string | ||
| visualizer.packetFlowVisualizer.visualizationTargetModule | string | ||
| visualizer.packetFlowVisualizer.visualizationSubjectModule | string | ||
| visualizer.queueVisualizer.visualizationTargetModule | string | ||
| visualizer.queueVisualizer.visualizationSubjectModule | string | ||
| visualizer.gateScheduleVisualizer.visualizationTargetModule | string | ||
| visualizer.gateScheduleVisualizer.visualizationSubjectModule | string | ||
| visualizer.radioVisualizer.visualizationTargetModule | string | ||
| visualizer.radioVisualizer.visualizationSubjectModule | string | ||
| visualizer.physicalLinkVisualizer.visualizationTargetModule | string | ||
| visualizer.physicalLinkVisualizer.visualizationSubjectModule | string | ||
| visualizer.interfaceTableVisualizer.visualizationTargetModule | string | ||
| visualizer.interfaceTableVisualizer.visualizationSubjectModule | string | ||
| visualizer.dataLinkVisualizer.visualizationTargetModule | string | ||
| visualizer.dataLinkVisualizer.visualizationSubjectModule | string | ||
| visualizer.linkBreakVisualizer.visualizationTargetModule | string | ||
| visualizer.linkBreakVisualizer.visualizationSubjectModule | string | ||
| visualizer.ieee80211Visualizer.visualizationTargetModule | string | ||
| visualizer.ieee80211Visualizer.visualizationSubjectModule | string | ||
| visualizer.networkRouteVisualizer.visualizationTargetModule | string | ||
| visualizer.networkRouteVisualizer.visualizationSubjectModule | string | ||
| visualizer.routingTableVisualizer.visualizationTargetModule | string | ||
| visualizer.routingTableVisualizer.visualizationSubjectModule | string | ||
| visualizer.transportRouteVisualizer.visualizationTargetModule | string | ||
| visualizer.transportRouteVisualizer.visualizationSubjectModule | string | ||
| visualizer.transportConnectionVisualizer.visualizationTargetModule | string | ||
| visualizer.transportConnectionVisualizer.visualizationSubjectModule | string | ||
| visualizer.failureProtectionConfigurationVisualizer.visualizationTargetModule | string | ||
| visualizer.failureProtectionConfigurationVisualizer.visualizationSubjectModule | string | ||
| visualizer.streamRedundancyConfigurationVisualizer.visualizationTargetModule | string | ||
| visualizer.streamRedundancyConfigurationVisualizer.visualizationSubjectModule | string | ||
| node.macTable.agingTime | double | ||
| node.macTable.forwardingTableFile | string | ||
| node.interfaceTable.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| node.interfaceTable.displayAddresses | bool | false |
Whether to display IP addresses on links |
| node.status.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| node.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| node.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 |
| node.pcapRecorder.verbose | bool | true |
Whether to log packets on the module output |
| node.pcapRecorder.recordEmptyPackets | bool | true |
Specifies if zero length packets are recorded or not |
| node.pcapRecorder.enableConvertingPackets | bool | true |
Specifies if converting packets to link type is allowed or not |
| node.pcapRecorder.pcapFile | string | "" |
The PCAP file to be written, suggested value: pcapFile = "${resultdir}/${configname}-#${runnumber}" + fullpath() + ".pcap" |
| node.pcapRecorder.fileFormat | string | "pcapng" | |
| node.pcapRecorder.snaplen | int | 65535 |
Maximum number of bytes to record per packet |
| node.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). |
| node.pcapRecorder.dumpBadFrames | bool | true |
Enable dump of frames with hasBitError |
| node.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
Space-separated list of sibling module names to listen on |
| node.pcapRecorder.sendingSignalNames | string | "transmissionEnded" |
Space-separated list of outbound packet signals to subscribe to |
| node.pcapRecorder.receivingSignalNames | string | "receptionEnded" |
Space-separated list of inbound packet signals to subscribe to |
| node.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
Space-separated list of protocol names as defined in the Protocol class |
| node.pcapRecorder.packetFilter | object | "*" |
Which packets are considered, matches all packets by default |
| node.pcapRecorder.helpers | string | "" |
Usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| node.pcapRecorder.alwaysFlush | bool | false |
Flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| node.mrp.ccmInterval | double | ||
| node.mrp.mrpRole | string | ||
| node.mrp.timingProfile | int | ||
| node.mrp.uuid0 | int | ||
| node.mrp.uuid1 | int | ||
| node.mrp.ringPort1 | int | ||
| node.mrp.ringPort2 | int | ||
| node.mrp.interconnectionLinkCheckAware | bool | ||
| node.mrp.interconnectionRingCheckAware | bool | ||
| node.mrp.nonblockingMrcSupported | bool | ||
| node.mrp.reactOnLinkChange | bool | ||
| node.mrp.visualize | bool | ||
| node.stp.helloTime | double | ||
| node.stp.forwardDelay | double | ||
| node.stp.maxAge | double | ||
| node.stp.bridgePriority | int | ||
| node.stp.visualize | bool | ||
| node.gptp.gptpNodeType | string | "BRIDGE_NODE" | |
| node.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 |
| node.sc.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| node.sc.forwardServiceRegistration | bool | true | |
| node.sc.forwardProtocolRegistration | bool | true | |
| node.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 |
| node.sc.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| node.sc.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| node.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 |
| node.cb.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| node.cb.forwardServiceRegistration | bool | true | |
| node.cb.forwardProtocolRegistration | bool | true | |
| node.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 |
| node.cb.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| node.cb.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| node.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 |
| node.bl.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| node.bl.forwardServiceRegistration | bool | true | |
| node.bl.forwardProtocolRegistration | bool | true | |
| node.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 |
| node.bl.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| node.bl.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| node.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 |
| node.li.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| node.li.forwardServiceRegistration | bool | true | |
| node.li.forwardProtocolRegistration | bool | true | |
| node.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 |
| node.li.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| node.li.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| node.eth.bitrate | double | ||
| host.status.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| host.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| host.interfaceTable.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| host.interfaceTable.displayAddresses | bool | false |
Whether to display IP addresses on links |
| host.cli.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| host.cli.interfaceTableModule | string | ||
| host.cli.destAddress | string | "" |
Destination MAC address, or module path name of destination station; empty means off |
| host.cli.startTime | double | this.sendInterval |
Time of sending the first request |
| host.cli.stopTime | double | -1s |
Time of finishing sending, negative values mean forever |
| host.cli.localSAP | int | 0xf0 |
Local service access point |
| host.cli.remoteSAP | int | 0xf1 |
Remote service access point |
| host.cli.sendInterval | double | uniform(0s,1s) |
Interval between sending requests |
| host.cli.reqLength | int | 100B |
Length of request packets |
| host.cli.respLength | int | 1KiB |
Length of response packets |
| host.cli.stopOperationExtraTime | double | -1s |
Extra time after lifecycle stop operation finished |
| host.cli.stopOperationTimeout | double | 2s |
Timeout value for lifecycle stop operation |
| host.srv.displayStringTextFormat | string | "" |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
| host.srv.localSAP | int | 0xf1 | |
| host.srv.stopOperationExtraTime | double | -1s |
Extra time after lifecycle stop operation is finished |
| host.srv.stopOperationTimeout | double | 2s |
Timeout value for lifecycle stop operation |
| host.dp.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 |
| host.dp.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| host.dp.forwardServiceRegistration | bool | true | |
| host.dp.forwardProtocolRegistration | bool | true | |
| host.dp.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 |
| host.dp.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| host.dp.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| 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 |
| host.li.interfaceTableModule | string |
Module path to the ~InterfaceTable module |
|
| host.li.forwardServiceRegistration | bool | true | |
| host.li.forwardProtocolRegistration | bool | true | |
| 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 |
| host.li.serviceMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default |
| host.li.protocolMapping | object | {} |
Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default |
| host.eth.bitrate | double |
Source code
network MrpRing { parameters: int numNodes; submodules: scenarioManager: ScenarioManager { @display("p=95,48;is=s"); } visualizer: IntegratedCanvasVisualizer { @display("p=95,100;is=s"); } node[numNodes]: MrpSwitch { gates: ethg[3]; } host[numNodes]: EthernetHost { parameters: csmacdSupport = false; eth.duplexMode = true; } connections: for i=0..numNodes-1 { node[i].ethg[0] <--> Eth100M <--> node[(i+1) % numNodes].ethg[1]; host[i].ethg <--> Eth100M <--> node[i].ethg[2]; } }File: examples/mrp/MrpNetworks.ned