SensorNetworkShowcaseA

Package: inet.showcases.wireless.sensornetwork

SensorNetworkShowcaseA

network

(no description)

Ipv4NetworkConfigurator IntegratedVisualizer ApskScalarRadioMedium SensorNode SensorNode SensorNode SensorNode SensorNode StandardHost

Usage diagram

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

Properties

Name Value Description
isNetwork
display bgb=60,30;bgi=showcases/warehouse,s

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
sensor4.status.initialStatus string "UP"

TODO @signal, @statistic

sensor4.pcapRecorder.verbose bool true

whether to log packets on the module output

sensor4.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

sensor4.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

sensor4.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

sensor4.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

sensor4.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

sensor4.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

sensor4.pcapRecorder.helpers string ""

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

sensor4.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

sensor4.at.forwardServiceRegistration bool true
sensor4.at.forwardProtocolRegistration bool true
sensor1.status.initialStatus string "UP"

TODO @signal, @statistic

sensor1.pcapRecorder.verbose bool true

whether to log packets on the module output

sensor1.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

sensor1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

sensor1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

sensor1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

sensor1.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

sensor1.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

sensor1.pcapRecorder.helpers string ""

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

sensor1.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

sensor1.at.forwardServiceRegistration bool true
sensor1.at.forwardProtocolRegistration bool true
sensor2.status.initialStatus string "UP"

TODO @signal, @statistic

sensor2.pcapRecorder.verbose bool true

whether to log packets on the module output

sensor2.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

sensor2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

sensor2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

sensor2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

sensor2.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

sensor2.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

sensor2.pcapRecorder.helpers string ""

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

sensor2.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

sensor2.at.forwardServiceRegistration bool true
sensor2.at.forwardProtocolRegistration bool true
sensor3.status.initialStatus string "UP"

TODO @signal, @statistic

sensor3.pcapRecorder.verbose bool true

whether to log packets on the module output

sensor3.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

sensor3.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

sensor3.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

sensor3.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

sensor3.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

sensor3.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

sensor3.pcapRecorder.helpers string ""

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

sensor3.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

sensor3.at.forwardServiceRegistration bool true
sensor3.at.forwardProtocolRegistration bool true
gateway.status.initialStatus string "UP"

TODO @signal, @statistic

gateway.pcapRecorder.verbose bool true

whether to log packets on the module output

gateway.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

gateway.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

gateway.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

gateway.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

gateway.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

gateway.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

gateway.pcapRecorder.helpers string ""

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

gateway.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

gateway.at.forwardServiceRegistration bool true
gateway.at.forwardProtocolRegistration bool true
server.status.initialStatus string "UP"

TODO @signal, @statistic

server.pcapRecorder.verbose bool true

whether to log packets on the module output

server.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

server.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

server.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

server.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

server.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

server.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

server.pcapRecorder.helpers string ""

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

server.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

server.at.forwardServiceRegistration bool true
server.at.forwardProtocolRegistration bool true

Source code

network SensorNetworkShowcaseA
{
    @display("bgb=60,30;bgi=showcases/warehouse,s");
    submodules:
        configurator: Ipv4NetworkConfigurator {
            @display("p=3.4662657,4.033473");
        }
        visualizer: IntegratedVisualizer {
            @display("p=3.4662657,9.264383");
        }
        radioMedium: ApskScalarRadioMedium {
            @display("p=3.4032426,14.0541315");
        }
        sensor4: SensorNode {
            @display("p=22,6.5;i=misc/sensor2");
        }
        sensor1: SensorNode {
            @display("p=16.482326,20.196255;i=misc/sensor2");
        }
        sensor2: SensorNode {
            @display("p=33.772572,16.275303;i=misc/sensor2");
        }
        sensor3: SensorNode {
            @display("p=35,6.5;i=misc/sensor2");
        }
        gateway: SensorNode {
            @display("p=28.5,13;i=misc/sensorgateway");
        }
        server: StandardHost {
            @display("p=38.35591,12.96182");
        }
    connections:
        gateway.ethg++ <--> Eth100M <--> server.ethg++;
}

File: showcases/wireless/sensornetwork/SensorNetworkShowcase.ned