Network multi

Package: inet.examples.sctp.multihomed
File: examples/sctp/multihomed/multi.ned

(no description)

StandardHost StandardHost Router Router Router Router IPv4NetworkConfigurator

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
testTimeout double 0s
testing bool false

Properties:

Name Value Description
isNetwork

Unassigned submodule parameters:

Name Type Default value Description
cli1.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

cli1.pcapRecorder.verbose bool false

whether to log packets on the module output

cli1.pcapRecorder.pcapFile string ""

the PCAP file to be written

cli1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

cli1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

cli1.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

cli1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

cli1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

cli1.pcapRecorder.alwaysFlush bool false

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

cli1.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

cli1.lo0.lo.mtu int 4470B
srv1.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

srv1.pcapRecorder.verbose bool false

whether to log packets on the module output

srv1.pcapRecorder.pcapFile string ""

the PCAP file to be written

srv1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

srv1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

srv1.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

srv1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

srv1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

srv1.pcapRecorder.alwaysFlush bool false

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

srv1.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

srv1.lo0.lo.mtu int 4470B
router1.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

router1.pcapRecorder.verbose bool false

whether to log packets on the module output

router1.pcapRecorder.pcapFile string ""

the PCAP file to be written

router1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

router1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

router1.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

router1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

router1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

router1.pcapRecorder.alwaysFlush bool false

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

router1.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

router1.bgp.routingTableModule string
router1.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
router1.bgp.dataTransferMode string
router2.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

router2.pcapRecorder.verbose bool false

whether to log packets on the module output

router2.pcapRecorder.pcapFile string ""

the PCAP file to be written

router2.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

router2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

router2.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

router2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

router2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

router2.pcapRecorder.alwaysFlush bool false

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

router2.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

router2.bgp.routingTableModule string
router2.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
router2.bgp.dataTransferMode string
router3.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

router3.pcapRecorder.verbose bool false

whether to log packets on the module output

router3.pcapRecorder.pcapFile string ""

the PCAP file to be written

router3.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

router3.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

router3.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

router3.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

router3.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

router3.pcapRecorder.alwaysFlush bool false

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

router3.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

router3.bgp.routingTableModule string
router3.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
router3.bgp.dataTransferMode string
router4.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

router4.pcapRecorder.verbose bool false

whether to log packets on the module output

router4.pcapRecorder.pcapFile string ""

the PCAP file to be written

router4.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

router4.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

router4.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

router4.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

router4.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

router4.pcapRecorder.alwaysFlush bool false

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

router4.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

router4.bgp.routingTableModule string
router4.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
router4.bgp.dataTransferMode string
configurator.minLinkWeight double 1E-3
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.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)

Source code:

network multi
{
    parameters:
        double testTimeout @unit(s) = default(0s);
        bool testing = default(false);
    types:
        channel ppp1line extends DatarateChannel
        {
            delay = 10ms;
            datarate = 1 Mbps;
        }
        channel ppp2line extends DatarateChannel
        {
            delay = 0ms;
            datarate = 1 Gbps;
        }
    submodules:
        cli1: StandardHost {
            parameters:
                forwarding = false;
                @display("p=61,142;i=device/laptop");
            gates:
                pppg[1];
        }
        srv1: StandardHost {
            parameters:
                forwarding = false;
                @display("p=426,135;i=device/server2");
            gates:
                pppg[1];

        }
        router1: Router {
            parameters:
                @display("p=188,77;i=abstract/router");
            gates:
                pppg[2];
        }
        router2: Router {
            parameters:
                @display("p=323,75;i=abstract/router");
            gates:
                pppg[2];
        }
        router3: Router {
            parameters:
                @display("p=188,192;i=abstract/router");
            gates:
                pppg[2];
        }
        router4: Router {
            parameters:
                @display("p=328,188;i=abstract/router");
            gates:
                pppg[2];
        }
        configurator: IPv4NetworkConfigurator {
            addStaticRoutes = false;
            config = xml("<config>"+
                    "<interface hosts='cli1' towards='router1' address='10.1.1.1' netmask='255.255.255.0' />"+
                    "<interface hosts='cli1' towards='router3' address='10.2.1.1' netmask='255.255.255.0' />"+
                    "<interface hosts='srv1' towards='router2' address='10.1.3.1' netmask='255.255.255.0' />"+
                    "<interface hosts='srv1' towards='router4' address='10.2.3.1' netmask='255.255.255.0' />"+
                    "<interface hosts='router1' towards='cli1' address='10.1.1.254' netmask='255.255.255.0' />"+
                    "<interface hosts='router1' towards='router2' address='10.1.2.254' netmask='255.255.255.0' />"+
                    "<interface hosts='router2' towards='router1' address='10.1.2.253' netmask='255.255.255.0' />"+
                    "<interface hosts='router2' towards='srv1' address='10.1.3.254' netmask='255.255.255.0' />"+
                    "<interface hosts='router3' towards='cli1' address='10.2.1.254' netmask='255.255.255.0' />"+
                    "<interface hosts='router3' towards='router4' address='10.2.2.254' netmask='255.255.255.0' />"+
                    "<interface hosts='router4' towards='router3' address='10.2.2.253' netmask='255.255.255.0' />"+
                    "<interface hosts='router4' towards='srv1' address='10.2.3.254' netmask='255.255.255.0' />"+
                    "<route hosts='cli1' destination='10.1.0.0' netmask='/16' gateway='router1' />"+
                    "<route hosts='cli1' destination='10.2.0.0' netmask='/16' gateway='router3' />"+
                    "<route hosts='srv1' destination='10.1.0.0' netmask='/16' gateway='router2' />"+
                    "<route hosts='srv1' destination='10.2.0.0' netmask='/16' gateway='router4' />"+
                    "<route hosts='router1' destination='10.1.1.1' netmask='/32' gateway='10.1.1.1' />"+
                    "<route hosts='router1' destination='*' gateway='10.1.2.253' />"+
                    "<route hosts='router2' destination='10.1.3.1' netmask='/32' gateway='10.1.3.1' />"+
                    "<route hosts='router2' destination='*' gateway='10.1.2.254' />"+
                    "<route hosts='router3' destination='10.2.1.1' netmask='/32' gateway='10.2.1.1' />"+
                    "<route hosts='router3' destination='*' gateway='10.2.2.253' />"+
                    "<route hosts='router4' destination='10.2.3.1' netmask='/32' gateway='10.2.3.1' />"+
                    "<route hosts='router4' destination='*' gateway='10.2.2.254' />"+
                    "</config>");
        }
    connections:
        cli1.pppg++ <--> ppp2line <--> router1.pppg++;
        router1.pppg++ <--> ppp1line <--> router2.pppg++;
        router2.pppg++ <--> ppp2line <--> srv1.pppg++;
        cli1.pppg++ <--> ppp2line <--> router3.pppg++;
        router3.pppg++ <--> ppp1line <--> router4.pppg++;
        router4.pppg++ <--> ppp2line <--> srv1.pppg++;
}