SwitchNetwork

Package: inet.examples.ieee8021d

SwitchNetwork

network

(no description)

StpTester ScenarioManager L2NetworkConfigurator EthernetSwitch EthernetSwitch EthernetSwitch EthernetSwitch EthernetSwitch EthernetSwitch EthernetSwitch

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.

Known subclasses

Name Type Description
LargeNet network (no description)

Properties

Name Value Description
isNetwork

Unassigned submodule parameters

Name Type Default value Description
stpTester.checkTime double 500ms
scenarioManager.script xml xml("")
l2NetworkConfigurator.config xml xml("")
switch1.macTable.agingTime double
switch1.macTable.forwardingTableFile string
switch1.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

switch1.l2NodeConfigurator.interfaceTableModule string
switch1.l2NodeConfigurator.l2ConfiguratorModule string "l2NetworkConfigurator"

the absolute path to the ~L2NetworkConfigurator; use "" if there is no configurator

switch1.status.initialStatus string "UP"

TODO @signal, @statistic

switch1.pcapRecorder.verbose bool true

whether to log packets on the module output

switch1.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

switch1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

switch1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

switch1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

switch1.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

switch1.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

switch1.pcapRecorder.helpers string ""

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

switch1.pcapRecorder.alwaysFlush bool false

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

switch1.pcapRecorder.displayStringTextFormat string "rec: %n pks"
switch1.stp.helloTime double
switch1.stp.forwardDelay double
switch1.stp.maxAge double
switch1.stp.bridgePriority int
switch1.stp.visualize bool
switch1.sc.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

switch1.cutthrough.forwardServiceRegistration bool true
switch1.cutthrough.forwardProtocolRegistration bool true
switch1.eth.bitrate double
switch2.macTable.agingTime double
switch2.macTable.forwardingTableFile string
switch2.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

switch2.l2NodeConfigurator.interfaceTableModule string
switch2.l2NodeConfigurator.l2ConfiguratorModule string "l2NetworkConfigurator"

the absolute path to the ~L2NetworkConfigurator; use "" if there is no configurator

switch2.status.initialStatus string "UP"

TODO @signal, @statistic

switch2.pcapRecorder.verbose bool true

whether to log packets on the module output

switch2.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

switch2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

switch2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

switch2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

switch2.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

switch2.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

switch2.pcapRecorder.helpers string ""

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

switch2.pcapRecorder.alwaysFlush bool false

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

switch2.pcapRecorder.displayStringTextFormat string "rec: %n pks"
switch2.stp.helloTime double
switch2.stp.forwardDelay double
switch2.stp.maxAge double
switch2.stp.bridgePriority int
switch2.stp.visualize bool
switch2.sc.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

switch2.cutthrough.forwardServiceRegistration bool true
switch2.cutthrough.forwardProtocolRegistration bool true
switch2.eth.bitrate double
switch3.macTable.agingTime double
switch3.macTable.forwardingTableFile string
switch3.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

switch3.l2NodeConfigurator.interfaceTableModule string
switch3.l2NodeConfigurator.l2ConfiguratorModule string "l2NetworkConfigurator"

the absolute path to the ~L2NetworkConfigurator; use "" if there is no configurator

switch3.status.initialStatus string "UP"

TODO @signal, @statistic

switch3.pcapRecorder.verbose bool true

whether to log packets on the module output

switch3.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

switch3.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

switch3.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

switch3.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

switch3.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

switch3.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

switch3.pcapRecorder.helpers string ""

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

switch3.pcapRecorder.alwaysFlush bool false

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

switch3.pcapRecorder.displayStringTextFormat string "rec: %n pks"
switch3.stp.helloTime double
switch3.stp.forwardDelay double
switch3.stp.maxAge double
switch3.stp.bridgePriority int
switch3.stp.visualize bool
switch3.sc.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

switch3.cutthrough.forwardServiceRegistration bool true
switch3.cutthrough.forwardProtocolRegistration bool true
switch3.eth.bitrate double
switch4.macTable.agingTime double
switch4.macTable.forwardingTableFile string
switch4.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

switch4.l2NodeConfigurator.interfaceTableModule string
switch4.l2NodeConfigurator.l2ConfiguratorModule string "l2NetworkConfigurator"

the absolute path to the ~L2NetworkConfigurator; use "" if there is no configurator

switch4.status.initialStatus string "UP"

TODO @signal, @statistic

switch4.pcapRecorder.verbose bool true

whether to log packets on the module output

switch4.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

switch4.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

switch4.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

switch4.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

switch4.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

switch4.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

switch4.pcapRecorder.helpers string ""

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

switch4.pcapRecorder.alwaysFlush bool false

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

switch4.pcapRecorder.displayStringTextFormat string "rec: %n pks"
switch4.stp.helloTime double
switch4.stp.forwardDelay double
switch4.stp.maxAge double
switch4.stp.bridgePriority int
switch4.stp.visualize bool
switch4.sc.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

switch4.cutthrough.forwardServiceRegistration bool true
switch4.cutthrough.forwardProtocolRegistration bool true
switch4.eth.bitrate double
switch5.macTable.agingTime double
switch5.macTable.forwardingTableFile string
switch5.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

