IPacketMeter

Package: inet.queueing.contract

IPacketMeter

module interface

This module interface is implemented by packet meter modules. A packet meter connects one input to one output. It can operate in both active and passive mode. Packets can be pushed into its input or packets can be popped from its output. When processing packets, a meter attaches some information (such as the packet rate) to the packets based on the data and meta data they contain. The packets are processed as part of a stream.

IPacketMeter

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Implemented by

Name Type Description
RateMeter simple module

This module attaches a RateTag to each packet specifying the datarate and packetrate of the received stream of packets. The algorithm takes older packets into account with an exponentially decreasing weight.

Extends

Name Type Description
IPacketSource module interface

This module interface is implemented by packet source modules which are both active and passive simultaneously.

IPacketSink module interface

This module interface is implemented by packet sink modules which are both passive and active simultaneously.

Properties

Name Value Description
display i=block/star

Source code

//
// This module interface is implemented by packet meter modules. A packet meter
// connects one input to one output. It can operate in both active and passive
// mode. Packets can be pushed into its input or packets can be popped from its
// output. When processing packets, a meter attaches some information (such as
// the packet rate) to the packets based on the data and meta data they contain.
// The packets are processed as part of a stream.
//
moduleinterface IPacketMeter extends IPacketSink, IPacketSource
{
    parameters:
        @display("i=block/star");
}
File: src/inet/queueing/contract/IPacketMeter.ned