EligibilityTimeMeter

Package: inet.protocolelement.shaper

EligibilityTimeMeter

simple module

This module is a packet meter which measures the packet flow that is passing through and optionally attaches an EligibilityTimeTag to the packets. The tag contains the calculated simulation time when the packet becomes eligibile for transmission according to the asynchronous shaper algorithm.

This module is part of the asynchronous shaper infrastructure.

See also: EligibilityTimeGate, EligibilityTimeFilter, EligibilityTimeQueue, EligibilityTimeTag

Inheritance diagram

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

Extends

Name Type Description
PacketMeterBase simple module

This is a base module for various packet meter modules. Derived modules must implement a single meterPacket() function which meters the flow of and attaches the required tags.

Parameters

Name Type Default value Description
displayStringTextFormat string "metered %p pk (%l)"

determines the text that is written on top of the submodule

clockModule string ""

relative path of a module that implements IClock; optional

packetOverheadLength int 0b

extra packet length taken into account, can be used to represent overhead added by lower layers

committedInformationRate double

committed information rate of the packet flow

committedBurstSize int

committed burst size of the packet flow

maxResidenceTime double -1s

maximum packet residence time measured from the packet arrival time to the meter module to the transmission eligiblity time, not used by default

Properties

Name Value Description
display i=block/star
class EligibilityTimeMeter

Gates

Name Direction Size Description
in input
out output

Signals

Name Type Unit
tokensChanged double

Statistics

Name Title Source Record Unit Interpolation Mode
numTokens number of tokens tokensChanged vector tk linear

Direct method calls (observed)

call tofunctioninfo
EligibilityTimeFilterinet::EligibilityTimeFilter::pushPacketpushPacket
PacketMultiplexerinet::queueing::PacketMultiplexer::pushPacketpushPacket
ActivePacketSourceinet::queueing::ActivePacketSource::handleCanPushPacketChangedhandleCanPushPacketChanged

Called methods (observed)

functioninfocall from
inet::EligibilityTimeMeter::handleCanPushPacketChangedhandleCanPushPacketChangedPacketMultiplexer
inet::EligibilityTimeMeter::pushPacketpushPacketInteractiveGate, ActivePacketSource

Pushed in messages (observed)

gatemsgkindctrlsrcModuletags
inPacket0InteractiveGateDirectionTag, DispatchProtocolReq, DropEligibleInd, EncapsulationProtocolInd, InterfaceInd, MacAddressInd, PacketProtocolTag, PcpInd, StreamInd, UserPriorityInd, VlanInd
inPacket0ActivePacketSourceDirectionTag, PacketProtocolTag

Push out messages (observed)

gatemsgkindctrldestModuletags
outPacket0EligibilityTimeFilterDirectionTag, DispatchProtocolReq, DropEligibleInd, EncapsulationProtocolInd, InterfaceInd, MacAddressInd, PacketProtocolTag, PcpInd, StreamInd, UserPriorityInd, VlanInd, EligibilityTimeTag?
outPacket0PacketMultiplexerDirectionTag, PacketProtocolTag, EligibilityTimeTag?

Shared Tagging operations (observed)

tagTypetagAction
EligibilityTimeTagaddTagIfAbsent

Region Tagging operations (observed)

tagTypetagAction
FlowTagmapAllTags

Source code

//
// This module is a packet meter which measures the packet flow that is passing
// through and optionally attaches an ~EligibilityTimeTag to the packets. The
// tag contains the calculated simulation time when the packet becomes eligibile
// for transmission according to the asynchronous shaper algorithm.
//
// This module is part of the asynchronous shaper infrastructure.
//
// @see ~EligibilityTimeGate, ~EligibilityTimeFilter, ~EligibilityTimeQueue, ~EligibilityTimeTag
//
simple EligibilityTimeMeter extends PacketMeterBase like IPacketMeter
{
    parameters:
        string clockModule = default(""); // relative path of a module that implements IClock; optional
        int packetOverheadLength @unit(b) = default(0b); // extra packet length taken into account, can be used to represent overhead added by lower layers
        double committedInformationRate @unit(bps); // committed information rate of the packet flow
        int committedBurstSize @unit(b); // committed burst size of the packet flow
        double maxResidenceTime @unit(s) = default(-1s); // maximum packet residence time measured from the packet arrival time to the meter module to the transmission eligiblity time, not used by default
        @class(EligibilityTimeMeter);
        @signal[tokensChanged](type=double);
        @statistic[numTokens](title="number of tokens"; source=tokensChanged; record=vector; unit=tk; interpolationmode=linear);
}
File: src/inet/protocolelement/shaper/EligibilityTimeMeter.ned