TimingExample

Package: inet.examples.timing

TimingExample

network

(no description)

PcapRecorder IIntegratedVisualizer IL3NetworkConfigurator INetworkConfigurator StandardHost StandardHost EthernetSwitch EthernetSwitch StandardHost StandardHost

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.status.initialStatus string "UP"

TODO @signal, @statistic

client1.pcapRecorder.verbose bool true

whether to log packets on the module output

client1.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

client1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

client1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

client1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

client1.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

client1.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

client1.pcapRecorder.helpers string ""

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

client1.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

client1.at.forwardServiceRegistration bool true
client1.at.forwardProtocolRegistration bool true
client2.status.initialStatus string "UP"

TODO @signal, @statistic

client2.pcapRecorder.verbose bool true

whether to log packets on the module output

client2.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

client2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

client2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

client2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

client2.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

client2.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

client2.pcapRecorder.helpers string ""

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

client2.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

client2.at.forwardServiceRegistration bool true
client2.at.forwardProtocolRegistration bool true
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.status.initialStatus string "UP"

TODO @signal, @statistic

server1.pcapRecorder.verbose bool true

whether to log packets on the module output

server1.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

server1.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

server1.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

server1.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

server1.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

server1.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

server1.pcapRecorder.helpers string ""

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

server1.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

server1.at.forwardServiceRegistration bool true
server1.at.forwardProtocolRegistration bool true
server2.status.initialStatus string "UP"

TODO @signal, @statistic

server2.pcapRecorder.verbose bool true

whether to log packets on the module output

server2.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

server2.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

server2.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

server2.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

server2.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

server2.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

server2.pcapRecorder.helpers string ""

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

server2.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

server2.at.forwardServiceRegistration bool true
server2.at.forwardProtocolRegistration bool true

Source code

network TimingExample extends WiredNetworkBase
{
    submodules:
        client1: StandardHost {
            @display("p=300,150");
        }
        client2: StandardHost {
            @display("p=300,350");
        }
        switch1: EthernetSwitch {
            @display("p=500,250");
        }
        switch2: EthernetSwitch {
            @display("p=700,250");
        }
        server1: StandardHost {
            @display("p=900,150");
        }
        server2: StandardHost {
            @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: examples/timing/TimingExample.ned