PacketEmitter

Package: inet.protocolelement.common

PacketEmitter

simple module

(no description)

Inheritance diagram

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

Extends

Name Type Description
PacketFlowBase simple module

This is a base module for various packet flow modules. A packet flow module passes or streams all pushed or pulled packets after processing them from its input to its output.

Parameters

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

determines the text that is written on top of the submodule

packetFilter object "*"

which packets are considered, matches all packets by default

direction string "undefined"
signalName string

Properties

Name Value Description
display i=block/star
class PacketEmitter

Gates

Name Direction Size Description
in input
out output

Signals

Name Type Unit
packetReceivedFromLower Packet
packetSentToLower Packet

Statistics

Name Title Source Record Unit Interpolation Mode
flowIncomingDataRate flow specific incoming data rate throughput(demuxFlow(merge(packetPushedIn, packetPulledIn))) vector bps linear
outgoingDataRate outgoing data rate throughput(merge(packetPushedOut, packetPulledOut)) vector bps linear
incomingDataRate incoming data rate throughput(merge(packetPushedIn, packetPulledIn)) vector bps linear
outgoingPacketLengths outgoing packet lengths packetLength(merge(packetPushedOut, packetPulledOut)) sum, histogram, vector b none
flowIncomingPacketLengths flow specific incoming packet lengths packetLength(demuxFlow(merge(packetPushedIn, packetPulledIn))) sum, histogram, vector b none
flowOutgoingDataRate flow specific outgoing data rate throughput(demuxFlow(merge(packetPushedOut, packetPulledOut))) vector bps linear
incomingPacketLengths incoming packet lengths packetLength(merge(packetPushedIn, packetPulledIn)) sum, histogram, vector b none
flowOutgoingPacketLengths flow specific outgoing packet lengths packetLength(demuxFlow(merge(packetPushedOut, packetPulledOut))) sum, histogram, vector b none
incomingPackets incoming packets merge(packetPushedIn, packetPulledIn) count pk
outgoingPackets outgoing packets merge(packetPushedOut, packetPulledOut) count pk

Direct method calls (observed)

call tofunctioninfo
EthernetCutthroughSinkinet::EthernetCutthroughSink::pushPacketpushPacket
EthernetFcsCheckerinet::EthernetFcsChecker::pushPacketpushPacket
EthernetFragmentFcsCheckerinet::EthernetFragmentFcsChecker::pushPacketpushPacket
EthernetFragmentFcsInserterinet::EthernetFragmentFcsInserter::pullPacketEndpullPacketEnd
EthernetFragmentFcsInserterinet::EthernetFragmentFcsInserter::pullPacketStartpullPacketStart
EthernetPhyHeaderCheckerinet::physicallayer::EthernetPhyHeaderChecker::pushPacketpushPacket
EthernetPhyHeaderInserterinet::physicallayer::EthernetPhyHeaderInserter::handlePushPacketProcessedhandlePushPacketProcessed
EthernetPhyHeaderInserterinet::physicallayer::EthernetPhyHeaderInserter::pushPacketpushPacket
InterpacketGapInserterinet::InterpacketGapInserter::handleCanPushPacketChangedhandleCanPushPacketChanged
PacketStreamerinet::PacketStreamer::pullPacketEndpullPacketEnd
PacketStreamerinet::PacketStreamer::pullPacketStartpullPacketStart
PacketTransmitterinet::PacketTransmitter::pushPacketpushPacket
StreamThroughTransmitterinet::StreamThroughTransmitter::pushPacketEndpushPacketEnd
StreamThroughTransmitterinet::StreamThroughTransmitter::pushPacketProgresspushPacketProgress
StreamingTransmitterinet::StreamingTransmitter::pushPacketpushPacket
PacketClassifierinet::queueing::PacketClassifier::pushPacketpushPacket
PacketMultiplexerinet::queueing::PacketMultiplexer::handlePushPacketProcessedhandlePushPacketProcessed
PrioritySchedulerinet::queueing::PriorityScheduler::handleCanPullPacketChangedhandleCanPullPacketChanged
InstantServerinet::queueing::InstantServer::handleCanPushPacketChangedhandleCanPushPacketChanged
InstantServerinet::queueing::InstantServer::handlePushPacketProcessedhandlePushPacketProcessed

