Package: inet.queueing.common
PacketMultiplexer
simple moduleThis module connects multiple packet producers to one packet consumer. When a packet is pushed by one of the connected packet producers, then the multiplexer simply pushes the packet to the connected packet consumer.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Used in compound modules
Name | Type | Description |
---|---|---|
AFxyQueue | compound module |
This is an example queue, that implements one class of the Assured Forwarding PHB group (RFC 2597). |
ResponseProducer | compound module |
This module is capable of generating several different streams of packets, one after the other. For each traffic category, the packets are produced by a separate token based server. The traffic stream can be started by adding tokens the corresponding server module. The packet data, packet length, and timing distributions can be configured in the corresponding packet provider. |
TelnetServerConnection | compound module |
This module contains a configurable pre-composed telnet traffic source and traffic sink as part of a telnet server application. |
Extends
Name | Type | Description |
---|---|---|
PacketSinkBase | simple module |
This is a base module for various packet sink modules. |
Parameters
Name | Type | Default value | Description |
---|---|---|---|
displayStringTextFormat | string | "passed %p pk (%l)" |
determines the text that is written on top of the submodule |
Properties
Name | Value | Description |
---|---|---|
display | i=block/join | |
class | PacketMultiplexer |
Gates
Name | Direction | Size | Description |
---|---|---|---|
in [ ] | input | ||
out | output |
Signals
Name | Type | Unit |
---|---|---|
packetDropped | inet::Packet |
Statistics
Name | Title | Source | Record | Unit | Interpolation Mode |
---|---|---|---|---|---|
packetDropped | packets dropped | count, sum(packetBytes), vector(packetBytes) | none |
Source code
// // This module connects multiple packet producers to one packet consumer. When // a packet is pushed by one of the connected packet producers, then the multiplexer // simply pushes the packet to the connected packet consumer. // simple PacketMultiplexer extends PacketSinkBase like IActivePacketSource // TODO: IPassivePacketSink // in gate is vector { parameters: displayStringTextFormat = default("passed %p pk (%l)"); // %p number of packet, %l total length @class(PacketMultiplexer); @display("i=block/join"); gates: input in[] @labels(push); output out @labels(push); }File: src/inet/queueing/common/PacketMultiplexer.ned