Package: inet.examples.manetrouting.multiradio
MultiRadio
networkModels a network with several hosts. Each host may contain one or more radios. Nodes are using adhoc routing to pass information.
Usage diagram
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
Parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| numHosts | int |
Properties
| Name | Value | Description |
|---|---|---|
| isNetwork |
Unassigned submodule parameters
| Name | Type | Default value | Description |
|---|---|---|---|
| radioMedium.neighborCache.refillPeriod | double | ||
| 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.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) |
| mobileHost.status.initialStatus | string | "UP" |
TODO @signal, @statistic |
| mobileHost.pcapRecorder.verbose | bool | true |
whether to log packets on the module output |
| mobileHost.pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
| mobileHost.pcapRecorder.fileFormat | string | "pcapng" | |
| mobileHost.pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
| mobileHost.pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
| mobileHost.pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
| mobileHost.pcapRecorder.sendingSignalNames | string | "packetSentToLower" |
space-separated list of outbound packet signals to subscribe to |
| mobileHost.pcapRecorder.receivingSignalNames | string | "packetReceivedFromLower" |
space-separated list of inbound packet signals to subscribe to |
| mobileHost.pcapRecorder.dumpProtocols | string | "ethernetmac ppp ieee80211mac" |
space-separated list of protocol names as defined in the Protocol class |
| mobileHost.pcapRecorder.packetFilter | object | "*" |
which packets are considered, matches all packets by default |
| mobileHost.pcapRecorder.helpers | string | "" |
usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper" |
| mobileHost.pcapRecorder.alwaysFlush | bool | false |
flush the pcapFile after each write to ensure that all packets are captured in case of a crash |
| mobileHost.pcapRecorder.displayStringTextFormat | string | "rec: %n pks" | |
| mobileHost.interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
| mobileHost.cb.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| mobileHost.cb.forwardServiceRegistration | bool | true | |
| mobileHost.cb.forwardProtocolRegistration | bool | true | |
| mobileHost.bl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| mobileHost.bl.forwardServiceRegistration | bool | true | |
| mobileHost.bl.forwardProtocolRegistration | bool | true | |
| mobileHost.li.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| mobileHost.li.forwardServiceRegistration | bool | true | |
| mobileHost.li.forwardProtocolRegistration | bool | true | |
| mobileHost.eth.bitrate | double | ||
| mobileHost.nl.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| mobileHost.nl.forwardServiceRegistration | bool | true | |
| mobileHost.nl.forwardProtocolRegistration | bool | true | |
| mobileHost.tn.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| mobileHost.tn.forwardServiceRegistration | bool | true | |
| mobileHost.tn.forwardProtocolRegistration | bool | true | |
| mobileHost.at.displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
| mobileHost.at.forwardServiceRegistration | bool | true | |
| mobileHost.at.forwardProtocolRegistration | bool | true | |
| mobileHost.dymo.interfaceTableModule | string |
context parameters |
|
| mobileHost.dymo.routingTableModule | string | absPath("^.ipv4.routingTable") | |
| mobileHost.dymo.networkProtocolModule | string | absPath("^.ipv4.ip") | |
| mobileHost.dymo.clientAddresses | string | "10.10.0.0/24 10.20.0.0" |
1. Dymo parameter group |
| mobileHost.dymo.useMulticastRREP | bool | false |
USE_MULTICAST_RREP |
| mobileHost.dymo.interfaces | string | "*" |
string DEFAULT_METRIC_TYPE = default("HOP_COUNT"); |
| mobileHost.dymo.activeInterval | double | 5s |
2. Dymo parameter group |
| mobileHost.dymo.maxIdleTime | double | 200s |
MAX_IDLETIME |
| mobileHost.dymo.maxSequenceNumberLifetime | double | 300s |
MAX_SEQNUM_LIFETIME |
| mobileHost.dymo.routeRREQWaitTime | double | 2s |
ROUTE_RREQ_WAIT_TIME |
| mobileHost.dymo.rreqHolddownTime | double | 10s |
double UNICAST_MESSAGE_SENT_TIMEOUT @unit(s) = default(1s); |
| mobileHost.dymo.maxHopCount | int | 20 |
3. Dymo parameter group |
| mobileHost.dymo.discoveryAttemptsMax | int | 3 |
string MAX_METRIC = default(""); double MAXTIME; |
| mobileHost.dymo.appendInformation | bool | true |
4. Dymo parameter group |
| mobileHost.dymo.bufferSizePackets | int | -1 |
BUFFER_SIZE_PACKETS |
| mobileHost.dymo.bufferSizeBytes | int | -1B |
BUFFER_SIZE_BYTES double CONTROL_TRAFFIC_LIMIT |
| mobileHost.dymo.maxJitter | double | 10ms |
Dymo extension parameters |
| mobileHost.dymo.sendIntermediateRREP | bool | true | |
| mobileHost.dymo.minHopLimit | int | 5 | |
| mobileHost.dymo.maxHopLimit | int | 10 |
Source code
// // Models a network with several hosts. Each host may contain one or // more radios. Nodes are using adhoc routing to pass information. // network MultiRadio { parameters: int numHosts; submodules: radioMedium: Ieee80211ScalarRadioMedium { @display("p=100,200;is=s"); } configurator: Ipv4NetworkConfigurator { config = xml("<config><interface hosts='*' address='10.0.0.x' netmask='255.255.255.0'/></config>"); addStaticRoutes = false; addDefaultRoutes = false; addSubnetRoutes = false; @display("p=100,100;is=s"); } mobileHost[numHosts]: DymoRouter { @display("p=250,150;r=,,#000040"); } connections allowunconnected: }File: examples/manetrouting/multiradio/MultiRadio.ned