multi

Package: inet.examples.sctp.multihomed

multi

network

(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.

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.pcapRecorder.verbose bool true

whether to log packets on the module output

cli1.pcapRecorder.pcapFile string ""

the PCAP file to be written

cli1.pcapRecorder.fileFormat string "pcapng"
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[*]"

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.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

cli1.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

cli1.pcapRecorder.helpers string ""

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

cli1.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

cli1.at.forwardServiceRegistration bool true
cli1.at.forwardProtocolRegistration bool true
srv1.status.initialStatus string "UP"

TODO @signal, @statistic

srv1.pcapRecorder.verbose bool true

whether to log packets on the module output

srv1.pcapRecorder.pcapFile string ""

the PCAP file to be written

srv1.pcapRecorder.fileFormat string "pcapng"
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[*]"

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.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

srv1.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

srv1.pcapRecorder.helpers string ""

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

srv1.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

srv1.at.forwardServiceRegistration bool true
srv1.at.forwardProtocolRegistration bool true
router1.status.initialStatus string "UP"

TODO @signal, @statistic

router1.pcapRecorder.verbose bool true

whether to log packets on the module output

router1.pcapRecorder.pcapFile string ""

the PCAP file to be written

router1.pcapRecorder.fileFormat string "pcapng"
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[*]"

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.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

router1.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

router1.pcapRecorder.helpers string ""

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

router1.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

The path to the InterfaceTable module

router1.bgp.routingTableModule string
router1.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
router2.status.initialStatus string "UP"

TODO @signal, @statistic

router2.pcapRecorder.verbose bool true

whether to log packets on the module output

router2.pcapRecorder.pcapFile string ""

the PCAP file to be written

router2.pcapRecorder.fileFormat string "pcapng"
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[*]"

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.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

router2.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

router2.pcapRecorder.helpers string ""

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

router2.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

The path to the InterfaceTable module

router2.bgp.routingTableModule string
router2.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
router3.status.initialStatus string "UP"

TODO @signal, @statistic

router3.pcapRecorder.verbose bool true

whether to log packets on the module output

router3.pcapRecorder.pcapFile string ""

the PCAP file to be written

router3.pcapRecorder.fileFormat string "pcapng"
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[*]"

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.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

router3.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

router3.pcapRecorder.helpers string ""

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

router3.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

The path to the InterfaceTable module

router3.bgp.routingTableModule string
router3.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
router4.status.initialStatus string "UP"

TODO @signal, @statistic

router4.pcapRecorder.verbose bool true

whether to log packets on the module output

router4.pcapRecorder.pcapFile string ""

the PCAP file to be written

router4.pcapRecorder.fileFormat string "pcapng"
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[*]"

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.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

router4.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

router4.pcapRecorder.helpers string ""

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

router4.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

The path to the InterfaceTable module

router4.bgp.routingTableModule string
router4.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
configurator.minLinkWeight double 1E-3
configurator.configureIsolatedNetworksSeparatly bool false
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.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)

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=250,200;i=device/laptop");
            gates:
                pppg[1];
        }
        srv1: StandardHost {
            parameters:
                forwarding = false;
                @display("p=600,200;i=device/server2");
            gates:
                pppg[1];

        }
        router1: Router {
            parameters:
                @display("p=350,100;i=abstract/router");
            gates:
                pppg[2];
        }
        router2: Router {
            parameters:
                @display("p=500,100;i=abstract/router");
            gates:
                pppg[2];
        }
        router3: Router {
            parameters:
                @display("p=350,300;i=abstract/router");
            gates:
                pppg[2];
        }
        router4: Router {
            parameters:
                @display("p=500,300;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>");
            @display("p=100,100;is=s");
        }
    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++;
}

File: examples/sctp/multihomed/multi.ned