Package: inet.examples.rip.mixednetwork
MixedNetwork
networkTODO Auto-generated network
Usage diagram
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| numCHosts | int | ||
| numRipRouters | int |
Properties
| Name | Value | Description |
|---|---|---|
| isNetwork |
Unassigned submodule parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| cHost.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| cHost.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| cHost.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| cHost.pcapRecorder.fileFormat | string | "pcapng" | |
| cHost.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| cHost.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| cHost.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| cHost.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| cHost.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| cHost.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| cHost.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| cHost.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| cHost.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| cHost.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| cHost.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| cHost.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| cHost.cb.forwardServiceRegistration | bool | true | |
| cHost.cb.forwardProtocolRegistration | bool | true | |
| cHost.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| cHost.bl.forwardServiceRegistration | bool | true | |
| cHost.bl.forwardProtocolRegistration | bool | true | |
| cHost.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| cHost.li.forwardServiceRegistration | bool | true | |
| cHost.li.forwardProtocolRegistration | bool | true | |
| cHost.eth.bitrate | double | ||
| cHost.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| cHost.nl.forwardServiceRegistration | bool | true | |
| cHost.nl.forwardProtocolRegistration | bool | true | |
| cHost.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| cHost.tn.forwardServiceRegistration | bool | true | |
| cHost.tn.forwardProtocolRegistration | bool | true | |
| cHost.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| cHost.at.forwardServiceRegistration | bool | true | |
| cHost.at.forwardProtocolRegistration | bool | true | |
| cRouter.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| cRouter.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| cRouter.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| cRouter.pcapRecorder.fileFormat | string | "pcapng" | |
| cRouter.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| cRouter.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| cRouter.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| cRouter.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| cRouter.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| cRouter.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| cRouter.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| cRouter.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| cRouter.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| cRouter.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| cRouter.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| cRouter.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| cRouter.cb.forwardServiceRegistration | bool | true | |
| cRouter.cb.forwardProtocolRegistration | bool | true | |
| cRouter.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| cRouter.bl.forwardServiceRegistration | bool | true | |
| cRouter.bl.forwardProtocolRegistration | bool | true | |
| cRouter.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| cRouter.li.forwardServiceRegistration | bool | true | |
| cRouter.li.forwardProtocolRegistration | bool | true | |
| cRouter.eth.bitrate | double | ||
| cRouter.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| cRouter.nl.forwardServiceRegistration | bool | true | |
| cRouter.nl.forwardProtocolRegistration | bool | true | |
| cRouter.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| cRouter.tn.forwardServiceRegistration | bool | true | |
| cRouter.tn.forwardProtocolRegistration | bool | true | |
| cRouter.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| cRouter.at.forwardServiceRegistration | bool | true | |
| cRouter.at.forwardProtocolRegistration | bool | true | |
| cRouter.bgp.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| cRouter.bgp.routingTableModule | string | ||
| cRouter.bgp.ospfRoutingModule | string | parent.hasOspf ? "^.ospf" : "" | |
| bRouter.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| bRouter.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| bRouter.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| bRouter.pcapRecorder.fileFormat | string | "pcapng" | |
| bRouter.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| bRouter.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| bRouter.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| bRouter.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| bRouter.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| bRouter.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| bRouter.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| bRouter.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| bRouter.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| bRouter.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| bRouter.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| bRouter.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| bRouter.cb.forwardServiceRegistration | bool | true | |
| bRouter.cb.forwardProtocolRegistration | bool | true | |
| bRouter.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| bRouter.bl.forwardServiceRegistration | bool | true | |
| bRouter.bl.forwardProtocolRegistration | bool | true | |
| bRouter.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| bRouter.li.forwardServiceRegistration | bool | true | |
| bRouter.li.forwardProtocolRegistration | bool | true | |
| bRouter.eth.bitrate | double | ||
| bRouter.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| bRouter.nl.forwardServiceRegistration | bool | true | |
| bRouter.nl.forwardProtocolRegistration | bool | true | |
| bRouter.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| bRouter.tn.forwardServiceRegistration | bool | true | |
| bRouter.tn.forwardProtocolRegistration | bool | true | |
| bRouter.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| bRouter.at.forwardServiceRegistration | bool | true | |
| bRouter.at.forwardProtocolRegistration | bool | true | |
| bRouter.bgp.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| bRouter.bgp.routingTableModule | string | ||
| bRouter.bgp.ospfRoutingModule | string | parent.hasOspf ? "^.ospf" : "" | |
| 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" : "" | |
| rHost.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| rHost.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| rHost.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| rHost.pcapRecorder.fileFormat | string | "pcapng" | |
| rHost.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| rHost.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| rHost.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| rHost.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| rHost.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| rHost.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| rHost.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| rHost.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| rHost.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| rHost.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| rHost.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| rHost.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| rHost.cb.forwardServiceRegistration | bool | true | |
| rHost.cb.forwardProtocolRegistration | bool | true | |
| rHost.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| rHost.bl.forwardServiceRegistration | bool | true | |
| rHost.bl.forwardProtocolRegistration | bool | true | |
| rHost.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| rHost.li.forwardServiceRegistration | bool | true | |
| rHost.li.forwardProtocolRegistration | bool | true | |
| rHost.eth.bitrate | double | ||
| rHost.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| rHost.nl.forwardServiceRegistration | bool | true | |
| rHost.nl.forwardProtocolRegistration | bool | true | |
| rHost.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| rHost.tn.forwardServiceRegistration | bool | true | |
| rHost.tn.forwardProtocolRegistration | bool | true | |
| rHost.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| rHost.at.forwardServiceRegistration | bool | true | |
| rHost.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.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) |
| scenarioManager.script | xml | xml("") |
Source code
// // TODO Auto-generated network // network MixedNetwork { parameters: int numCHosts; int numRipRouters; types: channel C extends DatarateChannel { datarate = 10Mbps; delay = 0.1us; } submodules: cHost[numCHosts]: StandardHost { @display("p=250,100,ri,150,150"); } cRouter: Router { @display("p=400,250"); } bRouter: Router { @display("p=700,100"); } rRouter[numRipRouters]: Router { hasRip = true; @display("p=850,100,ri,150,150"); } rHost: StandardHost { @display("p=1000,500"); } configurator: Ipv4NetworkConfigurator { @display("p=100,100;is=s"); config = xml( "<config>" +"<interface among='cHost[*] cRouter' address='10.1.x.x' netmask='255.255.x.x'/>" +"<interface among='cRouter bRouter' address='10.0.x.x' netmask='255.255.x.x'/>" +"<interface hosts='bRouter' towards='rRouter[0]' address='10.0.x.x' netmask='255.255.x.x'/>" +"<interface hosts='rRouter[0]' towards='bRouter' address='10.0.x.x' netmask='255.255.x.x' add-static-route='off'/>" +"<interface among='rRouter[*]' address='10.2.x.x' netmask='255.255.x.x' add-static-route='off'/>" +"<interface among='rRouter[*] rHost' address='10.2.x.x' netmask='255.255.x.x'/>" +"<route hosts='rRouter[0]' destination='10.1.0.0' netmask='255.255.0.0' gateway='bRouter'/>" +"</config>"); } scenarioManager: ScenarioManager { @display("p=100,200;is=s"); } connections: cRouter.ethg++ <--> C <--> bRouter.ethg++; bRouter.ethg++ <--> C <--> rRouter[0].ethg++; for i=0..numCHosts-1 { cHost[i].ethg++ <--> C <--> cRouter.ethg++; } for i=0..numRipRouters-1 { rRouter[i].ethg++ <--> C <--> rRouter[(i+1)%numRipRouters].ethg++ if numRipRouters>1; rRouter[i].ethg++ <--> C <--> rRouter[(i+2)%numRipRouters].ethg++ if numRipRouters>2; } rHost.ethg++ <--> C <--> rRouter[int(numRipRouters/2)].ethg++; }File: examples/rip/mixednetwork/MixedNetwork.ned