DemoNetworkEth

Package: inet.examples.ipv6.demonetworketh

DemoNetworkEth

network

(no description)

Ipv6FlatNetworkConfigurator Router6 Router6 StandardHost6 StandardHost6

Usage diagram

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

Parameters

Name Type Default value Description
n int

Properties

Name Value Description
isNetwork

Unassigned submodule parameters

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

TODO @signal, @statistic

r1.pcapRecorder.verbose bool true

whether to log packets on the module output

r1.pcapRecorder.pcapFile string ""

the PCAP file to be written

r1.pcapRecorder.fileFormat string "pcapng"
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[*]"

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.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

r1.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

r1.pcapRecorder.helpers string ""

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

r1.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

The path to the InterfaceTable module

r1.bgp.routingTableModule string
r1.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
r2.status.initialStatus string "UP"

TODO @signal, @statistic

r2.pcapRecorder.verbose bool true

whether to log packets on the module output

r2.pcapRecorder.pcapFile string ""

the PCAP file to be written

r2.pcapRecorder.fileFormat string "pcapng"
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[*]"

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.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

r2.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

r2.pcapRecorder.helpers string ""

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

r2.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

The path to the InterfaceTable module

r2.bgp.routingTableModule string
r2.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
cli.status.initialStatus string "UP"

TODO @signal, @statistic

cli.pcapRecorder.verbose bool true

whether to log packets on the module output

cli.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

cli.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

cli.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

cli.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

cli.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

cli.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

cli.pcapRecorder.helpers string ""

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

cli.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

cli.at.forwardServiceRegistration bool true
cli.at.forwardProtocolRegistration bool true
srv.status.initialStatus string "UP"

TODO @signal, @statistic

srv.pcapRecorder.verbose bool true

whether to log packets on the module output

srv.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

srv.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

srv.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

srv.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

srv.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

srv.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

srv.pcapRecorder.helpers string ""

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

srv.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

srv.at.forwardServiceRegistration bool true
srv.at.forwardProtocolRegistration bool true

Source code

network DemoNetworkEth
{
    parameters:
        int n;
    types:
        channel ethernetline extends DatarateChannel
        {
            delay = 0.1us;
            datarate = 10Mbps;
        }
    submodules:
        configurator: Ipv6FlatNetworkConfigurator {
            @display("is=s;p=100,100");
        }
        r1: Router6 {
            @display("p=550,150");
        }
        r2: Router6 {
            @display("p=400,150");
        }
        cli[n]: StandardHost6 {
            @display("p=700,100,col,100");
        }
        srv[n]: StandardHost6 {
            @display("p=250,100,col,100");
        }
    connections:
        for i=0..n-1 {
            cli[i].ethg++ <--> ethernetline <--> r1.ethg++;
            srv[i].ethg++ <--> ethernetline <--> r2.ethg++;
        }
        r1.ethg++ <--> ethernetline <--> r2.ethg++;
}

File: examples/ipv6/demonetworketh/DemoNetworkEth.ned