CoexistenceShowcase

Package: inet.showcases.wireless.coexistence

CoexistenceShowcase

network

(no description)

IntegratedCanvasVisualizer Ipv4NetworkConfigurator RadioMedium AdhocHost AdhocHost AdhocHost AdhocHost

Usage diagram

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Properties

Name Value Description
isNetwork

Statistics

Name Title Source Record Unit Interpolation Mode
bitErrorRate Bit error rate bitErrorRate(packetSentToUpper) vector
packetErrorRate Packet error rate packetErrorRate(packetSentToUpper) vector

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)

radioMedium.neighborCache.refillPeriod double
wifiHost1.status.initialStatus string "UP"

TODO @signal, @statistic

wifiHost1.pcapRecorder.verbose bool true

whether to log packets on the module output

wifiHost1.pcapRecorder.pcapFile string ""

the PCAP file to be written

wifiHost1.pcapRecorder.fileFormat string "pcapng"
wifiHost1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

wifiHost1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

wifiHost1.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

space-separated list of sibling module names to listen on

wifiHost1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

wifiHost1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

wifiHost1.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

space-separated list of protocol names as defined in the Protocol class

wifiHost1.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

wifiHost1.pcapRecorder.helpers string ""

usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

wifiHost1.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

wifiHost1.pcapRecorder.displayStringTextFormat string "rec: %n pks"
wifiHost1.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

wifiHost1.cb.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wifiHost1.cb.forwardServiceRegistration bool true
wifiHost1.cb.forwardProtocolRegistration bool true
wifiHost1.bl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wifiHost1.bl.forwardServiceRegistration bool true
wifiHost1.bl.forwardProtocolRegistration bool true
wifiHost1.li.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wifiHost1.li.forwardServiceRegistration bool true
wifiHost1.li.forwardProtocolRegistration bool true
wifiHost1.eth.bitrate double
wifiHost1.nl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wifiHost1.nl.forwardServiceRegistration bool true
wifiHost1.nl.forwardProtocolRegistration bool true
wifiHost1.tn.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wifiHost1.tn.forwardServiceRegistration bool true
wifiHost1.tn.forwardProtocolRegistration bool true
wifiHost1.at.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wifiHost1.at.forwardServiceRegistration bool true
wifiHost1.at.forwardProtocolRegistration bool true
wifiHost2.status.initialStatus string "UP"

TODO @signal, @statistic

wifiHost2.pcapRecorder.verbose bool true

whether to log packets on the module output

wifiHost2.pcapRecorder.pcapFile string ""

the PCAP file to be written

wifiHost2.pcapRecorder.fileFormat string "pcapng"
wifiHost2.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

wifiHost2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

wifiHost2.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

space-separated list of sibling module names to listen on

wifiHost2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

wifiHost2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

wifiHost2.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

space-separated list of protocol names as defined in the Protocol class

wifiHost2.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

wifiHost2.pcapRecorder.helpers string ""

usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

wifiHost2.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

wifiHost2.pcapRecorder.displayStringTextFormat string "rec: %n pks"
wifiHost2.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

wifiHost2.cb.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wifiHost2.cb.forwardServiceRegistration bool true
wifiHost2.cb.forwardProtocolRegistration bool true
wifiHost2.bl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wifiHost2.bl.forwardServiceRegistration bool true
wifiHost2.bl.forwardProtocolRegistration bool true
wifiHost2.li.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wifiHost2.li.forwardServiceRegistration bool true
wifiHost2.li.forwardProtocolRegistration bool true
wifiHost2.eth.bitrate double
wifiHost2.nl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wifiHost2.nl.forwardServiceRegistration bool true
wifiHost2.nl.forwardProtocolRegistration bool true
wifiHost2.tn.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wifiHost2.tn.forwardServiceRegistration bool true
wifiHost2.tn.forwardProtocolRegistration bool true
wifiHost2.at.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wifiHost2.at.forwardServiceRegistration bool true
wifiHost2.at.forwardProtocolRegistration bool true
wpanHost1.status.initialStatus string "UP"

TODO @signal, @statistic

wpanHost1.pcapRecorder.verbose bool true

whether to log packets on the module output

wpanHost1.pcapRecorder.pcapFile string ""

the PCAP file to be written

