Module base for different network protocols.
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Name | Type | Description |
---|---|---|
LayeredProtocolBase | simple module |
Module base for different layered protocols. |
Name | Type | Description |
---|---|---|
Flood | simple module |
A simple flooding protocol for network-level broadcast. |
ProbabilisticBroadcast | simple module |
Multi-hop ad-hoc data dissemination protocol based on probabilistic broadcast. |
WiseRoute | 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. |
Name | Type | Default value | Description |
---|---|---|---|
interfaceTableModule | string |
Name | Value | Description |
---|---|---|
display | i=block/fork |
Name | Direction | Size | Description |
---|---|---|---|
upperLayerIn [ ] | input | ||
upperLayerOut [ ] | output | ||
lowerLayerIn [ ] | input | ||
lowerLayerOut [ ] | output |
Name | Type | Unit |
---|---|---|
packetReceivedFromUpper | cPacket | |
packetReceivedFromLower | cPacket | |
packetFromLowerDropped | cPacket | |
packetFromUpperDropped | cPacket | |
packetSentToLower | cPacket | |
packetSentToUpper | cPacket |
// // Module base for different network protocols. // simple NetworkProtocolBase extends LayeredProtocolBase { parameters: string interfaceTableModule; @display("i=block/fork"); gates: input upperLayerIn[] @labels(ITransportPacket/down); output upperLayerOut[] @labels(ITransportPacket/up); input lowerLayerIn[] @labels(INetworkDatagram/up); output lowerLayerOut[] @labels(INetworkDatagram/down); }