Package: inet.examples.ospfv2.simpletest
SimpleTest
network(no description)
Usage diagram
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
Properties
| Name | Value | Description |
|---|---|---|
| isNetwork | ||
| display | p=10,10;b=712,152 |
Unassigned submodule parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| H1.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| H1.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| H1.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| H1.pcapRecorder.fileFormat | string | "pcapng" | |
| H1.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| H1.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| H1.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| H1.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| H1.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| H1.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| H1.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| H1.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| H1.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| H1.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| H1.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| H1.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H1.cb.forwardServiceRegistration | bool | true | |
| H1.cb.forwardProtocolRegistration | bool | true | |
| H1.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H1.bl.forwardServiceRegistration | bool | true | |
| H1.bl.forwardProtocolRegistration | bool | true | |
| H1.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H1.li.forwardServiceRegistration | bool | true | |
| H1.li.forwardProtocolRegistration | bool | true | |
| H1.eth.bitrate | double | ||
| H1.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H1.nl.forwardServiceRegistration | bool | true | |
| H1.nl.forwardProtocolRegistration | bool | true | |
| H1.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H1.tn.forwardServiceRegistration | bool | true | |
| H1.tn.forwardProtocolRegistration | bool | true | |
| H1.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H1.at.forwardServiceRegistration | bool | true | |
| H1.at.forwardProtocolRegistration | bool | true | |
| N1.macTable.agingTime | double | ||
| N1.macTable.forwardingTableFile | string | ||
| N1.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| N1.l2NodeConfigurator.interfaceTableModule | string | ||
| N1.l2NodeConfigurator.l2ConfiguratorModule | string | "l2NetworkConfigurator" |
the absolute path to the ~L2NetworkConfigurator; use "" if there is no configurator |
| N1.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| N1.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| N1.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| N1.pcapRecorder.fileFormat | string | "pcapng" | |
| N1.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| N1.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| N1.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| N1.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| N1.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| N1.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| N1.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| N1.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| N1.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| N1.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| N1.stp.helloTime | double | ||
| N1.stp.forwardDelay | double | ||
| N1.stp.maxAge | double | ||
| N1.stp.bridgePriority | int | ||
| N1.stp.visualize | bool | ||
| N1.sc.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N1.sc.forwardServiceRegistration | bool | true | |
| N1.sc.forwardProtocolRegistration | bool | true | |
| N1.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N1.cb.forwardServiceRegistration | bool | true | |
| N1.cb.forwardProtocolRegistration | bool | true | |
| N1.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N1.bl.forwardServiceRegistration | bool | true | |
| N1.bl.forwardProtocolRegistration | bool | true | |
| N1.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N1.li.forwardServiceRegistration | bool | true | |
| N1.li.forwardProtocolRegistration | bool | true | |
| N1.cutthrough.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N1.cutthrough.forwardServiceRegistration | bool | true | |
| N1.cutthrough.forwardProtocolRegistration | bool | true | |
| N1.eth.bitrate | double | ||
| R1.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| R1.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| R1.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| R1.pcapRecorder.fileFormat | string | "pcapng" | |
| R1.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| R1.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| R1.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| R1.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| R1.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| R1.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| R1.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| R1.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| R1.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| R1.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| R1.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| R1.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R1.cb.forwardServiceRegistration | bool | true | |
| R1.cb.forwardProtocolRegistration | bool | true | |
| R1.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R1.bl.forwardServiceRegistration | bool | true | |
| R1.bl.forwardProtocolRegistration | bool | true | |
| R1.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R1.li.forwardServiceRegistration | bool | true | |
| R1.li.forwardProtocolRegistration | bool | true | |
| R1.eth.bitrate | double | ||
| R1.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R1.nl.forwardServiceRegistration | bool | true | |
| R1.nl.forwardProtocolRegistration | bool | true | |
| R1.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R1.tn.forwardServiceRegistration | bool | true | |
| R1.tn.forwardProtocolRegistration | bool | true | |
| R1.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R1.at.forwardServiceRegistration | bool | true | |
| R1.at.forwardProtocolRegistration | bool | true | |
| R1.bgp.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| R1.bgp.routingTableModule | string | ||
| R1.bgp.ospfRoutingModule | string | parent.hasOspf ? "^.ospf" : "" | |
| R2.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| R2.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| R2.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| R2.pcapRecorder.fileFormat | string | "pcapng" | |
| R2.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| R2.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| R2.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| R2.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| R2.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| R2.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| R2.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| R2.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| R2.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| R2.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| R2.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| R2.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R2.cb.forwardServiceRegistration | bool | true | |
| R2.cb.forwardProtocolRegistration | bool | true | |
| R2.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R2.bl.forwardServiceRegistration | bool | true | |
| R2.bl.forwardProtocolRegistration | bool | true | |
| R2.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R2.li.forwardServiceRegistration | bool | true | |
| R2.li.forwardProtocolRegistration | bool | true | |
| R2.eth.bitrate | double | ||
| R2.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R2.nl.forwardServiceRegistration | bool | true | |
| R2.nl.forwardProtocolRegistration | bool | true | |
| R2.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R2.tn.forwardServiceRegistration | bool | true | |
| R2.tn.forwardProtocolRegistration | bool | true | |
| R2.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| R2.at.forwardServiceRegistration | bool | true | |
| R2.at.forwardProtocolRegistration | bool | true | |
| R2.bgp.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| R2.bgp.routingTableModule | string | ||
| R2.bgp.ospfRoutingModule | string | parent.hasOspf ? "^.ospf" : "" | |
| N2.macTable.agingTime | double | ||
| N2.macTable.forwardingTableFile | string | ||
| N2.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| N2.l2NodeConfigurator.interfaceTableModule | string | ||
| N2.l2NodeConfigurator.l2ConfiguratorModule | string | "l2NetworkConfigurator" |
the absolute path to the ~L2NetworkConfigurator; use "" if there is no configurator |
| N2.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| N2.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| N2.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| N2.pcapRecorder.fileFormat | string | "pcapng" | |
| N2.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| N2.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| N2.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| N2.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| N2.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| N2.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| N2.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| N2.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| N2.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| N2.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| N2.stp.helloTime | double | ||
| N2.stp.forwardDelay | double | ||
| N2.stp.maxAge | double | ||
| N2.stp.bridgePriority | int | ||
| N2.stp.visualize | bool | ||
| N2.sc.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N2.sc.forwardServiceRegistration | bool | true | |
| N2.sc.forwardProtocolRegistration | bool | true | |
| N2.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N2.cb.forwardServiceRegistration | bool | true | |
| N2.cb.forwardProtocolRegistration | bool | true | |
| N2.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N2.bl.forwardServiceRegistration | bool | true | |
| N2.bl.forwardProtocolRegistration | bool | true | |
| N2.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N2.li.forwardServiceRegistration | bool | true | |
| N2.li.forwardProtocolRegistration | bool | true | |
| N2.cutthrough.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| N2.cutthrough.forwardServiceRegistration | bool | true | |
| N2.cutthrough.forwardProtocolRegistration | bool | true | |
| N2.eth.bitrate | double | ||
| H2.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| H2.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| H2.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| H2.pcapRecorder.fileFormat | string | "pcapng" | |
| H2.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| H2.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| H2.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| H2.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| H2.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| H2.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| H2.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| H2.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| H2.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| H2.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| H2.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| H2.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H2.cb.forwardServiceRegistration | bool | true | |
| H2.cb.forwardProtocolRegistration | bool | true | |
| H2.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H2.bl.forwardServiceRegistration | bool | true | |
| H2.bl.forwardProtocolRegistration | bool | true | |
| H2.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H2.li.forwardServiceRegistration | bool | true | |
| H2.li.forwardProtocolRegistration | bool | true | |
| H2.eth.bitrate | double | ||
| H2.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H2.nl.forwardServiceRegistration | bool | true | |
| H2.nl.forwardProtocolRegistration | bool | true | |
| H2.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H2.tn.forwardServiceRegistration | bool | true | |
| H2.tn.forwardProtocolRegistration | bool | true | |
| H2.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| H2.at.forwardServiceRegistration | bool | true | |
| H2.at.forwardProtocolRegistration | bool | true | |
| 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.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 (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.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) |
| scenarioManager.script | xml | xml("") |
Source code
network SimpleTest { parameters: @display("p=10,10;b=712,152"); types: channel C extends ThruputMeteringChannel { delay = 0.1us; datarate = 100Mbps; thruputDisplayFormat = "#N"; } submodules: H1: StandardHost { parameters: @display("p=250,150;i=device/laptop"); gates: ethg[1]; } N1: EthernetSwitch { parameters: @display("p=400,150"); gates: ethg[2]; } R1: OspfRouter { parameters: @display("p=550,150"); hasStatus = true; gates: ethg[2]; } R2: OspfRouter { parameters: @display("p=700,150"); hasStatus = true; gates: ethg[2]; } N2: EthernetSwitch { parameters: @display("p=850,150"); gates: ethg[2]; } H2: StandardHost { parameters: @display("p=1000,150;i=device/laptop"); gates: ethg[1]; } configurator: Ipv4NetworkConfigurator { parameters: config = xml("<config>"+ "<interface among='H1 R1' address='192.168.1.x' netmask='255.255.255.0' />"+ "<interface among='H2 R2' address='192.168.2.x' netmask='255.255.255.0' />"+ "<interface among='R1 R2' address='192.168.60.x' netmask='255.255.255.0' />"+ "<route hosts='H1 H2' destination='*' netmask='0.0.0.0' interface='eth0' />"+ "</config>"); addStaticRoutes = false; addDefaultRoutes = false; @display("p=100,100;is=s"); } scenarioManager: ScenarioManager { @display("p=100,200;is=s"); } connections: H1.ethg[0] <--> C <--> N1.ethg[0]; N1.ethg[1] <--> C <--> R1.ethg[0]; R1.ethg[1] <--> C <--> R2.ethg[0]; R2.ethg[1] <--> C <--> N2.ethg[0]; N2.ethg[1] <--> C <--> H2.ethg[0]; }File: examples/ospfv2/simpletest/SimpleTest.ned