Network BGPTest

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

(no description)

BGPRouterEx BGPRouterEx 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.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

A.routingTable.interfaceTableModule string

The path to the InterfaceTable module

A.routingTable.netmaskRoutes string "*"

maintain netmask routes for interfaces

A.routingTable.multicastForwarding bool false

turns multicast forwarding on/off

A.routingTable.useAdminDist bool false

Use Cisco like administrative distances

A.routingTable.routingFile string ""

routing table file name

A.ospf.interfaceTableModule string
A.ospf.routingTableModule string
A.ospf.ospfConfig xml

xml containing the full OSPF AS configuration

A.ospf.helloInterval int 10s

default values for attributes of interface xml entries:

A.ospf.pollInterval int 120s
A.ospf.routerDeadInterval int 40s
A.ospf.retransmissionInterval int 5s
A.ospf.interfaceOutputCost int 1
A.ospf.interfaceTransmissionDelay int 1
A.ospf.routerPriority int 1
A.ospf.authenticationType string "NullType"

SimplePasswordType|CrytographicType|NullType

A.ospf.authenticationKey string "0x00"

0xnn..nn

A.ospf.linkCost int 1
A.ospf.RFC1583Compatible bool false
A.ospf.areaID string ""
A.ospf.externalInterfaceOutputCost int 1
A.ospf.externalInterfaceOutputType string ""

Type1|Type2

A.bgp.interfaceTableModule string

The path to the InterfaceTable module

A.bgp.routingTableModule string
A.bgp.bgpConfig xml
A.bgp.dataTransferMode string "bytecount"
A.snifferIn.config xml

Configuration file

A.snifferOut.config xml

Configuration file

A.networkLayer.configurator.interfaceTableModule string

The path to the InterfaceTable module

A.networkLayer.configurator.networkConfiguratorModule string "configurator"

TODO: eventually rename to networkConfigurator

A.networkLayer.configurator.configureRoutingTable bool true

add routing entries to routing table (uses the configurator module)

A.networkLayer.ip.interfaceTableModule string

The path to the InterfaceTable module

A.networkLayer.ip.routingTableModule string
A.networkLayer.ip.arpModule string
A.networkLayer.ip.icmpModule string
A.networkLayer.ip.procDelay double 0s
A.networkLayer.ip.timeToLive int 32
A.networkLayer.ip.multicastTimeToLive int 32
A.networkLayer.ip.fragmentTimeout double 60s
A.networkLayer.ip.forceBroadcast bool false
A.networkLayer.icmp.interfaceTableModule string

The path to the InterfaceTable module

A.networkLayer.icmp.routingTableModule string
B.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

B.routingTable.interfaceTableModule string

The path to the InterfaceTable module

B.routingTable.netmaskRoutes string "*"

maintain netmask routes for interfaces

B.routingTable.multicastForwarding bool false

turns multicast forwarding on/off

B.routingTable.useAdminDist bool false

Use Cisco like administrative distances

B.routingTable.routingFile string ""

routing table file name

B.ospf.interfaceTableModule string
B.ospf.routingTableModule string
B.ospf.ospfConfig xml

xml containing the full OSPF AS configuration

B.ospf.helloInterval int 10s

default values for attributes of interface xml entries:

B.ospf.pollInterval int 120s
B.ospf.routerDeadInterval int 40s
B.ospf.retransmissionInterval int 5s
B.ospf.interfaceOutputCost int 1
B.ospf.interfaceTransmissionDelay int 1
B.ospf.routerPriority int 1
B.ospf.authenticationType string "NullType"

SimplePasswordType|CrytographicType|NullType

B.ospf.authenticationKey string "0x00"

0xnn..nn

B.ospf.linkCost int 1
B.ospf.RFC1583Compatible bool false
B.ospf.areaID string ""
B.ospf.externalInterfaceOutputCost int 1
B.ospf.externalInterfaceOutputType string ""

Type1|Type2

B.bgp.interfaceTableModule string

The path to the InterfaceTable module

B.bgp.routingTableModule string
B.bgp.bgpConfig xml
B.bgp.dataTransferMode string "bytecount"
B.snifferIn.config xml

Configuration file

B.snifferOut.config xml

Configuration file

B.networkLayer.configurator.interfaceTableModule string

The path to the InterfaceTable module

B.networkLayer.configurator.networkConfiguratorModule string "configurator"

TODO: eventually rename to networkConfigurator

B.networkLayer.configurator.configureRoutingTable bool true

add routing entries to routing table (uses the configurator module)

B.networkLayer.ip.interfaceTableModule string

The path to the InterfaceTable module

B.networkLayer.ip.routingTableModule string
B.networkLayer.ip.arpModule string
B.networkLayer.ip.icmpModule string
B.networkLayer.ip.procDelay double 0s
B.networkLayer.ip.timeToLive int 32
B.networkLayer.ip.multicastTimeToLive int 32
B.networkLayer.ip.fragmentTimeout double 60s
B.networkLayer.ip.forceBroadcast bool false
B.networkLayer.icmp.interfaceTableModule string

The path to the InterfaceTable module

B.networkLayer.icmp.routingTableModule string
H1.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

H1.pcapRecorder.verbose bool false

whether to log packets on the module output

H1.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

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

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

H1.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

H1.lo0.lo.mtu int 4470B
H2.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

H2.pcapRecorder.verbose bool false

whether to log packets on the module output

H2.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

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

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

H2.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

H2.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 BGPTest
{
    types:
        channel LINK_100 extends ThruputMeteringChannel
        {
            parameters:
                delay = 0;
                datarate = 100Mbps;
                thruputDisplayFormat = "#N";
        }
    submodules:
        A: BGPRouterEx {
            parameters:
                @display("p=160,92");
            gates:
                pppg[1];
                ethg[1];
        }
        B: BGPRouterEx {
            parameters:
                @display("p=256,92");
            gates:
                pppg[1];
                ethg[1];
        }
        H1: StandardHost {
            parameters:
                @display("p=56,92;i=device/laptop");
            gates:
                ethg[1];
        }
        H2: StandardHost {
            parameters:
                @display("p=364,92;i=device/laptop");
            gates:
                ethg[1];
        }
        configurator: IPv4NetworkConfigurator {
            @display("p=208,23");
            config = xmldoc("IPv4Config.xml");
            //assignAddresses = false;
            //assignDisjunctSubnetAddresses = false;
            addStaticRoutes = false;
            addDefaultRoutes = false;
            addSubnetRoutes = false;
        }
    connections:
        H1.ethg[0] <--> LINK_100 <--> A.ethg[0];
        A.pppg[0] <--> LINK_100 <--> B.pppg[0];
        B.ethg[0] <--> LINK_100 <--> H2.ethg[0];
}