Package: inet.examples.inet.flatnet
FlatNet
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 |
Unassigned submodule parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| 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) |
| rte.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| rte.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| rte.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| rte.pcapRecorder.fileFormat | string | "pcapng" | |
| rte.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| rte.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| rte.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| rte.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| rte.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| rte.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| rte.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| rte.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| rte.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| rte.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| rte.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| rte.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| rte.cb.forwardServiceRegistration | bool | true | |
| rte.cb.forwardProtocolRegistration | bool | true | |
| rte.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| rte.bl.forwardServiceRegistration | bool | true | |
| rte.bl.forwardProtocolRegistration | bool | true | |
| rte.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| rte.li.forwardServiceRegistration | bool | true | |
| rte.li.forwardProtocolRegistration | bool | true | |
| rte.eth.bitrate | double | ||
| rte.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| rte.nl.forwardServiceRegistration | bool | true | |
| rte.nl.forwardProtocolRegistration | bool | true | |
| rte.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| rte.tn.forwardServiceRegistration | bool | true | |
| rte.tn.forwardProtocolRegistration | bool | true | |
| rte.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| rte.at.forwardServiceRegistration | bool | true | |
| rte.at.forwardProtocolRegistration | bool | true | |
| rte.bgp.interfaceTableModule | string |
The path to the InterfaceTable module |
|
| rte.bgp.routingTableModule | string | ||
| rte.bgp.ospfRoutingModule | string | parent.hasOspf ? "^.ospf" : "" | |
| cli.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| cli.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| cli.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| cli.pcapRecorder.fileFormat | string | "pcapng" | |
| cli.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| cli.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| cli.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| cli.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| cli.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| cli.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| cli.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| cli.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| cli.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| cli.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| cli.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| cli.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| cli.cb.forwardServiceRegistration | bool | true | |
| cli.cb.forwardProtocolRegistration | bool | true | |
| cli.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| cli.bl.forwardServiceRegistration | bool | true | |
| cli.bl.forwardProtocolRegistration | bool | true | |
| cli.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| cli.li.forwardServiceRegistration | bool | true | |
| cli.li.forwardProtocolRegistration | bool | true | |
| cli.eth.bitrate | double | ||
| cli.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| cli.nl.forwardServiceRegistration | bool | true | |
| cli.nl.forwardProtocolRegistration | bool | true | |
| cli.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| cli.tn.forwardServiceRegistration | bool | true | |
| cli.tn.forwardProtocolRegistration | bool | true | |
| cli.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| cli.at.forwardServiceRegistration | bool | true | |
| cli.at.forwardProtocolRegistration | bool | true | |
| srv.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| srv.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| srv.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| srv.pcapRecorder.fileFormat | string | "pcapng" | |
| srv.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| srv.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| srv.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| srv.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| srv.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| srv.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| srv.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| srv.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| srv.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| srv.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| srv.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| srv.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| srv.cb.forwardServiceRegistration | bool | true | |
| srv.cb.forwardProtocolRegistration | bool | true | |
| srv.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| srv.bl.forwardServiceRegistration | bool | true | |
| srv.bl.forwardProtocolRegistration | bool | true | |
| srv.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| srv.li.forwardServiceRegistration | bool | true | |
| srv.li.forwardProtocolRegistration | bool | true | |
| srv.eth.bitrate | double | ||
| srv.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| srv.nl.forwardServiceRegistration | bool | true | |
| srv.nl.forwardProtocolRegistration | bool | true | |
| srv.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| srv.tn.forwardServiceRegistration | bool | true | |
| srv.tn.forwardProtocolRegistration | bool | true | |
| srv.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| srv.at.forwardServiceRegistration | bool | true | |
| srv.at.forwardProtocolRegistration | bool | true |
Source code
network FlatNet { types: channel fiberline extends DatarateChannel { delay = 1us; datarate = 512Mbps; } channel ethernetline extends DatarateChannel { delay = 0.1us; datarate = 10Mbps; } submodules: configurator: Ipv4NetworkConfigurator { parameters: config = xml("<config><interface hosts='*' address='192.168.x.x' netmask='255.255.x.x'/></config>"); @display("p=100,100;is=s"); } rte[57]: Router; cli[2]: StandardHost { parameters: @display("i=device/laptop"); } srv: StandardHost { parameters: @display("i=device/server"); } connections: cli[0].pppg++ <--> ethernetline <--> rte[50].pppg++; cli[1].pppg++ <--> ethernetline <--> rte[8].pppg++; srv.pppg++ <--> fiberline <--> rte[18].pppg++; rte[0].pppg++ <--> fiberline <--> rte[1].pppg++; rte[1].pppg++ <--> fiberline <--> rte[2].pppg++; rte[1].pppg++ <--> fiberline <--> rte[4].pppg++; rte[3].pppg++ <--> fiberline <--> rte[4].pppg++; rte[4].pppg++ <--> fiberline <--> rte[5].pppg++; rte[4].pppg++ <--> fiberline <--> rte[7].pppg++; rte[5].pppg++ <--> fiberline <--> rte[6].pppg++; rte[5].pppg++ <--> fiberline <--> rte[10].pppg++; rte[6].pppg++ <--> fiberline <--> rte[7].pppg++; rte[6].pppg++ <--> fiberline <--> rte[9].pppg++; rte[7].pppg++ <--> fiberline <--> rte[8].pppg++; rte[7].pppg++ <--> fiberline <--> rte[12].pppg++; rte[9].pppg++ <--> fiberline <--> rte[11].pppg++; rte[10].pppg++ <--> fiberline <--> rte[11].pppg++; rte[10].pppg++ <--> fiberline <--> rte[13].pppg++; rte[11].pppg++ <--> fiberline <--> rte[12].pppg++; rte[11].pppg++ <--> fiberline <--> rte[14].pppg++; rte[12].pppg++ <--> fiberline <--> rte[15].pppg++; rte[13].pppg++ <--> fiberline <--> rte[18].pppg++; rte[14].pppg++ <--> fiberline <--> rte[15].pppg++; rte[14].pppg++ <--> fiberline <--> rte[22].pppg++; rte[15].pppg++ <--> fiberline <--> rte[16].pppg++; rte[16].pppg++ <--> fiberline <--> rte[17].pppg++; rte[16].pppg++ <--> fiberline <--> rte[23].pppg++; rte[18].pppg++ <--> fiberline <--> rte[19].pppg++; rte[18].pppg++ <--> fiberline <--> rte[21].pppg++; rte[19].pppg++ <--> fiberline <--> rte[20].pppg++; rte[19].pppg++ <--> fiberline <--> rte[26].pppg++; rte[20].pppg++ <--> fiberline <--> rte[21].pppg++; rte[20].pppg++ <--> fiberline <--> rte[24].pppg++; rte[20].pppg++ <--> fiberline <--> rte[25].pppg++; rte[21].pppg++ <--> fiberline <--> rte[22].pppg++; rte[21].pppg++ <--> fiberline <--> rte[23].pppg++; rte[21].pppg++ <--> fiberline <--> rte[24].pppg++; rte[23].pppg++ <--> fiberline <--> rte[24].pppg++; rte[24].pppg++ <--> fiberline <--> rte[28].pppg++; rte[25].pppg++ <--> fiberline <--> rte[27].pppg++; rte[26].pppg++ <--> fiberline <--> rte[32].pppg++; rte[27].pppg++ <--> fiberline <--> rte[29].pppg++; rte[27].pppg++ <--> fiberline <--> rte[30].pppg++; rte[27].pppg++ <--> fiberline <--> rte[32].pppg++; rte[28].pppg++ <--> fiberline <--> rte[29].pppg++; rte[28].pppg++ <--> fiberline <--> rte[31].pppg++; rte[29].pppg++ <--> fiberline <--> rte[31].pppg++; rte[30].pppg++ <--> fiberline <--> rte[36].pppg++; rte[31].pppg++ <--> fiberline <--> rte[33].pppg++; rte[32].pppg++ <--> fiberline <--> rte[34].pppg++; rte[33].pppg++ <--> fiberline <--> rte[37].pppg++; rte[34].pppg++ <--> fiberline <--> rte[35].pppg++; rte[34].pppg++ <--> fiberline <--> rte[40].pppg++; rte[35].pppg++ <--> fiberline <--> rte[36].pppg++; rte[35].pppg++ <--> fiberline <--> rte[39].pppg++; rte[36].pppg++ <--> fiberline <--> rte[37].pppg++; rte[37].pppg++ <--> fiberline <--> rte[38].pppg++; rte[38].pppg++ <--> fiberline <--> rte[39].pppg++; rte[38].pppg++ <--> fiberline <--> rte[42].pppg++; rte[39].pppg++ <--> fiberline <--> rte[40].pppg++; rte[39].pppg++ <--> fiberline <--> rte[41].pppg++; rte[40].pppg++ <--> fiberline <--> rte[43].pppg++; rte[40].pppg++ <--> fiberline <--> rte[44].pppg++; rte[40].pppg++ <--> fiberline <--> rte[52].pppg++; rte[41].pppg++ <--> fiberline <--> rte[42].pppg++; rte[41].pppg++ <--> fiberline <--> rte[43].pppg++; rte[42].pppg++ <--> fiberline <--> rte[43].pppg++; rte[43].pppg++ <--> fiberline <--> rte[46].pppg++; rte[44].pppg++ <--> fiberline <--> rte[45].pppg++; rte[44].pppg++ <--> fiberline <--> rte[47].pppg++; rte[45].pppg++ <--> fiberline <--> rte[46].pppg++; rte[46].pppg++ <--> fiberline <--> rte[49].pppg++; rte[47].pppg++ <--> fiberline <--> rte[48].pppg++; rte[48].pppg++ <--> fiberline <--> rte[50].pppg++; rte[48].pppg++ <--> fiberline <--> rte[51].pppg++; rte[49].pppg++ <--> fiberline <--> rte[50].pppg++; rte[50].pppg++ <--> fiberline <--> rte[53].pppg++; rte[51].pppg++ <--> fiberline <--> rte[52].pppg++; rte[51].pppg++ <--> fiberline <--> rte[53].pppg++; rte[52].pppg++ <--> fiberline <--> rte[53].pppg++; rte[52].pppg++ <--> fiberline <--> rte[54].pppg++; rte[53].pppg++ <--> fiberline <--> rte[56].pppg++; rte[54].pppg++ <--> fiberline <--> rte[55].pppg++; rte[55].pppg++ <--> fiberline <--> rte[56].pppg++; }File: examples/inet/flatnet/FlatNet.ned