Simple Module EchoProtocol

Package: inet.networklayer.common
File: src/inet/networklayer/common/EchoProtocol.ned

C++ definition

This module provides a mechanism to test network layer connectivity using echo request/response messages similar to that of ICMP.

EchoProtocol

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.

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
}