Network Hierarchical

Package: inet.examples.inet.hierarchical
File: examples/inet/hierarchical/Hierarchical.ned

(no description)

IPv4NetworkConfigurator Router Area

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
columns int 3
rows int 3

Properties:

Name Value Description
isNetwork

Unassigned submodule parameters:

Name Type Default value Description
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)

router.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

router.pcapRecorder.verbose bool false

whether to log packets on the module output

router.pcapRecorder.pcapFile string ""

the PCAP file to be written

router.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

router.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

router.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

router.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

router.pcapRecorder.alwaysFlush bool false

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

router.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

router.bgp.routingTableModule string
router.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
router.bgp.dataTransferMode string
area.lan.switch.status.initialStatus string "UP"

TODO @signal, @statistic

area.lan.switch.l2NodeConfigurator.interfaceTableModule string
area.lan.switch.l2NodeConfigurator.l2ConfiguratorModule string "l2NetworkConfigurator"

the absolute path to the L2NetworkConfigurator; use "" if there is no configurator

area.lan.switch.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

area.lan.switch.macTable.agingTime double
area.lan.switch.macTable.addressTableFile string
area.lan.switch.stp.helloTime double
area.lan.switch.stp.forwardDelay double
area.lan.switch.stp.maxAge double
area.lan.switch.stp.bridgePriority int
area.lan.switch.stp.visualize bool
area.lan.host.status.initialStatus string "UP"

TODO @signal, @statistic

area.lan.host.routingTable.forwarding bool
area.lan.host.routingTable.multicastForwarding bool
area.lan.host.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

area.lan.host.pcapRecorder.verbose bool false

whether to log packets on the module output

area.lan.host.pcapRecorder.pcapFile string ""

the PCAP file to be written

area.lan.host.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

area.lan.host.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

area.lan.host.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*] ext[*]"

space-separated list of sibling module names to listen on

area.lan.host.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

area.lan.host.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

area.lan.host.pcapRecorder.alwaysFlush bool false

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

area.lan.host.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

area.lan.host.lo0.lo.mtu int 4470B
area.router.status.initialStatus string "UP"

TODO @signal, @statistic

area.router.routingTable.forwarding bool
area.router.routingTable.multicastForwarding bool
area.router.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

area.router.pcapRecorder.verbose bool false

whether to log packets on the module output

area.router.pcapRecorder.pcapFile string ""

the PCAP file to be written

area.router.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

area.router.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

area.router.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

area.router.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

area.router.pcapRecorder.alwaysFlush bool false

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

area.router.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

area.router.lo0.lo.mtu int 4470B
area.router.bgp.interfaceTableModule string

The path to the InterfaceTable module

area.router.bgp.routingTableModule string
area.router.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
area.router.bgp.dataTransferMode string

Source code:

network Hierarchical
{
    parameters:
        int columns = default(3);
        int rows = default(3);
    types:
        module LAN
        {
            parameters:
                int numHosts = default(3);
                @display("i=misc/cloud;is=s");
            gates:
                inout ethg[];
            submodules:
                switch: EtherSwitch {
                    @display("is=s");
                }
                host[numHosts]: StandardHost {
                    @display("is=s");
                }
            connections:
                for i=0..numHosts-1 {
                    host[i].ethg++ <--> Eth100M <--> switch.ethg++;
                }
                for i=0..sizeof(ethg) - 1 {
                    switch.ethg++ <--> ethg++;
                }
        }

        module Area
        {
            parameters:
                int numAreas = default(3);
                @display("i=misc/cloud;is=s");
            gates:
                inout ethg[];
            submodules:
                lan[numAreas]: LAN;
                router[numAreas]: Router {
                    @display("is=s");
                }
            connections:
                for i=0..numAreas-1 {
                    router[i].ethg++ <--> Eth1G <--> router[(i+1)%numAreas].ethg++ if numAreas > 1;
                    router[i].ethg++ <--> Eth1G <--> lan[i].ethg++;
                }
                router[0].ethg++ <--> ethg++;
        }

    submodules:
        configurator: IPv4NetworkConfigurator {
            @display("p=37,31");
            config = xmldoc("hierarchical.xml");
        }
        router[columns*rows]: Router {
            @display("p=115,103,matrix,$columns;is=s");
        }
        area[columns*rows]: Area;
    connections:
        for i=0..rows-1, for j=0..columns-1 {
            router[i*columns+j].ethg++ <--> Eth100G <--> router[(i+1)*columns+j].ethg++ if i!=rows-1;
            router[i*columns+j].ethg++ <--> Eth100G <--> router[i*columns+j+1].ethg++ if j!=columns-1;
        }
        for i=0..rows*columns-1 {
            router[i].ethg++ <--> Eth100G <--> area[i].ethg++;
        }
}