Called methods (observed)

functioninfocall from
inet::PacketEmitter::handleCanPullPacketChangedhandleCanPullPacketChangedEthernetFragmentFcsInserter, PacketStreamer
inet::PacketEmitter::handleCanPushPacketChangedhandleCanPushPacketChangedEthernetCutthroughSink, EthernetPhyHeaderInserter, PacketTransmitter, StreamThroughTransmitter, StreamingTransmitter
inet::PacketEmitter::handlePushPacketProcessedhandlePushPacketProcessedEthernetCutthroughSink, EthernetPhyHeaderInserter, PacketTransmitter, StreamThroughTransmitter, StreamingTransmitter
inet::PacketEmitter::pullPacketEndpullPacketEndPriorityScheduler
inet::PacketEmitter::pullPacketStartpullPacketStartPriorityScheduler
inet::PacketEmitter::pushPacketpushPacketEthernetCutthroughSource, EthernetPhyHeaderChecker, InterpacketGapInserter, DestreamingReceiver, PacketReceiver, PacketClassifier, InstantServer
inet::PacketEmitter::pushPacketEndpushPacketEndInterpacketGapInserter
inet::PacketEmitter::pushPacketProgresspushPacketProgressInterpacketGapInserter

Pull in messages (observed)

gatemsgkindctrlsrcModuletags
inPacket0EthernetFragmentFcsInserterDirectionTag, DispatchProtocolInd, EncapsulationProtocolReq, FragmentTag, InterfaceReq, MacAddressReq, MulticastReq, NetworkProtocolInd, TransportProtocolInd, VlanReq, PacketProtocolTag?
inPacket0PacketStreamerDirectionTag, DispatchProtocolInd, EncapsulationProtocolReq, InterfaceReq, MacAddressReq, MulticastReq, NetworkProtocolInd, PacketProtocolTag, TransportProtocolInd, VlanReq

Pulled out messages (observed)

gatemsgkindctrldestModuletags
outPacket0PrioritySchedulerDirectionTag, DispatchProtocolInd, EncapsulationProtocolReq, InterfaceReq, MacAddressReq, MulticastReq, NetworkProtocolInd, TransportProtocolInd, VlanReq, FragmentTag?, PacketProtocolTag?

Pushed in messages (observed)

gatemsgkindctrlsrcModuletags
inPacket0EthernetCutthroughSourceCutthroughTag, DirectionTag, InterfaceInd, PacketProtocolTag
inPacket0EthernetPhyHeaderCheckerDirectionTag, DispatchProtocolReq, InterfaceInd, PacketProtocolTag, CutthroughTag?, GptpIngressTimeInd?
inPacket0InterpacketGapInserterDirectionTag, InterfaceReq, MacAddressReq, PacketProtocolTag, CreditGateTag?, CutthroughTag?, DispatchProtocolInd?, DropEligibleInd?, DropEligibleReq?, EcnInd?, EligibilityTimeTag?, EncapsulationProtocolReq?, FragmentTag?, Ieee802SapReq?, InterfaceInd?, MulticastReq?, NetworkProtocolInd?, PcpInd?, PcpReq?, SequenceNumberInd?, SocketReq?, StreamReq?, TransportProtocolInd?, UserPriorityInd?, UserPriorityReq?, VlanInd?, VlanReq?
inPacket0DestreamingReceiverDirectionTag, InterfaceInd, PacketProtocolTag
inPacket0PacketReceiverDirectionTag, InterfaceInd, PacketProtocolTag, GptpIngressTimeInd?
inPacket0PacketClassifierDirectionTag, DispatchProtocolReq, InterfaceInd, PacketProtocolTag, FragmentTag?
inPacket0InstantServerInterfaceReq, MacAddressReq, PacketProtocolTag, CreditGateTag?, CutthroughTag?, DirectionTag?, DispatchProtocolInd?, DropEligibleInd?, DropEligibleReq?, EcnInd?, EligibilityTimeTag?, EncapsulationProtocolReq?, Ieee802SapReq?, InterfaceInd?, MulticastReq?, NetworkProtocolInd?, PcpInd?, PcpReq?, SequenceNumberInd?, SocketReq?, StreamReq?, TransportProtocolInd?, UserPriorityInd?, UserPriorityReq?, VlanInd?, VlanReq?

