Network DiffservNetwork

Package: inet.examples.diffserv.onedomain
File: examples/diffserv/onedomain/DiffservNetwork.ned

(no description)

StandardHost StandardHost Router Router Router Router Router Router StandardHost StandardHost StandardHost StandardHost 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.

Parameters:

Name Type Default value Description
edgeDatarate double
coreDatarate double

Properties:

Name Value Description
isNetwork

Unassigned submodule parameters:

Name Type Default value Description
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
R4.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

R4.pcapRecorder.verbose bool false

whether to log packets on the module output

R4.pcapRecorder.pcapFile string ""

the PCAP file to be written

R4.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

R4.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

R4.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

R4.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

R4.pcapRecorder.alwaysFlush bool false

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

R4.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

R4.bgp.routingTableModule string
R4.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
R4.bgp.dataTransferMode string
R2.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

R2.pcapRecorder.verbose bool false

whether to log packets on the module output

R2.pcapRecorder.pcapFile string ""

the PCAP file to be written

R2.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

R2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

R2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

R2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

R2.pcapRecorder.alwaysFlush bool false

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

R2.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

R2.bgp.routingTableModule string
R2.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
R2.bgp.dataTransferMode string
R1.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

R1.pcapRecorder.verbose bool false

whether to log packets on the module output

R1.pcapRecorder.pcapFile string ""

the PCAP file to be written

R1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

R1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

R1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

R1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

R1.pcapRecorder.alwaysFlush bool false

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

R1.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

R1.bgp.routingTableModule string
R1.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
R1.bgp.dataTransferMode string
R3.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

R3.pcapRecorder.verbose bool false

whether to log packets on the module output

R3.pcapRecorder.pcapFile string ""

the PCAP file to be written

R3.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

R3.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

R3.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

R3.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

R3.pcapRecorder.alwaysFlush bool false

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

R3.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

R3.bgp.routingTableModule string
R3.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
R3.bgp.dataTransferMode string
R5.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

R5.pcapRecorder.verbose bool false

whether to log packets on the module output

R5.pcapRecorder.pcapFile string ""

the PCAP file to be written

R5.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

R5.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

R5.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

R5.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

R5.pcapRecorder.alwaysFlush bool false

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

R5.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

R5.bgp.routingTableModule string
R5.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
R5.bgp.dataTransferMode string
R0.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

R0.pcapRecorder.verbose bool false

whether to log packets on the module output

R0.pcapRecorder.pcapFile string ""

the PCAP file to be written

R0.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

R0.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

R0.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

R0.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

R0.pcapRecorder.alwaysFlush bool false

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

R0.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

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

The path to the InterfaceTable module

R0.bgp.routingTableModule string
R0.bgp.ospfRoutingModule string hasOSPF ? "^.ospf" : ""
R0.bgp.dataTransferMode string
H5.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

H5.pcapRecorder.verbose bool false

whether to log packets on the module output

H5.pcapRecorder.pcapFile string ""

the PCAP file to be written

H5.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

H5.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

H5.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

H5.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

H5.pcapRecorder.alwaysFlush bool false

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

H5.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

H5.lo0.lo.mtu int 4470B
H6.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

H6.pcapRecorder.verbose bool false

whether to log packets on the module output

H6.pcapRecorder.pcapFile string ""

the PCAP file to be written

H6.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

H6.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

H6.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

H6.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

H6.pcapRecorder.alwaysFlush bool false

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

H6.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

H6.lo0.lo.mtu int 4470B
H7.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

H7.pcapRecorder.verbose bool false

whether to log packets on the module output

H7.pcapRecorder.pcapFile string ""

the PCAP file to be written

H7.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

H7.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

H7.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

H7.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

H7.pcapRecorder.alwaysFlush bool false

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

H7.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

H7.lo0.lo.mtu int 4470B
H8.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

H8.pcapRecorder.verbose bool false

whether to log packets on the module output

H8.pcapRecorder.pcapFile string ""

the PCAP file to be written

H8.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

H8.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

H8.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

H8.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

H8.pcapRecorder.alwaysFlush bool false

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

H8.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

H8.lo0.lo.mtu int 4470B
H3.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

H3.pcapRecorder.verbose bool false

whether to log packets on the module output

H3.pcapRecorder.pcapFile string ""

the PCAP file to be written

H3.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

H3.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

H3.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

H3.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

H3.pcapRecorder.alwaysFlush bool false

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

H3.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

H3.lo0.lo.mtu int 4470B
H4.status.initialStatus string "UP"

TODO @signal, @statistic

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

whether to display IP addresses on links

H4.pcapRecorder.verbose bool false

whether to log packets on the module output

H4.pcapRecorder.pcapFile string ""

the PCAP file to be written

H4.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

H4.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

H4.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

H4.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

H4.pcapRecorder.alwaysFlush bool false

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

H4.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

H4.lo0.lo.mtu int 4470B
configurator.minLinkWeight double 1E-3
configurator.config xml xml("")

XML configuration parameters for IP address assignment and adding manual routes

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 DiffservNetwork
{
    parameters:
        double edgeDatarate @unit(bps);
        double coreDatarate @unit(bps);
    types:
        channel edgeline extends ThruputMeteringChannel
        {
            delay = 2ms;
            datarate = edgeDatarate;
            thruputDisplayFormat = "b B U";
        }
        channel coreline extends ThruputMeteringChannel
        {
            delay = 2ms;
            datarate = coreDatarate;
            thruputDisplayFormat = "b B U";
        }
        channel ethernetline extends ThruputMeteringChannel
        {
            delay = 0.1us;
            datarate = 100Mbps;
            thruputDisplayFormat = "b B U";
        }
    submodules:
        H1: StandardHost {
            @display("p=46,43");
        }
        H2: StandardHost {
            @display("p=46,143");
        }
        R4: Router {
            @display("p=473,108");
        }
        R2: Router {
            @display("p=237,178");
        }
        R1: Router {
            @display("p=156,263");
        }
        R3: Router {
            @display("p=390,178");
        }
        R5: Router {
            @display("p=473,263");
        }
        R0: Router {
            @display("p=156,108");
        }
        H5: StandardHost {
            @display("p=570,59");
        }
        H6: StandardHost {
            @display("p=570,150");
        }
        H7: StandardHost {
            @display("p=571,250");
        }
        H8: StandardHost {
            @display("p=571,350");
        }
        H3: StandardHost {
            @display("p=41,240");
        }
        H4: StandardHost {
            @display("p=42,346");
        }
        configurator: IPv4NetworkConfigurator {
            @display("p=300,24");
        }
    connections:
        H1.ethg++ <--> ethernetline <--> R0.ethg++;
        H2.ethg++ <--> ethernetline <--> R0.ethg++;
        H3.ethg++ <--> ethernetline <--> R1.ethg++;
        H4.ethg++ <--> ethernetline <--> R1.ethg++;
        H5.ethg++ <--> ethernetline <--> R4.ethg++;
        H6.ethg++ <--> ethernetline <--> R4.ethg++;
        H7.ethg++ <--> ethernetline <--> R5.ethg++;
        H8.ethg++ <--> ethernetline <--> R5.ethg++;
        R0.pppg++ <--> edgeline <--> R2.pppg++;
        R1.pppg++ <--> edgeline <--> R2.pppg++;
        R2.pppg++ <--> coreline <--> R3.pppg++;
        R4.pppg++ <--> coreline <--> R3.pppg++;
        R5.pppg++ <--> coreline <--> R3.pppg++;
}