Network OSPF_BackboneAndTwoStubsTest

Package: inet.examples.ospfv2.areatests
File: examples/ospfv2/areatests/BackboneAndTwoStubs.ned

(no description)

OSPFRouter TestArea TestArea IPv4NetworkConfigurator ScenarioManager

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
numBBRouters int 3

Properties:

Name Value Description
isNetwork
display bgb=561,300

Unassigned submodule parameters:

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

TODO @signal, @statistic

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

whether to display IP addresses on links

BBR.pcapRecorder.verbose bool false

whether to log packets on the module output

BBR.pcapRecorder.pcapFile string ""

the PCAP file to be written

BBR.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

BBR.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

BBR.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

BBR.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

BBR.pcapRecorder.alwaysFlush bool false

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

BBR.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

BBR.bgp.routingTableModule string
BBR.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
BBR.bgp.dataTransferMode string
Stub1.H.status.initialStatus string "UP"

TODO @signal, @statistic

Stub1.H.routingTable.forwarding bool
Stub1.H.routingTable.multicastForwarding bool
Stub1.H.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

Stub1.H.pcapRecorder.verbose bool false

whether to log packets on the module output

Stub1.H.pcapRecorder.pcapFile string ""

the PCAP file to be written

Stub1.H.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

Stub1.H.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

Stub1.H.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

Stub1.H.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

Stub1.H.pcapRecorder.alwaysFlush bool false

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

Stub1.H.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

Stub1.H.lo0.lo.mtu int 4470B
Stub1.R.status.initialStatus string "UP"

TODO @signal, @statistic

Stub1.R.routingTable.forwarding bool
Stub1.R.routingTable.multicastForwarding bool
Stub1.R.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

Stub1.R.pcapRecorder.verbose bool false

whether to log packets on the module output

Stub1.R.pcapRecorder.pcapFile string ""

the PCAP file to be written

Stub1.R.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

Stub1.R.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

Stub1.R.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

Stub1.R.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

Stub1.R.pcapRecorder.alwaysFlush bool false

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

Stub1.R.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

Stub1.R.lo0.lo.mtu int 4470B
Stub1.R.bgp.interfaceTableModule string

The path to the InterfaceTable module

Stub1.R.bgp.routingTableModule string
Stub1.R.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
Stub1.R.bgp.dataTransferMode string
Stub1.B.status.initialStatus string "UP"

TODO @signal, @statistic

Stub1.B.routingTable.forwarding bool
Stub1.B.routingTable.multicastForwarding bool
Stub1.B.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

Stub1.B.pcapRecorder.verbose bool false

whether to log packets on the module output

Stub1.B.pcapRecorder.pcapFile string ""

the PCAP file to be written

Stub1.B.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

Stub1.B.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

Stub1.B.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

Stub1.B.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

Stub1.B.pcapRecorder.alwaysFlush bool false

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

Stub1.B.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

Stub1.B.bgp.routingTableModule string
Stub1.B.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
Stub1.B.bgp.dataTransferMode string
Stub2.H.status.initialStatus string "UP"

TODO @signal, @statistic

Stub2.H.routingTable.forwarding bool
Stub2.H.routingTable.multicastForwarding bool
Stub2.H.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

Stub2.H.pcapRecorder.verbose bool false

whether to log packets on the module output

Stub2.H.pcapRecorder.pcapFile string ""

the PCAP file to be written

Stub2.H.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

Stub2.H.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

Stub2.H.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

Stub2.H.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

Stub2.H.pcapRecorder.alwaysFlush bool false

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

Stub2.H.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

Stub2.H.lo0.lo.mtu int 4470B
Stub2.R.status.initialStatus string "UP"

TODO @signal, @statistic

Stub2.R.routingTable.forwarding bool
Stub2.R.routingTable.multicastForwarding bool
Stub2.R.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

Stub2.R.pcapRecorder.verbose bool false

whether to log packets on the module output