Push out messages (observed)

gatemsgkindctrldestModuletags
outPacket0EthernetCutthroughSinkCutthroughTag, DirectionTag, EncapsulationProtocolReq, InterfaceInd, InterfaceReq, MacAddressReq, PacketProtocolTag
outPacket0EthernetFcsCheckerDirectionTag, DispatchProtocolReq, InterfaceInd, PacketProtocolTag, CutthroughTag?, GptpIngressTimeInd?
outPacket0EthernetFragmentFcsCheckerDirectionTag, DispatchProtocolReq, FragmentTag, InterfaceInd, PacketProtocolTag
outPacket0EthernetPhyHeaderCheckerDirectionTag, InterfaceInd, PacketProtocolTag, CutthroughTag?, GptpIngressTimeInd?
outPacket0EthernetPhyHeaderInserterDirectionTag, InterfaceReq, MacAddressReq, PacketProtocolTag, CreditGateTag?, CutthroughTag?, DispatchProtocolInd?, DropEligibleInd?, DropEligibleReq?, EcnInd?, EligibilityTimeTag?, EncapsulationProtocolReq?, Ieee802SapReq?, InterfaceInd?, MulticastReq?, NetworkProtocolInd?, PcpInd?, PcpReq?, SequenceNumberInd?, SocketReq?, StreamReq?, TransportProtocolInd?, UserPriorityInd?, UserPriorityReq?, VlanInd?, VlanReq?
outPacket0PacketTransmitterDirectionTag, InterfaceReq, MacAddressReq, PacketProtocolTag, CreditGateTag?, DispatchProtocolInd?, DropEligibleInd?, DropEligibleReq?, EcnInd?, EligibilityTimeTag?, EncapsulationProtocolReq?, Ieee802SapReq?, InterfaceInd?, MulticastReq?, NetworkProtocolInd?, PcpInd?, PcpReq?, SequenceNumberInd?, SocketReq?, StreamReq?, TransportProtocolInd?, UserPriorityInd?, UserPriorityReq?, VlanInd?, VlanReq?
outPacket0StreamThroughTransmitterDirectionTag, DispatchProtocolInd, EncapsulationProtocolReq, InterfaceReq, MacAddressReq, MulticastReq, NetworkProtocolInd, PacketProtocolTag, TransportProtocolInd, VlanReq, FragmentTag?
outPacket0StreamingTransmitterDirectionTag, DispatchProtocolInd, EncapsulationProtocolReq, InterfaceReq, MacAddressReq, MulticastReq, NetworkProtocolInd, PacketProtocolTag, TransportProtocolInd
outPacket0PacketClassifierDirectionTag, InterfaceInd, PacketProtocolTag

Shared Tagging operations (observed)

tagTypetagAction
DirectionTagaddTagIfAbsent

Region Tagging operations (observed)

tagTypetagAction
FlowTagmapAllTags

Source code

simple PacketEmitter extends PacketFlowBase like IPacketFlow
{
    parameters:
        object packetFilter = default("*"); // which packets are considered, matches all packets by default
        string direction @enum("undefined","inbound","outbound") = default("undefined");
        string signalName;
        @class(PacketEmitter);
        @display("i=block/star");
        @signal[packetSentToLower](type=Packet);
        @signal[packetReceivedFromLower](type=Packet);
}
File: src/inet/protocolelement/common/PacketEmitter.ned