IPacketSink

Package: inet.queueing.contract

IPacketSink

module interface

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

See also: IPassivePacketSink, IActivePacketSink

Inheritance diagram

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

Implemented by

Name Type Description
ContentBasedFilter simple module

This module filters for packets matching the configured filter criteria. When the filter is pushed by a connected packet producer, it either pushes the packet to the connected packet consumer or drops it depending on the configured packet filter. Similarily, when the filter is pulled by a connected packet collector, it pulls packets from the connected packet provider until it finds one which matches the configured packet filter.

ContentBasedLabeler simple module

This module attaches various request labels to packets.

ContentBasedTagger simple module

This module attaches various request tags to packets.

CreditBasedGate simple module

This module is a packet gate that operates based on the number of credits it contains. The gate is open if the number of credits is greater than the configured transmit credit limit, it is closed otherwise. The module attaches a CreditGateTag to all packets that pass through. The attached tag allows the gate module to determine if a packet belongs to it when the packet is eventually transmitted.

CutthroughSink simple module (no description)
CutthroughSource simple module (no description)
DualIeee8021qFilter compound module

This module combines two meters and their corresponding filters per path. This is primarily useful for combining a token bucket based metering with an asynchronous packet shaper. Note that the asynchronous packet shaper also has parts in the network interface queue module.

DualRateThreeColorMeter simple module

This packet meter module measures the packet flow that is passing through using two token buckets. The meter attaches a LabelsTag to each packet with either green, yellow or red color depending on which token bucket contains the required number of tokens for the packet.

EligibilityTimeFilter simple module

This module is a packet filter that operates based on the EligibilityTimeTag attached to the packet that is passing through. Packets are dropped if the tag is missing. If the maxResidenceTime parameter is set, then the filter also drops the packets for which the eligibility time in the attached EligibilityTimeTag is greater than the current simulation time plus the maximum residence time.

EligibilityTimeGate simple module

This module is a packet gate that operates based on the EligibilityTimeTag attached to the next packet waiting to be pulled through. The gate is closed if the eligibility time is greater than the current simulation time, it is open otherwise.

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.

EthernetAddressChecker simple module (no description)
EthernetAddressInserter simple module (no description)
EthernetCutthroughSink simple module (no description)
EthernetCutthroughSource simple module (no description)
EthernetFcsChecker simple module (no description)
EthernetFcsInserter simple module (no description)
EthernetFragmentFcsChecker simple module (no description)
EthernetFragmentFcsInserter simple module (no description)
EthernetFragmentPhyHeaderChecker simple module (no description)
EthernetFragmentPhyHeaderInserter simple module (no description)
EthernetMacHeaderChecker simple module (no description)
EthernetMacHeaderInserter simple module (no description)
EthernetPhyHeaderChecker simple module (no description)
EthernetPhyHeaderInserter simple module (no description)
EthernetSocketCommandProcessor simple module (no description)
EthernetSocketPacketProcessor simple module (no description)
EthernetTypeOrLengthChecker simple module (no description)
EthernetTypeOrLengthInserter simple module (no description)
ExponentialRateMeter 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.

FlowMeasurementRecorder simple module

This module is part of the flow measurement infrastructure. It can be used to record the collected statistics and also to terminate the flow measurements.

FlowMeasurementStarter simple module (no description)
FullPacketSink simple module

This module is an active/passive full packet sink. It doesn't pull packets from the connected module, and the it doesn't allow packets to be pusehd by the connected module. The input gate generates backpressure for push packet operations.

Ieee8021qAsynchronousShaper compound module

This module implements the IEEE 802.1Q asynchronous shaper.

Ieee8021qCreditBasedGate simple module

This module is a packet gate that can be used to implement the IEEE 802.1q credit based shaper algorithm in combination with a packet queue.

Ieee8021qCreditBasedShaper compound module

This module implements the IEEE 802.1Q credit-based shaper.

Ieee8021qFilter compound module

This module implements the IEEE 802.1Q per-stream filtering and policing. The relationship between streams, gates and meters is not one-to-one. The number of streams, gates and meters can be different and the module will take care about the connections between the submodules based on the streamFilterTable parameter.

Ieee8021qSocketCommandProcessor simple module (no description)
Ieee8021qSocketPacketProcessor simple module (no description)
Ieee8021qTagEpdHeaderChecker simple module (no description)
Ieee8021qTagEpdHeaderInserter simple module (no description)
Ieee8021qTagTpidHeaderChecker simple module (no description)
Ieee8021qTagTpidHeaderInserter simple module (no description)
Ieee8021rTagEpdHeaderChecker simple module (no description)
Ieee8021rTagEpdHeaderInserter simple module (no description)
Ieee8022LlcSocketCommandProcessor simple module (no description)
Ieee8022LlcSocketPacketProcessor simple module (no description)
InteractiveGate simple module

This packet gate module allows or forbids packets to pass through depending on whether the gate is open or closed as specified by the parameter. The gate can also be controlled by the user by manually changing the open parameter from the graphical user interface while the simulation is paused.

LabelFilter simple module

This packet filter module drops packets that don't match the given packet label filter criteria. The criteria can use wildcards and boolean operators.

MultiPacketFilter compound module

This module combines multiple packet filters into one.

MultiPacketMeter compound module

This module combines multiple packet meters into one.

MultiTokenBucketMeter simple module

This module labels packets according to the first token bucket that contains the required number of tokens. If no such token bucket is found then the default label is attached to the packet.

OmittedIeee8021qTagEpdHeaderChecker compound module

This module implements the module given interface and can be used as an omitted optional module that removes itself from the module hierarchy during initialize.

OmittedIeee8021qTagEpdHeaderInserter compound module

