Network testNetwork

Package: inet.examples.inet.netperfmeter
File: examples/inet/netperfmeter/netperfmeter.ned

(no description)

IPv4NetworkConfigurator Router Router Router Router NetPerfMeterHost NetPerfMeterHost

Usage diagram:

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

Inheritance diagram:

The following diagram shows inheritance relationships for this type. 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.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.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.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.routingTable.forwarding bool
westernBorderRouter.routingTable.multicastForwarding bool
westernBorderRouter.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

westernBorderRouter.pcapRecorder.verbose bool false

whether to log packets on the module output

westernBorderRouter.pcapRecorder.pcapFile string ""

the PCAP file to be written

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[*] ext[*]"

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.alwaysFlush bool false

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

westernBorderRouter.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

westernBorderRouter.lo0.lo.mtu int 4470B
westernBorderRouter.bgp.interfaceTableModule string

The path to the InterfaceTable module

westernBorderRouter.bgp.routingTableModule string
westernBorderRouter.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
westernBorderRouter.bgp.dataTransferMode string
westernCoreRouter.status.initialStatus string "UP"

TODO @signal, @statistic

westernCoreRouter.routingTable.forwarding bool
westernCoreRouter.routingTable.multicastForwarding bool
westernCoreRouter.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

westernCoreRouter.pcapRecorder.verbose bool false

whether to log packets on the module output

westernCoreRouter.pcapRecorder.pcapFile string ""

the PCAP file to be written

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[*] ext[*]"

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.alwaysFlush bool false

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

westernCoreRouter.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

westernCoreRouter.lo0.lo.mtu int 4470B
westernCoreRouter.bgp.interfaceTableModule string

The path to the InterfaceTable module

westernCoreRouter.bgp.routingTableModule string
westernCoreRouter.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
westernCoreRouter.bgp.dataTransferMode string
easternCoreRouter.status.initialStatus string "UP"

TODO @signal, @statistic

easternCoreRouter.routingTable.forwarding bool
easternCoreRouter.routingTable.multicastForwarding bool
easternCoreRouter.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

easternCoreRouter.pcapRecorder.verbose bool false

whether to log packets on the module output

easternCoreRouter.pcapRecorder.pcapFile string ""

the PCAP file to be written

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[*] ext[*]"

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.alwaysFlush bool false

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

easternCoreRouter.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

easternCoreRouter.lo0.lo.mtu int 4470B
easternCoreRouter.bgp.interfaceTableModule string

The path to the InterfaceTable module

easternCoreRouter.bgp.routingTableModule string
easternCoreRouter.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
easternCoreRouter.bgp.dataTransferMode string
easternBorderRouter.status.initialStatus string "UP"

TODO @signal, @statistic

easternBorderRouter.routingTable.forwarding bool
easternBorderRouter.routingTable.multicastForwarding bool
easternBorderRouter.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

easternBorderRouter.pcapRecorder.verbose bool false

whether to log packets on the module output

easternBorderRouter.pcapRecorder.pcapFile string ""

the PCAP file to be written

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[*] ext[*]"

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.alwaysFlush bool false

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

easternBorderRouter.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

easternBorderRouter.lo0.lo.mtu int 4470B
easternBorderRouter.bgp.interfaceTableModule string

The path to the InterfaceTable module

easternBorderRouter.bgp.routingTableModule string
easternBorderRouter.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
easternBorderRouter.bgp.dataTransferMode string
clientMain.status.initialStatus string "UP"

TODO @signal, @statistic

clientMain.routingTable.forwarding bool
clientMain.routingTable.multicastForwarding bool
clientMain.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

clientMain.pcapRecorder.verbose bool false

whether to log packets on the module output

clientMain.pcapRecorder.pcapFile string ""

the PCAP file to be written

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[*] ext[*]"

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.alwaysFlush bool false

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

clientMain.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

clientMain.lo0.lo.mtu int 4470B
serverMain.status.initialStatus string "UP"

TODO @signal, @statistic

serverMain.routingTable.forwarding bool
serverMain.routingTable.multicastForwarding bool
serverMain.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

serverMain.pcapRecorder.verbose bool false

whether to log packets on the module output

serverMain.pcapRecorder.pcapFile string ""

the PCAP file to be written

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[*] ext[*]"

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.alwaysFlush bool false

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

serverMain.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

serverMain.lo0.lo.mtu int 4470B

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 + 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 + systems];
        }

        // ------ Systems -----------------------------------------------------
        clientMain[systems]: NetPerfMeterHost {
            parameters:
                forwarding = false;
                @display("p=50,50,c,200;i=device/laptop_l,green");
            gates:
                pppg[1];
        }
        serverMain[systems]: NetPerfMeterHost {
            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];
        }
}