Package: inet.networklayer.common
EchoProtocol
simple moduleThis module provides a mechanism to test network layer connectivity using echo request/response messages similar to that of ICMP.
Used in compound modules
| Name | Type | Description |
|---|---|---|
| GenericNetworkLayer | compound module |
This module provides the generic network layer. |
| SimpleNetworkLayer | compound module |
This module provides a simple network layer. |
| WiseRouteNetworkLayer | compound module |
This module provides a simple network layer. |
Properties
| Name | Value | Description |
|---|---|---|
| display | i=block/control_s |
Gates
| Name | Direction | Size | Description |
|---|---|---|---|
| localIn | input | ||
| pingIn [ ] | input |
ping requests from app |
|
| pingOut [ ] | output |
result of ping |
|
| sendOut | output |
towards network |
Source code
// // This module provides a mechanism to test network layer connectivity // using echo request/response messages similar to that of ICMP. // simple EchoProtocol { parameters: @display("i=block/control_s"); gates: input localIn @labels(GenericNetworkProtocolControlInfo/up); input pingIn[]; // ping requests from app output pingOut[]; // result of ping output sendOut @labels(GenericNetworkProtocolControlInfo/down); // towards network }File: src/inet/networklayer/common/EchoProtocol.ned