DynamicTest

Package: inet.examples.ospfv2.dynamictest

DynamicTest

network

(no description)

StandardHost OspfRouter OspfRouter OspfRouter OspfRouter StandardHost Ipv4NetworkConfigurator ScenarioManager

Usage diagram

The following diagram shows usage relationships between types. 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.pcapRecorder.verbose bool true

whether to log packets on the module output

H1.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

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

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

H1.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

H1.pcapRecorder.helpers string ""

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

H1.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

H1.at.forwardServiceRegistration bool true
H1.at.forwardProtocolRegistration bool true
R1.status.initialStatus string "UP"

TODO @signal, @statistic

R1.pcapRecorder.verbose bool true

whether to log packets on the module output

R1.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

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

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

R1.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

R1.pcapRecorder.helpers string ""

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

R1.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

The path to the InterfaceTable module

R1.bgp.routingTableModule string
R1.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
RA.status.initialStatus string "UP"

TODO @signal, @statistic

RA.pcapRecorder.verbose bool true

whether to log packets on the module output

RA.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

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

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

RA.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

RA.pcapRecorder.helpers string ""

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

RA.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

The path to the InterfaceTable module

RA.bgp.routingTableModule string
RA.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
RB.status.initialStatus string "UP"

TODO @signal, @statistic

RB.pcapRecorder.verbose bool true

whether to log packets on the module output

RB.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

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

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

RB.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

RB.pcapRecorder.helpers string ""

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

RB.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

The path to the InterfaceTable module

RB.bgp.routingTableModule string
RB.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
R2.status.initialStatus string "UP"

TODO @signal, @statistic

R2.pcapRecorder.verbose bool true

whether to log packets on the module output

R2.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

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

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

R2.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

R2.pcapRecorder.helpers string ""

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

R2.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

The path to the InterfaceTable module

R2.bgp.routingTableModule string
R2.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
H2.status.initialStatus string "UP"

TODO @signal, @statistic

H2.pcapRecorder.verbose bool true

whether to log packets on the module output

H2.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

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

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

H2.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

H2.pcapRecorder.helpers string ""

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

H2.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

H2.at.forwardServiceRegistration bool true
H2.at.forwardProtocolRegistration bool true
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.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.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)

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=250,200");
            gates:
                ethg[1];
        }
        R1: OspfRouter {
            parameters:
                @display("p=400,200");
            gates:
                ethg[3];
        }
        RA: OspfRouter {
            parameters:
                @display("p=550,100");
            gates:
                ethg[2];
        }
        RB: OspfRouter {
            parameters:
                @display("p=550,300");
            gates:
                ethg[2];
        }
        R2: OspfRouter {
            parameters:
                @display("p=700,200");
            gates:
                ethg[3];
        }
        H2: StandardHost {
            parameters:
                @display("p=850,200");
            gates:
                ethg[1];
        }
        configurator: Ipv4NetworkConfigurator {
            parameters:
                @display("p=100,100;is=s");
                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=100,200;is=s");
        }
    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];
}

File: examples/ospfv2/dynamictest/DynamicTest.ned