FlowMeasurementShowcase

Package: inet.showcases.measurement.flow

FlowMeasurementShowcase

network

(no description)

PcapRecorder IIntegratedVisualizer IL3NetworkConfigurator INetworkConfigurator IEthernetNetworkNode IEthernetNetworkNode EthernetSwitch EthernetSwitch IEthernetNetworkNode IEthernetNetworkNode

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.

Extends

Name Type Description
WiredNetworkBase network (no description)

Parameters

Name Type Default value Description
recordPcap bool false
numPcapRecorders int recordPcap ? 1 : 0
hasGlobalArp bool true

Properties

Name Value Description
isNetwork
class NetworkBase

Unassigned submodule parameters

Name Type Default value Description
pcapRecorder.verbose bool true

whether to log packets on the module output

pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

pcapRecorder.helpers string ""

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

pcapRecorder.alwaysFlush bool false

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

pcapRecorder.displayStringTextFormat string "rec: %n pks"
client1.numEthInterfaces int
client2.numEthInterfaces int
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
server1.numEthInterfaces int
server2.numEthInterfaces int

Source code

network FlowMeasurementShowcase extends WiredNetworkBase
{
    submodules:
        client1: <default("StandardHost")> like IEthernetNetworkNode {
            @display("p=300,150");
        }
        client2: <default("StandardHost")> like IEthernetNetworkNode {
            @display("p=300,350");
        }
        switch1: EthernetSwitch {
            @display("p=500,250");
        }
        switch2: EthernetSwitch {
            @display("p=700,250");
        }
        server1: <default("StandardHost")> like IEthernetNetworkNode {
            @display("p=900,150");
        }
        server2: <default("StandardHost")> like IEthernetNetworkNode {
            @display("p=900,350");
        }
    connections:
        client1.ethg++ <--> Eth100M <--> switch1.ethg++;
        client2.ethg++ <--> Eth100M <--> switch1.ethg++;
        switch2.ethg++ <--> Eth100M <--> server1.ethg++;
        switch2.ethg++ <--> Eth100M <--> server2.ethg++;
        switch1.ethg++ <--> Eth100M <--> switch2.ethg++;
}

File: showcases/measurement/flow/FlowMeasurementShowcase.ned