Network DynamicTest

Package: inet.examples.ospfv2.dynamictest
File: examples/ospfv2/dynamictest/DynamicTest.ned

(no description)

StandardHost OSPFRouter OSPFRouter OSPFRouter OSPFRouter StandardHost IPv4NetworkConfigurator ScenarioManager LifecycleController

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
display p=10,10;b=712,152

Unassigned submodule parameters:

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

TODO @signal, @statistic

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

whether to display IP addresses on links

H1.pcapRecorder.verbose bool false

whether to log packets on the module output

H1.pcapRecorder.pcapFile string ""

the PCAP file to be written

H1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

H1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

H1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

H1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

H1.pcapRecorder.alwaysFlush bool false

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

H1.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

TODO @signal, @statistic

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

whether to display IP addresses on links

R1.pcapRecorder.verbose bool false

whether to log packets on the module output

R1.pcapRecorder.pcapFile string ""

the PCAP file to be written

R1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

R1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

R1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

R1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

R1.pcapRecorder.alwaysFlush bool false

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

R1.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

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

TODO @signal, @statistic

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

whether to display IP addresses on links

RA.pcapRecorder.verbose bool false

whether to log packets on the module output

RA.pcapRecorder.pcapFile string ""

the PCAP file to be written

RA.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

RA.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

RA.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

RA.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

RA.pcapRecorder.alwaysFlush bool false

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

RA.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

RA.bgp.routingTableModule string
RA.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
RA.bgp.dataTransferMode string
RB.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

RB.pcapRecorder.verbose bool false

whether to log packets on the module output

RB.pcapRecorder.pcapFile string ""

the PCAP file to be written

RB.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

RB.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

RB.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

RB.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

RB.pcapRecorder.alwaysFlush bool false

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

RB.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

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

TODO @signal, @statistic

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

whether to display IP addresses on links

R2.pcapRecorder.verbose bool false

whether to log packets on the module output

R2.pcapRecorder.pcapFile string ""

the PCAP file to be written

R2.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

R2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

R2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

R2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

R2.pcapRecorder.alwaysFlush bool false

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

R2.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

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

TODO @signal, @statistic

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

whether to display IP addresses on links

H2.pcapRecorder.verbose bool false

whether to log packets on the module output

H2.pcapRecorder.pcapFile string ""

the PCAP file to be written

H2.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

H2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

H2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

H2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

H2.pcapRecorder.alwaysFlush bool false

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

H2.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

H2.lo0.lo.mtu int 4470B
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.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)

scenarioManager.script xml xml("")

Source code:

network DynamicTest
{
    parameters:
        @display("p=10,10;b=712,152");
    types:
        channel C extends ThruputMeteringChannel
        {
            delay = 0.1us;
            datarate = 100Mbps;
            thruputDisplayFormat = "#N";
        }
    submodules:
        H1: StandardHost {
            parameters:
                @display("p=50,123");
            gates:
                ethg[1];
        }
        R1: OSPFRouter {
            parameters:
                @display("p=192,123");
            gates:
                ethg[3];
        }
        RA: OSPFRouter {
            parameters:
                @display("p=351,42");
            gates:
                ethg[2];
        }
        RB: OSPFRouter {
            parameters:
                @display("p=351,194");
            gates:
                ethg[2];
        }
        R2: OSPFRouter {
            parameters:
                @display("p=486,123");
            gates:
                ethg[3];
        }
        H2: StandardHost {
            parameters:
                @display("p=666,123");
            gates:
                ethg[1];
        }
        configurator: IPv4NetworkConfigurator {
            parameters:
                @display("p=94,42");
                config = xml("<config>"
                        + "<interface among='H1 R1' address='192.168.1.x' netmask='255.255.255.x' />"
                        + "<interface among='H2 R2' address='192.168.2.x' netmask='255.255.255.x' />"
                        + "<interface among='R*' address='10.0.0.x' netmask='255.255.255.x' />"
                        + "<multicast-group hosts='R*' address='224.0.0.5 224.0.0.6' />"
                        + "<route hosts='H1' destination='*' gateway='R1'/>"
                        + "<route hosts='H2' destination='*' gateway='R2'/>"
                        + "<route hosts='R*' destination='224.0.0.0' netmask='240.0.0.0' interface='eth0'/>"
                        + "<route hosts='R*' destination='224.0.0.0' netmask='240.0.0.0' interface='eth1'/>"
                        + "<route hosts='R1 R2' destination='224.0.0.0' netmask='240.0.0.0' interface='eth2'/>"
                        + "</config>");
        }
        scenarioManager: ScenarioManager {
            @display("p=594,50");
        }
        lifecycleController: LifecycleController {
            @display("p=94,194");
        }
    connections:
        H1.ethg[0] <--> C <--> R1.ethg[0];
        R1.ethg[1] <--> C <--> RA.ethg[0];
        R1.ethg[2] <--> C <--> RB.ethg[0];
        RA.ethg[1] <--> C <--> R2.ethg[1];
        RB.ethg[1] <--> C <--> R2.ethg[2];
        R2.ethg[0] <--> C <--> H2.ethg[0];
}