This module implements the module given interface and can be used as an omitted optional module that removes itself from the module hierarchy during initialize.

OmittedIeee8021qTagTpidHeaderChecker compound module

This module implements the module given interface and can be used as an omitted optional module that removes itself from the module hierarchy during initialize.

OmittedIeee8021qTagTpidHeaderInserter compound module

This module implements the module given interface and can be used as an omitted optional module that removes itself from the module hierarchy during initialize.

OmittedPacketFilter compound module

This module implements the module given interface and can be used as an omitted optional module that removes itself from the module hierarchy during initialize.

OmittedPacketFlow compound module

This module implements the module given interface and can be used as an omitted optional module that removes itself from the module hierarchy during initialize.

OmittedPacketGate compound module

This module implements the module given interface and can be used as an omitted optional module that removes itself from the module hierarchy during initialize.

OmittedPacketMeter compound module

This module implements the module given interface and can be used as an omitted optional module that removes itself from the module hierarchy during initialize.

PacketDestreamer simple module

This module takes packets streamed to its input and passes them to its output.

PacketDirectionReverser simple module

This module is part of the layer 2 architecture. It turns an incoming packet into an outgoing packet simply by removing all attached indication tags and turning some of them into an attached request tag on the packet.

PacketEmitter simple module (no description)
PacketFilter simple module

This module filters for packets matching the configured filter criteria. When the filter is pushed by a connected packet producer, it either pushes the packet to the connected packet consumer or drops it depending on the configured packet filter. Similarily, when the filter is pulled by a connected packet collector, it pulls packets from the connected packet provider until it finds one which matches the configured packet filter.

PacketGate simple module

This module allows or forbids packets to pass through depending on whether the gate is open or closed.

PacketLabeler simple module

This module attaches a LabelsTag to packets based on the configured filters. For each matching filter a new label is attached.

PacketStreamer simple module

This module takes packets passed to its input and streams them to its output.

PacketTagger simple module

This module attaches various request tags to packets.

PaddingInserter simple module (no description)
PeriodicGate simple module

This module allows or forbids packets to pass through depending on whether the gate is open or closed. The gate is open and closed according to the list of change times periodically.

PreemptableStreamer simple module

This module takes packets passed to its input and streams them to its output.

RelayInterfaceLearner simple module

This module extracts the source MAC address of the packet passing through and stores the mapping from this MAC address to the incoming network interface in the MAC address table (forwarding information database).

RelayInterfaceSelector simple module

This module selects the outgoing interface for the packet passing through from the MAC address table (forwarding information database) based on the destination MAC address. The selected interface is attached to the packet in an InterfaceReq. The packet may be duplicated if multiple interfaces are found.

SimpleIeee8021qFilter compound module

This module implements a simplified version of the IEEE 802.1Q per-stream filtering and policing. Each filtered stream has its own path where metering and filtering happens independently of any other stream.

SingleRateThreeColorMeter simple module

This packet meter module measures the packet flow that is passing through using two token buckets. The meter attaches a LabelsTag to each packet with either green, yellow or red color depending on which token bucket contains the required number of tokens for the packet.

SingleRateTwoColorMeter simple module

This packet meter module measures the packet flow that is passing through using one token bucket. The meter attaches a LabelsTag to each packet with either green or red color depending on whether the token bucket contains the required number of tokens for the packet.

SlidingWindowRateMeter simple module

This module attaches a RateTag to each packet specifying the datarate and packetrate of the received stream of packets. The algorithm takes packets into account only in the given time window.

StatisticalRateLimiter simple module

This module limit the datarate or the packetrate of a stream of packets based on the RateTag attached to the packets.

StreamDecoder simple module

This module decodes the stream of a packet by matching various tags on the packet against the mapping. It can check for network interface, source address, destination address, VLAN id, and PCP. If a match was found then the stream is attached to the packet in a StreamInd tag.

StreamEncoder simple module

This module encodes the stream name of a packet into several request tags attached to the packet. It looks up the stream in the mapping and attaches the necessary request tags to the packet based on the specified parameters.

StreamFilter simple module

This module implements a packet filter using solely the stream name. The stream name must match the filter criteria in order the packet to pass through the filter.

StreamIdentifier simple module

This module identifies the stream of a packet using packet filter expressions. It can check for arbitrary packet data and assign and if a match was found then the stream is attached to the packet in a StreamReq tag.

StreamMerger simple module

This module merges the packets of the same stream by removing duplicates. In addition it also replaces the stream name on the packet based on the mapping parameter. For merging it maintains a separate finite buffer per stream with the last seen sequence numbers.

TokenBucketMeter simple module

This module labels each packet if the token bucket contains enough tokens for the packet that is passing through. The amount of required tokens is equal to the packet length in bits and is subtracted from the number of stored tokens. New tokens are generated with the provided constant rate and they may also be added by other modules.

VlanIndFilter simple module

This module filters out packets based on the attached VlanInd tag.

VlanReqFilter simple module

This module filters out packets based on the attached VlanReq tag.

VlanReqMapper simple module

This module updates the VlanReq tag on packets.

Known subclasses

Name Type Description
IPacketFlow module interface

This module interface is implemented by packet flows. A packet flow 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 pulled from its output. Packets are never dropped but the contents and/or attached meta information may be altered.

IPacketGate module interface

This module interface is implemented by packet gate. A packet gate 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 pulled from its output.

Properties

Name Value Description
display i=block/sink

Source code

//
// This module interface is implemented by packet sink modules which are both
// passive and active simultaneously.
//
// @see ~IPassivePacketSink, ~IActivePacketSink
//
moduleinterface IPacketSink
{
    parameters:
        @display("i=block/sink");
    gates:
        input in @labels(push,pull);
}
File: src/inet/queueing/contract/IPacketSink.ned