Network OSPF_AreaTest

Package: inet.examples.ospfv2.areas
File: examples/ospfv2/areas/Areas.ned

(no description)

TwoNetsArea OneNetArea 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.

Properties:

Name Value Description
isNetwork

Unassigned submodule parameters:

Name Type Default value Description
Area1.R1.status.initialStatus string "UP"

TODO @signal, @statistic

Area1.R1.routingTable.forwarding bool
Area1.R1.routingTable.multicastForwarding bool
Area1.R1.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

Area1.R1.pcapRecorder.verbose bool false

whether to log packets on the module output

Area1.R1.pcapRecorder.pcapFile string ""

the PCAP file to be written

Area1.R1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

Area1.R1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

Area1.R1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

Area1.R1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

Area1.R1.pcapRecorder.alwaysFlush bool false

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

Area1.R1.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

Area1.R1.lo0.lo.mtu int 4470B
Area1.R1.bgp.interfaceTableModule string

The path to the InterfaceTable module

Area1.R1.bgp.routingTableModule string
Area1.R1.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
Area1.R1.bgp.dataTransferMode string
Area1.R3.status.initialStatus string "UP"

TODO @signal, @statistic

Area1.R3.routingTable.forwarding bool
Area1.R3.routingTable.multicastForwarding bool
Area1.R3.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

Area1.R3.pcapRecorder.verbose bool false

whether to log packets on the module output

Area1.R3.pcapRecorder.pcapFile string ""

the PCAP file to be written

Area1.R3.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

Area1.R3.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

Area1.R3.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

Area1.R3.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

Area1.R3.pcapRecorder.alwaysFlush bool false

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

Area1.R3.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

Area1.R3.lo0.lo.mtu int 4470B
Area1.R3.bgp.interfaceTableModule string

The path to the InterfaceTable module

Area1.R3.bgp.routingTableModule string
Area1.R3.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
Area1.R3.bgp.dataTransferMode string
Area1.H1.status.initialStatus string "UP"

TODO @signal, @statistic

Area1.H1.routingTable.forwarding bool
Area1.H1.routingTable.multicastForwarding bool
Area1.H1.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

Area1.H1.pcapRecorder.verbose bool false

whether to log packets on the module output

Area1.H1.pcapRecorder.pcapFile string ""

the PCAP file to be written

Area1.H1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

Area1.H1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

Area1.H1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

Area1.H1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

Area1.H1.pcapRecorder.alwaysFlush bool false

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

Area1.H1.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

Area1.H1.lo0.lo.mtu int 4470B
Area1.H2.status.initialStatus string "UP"

TODO @signal, @statistic

Area1.H2.routingTable.forwarding bool
Area1.H2.routingTable.multicastForwarding bool
Area1.H2.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

Area1.H2.pcapRecorder.verbose bool false

whether to log packets on the module output

Area1.H2.pcapRecorder.pcapFile string ""

the PCAP file to be written

Area1.H2.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

Area1.H2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

Area1.H2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

Area1.H2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

Area1.H2.pcapRecorder.alwaysFlush bool false

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

Area1.H2.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

Area1.H2.lo0.lo.mtu int 4470B
Area1.R2.status.initialStatus string "UP"

TODO @signal, @statistic

Area1.R2.routingTable.forwarding bool
Area1.R2.routingTable.multicastForwarding bool
Area1.R2.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

Area1.R2.pcapRecorder.verbose bool false

whether to log packets on the module output

Area1.R2.pcapRecorder.pcapFile string ""

the PCAP file to be written

Area1.R2.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

Area1.R2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

Area1.R2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

Area1.R2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

Area1.R2.pcapRecorder.alwaysFlush bool false

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

Area1.R2.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

Area1.R2.lo0.lo.mtu int 4470B
Area1.R2.bgp.interfaceTableModule string

The path to the InterfaceTable module

Area1.R2.bgp.routingTableModule string
Area1.R2.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
Area1.R2.bgp.dataTransferMode string
Area2.H3.status.initialStatus string "UP"

TODO @signal, @statistic

Area2.H3.routingTable.forwarding bool
Area2.H3.routingTable.multicastForwarding bool
Area2.H3.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

Area2.H3.pcapRecorder.verbose bool false

whether to log packets on the module output

Area2.H3.pcapRecorder.pcapFile string ""

the PCAP file to be written

Area2.H3.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

Area2.H3.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

Area2.H3.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

Area2.H3.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

Area2.H3.pcapRecorder.alwaysFlush bool false

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

Area2.H3.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

Area2.H3.lo0.lo.mtu int 4470B
Area2.R5.status.initialStatus string "UP"

TODO @signal, @statistic

Area2.R5.routingTable.forwarding bool
Area2.R5.routingTable.multicastForwarding bool
Area2.R5.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

Area2.R5.pcapRecorder.verbose bool false

whether to log packets on the module output

Area2.R5.pcapRecorder.pcapFile string ""

the PCAP file to be written

Area2.R5.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

Area2.R5.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

Area2.R5.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

Area2.R5.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

Area2.R5.pcapRecorder.alwaysFlush bool false

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

Area2.R5.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

Area2.R5.lo0.lo.mtu int 4470B
Area2.R5.bgp.interfaceTableModule string

The path to the InterfaceTable module

Area2.R5.bgp.routingTableModule string
Area2.R5.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
Area2.R5.bgp.dataTransferMode string
Area2.R4.status.initialStatus string "UP"

TODO @signal, @statistic

Area2.R4.routingTable.forwarding bool
Area2.R4.routingTable.multicastForwarding bool
Area2.R4.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

Area2.R4.pcapRecorder.verbose bool false

whether to log packets on the module output

Area2.R4.pcapRecorder.pcapFile string ""

the PCAP file to be written

Area2.R4.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

Area2.R4.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

Area2.R4.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

Area2.R4.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

Area2.R4.pcapRecorder.alwaysFlush bool false

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

Area2.R4.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

Area2.R4.lo0.lo.mtu int 4470B
Area2.R4.bgp.interfaceTableModule string

The path to the InterfaceTable module

Area2.R4.bgp.routingTableModule string
Area2.R4.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
Area2.R4.bgp.dataTransferMode string
configurator.minLinkWeight double 1E-3
configurator.assignAddresses bool true

assign IP addresses to all interfaces in the network

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 OSPF_AreaTest
{
    submodules:
        Area1: TwoNetsArea {
            parameters:
                @display("p=108,148;b=136,128");
            gates:
                ethg[1];
        }
        Area2: OneNetArea {
            parameters:
                @display("p=322,148;b=136,128");
            gates:
                ethg[1];
        }
        configurator: IPv4NetworkConfigurator {
            parameters:
                config = xml("<config>"+
                            "<interface among='Area1.*' address='192.168.11.x' netmask='255.255.255.x' />"+

                            "<interface among='Area2.*' address='192.168.22.x' netmask='255.255.255.x' />"+

                            "<interface hosts='Area1.*' towards='Area2.*' address='192.168.0.x' netmask='255.255.255.x' />"+
                            "<interface hosts='Area2.*' towards='Area1.*' address='192.168.0.x' netmask='255.255.255.x' />"+

                            "<route hosts='Area*.H*' destination='*' netmask='0.0.0.0' interface='eth0' />"+
                            "</config>");
                addStaticRoutes = false;
                addDefaultRoutes = false;
                assignDisjunctSubnetAddresses = false;
                @display("p=75,43");
        }
    connections:
        Area1.ethg[0] <--> ThruputMeteringChannel {  delay = 0.1us; datarate = 100 Mbps; thruputDisplayFormat = "#N"; } <--> Area2.ethg[0];
}