PacketPushToSend

Package: inet.queueing.common

simple module PacketPushToSend

Acts as an adapter between the queueing framework and standard OMNeT++ modules. It receives packets through the push mechanism (as a passive packet sink) and forwards them using the standard OMNeT++ send operation. This module is useful for connecting queueing components to non-queueing modules that expect to receive packets via message sending.

inet.queueing.common.PacketPushToSendPacketPushToSendsimple

Inheritance diagram

Extends

Name

Type

Description

PassivePacketSinkBase

simple module

Base module for various active packet sink modules.

Parameters

Name

Type

Default value

Description

displayStringTextFormat

string

“received %p pk (%l)”

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

Properties

Name

Value

Description

class

PacketPushToSend

display

i=block/cogwheel

Gates

Name

Direction

Size

Description

in

input

out

output

Signals

Name

Type

Unit

Description

packetDropped

inet::Packet

packetPushed

inet::Packet

Statistics

Name

Title

Source

Record

Unit

Interpolation Mode

Description

bitLifeTime

bit life time

weightTimes(lengthWeightedValuePerRegion(lifeTimePerRegion(packetPushed)))

histogram?

s

none

the statistical value is the time difference of the current simulation time and the creation time of the bit

dataRate

data rate

throughput(packetPushed)

vector

bps

linear

the statistical value is the data rate of the packets

droppedDataRate

dropped data rate

throughput(packetDropped)

vector

bps

linear

the statistical value is the data rate of the dropped packets

droppedPacketLengths

dropped packet lengths

packetLength(packetDropped)

sum,histogram,vector

b

none

the statistical value is the length of the dropped packet

droppedPackets

dropped packets

packetDropped

count

pk

the statistical value is the dropped packet

duplicatePacketLengths

duplicate packet lengths

packetLength(duplicatePacket(packetPushed))

vector?

b

none

the statistical value is the length of the packet, packet name must have an index suffix (e.g. Foo-42)

duplicatePackets

duplicate packets

duplicatePacket(packetPushed)

count?

pk

the statistical value is the packet, packet name must have an index suffix (e.g. Foo-42)

meanBitLifeTimePerPacket

mean bit life time per packet

weightedMeanPerGroup(groupRegionsPerPacket(lifeTimePerRegion(packetPushed)))

vector,histogram

s

none

the statistical value is the time difference of the current simulation time and the creation time of any bit in the region

missingPacketIndices

missing packet indices

missingPacketIndex(packetPushed)

count?

pk

the statistical value is the packet index, packet name must have an index suffix (e.g. Foo-42)

outOfOrderPacketLengths

out of order packet lenghts

packetLength(outOfOrderPacket(packetPushed))

vector?

b

none

the statistical value is the length of the packet, packet name must have an index suffix (e.g. Foo-42)

outOfOrderPackets

out of order packets

outOfOrderPacket(packetPushed)

count?

pk

the statistical value is the packet, packet name must have an index suffix (e.g. Foo-42)

packetDelayDifferenceToMean

packet delay difference to mean

differenceToMean(weightedMeanPerGroup(groupRegionsPerPacket(lifeTimePerRegion(packetPushed))))

vector,histogram

s

none

the statistical value is the difference of the current and the mean bit elapsed time per packet

packetDelayVariation

packet delay variation

stddev(weightedMeanPerGroup(groupRegionsPerPacket(lifeTimePerRegion(packetPushed))))

vector,histogram

s

the statistical value is the variation of the mean bit elapsed time per packet

packetJitter

packet jitter

jitter(weightedMeanPerGroup(groupRegionsPerPacket(lifeTimePerRegion(packetPushed))))

vector,histogram

s

none

the statistical value is the difference of subsequent values of the mean bit elapsed time per packet

packetLengths

packet lengths

packetLength(packetPushed)

sum,histogram,vector

b

none

the statistical value is the length of the packet

packetLifeTime

packet life time

packetLifeTime(packetPushed)

vector,histogram

s

none

the statistical value is the time difference of the current simulation time and the creation time of the whole packet data, nan if not all bits have the same value

packets

packets

packetPushed

count

pk

the statistical value is the packet

Source code

//
// Acts as an adapter between the queueing framework and standard OMNeT++
// modules. It receives packets through the push mechanism (as a passive packet
// sink) and forwards them using the standard OMNeT++ send operation. This
// module is useful for connecting queueing components to non-queueing modules
// that expect to receive packets via message sending.
//
simple PacketPushToSend extends PassivePacketSinkBase like IPassivePacketSink
{
    parameters:
        @class(PacketPushToSend);
        @display("i=block/cogwheel");
    gates:
        input in @labels(push);
        output out @labels(push);
}

File: src/inet/queueing/common/PacketPushToSend.ned