NetworkProtocolBase¶
Package: inet.networklayer.base
simple module NetworkProtocolBase
Module base for different network protocols.
Inheritance diagram¶
Known subclasses¶
Name |
Type |
Description |
|---|---|---|
simple module |
A simple flooding protocol for network-level broadcast. |
|
simple module |
Multi-hop ad-hoc data dissemination protocol based on probabilistic broadcast. |
|
simple module |
Wiseroute is a simple loop-free routing algorithm that builds a routing tree from a central network point, designed for sensor networks and convergecast traffic. |
Extends¶
Name |
Type |
Description |
|---|---|---|
simple module |
Module base for different layered protocols. |
Parameters¶
Name |
Type |
Default value |
Description |
|---|---|---|---|
displayStringTextFormat |
string |
“” |
Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information |
interfaceTableModule |
string |
Properties¶
Name |
Value |
Description |
|---|---|---|
class |
LayeredProtocolBase |
|
display |
i=block/fork |
Gates¶
Name |
Direction |
Size |
Description |
|---|---|---|---|
transportIn |
input |
||
transportOut |
output |
||
queueIn |
input |
||
queueOut |
output |
Signals¶
Name |
Type |
Unit |
Description |
|---|---|---|---|
packetDropped |
cPacket |
||
packetReceivedFromLower |
cPacket |
||
packetReceivedFromUpper |
cPacket |
||
packetSentToLower |
cPacket |
||
packetSentToUpper |
cPacket |
Source code¶
//
// Module base for different network protocols.
//
simple NetworkProtocolBase extends LayeredProtocolBase
{
parameters:
string interfaceTableModule;
@display("i=block/fork");
gates:
input transportIn @labels(INetworkProtocolControlInfo/down);
output transportOut @labels(INetworkProtocolControlInfo/up);
input queueIn @labels(INetworkHeader);
output queueOut @labels(INetworkHeader);
}