Network RIPInfinityCountTest

Package: inet.examples.rip.infinitycount
File: examples/rip/infinitycount/InfinityCount.ned

(no description)

Router Router Router 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
numRipRouters int

Properties:

Name Value Description
isNetwork

Unassigned submodule parameters:

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

TODO @signal, @statistic

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

whether to display IP addresses on links

cRouter.pcapRecorder.verbose bool false

whether to log packets on the module output

cRouter.pcapRecorder.pcapFile string ""

the PCAP file to be written

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[*] ext[*]"

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.alwaysFlush bool false

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

cRouter.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

cRouter.bgp.routingTableModule string
cRouter.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
cRouter.bgp.dataTransferMode string
bRouter.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

bRouter.pcapRecorder.verbose bool false

whether to log packets on the module output

bRouter.pcapRecorder.pcapFile string ""

the PCAP file to be written

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[*] ext[*]"

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.alwaysFlush bool false

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

bRouter.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

bRouter.bgp.routingTableModule string
bRouter.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
bRouter.bgp.dataTransferMode string
rRouter.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

rRouter.pcapRecorder.verbose bool false

whether to log packets on the module output

rRouter.pcapRecorder.pcapFile string ""

the PCAP file to be written

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[*] ext[*]"

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.alwaysFlush bool false

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

rRouter.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

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

Source code:

network RIPInfinityCountTest
{
    parameters:
        int numRipRouters;
    types:
        channel C extends DatarateChannel
        {
            datarate = 10Mbps;
            delay = 0.1us;
        }
    submodules:
        cRouter: Router {
            hasRIP = true;
            @display("p=237,192");
        }
        bRouter: Router {
            hasRIP = true;
            @display("p=337,192");
        }
        rRouter[numRipRouters]: Router {
            hasRIP = true;
            @display("p=487,192,ri,100,100");
        }
        configurator: IPv4NetworkConfigurator {
            @display("p=59,31");
            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=59,86");
            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++;
        }
}