switch5.l2NodeConfigurator.interfaceTableModule string
switch5.l2NodeConfigurator.l2ConfiguratorModule string "l2NetworkConfigurator"

the absolute path to the ~L2NetworkConfigurator; use "" if there is no configurator

switch5.status.initialStatus string "UP"

TODO @signal, @statistic

switch5.pcapRecorder.verbose bool true

whether to log packets on the module output

switch5.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

switch5.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

switch5.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

switch5.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

switch5.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

switch5.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

switch5.pcapRecorder.helpers string ""

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

switch5.pcapRecorder.alwaysFlush bool false

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

switch5.pcapRecorder.displayStringTextFormat string "rec: %n pks"
switch5.stp.helloTime double
switch5.stp.forwardDelay double
switch5.stp.maxAge double
switch5.stp.bridgePriority int
switch5.stp.visualize bool
switch5.sc.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

switch5.cutthrough.forwardServiceRegistration bool true
switch5.cutthrough.forwardProtocolRegistration bool true
switch5.eth.bitrate double
switch6.macTable.agingTime double
switch6.macTable.forwardingTableFile string
switch6.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

switch6.l2NodeConfigurator.interfaceTableModule string
switch6.l2NodeConfigurator.l2ConfiguratorModule string "l2NetworkConfigurator"

the absolute path to the ~L2NetworkConfigurator; use "" if there is no configurator

switch6.status.initialStatus string "UP"

TODO @signal, @statistic

switch6.pcapRecorder.verbose bool true

whether to log packets on the module output

switch6.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

switch6.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

switch6.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

switch6.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

switch6.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

switch6.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

switch6.pcapRecorder.helpers string ""

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

switch6.pcapRecorder.alwaysFlush bool false

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

switch6.pcapRecorder.displayStringTextFormat string "rec: %n pks"
switch6.stp.helloTime double
switch6.stp.forwardDelay double
switch6.stp.maxAge double
switch6.stp.bridgePriority int
switch6.stp.visualize bool
switch6.sc.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

switch6.cutthrough.forwardServiceRegistration bool true
switch6.cutthrough.forwardProtocolRegistration bool true
switch6.eth.bitrate double
switch7.macTable.agingTime double
switch7.macTable.forwardingTableFile string
switch7.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

switch7.l2NodeConfigurator.interfaceTableModule string
switch7.l2NodeConfigurator.l2ConfiguratorModule string "l2NetworkConfigurator"

the absolute path to the ~L2NetworkConfigurator; use "" if there is no configurator

switch7.status.initialStatus string "UP"

TODO @signal, @statistic

switch7.pcapRecorder.verbose bool true

whether to log packets on the module output

switch7.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

switch7.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

switch7.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

switch7.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

switch7.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

switch7.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

switch7.pcapRecorder.helpers string ""

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

switch7.pcapRecorder.alwaysFlush bool false

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

switch7.pcapRecorder.displayStringTextFormat string "rec: %n pks"
switch7.stp.helloTime double
switch7.stp.forwardDelay double
switch7.stp.maxAge double
switch7.stp.bridgePriority int
switch7.stp.visualize bool
switch7.sc.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

switch7.cutthrough.forwardServiceRegistration bool true
switch7.cutthrough.forwardProtocolRegistration bool true
switch7.eth.bitrate double

Source code

network SwitchNetwork
{
    submodules:
        stpTester: StpTester {
            @display("p=100,300;is=s");
        }
        scenarioManager: ScenarioManager {
            @display("p=100,200;is=s");
        }
        l2NetworkConfigurator: L2NetworkConfigurator {
            @display("p=100,100;is=s");
        }
        switch1: EthernetSwitch {
            parameters:
                @display("p=400,100");
            gates:
                ethg[];
        }
        switch2: EthernetSwitch {
            parameters:
                @display("p=475,300");
            gates:
                ethg[];
        }
        switch3: EthernetSwitch {
            parameters:
                @display("p=550,100");
            gates:
                ethg[];
        }
        switch4: EthernetSwitch {
            parameters:
                @display("p=400,200");
            gates:
                ethg[];
        }
        switch5: EthernetSwitch {
            parameters:
                @display("p=625,300");
            gates:
                ethg[];
        }
        switch6: EthernetSwitch {
            parameters:
                @display("p=325,300");
            gates:
                ethg[];
        }
        switch7: EthernetSwitch {
            parameters:
                @display("p=550,200");
            gates:
                ethg[];
        }
    connections:
        switch1.ethg++ <--> Eth1G <--> switch4.ethg++;
        switch1.ethg++ <--> Eth1G <--> switch3.ethg++;
        switch2.ethg++ <--> Eth1G <--> switch4.ethg++;
        switch2.ethg++ <--> Eth1G <--> switch6.ethg++;
        switch2.ethg++ <--> Eth1G <--> switch7.ethg++;
        switch3.ethg++ <--> Eth1G <--> switch7.ethg++;
        switch4.ethg++ <--> Eth1G <--> switch6.ethg++;
        switch4.ethg++ <--> Eth1G <--> switch7.ethg++;
        switch5.ethg++ <--> Eth1G <--> switch7.ethg++;
}

File: examples/ieee8021d/Networks.ned