Node

Package: inet.tutorials.protocol

Node

compound module

(no description)

InterfaceTable IApp ForwardingService DataService MessageDispatcher Interface

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
Host compound module (no description)
Router network (no description)

Parameters

Name Type Default value Description
numInterfaces int 0

Properties

Name Value Description
networkNode

Gates

Name Direction Size Description
g [ ] inout numInterfaces

Unassigned submodule parameters

Name Type Default value Description
interfaceTable.displayAddresses bool false

whether to display IP addresses on links

forwardingService.d1.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

forwardingService.d1.forwardServiceRegistration bool true
forwardingService.d1.forwardProtocolRegistration bool true
forwardingService.forwarding.address string ""
forwardingService.sendWithHopLimit.hopLimit int
dataService.fragmenter.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

dataService.fragmenter.deleteSelf bool false
dataService.fragmenter.headerPosition string "front"
dataService.sequenceNumbering.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

dataService.deaggregator.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

dataService.deaggregator.deleteSelf bool false
dataService.defragmenter.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

dataService.defragmenter.deleteSelf bool false
dataService.defragmenter.headerPosition string "front"
dataService.reordering.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

d1.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

d1.forwardServiceRegistration bool true
d1.forwardProtocolRegistration bool true
interface.pcapRecorder.verbose bool true

whether to log packets on the module output

interface.pcapRecorder.pcapFile string ""

the PCAP file to be written

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

maximum number of bytes to record per packet

interface.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

interface.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

interface.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

interface.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

interface.pcapRecorder.packetFilter object "*"

which packets are considered, matches all packets by default

interface.pcapRecorder.helpers string ""

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

interface.pcapRecorder.alwaysFlush bool false

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

interface.pcapRecorder.displayStringTextFormat string "rec: %n pks"
interface.sendToMacAddress.address string ""
interface.resending.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

interface.resending.numRetries int
interface.sendWithAcknowledge.acknowledgeTimeout double
interface.m1.displayStringTextFormat string "passed %p pk (%l)"

determines the text that is written on top of the submodule

interface.m1.forwardServiceRegistration bool true
interface.m1.forwardProtocolRegistration bool true
interface.fcsInserter.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

interface.fcsInserter.fcsMode string "declared"
interface.fcsInserter.headerPosition string "back"
interface.transmitter.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

interface.transmitter.clockModule string ""

relative path of a module that implements IClock(1,2); optional

interface.transmitter.datarate double
interface.receiveAtMacAddress.address string
interface.d1.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

interface.d1.forwardServiceRegistration bool true
interface.d1.forwardProtocolRegistration bool true
interface.fcsChecker.displayStringTextFormat string "dropped %d/%p pk (%k/%l)"

determines the text that is written on top of the submodule

interface.fcsChecker.backpressure bool false
interface.fcsChecker.headerPosition string "back"

Source code

module Node
{
    parameters:
        int numInterfaces = default(0);
        interface[*].interfaceTableModule = "^.interfaceTable";
        @networkNode;
    gates:
        inout g[numInterfaces];
    submodules:
        interfaceTable: InterfaceTable {
            @display("p=150,100");
        }
        app: <default("")> like IApp if typename != "" {
            @display("p=450,100");
        }
        forwardingService: ForwardingService {
            @display("p=450,200");
        }
        dataService: DataService {
            @display("p=450,300");
        }
        d1: MessageDispatcher {
            @display("p=450,400");
        }
        interface[sizeof(g)]: Interface {
            @display("p=450,500,row,150");
        }
    connections:
        app.out --> forwardingService.upperLayerIn if exists(app);
        forwardingService.upperLayerOut --> app.in if exists(app);
        forwardingService.lowerLayerOut --> dataService.upperLayerIn;
        dataService.lowerLayerOut --> d1.in++;
        d1.out++ --> dataService.lowerLayerIn;
        dataService.upperLayerOut --> forwardingService.lowerLayerIn;
        for i=0..sizeof(interface)-1 {
            interface[i].upperLayerOut --> d1.in++;
            d1.out++ --> interface[i].upperLayerIn;
            g[i] <--> { @display("m=s"); } <--> interface[i].g;
        }
}

File: tutorials/protocol/Network91.ned