Package: inet.examples.internetcloud.cloudandrouters
CloudAndRouters
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 |
|---|---|---|---|
| numSenders | int |
Properties
| Name | Value | Description |
|---|---|---|
| isNetwork |
Unassigned submodule parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| 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 (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) |
| srouter.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| srouter.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| srouter.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| srouter.pcapRecorder.fileFormat | string | "pcapng" | |
| srouter.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| srouter.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| srouter.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| srouter.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| srouter.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| srouter.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| srouter.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| srouter.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| srouter.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| srouter.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| srouter.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| srouter.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| srouter.cb.forwardServiceRegistration | bool | true | |
| srouter.cb.forwardProtocolRegistration | bool | true | |
| srouter.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| srouter.bl.forwardServiceRegistration | bool | true | |
| srouter.bl.forwardProtocolRegistration | bool | true | |
| srouter.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| srouter.li.forwardServiceRegistration | bool | true | |
| srouter.li.forwardProtocolRegistration | bool | true | |
| srouter.eth.bitrate | double | ||
| srouter.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| srouter.nl.forwardServiceRegistration | bool | true | |
| srouter.nl.forwardProtocolRegistration | bool | true | |
| srouter.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| srouter.tn.forwardServiceRegistration | bool | true | |
| srouter.tn.forwardProtocolRegistration | bool | true | |
| srouter.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| srouter.at.forwardServiceRegistration | bool | true | |
| srouter.at.forwardProtocolRegistration | bool | true | |
| srouter.bgp.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| srouter.bgp.routingTableModule | string | ||
| srouter.bgp.ospfRoutingModule | string | parent.hasOspf ? "^.ospf" : "" | |
| sender.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| sender.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| sender.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| sender.pcapRecorder.fileFormat | string | "pcapng" | |
| sender.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| sender.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| sender.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| sender.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| sender.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| sender.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| sender.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| sender.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| sender.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| sender.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| sender.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| sender.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| sender.cb.forwardServiceRegistration | bool | true | |
| sender.cb.forwardProtocolRegistration | bool | true | |
| sender.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| sender.bl.forwardServiceRegistration | bool | true | |
| sender.bl.forwardProtocolRegistration | bool | true | |
| sender.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| sender.li.forwardServiceRegistration | bool | true | |
| sender.li.forwardProtocolRegistration | bool | true | |
| sender.eth.bitrate | double | ||
| sender.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| sender.nl.forwardServiceRegistration | bool | true | |
| sender.nl.forwardProtocolRegistration | bool | true | |
| sender.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| sender.tn.forwardServiceRegistration | bool | true | |
| sender.tn.forwardProtocolRegistration | bool | true | |
| sender.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| sender.at.forwardServiceRegistration | bool | true | |
| sender.at.forwardProtocolRegistration | bool | true | |
| rrouter.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| rrouter.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| rrouter.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| rrouter.pcapRecorder.fileFormat | string | "pcapng" | |
| rrouter.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| rrouter.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| rrouter.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| rrouter.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| rrouter.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| rrouter.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| rrouter.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| rrouter.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| rrouter.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| rrouter.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| rrouter.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| rrouter.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| rrouter.cb.forwardServiceRegistration | bool | true | |
| rrouter.cb.forwardProtocolRegistration | bool | true | |
| rrouter.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| rrouter.bl.forwardServiceRegistration | bool | true | |
| rrouter.bl.forwardProtocolRegistration | bool | true | |
| rrouter.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| rrouter.li.forwardServiceRegistration | bool | true | |
| rrouter.li.forwardProtocolRegistration | bool | true | |
| rrouter.eth.bitrate | double | ||
| rrouter.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| rrouter.nl.forwardServiceRegistration | bool | true | |
| rrouter.nl.forwardProtocolRegistration | bool | true | |
| rrouter.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| rrouter.tn.forwardServiceRegistration | bool | true | |
| rrouter.tn.forwardProtocolRegistration | bool | true | |
| rrouter.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| rrouter.at.forwardServiceRegistration | bool | true | |
| rrouter.at.forwardProtocolRegistration | bool | true | |
| rrouter.bgp.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| rrouter.bgp.routingTableModule | string | ||
| rrouter.bgp.ospfRoutingModule | string | parent.hasOspf ? "^.ospf" : "" | |
| recip.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| recip.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| recip.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| recip.pcapRecorder.fileFormat | string | "pcapng" | |
| recip.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| recip.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| recip.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| recip.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| recip.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| recip.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| recip.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| recip.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| recip.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| recip.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| recip.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| recip.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| recip.cb.forwardServiceRegistration | bool | true | |
| recip.cb.forwardProtocolRegistration | bool | true | |
| recip.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| recip.bl.forwardServiceRegistration | bool | true | |
| recip.bl.forwardProtocolRegistration | bool | true | |
| recip.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| recip.li.forwardServiceRegistration | bool | true | |
| recip.li.forwardProtocolRegistration | bool | true | |
| recip.eth.bitrate | double | ||
| recip.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| recip.nl.forwardServiceRegistration | bool | true | |
| recip.nl.forwardProtocolRegistration | bool | true | |
| recip.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| recip.tn.forwardServiceRegistration | bool | true | |
| recip.tn.forwardProtocolRegistration | bool | true | |
| recip.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| recip.at.forwardServiceRegistration | bool | true | |
| recip.at.forwardProtocolRegistration | bool | true | |
| internet.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| internet.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| internet.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| internet.pcapRecorder.fileFormat | string | "pcapng" | |
| internet.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| internet.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| internet.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| internet.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| internet.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| internet.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| internet.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| internet.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| internet.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| internet.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| internet.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| internet.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| internet.cb.forwardServiceRegistration | bool | true | |
| internet.cb.forwardProtocolRegistration | bool | true | |
| internet.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| internet.bl.forwardServiceRegistration | bool | true | |
| internet.bl.forwardProtocolRegistration | bool | true | |
| internet.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| internet.li.forwardServiceRegistration | bool | true | |
| internet.li.forwardProtocolRegistration | bool | true | |
| internet.eth.bitrate | double | ||
| internet.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| internet.nl.forwardServiceRegistration | bool | true | |
| internet.nl.forwardProtocolRegistration | bool | true |
Source code
network CloudAndRouters { parameters: int numSenders; types: channel C extends DatarateChannel { delay = 20ms; datarate = 5Mbps; } submodules: configurator: Ipv4NetworkConfigurator { parameters: @display("p=100,70;is=s"); } srouter[numSenders]: Router { @display("p=250,200,row,100"); } sender[numSenders]: StandardHost { @display("p=250,100,row,100"); } rrouter: Router { @display("p=250,600"); } recip: StandardHost { @display("p=250,700"); } internet: InternetCloud { @display("p=250,400;is=vl"); } connections: rrouter.pppg++ <--> C <--> internet.pppg++; recip.ethg++ <--> Eth100M <--> rrouter.ethg++; for i=0..numSenders-1 { srouter[i].pppg++ <--> C <--> internet.pppg++; sender[i].ethg++ <--> Eth100M <--> srouter[i].ethg++; } }File: examples/internetcloud/cloudandrouters/CloudAndRouters.ned