Network BGPNet

Package: inet.examples.bgpv4.BGPandOSPFSimple
File: examples/bgpv4/BGPandOSPFSimple/Network.ned

(no description)

BGPRouter BGPRouter OSPFRouter OSPFRouter StandardHost StandardHost IPv4NetworkConfigurator

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

Unassigned submodule parameters:

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

TODO @signal, @statistic

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

whether to display IP addresses on links

A.pcapRecorder.verbose bool false

whether to log packets on the module output

A.pcapRecorder.pcapFile string ""

the PCAP file to be written

A.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

A.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

A.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

A.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

A.pcapRecorder.alwaysFlush bool false

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

A.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

A.bgp.routingTableModule string
A.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
A.bgp.dataTransferMode string
B.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

B.pcapRecorder.verbose bool false

whether to log packets on the module output

B.pcapRecorder.pcapFile string ""

the PCAP file to be written

B.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

B.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

B.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

B.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

B.pcapRecorder.alwaysFlush bool false

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

B.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

B.bgp.routingTableModule string
B.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
B.bgp.dataTransferMode string
RA1.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

RA1.pcapRecorder.verbose bool false

whether to log packets on the module output

RA1.pcapRecorder.pcapFile string ""

the PCAP file to be written

RA1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

RA1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

RA1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

RA1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

RA1.pcapRecorder.alwaysFlush bool false

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

RA1.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

RA1.bgp.routingTableModule string
RA1.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
RA1.bgp.dataTransferMode string
RB1.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

RB1.pcapRecorder.verbose bool false

whether to log packets on the module output

RB1.pcapRecorder.pcapFile string ""

the PCAP file to be written

RB1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

RB1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

RB1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

RB1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

RB1.pcapRecorder.alwaysFlush bool false

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

RB1.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

RB1.bgp.routingTableModule string
RB1.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
RB1.bgp.dataTransferMode string
HA11.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

HA11.pcapRecorder.verbose bool false

whether to log packets on the module output

HA11.pcapRecorder.pcapFile string ""

the PCAP file to be written

HA11.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

HA11.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

HA11.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

HA11.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

HA11.pcapRecorder.alwaysFlush bool false

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

HA11.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

HA11.lo0.lo.mtu int 4470B
HB11.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

HB11.pcapRecorder.verbose bool false

whether to log packets on the module output

HB11.pcapRecorder.pcapFile string ""

the PCAP file to be written

HB11.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

HB11.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

HB11.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

HB11.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

HB11.pcapRecorder.alwaysFlush bool false

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

HB11.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

HB11.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.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 BGPNet
{
    types:
        channel LINK_100 extends ThruputMeteringChannel
        {
            parameters:
                delay = 0;
                datarate = 100Mbps;
                thruputDisplayFormat = "#N";
        }

    submodules:
        A: BGPRouter {
            parameters:
                @display("p=226,109");
            gates:
                pppg[2];
        }
        B: BGPRouter {
            parameters:
                @display("p=314,109");
            gates:
                pppg[2];
        }
        RA1: OSPFRouter {
            parameters:
                @display("p=134,105;i=device/router");
            gates:
                pppg[1];
                ethg[1];
        }
        RB1: OSPFRouter {
            parameters:
                @display("p=406,105;i=device/router");
            gates:
                pppg[1];
                ethg[1];
        }
        HA11: StandardHost {
            parameters:
                @display("p=42,98;i=device/pc");
            gates:
                ethg[1];
        }
        HB11: StandardHost {
            parameters:
                @display("p=494,98;i=device/pc");
            gates:
                ethg[1];
        }
        configurator: IPv4NetworkConfigurator {
            @display("p=275,23");
            config = xmldoc("IPv4Config.xml");
            //assignAddresses = false;
            //assignDisjunctSubnetAddresses = false;
            addStaticRoutes = false;
            addDefaultRoutes = false;
            addSubnetRoutes = false;
        }
    connections:
        //LAN A1 et A2
        HA11.ethg[0] <--> LINK_100 <--> RA1.ethg[0];

        //OSPF A
        RA1.pppg[0] <--> LINK_100 <--> A.pppg[1];

        //BGP
        A.pppg[0] <--> LINK_100 <--> B.pppg[0];

        //LAN B1 et B2
        HB11.ethg[0] <--> LINK_100 <--> RB1.ethg[0];

        //OSPF B
        RB1.pppg[0] <--> LINK_100 <--> B.pppg[1];
}