EchoProtocol

Package: inet.networklayer.common

simple module EchoProtocol

Provides a mechanism to test network layer connectivity using echo request/response messages similar to those of ICMP.

inet.networklayer.common.EchoProtocolEchoProtocolsimple

Usage diagram

Inheritance diagram

Used in compound modules

Name

Type

Description

SimpleNetworkLayer

compound module

Provides a simple network layer.

NextHopNetworkLayer

compound module

Provides a network layer for the next hop forwarding.

WiseRouteNetworkLayer

compound module

Provides a simple network layer.

Extends

Name

Type

Description

SimpleModule

simple module

Base module for all INET simple modules.

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

Properties

Name

Value

Description

class

EchoProtocol

display

i=block/control

Gates

Name

Direction

Size

Description

ipIn

input

ipOut

output

Source code

//
// Provides a mechanism to test network layer connectivity
// using echo request/response messages similar to those of ICMP.
//
simple EchoProtocol extends SimpleModule
{
    parameters:
        @class(EchoProtocol);
        @display("i=block/control");
    gates:
        input ipIn;
        output ipOut;
}

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