CreditBasedShaper

Package: inet.queueing.shaper

CreditBasedShaper

compound module

Implements a credit-based shaper using a gate submodule to manage the number of credits.

<b>See also:</b> ~CreditBasedGate

queue : like IPacketQueue

PacketQueue: Implements a configurable packet queue, which is suitable for use in MAC protocols, traffic...

IPacketQueue: Interface for packet queue modules.

Source:
queue: <default("PacketQueue")> like IPacketQueue {
    @display("p=100,150");
} gate : like IPacketGate

IPacketGate: Interface for a packet gate.

Source:
gate: <default("")> like IPacketGate {
    @display("p=300,150");
}

Inheritance diagram

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

Extends

Name Type Description
PacketShaper compound module

Combines a packet queue and a packet gate into a packet shaper module. The queue stores the packets sorted according to its ordering and the gate decides when the first packet can be pulled from the queue.

Properties

Name Value Description
display i=block/bucket

Gates

Name Direction Size Description
in input
out output

Source code

//
// Implements a credit-based shaper using a gate submodule to manage
// the number of credits.
//
// @see ~CreditBasedGate
//
module CreditBasedShaper extends PacketShaper
{
    parameters:
        gate.typename = default("CreditBasedGate");
}
File: src/inet/queueing/shaper/CreditBasedShaper.ned