Simple Module LinkMon

Package: pubsub_sim.LinkMon
File: src/LinkMon/LinkMon.ned

C++ definition

The Link Status Monitoring module It can access almost every other submodule of a PSRouter router and records any stats in which it is interested. It has also the capability of reporting these findings to the Topology Manager, through a LSMPacket.

See also: PSRouter

Author: Nikolaos Vastardis

LinkMon

Used in compound modules:

If a module type shows up more than once, that means it has been defined in more than one NED file.

PSRouter (compound module)

The Publish-Subscribe Router

PubHost (compound module)

The Publisher Host

SubHost (compound module)

The Subscriber Host

Parameters:

Name Type Default value Description
pollInt double uniform(1s,2s)

Interval between polling for statistics

reportInt double 5s

Interval between sending reports to the TM

Properties:

Name Value Description
display i=old/telnet

Gates:

Name Direction Size Description
out output

Source code:

//
// <b> The Link Status Monitoring module </b>
// It can access almost every other submodule of a PSRouter router and records 
// any stats in which it is interested. It has also the capability of reporting 
// these findings to the Topology Manager, through a LSMPacket. 
//
// @see PSRouter
//
// @author Nikolaos Vastardis
//
simple LinkMon
{
    parameters:
        @display("i=old/telnet");
        volatile double pollInt @unit("s") = default(uniform(1s,2s));	// Interval between polling for statistics
        double reportInt @unit("s") = default(5s);						// Interval between sending reports to the TM
    gates:
        output out @labels(LSMPacket);
}