EchoProtocol

Package: inet.networklayer.common

EchoProtocol

simple module

This 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
NextHopNetworkLayer compound module

This module provides a network layer for the next hop forwarding.

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

Gates

Name Direction Size Description
ipIn input
ipOut output

Direct method calls (observed)

call tofunctioninfo
MessageDispatcherinet::MessageDispatcher::arrivedarrived
MessageDispatcherinet::MessageDispatcher::handleRegisterProtocolhandleRegisterProtocol

Incoming messages (observed)

gatemsgkindctrlsrcModuletags
ipInPacket0FloodingDispatchProtocolReq, HopLimitInd, InterfaceInd, L3AddressInd, MacAddressInd, NetworkProtocolInd, PacketProtocolTag
ipInPacket0NextHopForwardingDispatchProtocolReq, HopLimitInd, InterfaceInd, L3AddressInd, MacAddressInd, NetworkProtocolInd, PacketProtocolTag, ErrorRateInd?, Ieee802SapInd?, SignalPowerInd?, SignalTimeInd?, SnirInd?, Ieee80211ChannelInd?, Ieee80211ModeInd?
ipInPacket0AdaptiveProbabilisticBroadcastDispatchProtocolInd, DispatchProtocolReq, InterfaceInd, L3AddressInd, MacAddressInd, MacAddressReq, NetworkProtocolInd, PacketProtocolTag
ipInPacket0ProbabilisticBroadcastDispatchProtocolInd, DispatchProtocolReq, InterfaceInd, L3AddressInd, MacAddressInd, MacAddressReq, NetworkProtocolInd, PacketProtocolTag
ipInPacket0WiseRouteDispatchProtocolReq, InterfaceInd, L3AddressInd, MacAddressInd, NetworkProtocolInd, PacketProtocolTag

Outgoing messages (observed)

gatemsgkindctrldestModuletags
ipOutPacket0FloodingDispatchProtocolReq, L3AddressReq, PacketProtocolTag
ipOutPacket0NextHopForwardingDispatchProtocolReq, L3AddressReq, PacketProtocolTag
ipOutPacket0AdaptiveProbabilisticBroadcastDispatchProtocolReq, L3AddressReq, PacketProtocolTag
ipOutPacket0ProbabilisticBroadcastDispatchProtocolReq, L3AddressReq, PacketProtocolTag
ipOutPacket0WiseRouteDispatchProtocolReq, L3AddressReq, PacketProtocolTag

Packet operations (observed)

chunkTypepacketAction
peekData
ByteCountChunkinsertAtBack
EchoPacketinsertAtBack, peekAtFront, popAtFront

Shared Tagging operations (observed)

tagTypetagAction
DispatchProtocolReqaddTag
L3AddressIndgetTag
L3AddressReqaddTag
NetworkProtocolIndgetTag
PacketProtocolTagaddTag

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");
    gates:
        input ipIn;
        output ipOut;
}

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