ns3::DropTailQueue Class Reference
[Queue]
A FIFO packet queue that drops tail-end packets on overflow.
More...
#include <drop-tail-queue.h>
List of all members.
Detailed Description
A FIFO packet queue that drops tail-end packets on overflow.
Member Enumeration Documentation
Enumeration of the modes supported in the class.
- Enumerator:
-
ILLEGAL |
Mode not set |
PACKETS |
Use number of packets for maximum queue size |
BYTES |
Use number of bytes for maximum queue size |
Constructor & Destructor Documentation
ns3::DropTailQueue::DropTailQueue |
( |
|
) |
|
DropTailQueue Constructor.
Creates a droptail queue with a maximum size of 100 packets by default
Member Function Documentation
Get the encapsulation mode of this device.
- Returns:
- The encapsulation mode of this device.
static TypeId ns3::DropTailQueue::GetTypeId |
( |
void |
|
) |
[static] |
This method returns the TypeId associated to ns3::DropTailQueue.
This object is accessible through the following paths with Config::Set and Config::Connect:
-
/NodeList/[i]/DeviceList/[i]/$ns3::CsmaNetDevice/TxQueue/$ns3::DropTailQueue
-
/NodeList/[i]/DeviceList/[i]/$ns3::EmuNetDevice/TxQueue/$ns3::DropTailQueue
-
/NodeList/[i]/DeviceList/[i]/$ns3::PointToPointNetDevice/TxQueue/$ns3::DropTailQueue
Attributes defined for this type:
-
Mode: Whether to use Bytes (see MaxBytes) or Packets (see MaxPackets) as the maximum queue size metric.
-
Set with class: ns3::EnumValue
-
Underlying type: Bytes|Packets
-
Initial value: Packets
-
Flags: construct write
-
MaxPackets: The maximum number of packets accepted by this DropTailQueue.
-
MaxBytes: The maximum number of bytes accepted by this DropTailQueue.
No TraceSources defined for this type.
TraceSources defined in parent class
ns3::Queue:
-
Enqueue: Enqueue a packet in the queue.
-
Dequeue: Dequeue a packet from the queue.
-
Drop: Drop a packet stored in the queue.
Reimplemented from ns3::Queue.
Set the operating mode of this device.
- Parameters:
-
| mode | The operating mode of this device. |
The documentation for this class was generated from the following files:
- src/node/drop-tail-queue.h
- doc/introspected-doxygen.h