Stub2.R.pcapRecorder.pcapFile string ""

the PCAP file to be written

Stub2.R.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

Stub2.R.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

Stub2.R.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

Stub2.R.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

Stub2.R.pcapRecorder.alwaysFlush bool false

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

Stub2.R.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

Stub2.R.lo0.lo.mtu int 4470B
Stub2.R.bgp.interfaceTableModule string

The path to the InterfaceTable module

Stub2.R.bgp.routingTableModule string
Stub2.R.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
Stub2.R.bgp.dataTransferMode string
Stub2.B.status.initialStatus string "UP"

TODO @signal, @statistic

Stub2.B.routingTable.forwarding bool
Stub2.B.routingTable.multicastForwarding bool
Stub2.B.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

Stub2.B.pcapRecorder.verbose bool false

whether to log packets on the module output

Stub2.B.pcapRecorder.pcapFile string ""

the PCAP file to be written

Stub2.B.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

Stub2.B.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

Stub2.B.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

Stub2.B.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

Stub2.B.pcapRecorder.alwaysFlush bool false

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

Stub2.B.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

Stub2.B.bgp.routingTableModule string
Stub2.B.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
Stub2.B.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.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)

scenarioManager.script xml xml("")

Source code:

network OSPF_BackboneAndTwoStubsTest
{
    parameters:
        int numBBRouters = default(3);
        @display("bgb=561,300");
    types:
        channel C extends ThruputMeteringChannel
        {
            delay = 0.1us;
            datarate = 100Mbps;
            thruputDisplayFormat = "#N";
        }
    submodules:
        BBR[numBBRouters]: OSPFRouter;
        Stub1: TestArea {
            parameters:
                numHosts = 2;
                extGates = 1;
                @display("p=138,156;b=136,136");
        }
        Stub2: TestArea {
            parameters:
                numHosts = 2;
                extGates = 1;
                @display("p=409,156;b=136,136");
        }
        configurator: IPv4NetworkConfigurator {
            parameters:
                config = xml("<config>"+
                            "<interface among='BBR[*]' address='192.168.100.x' netmask='255.255.255.x' />"+
                            "<interface hosts='Stub1.*' address='192.168.91.x' netmask='255.255.255.x' />"+
                            "<interface hosts='BBR[*]' towards='Stub1.*' address='192.168.91.x' netmask='255.255.255.x' />"+
                            "<interface hosts='Stub2.*' address='192.168.92.x' netmask='255.255.255.x' />"+
                            "<interface hosts='BBR[*]' towards='Stub2.*' address='192.168.92.x' netmask='255.255.255.x' />"+
                            "<multicast-group hosts='**.R[*] **.B[*] BBR[*]' address='224.0.0.5 224.0.0.6' />"+
                            "<route hosts='**.H[*]' destination='*' netmask='0.0.0.0' interface='eth0' />"+
                            "<route hosts='**.B[*] BBR[*]' destination='224.0.0.0' netmask='240.0.0.0' interface='eth0' />"+
                            "<route hosts='**.R[*] **.B[*] BBR[*]' destination='224.0.0.0' netmask='240.0.0.0' interface='eth1' />"+
                            "<route hosts='**.R[*] **.B[*]' destination='224.0.0.0' netmask='240.0.0.0' interface='eth2' />"+
                            "</config>");
                addStaticRoutes = false;
                addDefaultRoutes = false;
                @display("p=75,43");
        }
        scenarioManager: ScenarioManager {
            @display("p=187,43");
        }
    connections:
        BBR[0].ethg++ <--> C <--> Stub1.ethg[0];
        BBR[numBBRouters-1].ethg++ <--> C <--> Stub2.ethg[0];
        for i=1..numBBRouters-1 {
            BBR[i].ethg++ <--> C <--> BBR[i-1].ethg++;
        }
        //BBR[0].ethg++ <--> C <--> BBR[numBBRouters-1].ethg++;
}