RedMarkerNetwork

Package: inet.examples.inet.redmarker

RedMarkerNetwork

network

(no description)

Router Router Ipv4NetworkConfigurator StandardHost StandardHost

Usage diagram

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

Properties

Name Value Description
isNetwork
display bgb=4166.738,3051.564,white;bgl=8

Unassigned submodule parameters

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

TODO @signal, @statistic

routerCore1.pcapRecorder.verbose bool true

whether to log packets on the module output

routerCore1.pcapRecorder.pcapFile string ""

the PCAP file to be written

routerCore1.pcapRecorder.fileFormat string "pcapng"
routerCore1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

routerCore1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

routerCore1.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

space-separated list of sibling module names to listen on

routerCore1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

routerCore1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

routerCore1.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

space-separated list of protocol names as defined in the Protocol class

routerCore1.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

routerCore1.pcapRecorder.helpers string ""

usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

routerCore1.pcapRecorder.alwaysFlush bool false

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

routerCore1.pcapRecorder.displayStringTextFormat string "rec: %n pks"
routerCore1.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

routerCore1.cb.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

routerCore1.cb.forwardServiceRegistration bool true
routerCore1.cb.forwardProtocolRegistration bool true
routerCore1.bl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

routerCore1.bl.forwardServiceRegistration bool true
routerCore1.bl.forwardProtocolRegistration bool true
routerCore1.li.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

routerCore1.li.forwardServiceRegistration bool true
routerCore1.li.forwardProtocolRegistration bool true
routerCore1.eth.bitrate double
routerCore1.nl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

routerCore1.nl.forwardServiceRegistration bool true
routerCore1.nl.forwardProtocolRegistration bool true
routerCore1.tn.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

routerCore1.tn.forwardServiceRegistration bool true
routerCore1.tn.forwardProtocolRegistration bool true
routerCore1.at.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

routerCore1.at.forwardServiceRegistration bool true
routerCore1.at.forwardProtocolRegistration bool true
routerCore1.bgp.interfaceTableModule string

The path to the InterfaceTable module

routerCore1.bgp.routingTableModule string
routerCore1.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
routerCore2.status.initialStatus string "UP"

TODO @signal, @statistic

routerCore2.pcapRecorder.verbose bool true

whether to log packets on the module output

routerCore2.pcapRecorder.pcapFile string ""

the PCAP file to be written

routerCore2.pcapRecorder.fileFormat string "pcapng"
routerCore2.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

routerCore2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

routerCore2.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

space-separated list of sibling module names to listen on

routerCore2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

routerCore2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

routerCore2.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

space-separated list of protocol names as defined in the Protocol class

routerCore2.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

routerCore2.pcapRecorder.helpers string ""

usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

routerCore2.pcapRecorder.alwaysFlush bool false

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

routerCore2.pcapRecorder.displayStringTextFormat string "rec: %n pks"
routerCore2.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

routerCore2.cb.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

routerCore2.cb.forwardServiceRegistration bool true
routerCore2.cb.forwardProtocolRegistration bool true
routerCore2.bl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

routerCore2.bl.forwardServiceRegistration bool true
routerCore2.bl.forwardProtocolRegistration bool true
routerCore2.li.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

routerCore2.li.forwardServiceRegistration bool true
routerCore2.li.forwardProtocolRegistration bool true
routerCore2.eth.bitrate double
routerCore2.nl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

routerCore2.nl.forwardServiceRegistration bool true
routerCore2.nl.forwardProtocolRegistration bool true
routerCore2.tn.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

routerCore2.tn.forwardServiceRegistration bool true
routerCore2.tn.forwardProtocolRegistration bool true
routerCore2.at.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

routerCore2.at.forwardServiceRegistration bool true
routerCore2.at.forwardProtocolRegistration bool true
routerCore2.bgp.interfaceTableModule string

The path to the InterfaceTable module

routerCore2.bgp.routingTableModule string
routerCore2.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
configurator.minLinkWeight double 1E-3
configurator.configureIsolatedNetworksSeparatly bool false
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.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.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.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)

