Package: inet.node.base
LinkLayerNodeBase
compound module(no description)
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 |
---|---|---|
NetworkLayerNodeBase | compound module | (no description) |
Extends
Name | Type | Description |
---|---|---|
NodeBase | compound module |
This module contains the most basic infrastructure for network nodes that is not strictly communication protocol related. |
Parameters
Name | Type | Default value | Description |
---|---|---|---|
hasStatus | bool | false | |
osgModel | string | "" |
3D model for OSG visualization, no 3D model by default |
osgModelColor | string | "" |
tint color, no colorization by default |
canvasImage | string | "" |
image for canvas visualization, no image by default |
canvasImageColor | string | "" |
tint color, no colorization by default |
numPcapRecorders | int | 0 | |
numLoInterfaces | int | 1 | |
numWlanInterfaces | int | 0 | |
numEthInterfaces | int | 0 |
minimum number of ethernet interfaces |
numPppInterfaces | int | 0 |
minimum number of PPP interfaces |
numTunInterfaces | int | 0 | |
numVlanInterfaces | int | 0 |
Properties
Name | Value | Description |
---|---|---|
networkNode | ||
labels | node | |
display | bgb=1256,672 |
Gates
Name | Direction | Size | Description |
---|---|---|---|
radioIn [ ] | input | numWlanInterfaces | |
pppg [ ] | inout | numPppInterfaces | |
ethg [ ] | inout | numEthInterfaces |
Unassigned submodule parameters
Name | Type | Default value | Description |
---|---|---|---|
status.initialStatus | string | "UP" |
TODO @signal, @statistic |
pcapRecorder.verbose | bool | false |
whether to log packets on the module output |
pcapRecorder.pcapFile | string | "" |
the PCAP file to be written |
pcapRecorder.pcapLinkType | int | -1 |
the network type header field in the PCAP file, see http://www.tcpdump.org/linktypes.html (1=ethernet, 204=ppp, 105=IEEE 802.11, ...) (-1 means autodetect based on first recordable packet) |
pcapRecorder.snaplen | int | 65535 |
maximum number of bytes to record per packet |
pcapRecorder.dumpBadFrames | bool | true |
enable dump of frames with hasBitError |
pcapRecorder.moduleNamePatterns | string | "wlan[*] eth[*] ppp[*]" |
space-separated list of sibling module names to listen on |
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 | string | "*" |
which packets are considered, matches all packets by default |
pcapRecorder.packetDataFilter | string | "*" |
which packets are considered based on the data they contain, 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" | |
interfaceTable.displayAddresses | bool | false |
whether to display IP addresses on links |
Source code
module LinkLayerNodeBase extends NodeBase { parameters: int numPcapRecorders = default(0); int numLoInterfaces = default(1); int numWlanInterfaces = default(0); int numEthInterfaces = default(0); // minimum number of ethernet interfaces int numPppInterfaces = default(0); // minimum number of PPP interfaces int numTunInterfaces = default(0); int numVlanInterfaces = default(0); mobility.typename = default(numWlanInterfaces > 0 ? "StationaryMobility" : ""); *.interfaceTableModule = default(absPath(".interfaceTable")); wlan[*].radio.antenna.mobilityModule = default("^.^.^.mobility"); @figure[linkLayer](type=rectangle; pos=250,456; size=1000,210; fillColor=#0000ff; lineColor=#808080; cornerRadius=5; fillOpacity=0.1); @figure[linkLayer.title](type=text; pos=1245,461; anchor=ne; text="link layer"); gates: input radioIn[numWlanInterfaces] @directIn; inout pppg[numPppInterfaces] @labels(PppFrame-conn) @allowUnconnected; inout ethg[numEthInterfaces] @labels(EtherFrame-conn) @allowUnconnected; submodules: pcapRecorder[numPcapRecorders]: PcapRecorder { parameters: @display("p=125,560;is=s"); } interfaceTable: InterfaceTable { parameters: @display("p=125,240;is=s"); } lo[numLoInterfaces]: <default("LoopbackInterface")> like ILoopbackInterface { parameters: @display("p=750,526,row,150"); } // TODO: move wlan interfaces after eth interfaces, but it changes IP address assignment and breaks examples/inet/configurator/complex.ini wlan[numWlanInterfaces]: <default("Ieee80211Interface")> like IWirelessInterface { parameters: @display("p=375,616,row,150;q=queue"); } ppp[sizeof(pppg)]: <default("PppInterface")> like IPppInterface { parameters: @display("p=300,526,row,150;q=txQueue"); } eth[sizeof(ethg)]: <default("EthernetInterface")> like IEthernetInterface { parameters: @display("p=900,526,row,150;q=txQueue"); } tun[numTunInterfaces]: <default("TunInterface")> like ITunnelInterface { parameters: @display("p=975,616,row,150;q=txQueue"); } vlan[numVlanInterfaces]: <default("VlanInterface")> like IVlanInterface { parameters: @display("p=975,616,row,150;q=txQueue"); } connections allowunconnected: for i=0..sizeof(radioIn)-1 { radioIn[i] --> { @display("m=s"); } --> wlan[i].radioIn; } for i=0..sizeof(ethg)-1 { ethg[i] <--> { @display("m=s"); } <--> eth[i].phys; } for i=0..sizeof(pppg)-1 { pppg[i] <--> { @display("m=s"); } <--> ppp[i].phys; } }File: src/inet/node/base/LinkLayerNodeBase.ned