Package: inet.protocolelement.transceiver
PacketReceiver
simple moduleThis module receives signals from the physical medium (wire) as a whole. It also sends up packets to the upper layer as a whole.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Extends
Name | Type | Description |
---|---|---|
StreamingReceiverBase | simple module | (no description) |
Parameters
Name | Type | Default value | Description |
---|---|---|---|
displayStringTextFormat | string | "processed %p pk (%l)" |
determines the text that is written on top of the submodule |
datarate | double |
Properties
Name | Value | Description |
---|---|---|
display | i=block/wrx | |
class | PacketReceiver |
Gates
Name | Direction | Size | Description |
---|---|---|---|
in | input | ||
out | output |
Signals
Name | Type | Unit |
---|---|---|
receptionEnded | inet::physicallayer::Signal | |
receptionStarted | inet::physicallayer::Signal |
Statistics
Name | Title | Source | Record | Unit | Interpolation Mode |
---|---|---|---|---|---|
propagationTime | propagation time | s | |||
throughput | throughput | throughput(receptionEnded) | vector, histogram | bps | linear |
receptionTime | reception time | packetDuration(receptionEnded) | vector, histogram | s | none |
flowReceptionTime | flow reception time | packetDuration(demuxFlow(receptionEnded)) | vector, histogram | s | none |
Direct method calls (observed)
call to | function | info |
---|---|---|
PcapRecorder | inet::PcapRecorder::receiveSignal | packetReceivedFromLower |
Gptp | inet::Gptp::receiveSignal | receptionEnded |
EthernetPhyHeaderChecker | inet::physicallayer::EthernetPhyHeaderChecker::pushPacket | pushPacket |
PacketEmitter | inet::PacketEmitter::pushPacket | pushPacket |
Called methods (observed)
function | info | call from |
---|---|---|
inet::PacketReceiver::handleOperationStage | handleOperationStage | ScenarioManager |
Incoming messages (observed)
gate | msg | kind | ctrl | srcModule | tags |
---|---|---|---|---|---|
in | Signal | 0 | PacketTransmitter |
Push out messages (observed)
gate | msg | kind | ctrl | destModule | tags |
---|---|---|---|---|---|
out | Packet | 0 | EthernetPhyHeaderChecker | DirectionTag, InterfaceInd, PacketProtocolTag | |
out | Packet | 0 | PacketEmitter | DirectionTag, InterfaceInd, PacketProtocolTag, GptpIngressTimeInd? |
Shared Tagging operations (observed)
tagType | tagAction |
---|---|
DirectionTag | addTagIfAbsent |
InterfaceInd | addTag |
Region Tagging operations (observed)
tagType | tagAction |
---|---|
FlowTag | mapAllTags |
Source code
// // This module receives signals from the physical medium (wire) as a whole. It // also sends up packets to the upper layer as a whole. // simple PacketReceiver extends StreamingReceiverBase like IPacketReceiver { parameters: @class(PacketReceiver); }File: src/inet/protocolelement/transceiver/PacketReceiver.ned