RIPInfinityCountTest

Package: inet.examples.rip.infinitycount

RIPInfinityCountTest

network

(no description)

Router Router Router Ipv4NetworkConfigurator ScenarioManager

Usage diagram

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Parameters

Name Type Default value Description
numRipRouters int

Properties

Name Value Description
isNetwork

Unassigned submodule parameters

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

TODO @signal, @statistic

cRouter.pcapRecorder.verbose bool true

whether to log packets on the module output

cRouter.pcapRecorder.pcapFile string ""

the PCAP file to be written

cRouter.pcapRecorder.fileFormat string "pcapng"
cRouter.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

cRouter.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

cRouter.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

space-separated list of sibling module names to listen on

cRouter.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

cRouter.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

cRouter.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

cRouter.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

cRouter.pcapRecorder.helpers string ""

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

cRouter.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

The path to the InterfaceTable module

cRouter.bgp.routingTableModule string
cRouter.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
bRouter.status.initialStatus string "UP"

TODO @signal, @statistic

bRouter.pcapRecorder.verbose bool true

whether to log packets on the module output

bRouter.pcapRecorder.pcapFile string ""

the PCAP file to be written

bRouter.pcapRecorder.fileFormat string "pcapng"
bRouter.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

bRouter.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

bRouter.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

space-separated list of sibling module names to listen on

bRouter.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

bRouter.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

bRouter.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

bRouter.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

bRouter.pcapRecorder.helpers string ""

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

bRouter.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

The path to the InterfaceTable module

bRouter.bgp.routingTableModule string
bRouter.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
rRouter.status.initialStatus string "UP"

TODO @signal, @statistic

rRouter.pcapRecorder.verbose bool true

whether to log packets on the module output

rRouter.pcapRecorder.pcapFile string ""

the PCAP file to be written

rRouter.pcapRecorder.fileFormat string "pcapng"
rRouter.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

rRouter.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

rRouter.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

space-separated list of sibling module names to listen on

rRouter.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

rRouter.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

rRouter.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

rRouter.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

rRouter.pcapRecorder.helpers string ""

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

rRouter.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

The path to the InterfaceTable module

rRouter.bgp.routingTableModule string
rRouter.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.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)

Source code

network RIPInfinityCountTest
{
    parameters:
        int numRipRouters;
    types:
        channel C extends DatarateChannel
        {
            datarate = 10Mbps;
            delay = 0.1us;
        }
    submodules:
        cRouter: Router {
            hasRip = true;
            @display("p=250,150");
        }
        bRouter: Router {
            hasRip = true;
            @display("p=400,150");
        }
        rRouter[numRipRouters]: Router {
            hasRip = true;
            @display("p=487,192,ri,100,100");
        }
        configurator: Ipv4NetworkConfigurator {
            @display("p=100,100;is=s");
            config = xml("<config>"
                            +"<interface among='cRouter bRouter' address='10.0.0.x' netmask='255.255.255.x' add-static-route='off'/>"
                            +"<interface among='bRouter rRouter[0]' address='10.1.0.x' netmask='255.255.255.x' add-static-route='off'/>"
                            +"<interface among='rRouter[*]' address='192.168.1.x' netmask='255.255.255.x' add-static-route='off'/>"
                        +"</config>");
        }
        scenarioManager: ScenarioManager {
            @display("p=100,200;is=s");
            script = xml("<scenario>"
                            +"<at t='60'>"
                                +"<disconnect src-module='rRouter[0]' src-gate='ethg[0]' />"
                            +"</at>"
                        +"</scenario>");
        }
    connections:
        bRouter.ethg++ <--> C <--> rRouter[0].ethg++;
        cRouter.ethg++ <--> C <--> bRouter.ethg++;        // ha ez a link van, akkor van infinity count
        for i=0..numRipRouters-1 {
            rRouter[i].ethg++ <--> C <--> rRouter[(i+1)%numRipRouters].ethg++;
        }
}

File: examples/rip/infinitycount/InfinityCount.ned