sender1.status.initialStatus string "UP"

TODO @signal, @statistic

sender1.pcapRecorder.verbose bool true

whether to log packets on the module output

sender1.pcapRecorder.pcapFile string ""

the PCAP file to be written

sender1.pcapRecorder.fileFormat string "pcapng"
sender1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

sender1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

sender1.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

space-separated list of sibling module names to listen on

sender1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

sender1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

sender1.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

space-separated list of protocol names as defined in the Protocol class

sender1.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

sender1.pcapRecorder.helpers string ""

usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

sender1.pcapRecorder.alwaysFlush bool false

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

sender1.pcapRecorder.displayStringTextFormat string "rec: %n pks"
sender1.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

sender1.cb.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

sender1.cb.forwardServiceRegistration bool true
sender1.cb.forwardProtocolRegistration bool true
sender1.bl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

sender1.bl.forwardServiceRegistration bool true
sender1.bl.forwardProtocolRegistration bool true
sender1.li.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

sender1.li.forwardServiceRegistration bool true
sender1.li.forwardProtocolRegistration bool true
sender1.eth.bitrate double
sender1.nl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

sender1.nl.forwardServiceRegistration bool true
sender1.nl.forwardProtocolRegistration bool true
sender1.tn.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

sender1.tn.forwardServiceRegistration bool true
sender1.tn.forwardProtocolRegistration bool true
sender1.at.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

sender1.at.forwardServiceRegistration bool true
sender1.at.forwardProtocolRegistration bool true
receiver1.status.initialStatus string "UP"

TODO @signal, @statistic

receiver1.pcapRecorder.verbose bool true

whether to log packets on the module output

receiver1.pcapRecorder.pcapFile string ""

the PCAP file to be written

receiver1.pcapRecorder.fileFormat string "pcapng"
receiver1.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

receiver1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

receiver1.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

space-separated list of sibling module names to listen on

receiver1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

receiver1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

receiver1.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

space-separated list of protocol names as defined in the Protocol class

receiver1.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

receiver1.pcapRecorder.helpers string ""

usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

receiver1.pcapRecorder.alwaysFlush bool false

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

receiver1.pcapRecorder.displayStringTextFormat string "rec: %n pks"
receiver1.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

receiver1.cb.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

receiver1.cb.forwardServiceRegistration bool true
receiver1.cb.forwardProtocolRegistration bool true
receiver1.bl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

receiver1.bl.forwardServiceRegistration bool true
receiver1.bl.forwardProtocolRegistration bool true
receiver1.li.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

receiver1.li.forwardServiceRegistration bool true
receiver1.li.forwardProtocolRegistration bool true
receiver1.eth.bitrate double
receiver1.nl.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

receiver1.nl.forwardServiceRegistration bool true
receiver1.nl.forwardProtocolRegistration bool true
receiver1.tn.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

receiver1.tn.forwardServiceRegistration bool true
receiver1.tn.forwardProtocolRegistration bool true
receiver1.at.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

receiver1.at.forwardServiceRegistration bool true
receiver1.at.forwardProtocolRegistration bool true

Source code

network RedMarkerNetwork
{
    parameters:
        @display("bgb=4166.738,3051.564,white;bgl=8");

    submodules:


        routerCore1: Router {
            parameters:
                @display("p=1026.4801,995.93005;i=abstract/router");

        }
        routerCore2: Router {
            parameters:
                @display("p=2945.02,995.93005;i=abstract/router");
        }

        configurator: Ipv4NetworkConfigurator;
        sender1: StandardHost {
            parameters:
                @display("p=342.16,995.93005");
        }

        receiver1: StandardHost {
            parameters:
                @display("p=3708.7703,995.93005");
        }

    connections:

        sender1.ethg++ <--> FastP <--> routerCore1.ethg++;
        receiver1.ethg++ <--> FastP <--> routerCore2.ethg++;
        routerCore1.ethg++ <--> NormalP <--> routerCore2.ethg++;


}




File: examples/inet/redmarker/network.ned