NClientsEth

Package: inet.examples.ipv6.nclients

NClientsEth

network

(no description)

Ipv6FlatNetworkConfigurator Router6 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" : ""
r3.status.initialStatus string "UP"

TODO @signal, @statistic

r3.pcapRecorder.verbose bool true

whether to log packets on the module output

r3.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

r3.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

r3.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

r3.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

r3.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

r3.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

r3.pcapRecorder.helpers string ""

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

r3.pcapRecorder.alwaysFlush bool false

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

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

whether to display IP addresses on links

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

determines the text that is written on top of the submodule

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

The path to the InterfaceTable module

r3.bgp.routingTableModule string
r3.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 NClientsEth
{
    parameters:
        int n;
    types:
        channel fiberline extends DatarateChannel
        {
            delay = 1us;
            datarate = 512Mbps;
        }
        channel ethernetline extends DatarateChannel
        {
            delay = 0.1us;
            datarate = 10Mbps;
        }
    submodules:
        configurator: Ipv6FlatNetworkConfigurator {
            @display("p=100,100;is=s");
        }
        r1: Router6 {
            @display("p=400,100");
        }
        r2: Router6 {
            @display("p=550,100");
        }
        r3: Router6 {
            @display("p=700,100");
        }
        cli[n]: StandardHost6 {
            @display("p=250,100");
        }
        srv: StandardHost6 {
            @display("p=850,100");
        }
    connections:
        for i=0..n-1 {
            cli[i].ethg++ <--> ethernetline <--> r1.ethg++;
        }
        r1.ethg++ <--> ethernetline <--> r2.ethg++;
        r2.ethg++ <--> ethernetline <--> r3.ethg++;
        r3.ethg++ <--> ethernetline <--> srv.ethg++;

        //XXX
        // Mixing ethernet and ppp currently doesn't work, due to a bug in
        // Ipv6FlatNetworkConfigurator::determineGateIndex.
        //
        // r1.pppg++ <--> fiberline <--> r2.pppg++;
        // r2.pppg++ <--> fiberline <--> r3.pppg++;
        // r3.pppg++ <--> fiberline <--> srv.pppg++;
        //
}

File: examples/ipv6/nclients/NClientsEth.ned