Package: inet.linklayer.ieee8021q
Ieee8021qTimeAwareShaper
compound moduleThis module implements the IEEE 802.1Q time aware shaper.
Usage diagram
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Extends
Name | Type | Description |
---|---|---|
CompoundPacketQueueBase | compound module |
This compound module serves as a base module for complex packet queues formed by combining several queueing components. |
Parameters
Name | Type | Default value | Description |
---|---|---|---|
displayStringTextFormat | string | "contains %p pk (%l) pushed %u created %c\n pulled %o removed %r dropped %d" |
determines the text that is written on top of the submodule |
packetCapacity | int | -1 |
maximum number of packets in the queue, no limit by default |
dataCapacity | int | -1b |
maximum total length of packets in the queue, no limit by default |
dropperClass | string | "" |
determines which packets are dropped when the queue is overloaded, packets are not dropped by default; the parameter must be the name of a C++ class which implements the IPacketDropperFunction C++ interface and is registered via Register_Class |
numTrafficClasses | int | 8 |
number of traffic categories |
bitrate | double | ||
hasGcl | bool | false |
Properties
Name | Value | Description |
---|---|---|
display | i=block/queue | |
class | CompoundPacketQueueBase | |
defaultStatistic | queueLength:vector |
Gates
Name | Direction | Size | Description |
---|---|---|---|
in | input | ||
out | output |
Signals
Name | Type | Unit |
---|---|---|
packetRemoved | inet::Packet | |
packetPushStarted | inet::Packet | |
packetDropped | inet::Packet | |
packetPushEnded | inet::Packet? | |
packetPulled | inet::Packet |
Statistics
Name | Title | Source | Record | Unit | Interpolation Mode |
---|---|---|---|---|---|
queueBitLength | queue bit length | warmup(atomic(constant0(localSignal(packetPushEnded)) + sum(packetLength(localSignal(packetPushStarted))) - sum(packetLength(localSignal(packetPulled))) - sum(packetLength(localSignal(packetRemoved))) - sum(packetLength(localSignal(packetDropped))))) | last, max, timeavg, vector | b | sample-hold |
queueLength | queue length | warmup(atomic(constant0(localSignal(packetPushEnded)) + count(localSignal(packetPushStarted)) - count(localSignal(packetPulled)) - count(localSignal(packetRemoved)) - count(localSignal(packetDropped)))) | last, max, timeavg, vector | pk | sample-hold |
droppedPacketsQueueOverflow | dropped packets: queue overflow | packetDropReasonIsQueueOverflow(localSignal(packetDropped)) | count | pk | none |
queueingTime | queueing times | queueingTime(localSignal(packetPulled)) | histogram, vector | s | none |
incomingDataRate | incoming datarate | throughput(localSignal(packetPushStarted)) | vector | bps | linear |
flowQueueingTime | flow queueing times | queueingTime(demuxFlow(localSignal(packetPulled))) | histogram, vector | s | none |
incomingPacketLengths | incoming packet lengths | packetLength(localSignal(packetPushStarted)) | sum, histogram, vector | b | none |
flowIncomingDataRate | flow specific incoming data rate | throughput(flowPacketLength(demuxFlow(localSignal(packetPushStarted)))) | vector | bps | linear |
outgoingDataRate | outgoing datarate | throughput(localSignal(packetPulled)) | vector | bps | linear |
outgoingPacketLengths | outgoing packet lengths | packetLength(localSignal(packetPulled)) | sum, histogram, vector | b | none |
droppedPacketLengthsQueueOverflow | dropped packet lengths: queue overflow | packetLength(packetDropReasonIsQueueOverflow(localSignal(packetDropped))) | sum, vector | b | none |
flowOutgoingDataRate | flow specific outgoing data rate | throughput(flowPacketLength(demuxFlow(localSignal(packetPulled)))) | vector | bps | linear |
incomingPackets | incoming packets | localSignal(packetPushStarted) | count | pk | |
outgoingPackets | outgoing packets | localSignal(packetPulled) | count | pk |
Direct method calls (observed)
call to | function | info |
---|---|---|
PcpTrafficClassClassifier | inet::PcpTrafficClassClassifier::pushPacket | pushPacket |
ContentBasedClassifier | inet::queueing::ContentBasedClassifier::pushPacket | pushPacket |
PriorityScheduler | inet::queueing::PriorityScheduler::pullPacket | pullPacket |
Called methods (observed)
function | info | call from |
---|---|---|
inet::queueing::CompoundPacketQueueBase::pullPacket | pullPacket | InstantServer |
inet::queueing::CompoundPacketQueueBase::pushPacket | pushPacket | LayeredEthernetInterface |
Region Tagging operations (observed)
tagType | tagAction |
---|---|
FlowTag | mapAllTags |
Unassigned submodule parameters
Name | Type | Default value | Description |
---|---|---|---|
gateControlList.numGates | int | 8 | |
gateControlList.offset | double | 0s | |
gateControlList.durations | object | [] |
list of entry durations. E.g., [4ms, 2ms, 2ms, 2ms] |
gateControlList.gateStates | object | [] |
list of gateStates. E.g., ["10000000", "01111111", "10000000", "01111111"] |
Source code
// // This module implements the IEEE 802.1Q time aware shaper. // module Ieee8021qTimeAwareShaper extends CompoundPacketQueueBase { parameters: int numTrafficClasses = default(8); // number of traffic categories double bitrate @unit(bps); bool hasGcl = default(false); *.bitrate = default(this.bitrate); *.extraLength = default(64b); // overhead for Ethernet PHY header submodules: buffer: <default("")> like IPacketBuffer if typename != "" { parameters: @display("p=100,225"); } gateControlList: GateControlList if hasGcl { parameters: @display("p=300,225"); } classifier: <default("PcpTrafficClassClassifier")> like IPacketClassifier { parameters: @display("p=100,100"); } queue[numTrafficClasses]: <default("PacketQueue")> like IPacketQueue { parameters: bufferModule = default(exists(parent.buffer) ? "^.buffer" : ""); @display("p=300,100,column,125"); } transmissionSelectionAlgorithm[numTrafficClasses]: <default("")> like IPacketGate { parameters: @display("p=500,100,column,125"); } transmissionGate[numTrafficClasses]: <default("PeriodicGate")> like IPacketGate { parameters: @display("p=700,100,column,125"); } transmissionSelection: <default("PriorityScheduler")> like IPacketScheduler { parameters: reverseOrder = default(true); @display("p=900,100"); } connections: in --> { @display("m=w"); } --> classifier.in; for i=0..numTrafficClasses - 1 { classifier.out++ --> queue[i].in; queue[i].out --> transmissionSelectionAlgorithm[i].in; transmissionSelectionAlgorithm[i].out --> transmissionGate[i].in; transmissionGate[i].out --> transmissionSelection.in++; } transmissionSelection.out --> { @display("m=e"); } --> out; }File: src/inet/linklayer/ieee8021q/Ieee8021qTimeAwareShaper.ned