BgpNetwork

Package: inet.examples.bgpv4.BgpOpen

BgpNetwork

network

(no description)

IntegratedCanvasVisualizer Ipv4NetworkConfigurator BGPRouterSimple BGPRouterSimple

Usage diagram

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

Properties

Name Value Description
isNetwork

Unassigned submodule parameters

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

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.bgp.interfaceTableModule string
A.bgp.routingTableModule string
A.bgp.startupTime double 0s

delay before starting BGP

A.bgp.bgpConfig xml
A.bgp.ExternalPeerStartDelayOffset double 0.5s
A.bgp.redistributeRip bool false

redistribute routes learned by RIP into BGP

A.bgp.redistributeOspf string ""

redistribute routes learned by OSPF into BGP (O IA E1 E2)

A.bgp.redistributeInternal bool false

redistribute BGP routes into OSPF (as external routes)

A.bgp.nextHopSelf bool false
A.bgp.localPreference int 100
A.bgp.connectedCheck bool true
A.bgp.ebgpMultihop int 1
A.snifferIn.config xml

Configuration file

A.snifferOut.config xml

Configuration file

A.tn.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

A.tn.forwardServiceRegistration bool true
A.tn.forwardProtocolRegistration bool true
A.ipv4.routingTable.interfaceTableModule string

The path to the InterfaceTable module

A.ipv4.routingTable.routerId string "auto"

for routers, the router id using IPv4 address dotted notation; specify "auto" to select the highest interface address; should be left empty ("") for hosts

A.ipv4.routingTable.netmaskRoutes string "*"

maintain netmask routes for interfaces

A.ipv4.routingTable.forwarding bool true

turns IP forwarding on/off

A.ipv4.routingTable.multicastForwarding bool false

turns multicast forwarding on/off

A.ipv4.routingTable.useAdminDist bool false

Use Cisco like administrative distances

A.ipv4.routingTable.routingFile string ""

routing table file name

A.ipv4.natTable.networkProtocolModule string "^.ip"
A.ipv4.natTable.config xml xml("")

XML configuration parameters for network address translation

A.ipv4.up.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

A.ipv4.up.forwardServiceRegistration bool true
A.ipv4.up.forwardProtocolRegistration bool true
A.ipv4.icmp.interfaceTableModule string

The path to the InterfaceTable module

A.ipv4.icmp.routingTableModule string
A.ipv4.icmp.crcMode string "declared"
A.ipv4.icmp.quoteLength int 8B

Number of bytes from original packet to quote in ICMP reply

A.ipv4.mp.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

A.ipv4.mp.forwardServiceRegistration bool true
A.ipv4.mp.forwardProtocolRegistration bool true
A.ipv4.lp.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

A.ipv4.lp.forwardServiceRegistration bool true
A.ipv4.lp.forwardProtocolRegistration bool true
A.nl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

A.nl.forwardServiceRegistration bool true
A.nl.forwardProtocolRegistration bool true
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.bgp.interfaceTableModule string
B.bgp.routingTableModule string
B.bgp.startupTime double 0s

delay before starting BGP

B.bgp.bgpConfig xml
B.bgp.ExternalPeerStartDelayOffset double 0.5s
B.bgp.redistributeRip bool false

redistribute routes learned by RIP into BGP

B.bgp.redistributeOspf string ""

redistribute routes learned by OSPF into BGP (O IA E1 E2)

B.bgp.redistributeInternal bool false

redistribute BGP routes into OSPF (as external routes)

B.bgp.nextHopSelf bool false
B.bgp.localPreference int 100
B.bgp.connectedCheck bool true
B.bgp.ebgpMultihop int 1
B.snifferIn.config xml

Configuration file

B.snifferOut.config xml

Configuration file

B.tn.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

B.tn.forwardServiceRegistration bool true
B.tn.forwardProtocolRegistration bool true
B.ipv4.routingTable.interfaceTableModule string

The path to the InterfaceTable module

B.ipv4.routingTable.routerId string "auto"

for routers, the router id using IPv4 address dotted notation; specify "auto" to select the highest interface address; should be left empty ("") for hosts

B.ipv4.routingTable.netmaskRoutes string "*"

maintain netmask routes for interfaces

B.ipv4.routingTable.forwarding bool true

turns IP forwarding on/off

B.ipv4.routingTable.multicastForwarding bool false

turns multicast forwarding on/off

B.ipv4.routingTable.useAdminDist bool false

Use Cisco like administrative distances

B.ipv4.routingTable.routingFile string ""

routing table file name

B.ipv4.natTable.networkProtocolModule string "^.ip"
B.ipv4.natTable.config xml xml("")

XML configuration parameters for network address translation

B.ipv4.up.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

B.ipv4.up.forwardServiceRegistration bool true
B.ipv4.up.forwardProtocolRegistration bool true
B.ipv4.icmp.interfaceTableModule string

The path to the InterfaceTable module

B.ipv4.icmp.routingTableModule string
B.ipv4.icmp.crcMode string "declared"
B.ipv4.icmp.quoteLength int 8B

Number of bytes from original packet to quote in ICMP reply

B.ipv4.mp.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

B.ipv4.mp.forwardServiceRegistration bool true
B.ipv4.mp.forwardProtocolRegistration bool true
B.ipv4.lp.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

B.ipv4.lp.forwardServiceRegistration bool true
B.ipv4.lp.forwardProtocolRegistration bool true
B.nl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

B.nl.forwardServiceRegistration bool true
B.nl.forwardProtocolRegistration bool true

Source code

network BgpNetwork
{
    types:
        channel LINK_100 extends ThruputMeteringChannel
        {
            parameters:
                delay = 50us;
                datarate = 100Mbps;
                displayAsTooltip = true;
                thruputDisplayFormat = "#N";
        }
    submodules:
        visualizer: IntegratedCanvasVisualizer {
            parameters:
                @display("p=100,100;is=s");
        }
        configurator: Ipv4NetworkConfigurator {
            parameters:
                @display("p=100,200;is=s");
                config = xmldoc("IPv4Config.xml");
                addStaticRoutes = false;
                addDefaultRoutes = false;
                addSubnetRoutes = false;
        }
        A: BGPRouterSimple {
            parameters:
                @display("p=250,100");
        }
        B: BGPRouterSimple {
            parameters:
                @display("p=400,100");
        }
    connections:
        A.pppg++ <--> LINK_100 <--> B.pppg++;
}

File: examples/bgpv4/BgpOpen/Network.ned