testNetwork

Package: inet.examples.inet.netperfmeter

testNetwork

network

(no description)

Ipv4NetworkConfigurator Router Router Router Router StandardHost StandardHost

Usage diagram

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

Parameters

Name Type Default value Description
systems int 3

Properties

Name Value Description
isNetwork
display bgi=maps/world,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)

westernBorderRouter.status.initialStatus string "UP"

TODO @signal, @statistic

westernBorderRouter.pcapRecorder.verbose bool true

whether to log packets on the module output

westernBorderRouter.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

westernBorderRouter.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

westernBorderRouter.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

westernBorderRouter.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

westernBorderRouter.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

westernBorderRouter.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

westernBorderRouter.pcapRecorder.helpers string ""

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

westernBorderRouter.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

westernBorderRouter.at.forwardServiceRegistration bool true
westernBorderRouter.at.forwardProtocolRegistration bool true
westernBorderRouter.bgp.interfaceTableModule string

The path to the InterfaceTable module

westernBorderRouter.bgp.routingTableModule string
westernBorderRouter.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
westernCoreRouter.status.initialStatus string "UP"

TODO @signal, @statistic

westernCoreRouter.pcapRecorder.verbose bool true

whether to log packets on the module output

westernCoreRouter.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

westernCoreRouter.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

westernCoreRouter.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

westernCoreRouter.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

westernCoreRouter.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

westernCoreRouter.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

westernCoreRouter.pcapRecorder.helpers string ""

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

westernCoreRouter.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

westernCoreRouter.at.forwardServiceRegistration bool true
westernCoreRouter.at.forwardProtocolRegistration bool true
westernCoreRouter.bgp.interfaceTableModule string

The path to the InterfaceTable module

westernCoreRouter.bgp.routingTableModule string
westernCoreRouter.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
easternCoreRouter.status.initialStatus string "UP"

TODO @signal, @statistic

easternCoreRouter.pcapRecorder.verbose bool true

whether to log packets on the module output

easternCoreRouter.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

easternCoreRouter.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

easternCoreRouter.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

easternCoreRouter.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

easternCoreRouter.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

easternCoreRouter.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

easternCoreRouter.pcapRecorder.helpers string ""

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

easternCoreRouter.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

easternCoreRouter.at.forwardServiceRegistration bool true
easternCoreRouter.at.forwardProtocolRegistration bool true
easternCoreRouter.bgp.interfaceTableModule string

The path to the InterfaceTable module

easternCoreRouter.bgp.routingTableModule string
easternCoreRouter.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
easternBorderRouter.status.initialStatus string "UP"

TODO @signal, @statistic

easternBorderRouter.pcapRecorder.verbose bool true

whether to log packets on the module output

easternBorderRouter.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

easternBorderRouter.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

easternBorderRouter.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

easternBorderRouter.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

easternBorderRouter.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

easternBorderRouter.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

easternBorderRouter.pcapRecorder.helpers string ""

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

easternBorderRouter.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

easternBorderRouter.at.forwardServiceRegistration bool true
easternBorderRouter.at.forwardProtocolRegistration bool true
easternBorderRouter.bgp.interfaceTableModule string

The path to the InterfaceTable module

easternBorderRouter.bgp.routingTableModule string
easternBorderRouter.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
clientMain.status.initialStatus string "UP"

TODO @signal, @statistic

clientMain.pcapRecorder.verbose bool true

whether to log packets on the module output

clientMain.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

clientMain.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

clientMain.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

clientMain.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

clientMain.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

clientMain.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

clientMain.pcapRecorder.helpers string ""

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

clientMain.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

clientMain.at.forwardServiceRegistration bool true
clientMain.at.forwardProtocolRegistration bool true
serverMain.status.initialStatus string "UP"

TODO @signal, @statistic

serverMain.pcapRecorder.verbose bool true

whether to log packets on the module output

serverMain.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

serverMain.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

serverMain.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

serverMain.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

serverMain.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

serverMain.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

serverMain.pcapRecorder.helpers string ""

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

serverMain.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

serverMain.at.forwardServiceRegistration bool true
serverMain.at.forwardProtocolRegistration bool true

Source code

network testNetwork
{
    // ====== System Parameters =============================================
    parameters:
        int systems = default(3);
        @display("bgi=maps/world,s");

    // ====== Network Components ============================================
    submodules:
        // ------ Routing Auto-Configuration --------------------------------
        configurator: Ipv4NetworkConfigurator {
            parameters:
                @display("p=850,75;i=abstract/penguin_l,gold");
        }

        // ------ Routers -----------------------------------------------------
        westernBorderRouter: Router {
            parameters:
                @display("p=500,150,c,150;i=abstract/router_l,gold");
            gates:
                pppg[1 + parent.systems];
        }
        westernCoreRouter: Router {
            parameters:
                @display("p=700,150,c,150;i=abstract/router_l,gold");
            gates:
                pppg[2];
        }
        easternCoreRouter: Router {
            parameters:
                @display("p=1000,150,c,150;i=abstract/router_l,gold");
            gates:
                pppg[2];
        }
        easternBorderRouter: Router {
            parameters:
                @display("p=1200,150,c,150;i=abstract/router_l,gold");
            gates:
                pppg[1 + parent.systems];
        }

        // ------ Systems -----------------------------------------------------
        clientMain[systems]: StandardHost {
            parameters:
                forwarding = false;
                @display("p=50,50,c,200;i=device/laptop_l,green");
            gates:
                pppg[1];
        }
        serverMain[systems]: StandardHost {
            parameters:
                forwarding = false;
                @display("p=1650,50,c,200;i=device/server_l,green");
            gates:
                pppg[1];
        }

    // ====== Connections ====================================================
    connections:
        westernCoreRouter.pppg[0] <--> coreChannel { @display("ls=blue,3"); } <--> easternCoreRouter.pppg[0];

        westernBorderRouter.pppg[0] <--> accessChannel { @display("ls=blue,5"); } <--> westernCoreRouter.pppg[1];
        easternBorderRouter.pppg[0] <--> accessChannel { @display("ls=blue,5"); } <--> easternCoreRouter.pppg[1];

        for s=0..systems-1 {
            clientMain[s].pppg[0] <--> accessChannel { @display("ls=green,5"); } <--> westernBorderRouter.pppg[1 + s];
            serverMain[s].pppg[0] <--> accessChannel { @display("ls=green,5"); } <--> easternBorderRouter.pppg[1 + s];
        }
}
File: examples/inet/netperfmeter/netperfmeter.ned