wpanHost1.pcapRecorder.fileFormat string "pcapng"
wpanHost1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

wpanHost1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

wpanHost1.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

space-separated list of sibling module names to listen on

wpanHost1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

wpanHost1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

wpanHost1.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

space-separated list of protocol names as defined in the Protocol class

wpanHost1.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

wpanHost1.pcapRecorder.helpers string ""

usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

wpanHost1.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

wpanHost1.pcapRecorder.displayStringTextFormat string "rec: %n pks"
wpanHost1.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

wpanHost1.cb.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wpanHost1.cb.forwardServiceRegistration bool true
wpanHost1.cb.forwardProtocolRegistration bool true
wpanHost1.bl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wpanHost1.bl.forwardServiceRegistration bool true
wpanHost1.bl.forwardProtocolRegistration bool true
wpanHost1.li.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wpanHost1.li.forwardServiceRegistration bool true
wpanHost1.li.forwardProtocolRegistration bool true
wpanHost1.eth.bitrate double
wpanHost1.nl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wpanHost1.nl.forwardServiceRegistration bool true
wpanHost1.nl.forwardProtocolRegistration bool true
wpanHost1.tn.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wpanHost1.tn.forwardServiceRegistration bool true
wpanHost1.tn.forwardProtocolRegistration bool true
wpanHost1.at.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wpanHost1.at.forwardServiceRegistration bool true
wpanHost1.at.forwardProtocolRegistration bool true
wpanHost2.status.initialStatus string "UP"

TODO @signal, @statistic

wpanHost2.pcapRecorder.verbose bool true

whether to log packets on the module output

wpanHost2.pcapRecorder.pcapFile string ""

the PCAP file to be written

wpanHost2.pcapRecorder.fileFormat string "pcapng"
wpanHost2.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

wpanHost2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

wpanHost2.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

space-separated list of sibling module names to listen on

wpanHost2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

wpanHost2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

wpanHost2.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

space-separated list of protocol names as defined in the Protocol class

wpanHost2.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

wpanHost2.pcapRecorder.helpers string ""

usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

wpanHost2.pcapRecorder.alwaysFlush bool false

flush the pcapFile after each write to ensure that all packets are captured in case of a crash

wpanHost2.pcapRecorder.displayStringTextFormat string "rec: %n pks"
wpanHost2.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

wpanHost2.cb.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wpanHost2.cb.forwardServiceRegistration bool true
wpanHost2.cb.forwardProtocolRegistration bool true
wpanHost2.bl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wpanHost2.bl.forwardServiceRegistration bool true
wpanHost2.bl.forwardProtocolRegistration bool true
wpanHost2.li.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wpanHost2.li.forwardServiceRegistration bool true
wpanHost2.li.forwardProtocolRegistration bool true
wpanHost2.eth.bitrate double
wpanHost2.nl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wpanHost2.nl.forwardServiceRegistration bool true
wpanHost2.nl.forwardProtocolRegistration bool true
wpanHost2.tn.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wpanHost2.tn.forwardServiceRegistration bool true
wpanHost2.tn.forwardProtocolRegistration bool true
wpanHost2.at.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

wpanHost2.at.forwardServiceRegistration bool true
wpanHost2.at.forwardProtocolRegistration bool true

Source code

network CoexistenceShowcase
{
    @statistic[bitErrorRate](title="Bit error rate"; source=bitErrorRate(packetSentToUpper); record=vector);
    @statistic[packetErrorRate](title="Packet error rate"; source=packetErrorRate(packetSentToUpper); record=vector);
    submodules:
        visualizer: IntegratedCanvasVisualizer {
            @display("p=5,5");
        }
        configurator: Ipv4NetworkConfigurator {
            @display("p=5,10");
        }
        radioMedium: RadioMedium {
            @display("p=5,15");
        }
        wifiHost1: AdhocHost {
            @display("p=40.791748,11.9189995;i=device/laptop");
        }
        wifiHost2: AdhocHost {
            @display("p=40.791748,31.4415;i=device/laptop");
        }
        wpanHost1: AdhocHost {
            @display("p=23.426999,21.5775;i=misc/sensor2");
        }
        wpanHost2: AdhocHost {
            @display("p=51.1695,21.5775;i=misc/sensor2");
        }
}
File: showcases/wireless/coexistence/CoexistenceShowcase.ned