A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
pie-queue-disc.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 NITK Surathkal
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation;
7 *
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 *
17 * Authors: Shravya Ks <shravya.ks0@gmail.com>
18 * Smriti Murali <m.smriti.95@gmail.com>
19 * Mohit P. Tahiliani <tahiliani@nitk.edu.in>
20 */
21
22/*
23 * PORT NOTE: This code was ported from ns-2.36rc1 (queue/pie.cc).
24 * Most of the comments are also ported from the same.
25 */
26
27#include "pie-queue-disc.h"
28
29#include "ns3/abort.h"
30#include "ns3/double.h"
31#include "ns3/drop-tail-queue.h"
32#include "ns3/enum.h"
33#include "ns3/log.h"
34#include "ns3/simulator.h"
35#include "ns3/uinteger.h"
36
37namespace ns3
38{
39
40NS_LOG_COMPONENT_DEFINE("PieQueueDisc");
41
42NS_OBJECT_ENSURE_REGISTERED(PieQueueDisc);
43
44TypeId
46{
47 static TypeId tid =
48 TypeId("ns3::PieQueueDisc")
50 .SetGroupName("TrafficControl")
51 .AddConstructor<PieQueueDisc>()
52 .AddAttribute("MeanPktSize",
53 "Average of packet size",
54 UintegerValue(1000),
56 MakeUintegerChecker<uint32_t>())
57 .AddAttribute("A",
58 "Value of alpha",
59 DoubleValue(0.125),
61 MakeDoubleChecker<double>())
62 .AddAttribute("B",
63 "Value of beta",
64 DoubleValue(1.25),
66 MakeDoubleChecker<double>())
67 .AddAttribute("Tupdate",
68 "Time period to calculate drop probability",
72 .AddAttribute("Supdate",
73 "Start time of the update timer",
77 .AddAttribute("MaxSize",
78 "The maximum number of packets accepted by this queue disc",
82 .AddAttribute("DequeueThreshold",
83 "Minimum queue size in bytes before dequeue rate is measured",
84 UintegerValue(16384),
86 MakeUintegerChecker<uint32_t>())
87 .AddAttribute("QueueDelayReference",
88 "Desired queue delay",
92 .AddAttribute("MaxBurstAllowance",
93 "Current max burst allowance before random drop",
97 .AddAttribute("UseDequeueRateEstimator",
98 "Enable/Disable usage of Dequeue Rate Estimator",
99 BooleanValue(false),
102 .AddAttribute("UseCapDropAdjustment",
103 "Enable/Disable Cap Drop Adjustment feature mentioned in RFC 8033",
104 BooleanValue(true),
107 .AddAttribute("UseEcn",
108 "True to use ECN (packets are marked instead of being dropped)",
109 BooleanValue(false),
112 .AddAttribute("MarkEcnThreshold",
113 "ECN marking threshold (RFC 8033 suggests 0.1 (i.e., 10%) default)",
114 DoubleValue(0.1),
116 MakeDoubleChecker<double>(0, 1))
117 .AddAttribute("UseDerandomization",
118 "Enable/Disable Derandomization feature mentioned in RFC 8033",
119 BooleanValue(false),
122 .AddAttribute("ActiveThreshold",
123 "Threshold for activating PIE (disabled by default)",
127 .AddAttribute("CeThreshold",
128 "The FqPie CE threshold for marking packets",
132 .AddAttribute("UseL4s",
133 "True to use L4S (only ECT1 packets are marked at CE threshold)",
134 BooleanValue(false),
137
138 return tid;
139}
140
143{
144 NS_LOG_FUNCTION(this);
145 m_uv = CreateObject<UniformRandomVariable>();
147}
148
150{
151 NS_LOG_FUNCTION(this);
152}
153
154void
156{
157 NS_LOG_FUNCTION(this);
158 m_uv = nullptr;
161}
162
163Time
165{
166 return m_qDelay;
167}
168
169int64_t
171{
172 NS_LOG_FUNCTION(this << stream);
173 m_uv->SetStream(stream);
174 return 1;
175}
176
177bool
179{
180 NS_LOG_FUNCTION(this << item);
181
182 QueueSize nQueued = GetCurrentSize();
183 // If L4S is enabled, then check if the packet is ECT1, and if it is then set isEct true
184 bool isEct1 = false;
185 if (item && m_useL4s)
186 {
187 uint8_t tosByte = 0;
188 if (item->GetUint8Value(QueueItem::IP_DSFIELD, tosByte) &&
189 (((tosByte & 0x3) == 1) || (tosByte & 0x3) == 3))
190 {
191 if ((tosByte & 0x3) == 1)
192 {
193 NS_LOG_DEBUG("Enqueueing ECT1 packet " << static_cast<uint16_t>(tosByte & 0x3));
194 }
195 else
196 {
197 NS_LOG_DEBUG("Enqueueing CE packet " << static_cast<uint16_t>(tosByte & 0x3));
198 }
199 isEct1 = true;
200 }
201 }
202
203 if (nQueued + item > GetMaxSize())
204 {
205 // Drops due to queue limit: reactive
207 m_accuProb = 0;
208 return false;
209 }
210 // isEct1 will be true only if L4S enabled as well as the packet is ECT1.
211 // If L4S is enabled and packet is ECT1 then directly enqueue the packet.
212 else if ((m_activeThreshold == Time::Max() || m_active) && !isEct1 &&
213 DropEarly(item, nQueued.GetValue()))
214 {
215 if (!m_useEcn || m_dropProb >= m_markEcnTh || !Mark(item, UNFORCED_MARK))
216 {
217 // Early probability drop: proactive
219 m_accuProb = 0;
220 return false;
221 }
222 }
223
224 // No drop
225 bool retval = GetInternalQueue(0)->Enqueue(item);
226
227 // If the queue is over a certain threshold, Turn ON PIE
229 {
230 m_active = true;
231 m_qDelayOld = Seconds(0);
232 m_dropProb = 0;
233 m_inMeasurement = true;
234 m_dqCount = 0;
235 m_avgDqRate = 0;
237 m_accuProb = 0;
238 m_dqStart = Now();
239 }
240
241 // If queue has been Idle for a while, Turn OFF PIE
242 // Reset Counters when accessing the queue after some idle period if PIE was active before
245 {
246 m_active = false;
247 m_inMeasurement = false;
248 }
249
250 // If Queue::Enqueue fails, QueueDisc::DropBeforeEnqueue is called by the
251 // internal queue because QueueDisc::AddInternalQueue sets the trace callback
252
253 NS_LOG_LOGIC("\t bytesInQueue " << GetInternalQueue(0)->GetNBytes());
254 NS_LOG_LOGIC("\t packetsInQueue " << GetInternalQueue(0)->GetNPackets());
255
256 return retval;
257}
258
259void
261{
262 // Initially queue is empty so variables are initialize to zero except m_dqCount
263 m_inMeasurement = false;
265 m_dropProb = 0;
266 m_avgDqRate = 0.0;
267 m_dqStart = Seconds(0);
269 m_qDelayOld = Seconds(0);
270 m_accuProb = 0.0;
271 m_active = false;
272}
273
274bool
276{
277 NS_LOG_FUNCTION(this << item << qSize);
279 {
280 // If there is still burst_allowance left, skip random early drop.
281 return false;
282 }
283
284 if (m_burstState == NO_BURST)
285 {
288 }
289
290 double p = m_dropProb;
291
292 uint32_t packetSize = item->GetSize();
293
294 if (GetMaxSize().GetUnit() == QueueSizeUnit::BYTES)
295 {
296 p = p * packetSize / m_meanPktSize;
297 }
298
299 // Safeguard PIE to be work conserving (Section 4.1 of RFC 8033)
300 if ((m_qDelayOld.GetSeconds() < (0.5 * m_qDelayRef.GetSeconds()) && m_dropProb < 0.2) ||
301 (GetMaxSize().GetUnit() == QueueSizeUnit::BYTES && qSize <= 2 * m_meanPktSize) ||
302 (GetMaxSize().GetUnit() == QueueSizeUnit::PACKETS && qSize <= 2))
303 {
304 return false;
305 }
306
308 {
309 if (m_dropProb == 0)
310 {
311 m_accuProb = 0;
312 }
314 if (m_accuProb < 0.85)
315 {
316 return false;
317 }
318 else if (m_accuProb >= 8.5)
319 {
320 return true;
321 }
322 }
323
324 double u = m_uv->GetValue();
325 return u <= p;
326}
327
328void
330{
331 NS_LOG_FUNCTION(this);
332 Time qDelay;
333 double p = 0.0;
334 bool missingInitFlag = false;
335
337 {
338 if (m_avgDqRate > 0)
339 {
341 }
342 else
343 {
344 qDelay = Seconds(0);
345 missingInitFlag = true;
346 }
347 m_qDelay = qDelay;
348 }
349 else
350 {
351 qDelay = m_qDelay;
352 }
353 NS_LOG_DEBUG("Queue delay while calculating probability: " << qDelay.GetMilliSeconds() << "ms");
354
356 {
357 m_dropProb = 0;
358 }
359 else
360 {
361 p = m_a * (qDelay.GetSeconds() - m_qDelayRef.GetSeconds()) +
362 m_b * (qDelay.GetSeconds() - m_qDelayOld.GetSeconds());
363 if (m_dropProb < 0.000001)
364 {
365 p /= 2048;
366 }
367 else if (m_dropProb < 0.00001)
368 {
369 p /= 512;
370 }
371 else if (m_dropProb < 0.0001)
372 {
373 p /= 128;
374 }
375 else if (m_dropProb < 0.001)
376 {
377 p /= 32;
378 }
379 else if (m_dropProb < 0.01)
380 {
381 p /= 8;
382 }
383 else if (m_dropProb < 0.1)
384 {
385 p /= 2;
386 }
387 else
388 {
389 // The pseudocode in Section 4.2 of RFC 8033 suggests to use this for
390 // assignment of p, but this assignment causes build failure on Mac OS
391 // p = p;
392 }
393
394 // Cap Drop Adjustment (Section 5.5 of RFC 8033)
395 if (m_isCapDropAdjustment && (m_dropProb >= 0.1) && (p > 0.02))
396 {
397 p = 0.02;
398 }
399 }
400
401 p += m_dropProb;
402
403 // For non-linear drop in prob
404 // Decay the drop probability exponentially (Section 4.2 of RFC 8033)
405 if (qDelay.GetSeconds() == 0 && m_qDelayOld.GetSeconds() == 0)
406 {
407 p *= 0.98;
408 }
409
410 // bound the drop probability (Section 4.2 of RFC 8033)
411 if (p < 0)
412 {
413 m_dropProb = 0;
414 }
415 else if (p > 1)
416 {
417 m_dropProb = 1;
418 }
419 else
420 {
421 m_dropProb = p;
422 }
423
424 // Section 4.4 #2
426 {
428 }
429 else
430 {
432 }
433
434 auto burstResetLimit = static_cast<uint32_t>(BURST_RESET_TIMEOUT / m_tUpdate.GetSeconds());
435 if ((qDelay.GetSeconds() < 0.5 * m_qDelayRef.GetSeconds()) &&
436 (m_qDelayOld.GetSeconds() < (0.5 * m_qDelayRef.GetSeconds())) && (m_dropProb == 0) &&
437 !missingInitFlag)
438 {
440 m_avgDqRate = 0.0;
441 }
442 if ((qDelay.GetSeconds() < 0.5 * m_qDelayRef.GetSeconds()) &&
443 (m_qDelayOld.GetSeconds() < (0.5 * m_qDelayRef.GetSeconds())) && (m_dropProb == 0) &&
445 {
447 {
449 m_burstReset = 0;
450 }
451 else if (m_burstState == IN_BURST)
452 {
453 m_burstReset++;
454 if (m_burstReset > burstResetLimit)
455 {
456 m_burstReset = 0;
458 }
459 }
460 }
461 else if (m_burstState == IN_BURST)
462 {
463 m_burstReset = 0;
464 }
465
466 m_qDelayOld = qDelay;
468}
469
472{
473 NS_LOG_FUNCTION(this);
474
475 if (GetInternalQueue(0)->IsEmpty())
476 {
477 NS_LOG_LOGIC("Queue empty");
478 return nullptr;
479 }
480
481 Ptr<QueueDiscItem> item = GetInternalQueue(0)->Dequeue();
482 NS_ASSERT_MSG(item, "Dequeue null, but internal queue not empty");
483
484 // If L4S is enabled and packet is ECT1, then check if delay is greater
485 // than CE threshold and if it is then mark the packet,
486 // skip PIE steps, and return the item.
487 if (m_useL4s)
488 {
489 uint8_t tosByte = 0;
490 if (item->GetUint8Value(QueueItem::IP_DSFIELD, tosByte) &&
491 (((tosByte & 0x3) == 1) || (tosByte & 0x3) == 3))
492 {
493 if ((tosByte & 0x3) == 1)
494 {
495 NS_LOG_DEBUG("ECT1 packet " << static_cast<uint16_t>(tosByte & 0x3));
496 }
497 else
498 {
499 NS_LOG_DEBUG("CE packet " << static_cast<uint16_t>(tosByte & 0x3));
500 }
501 if ((Now() - item->GetTimeStamp() > m_ceThreshold) &&
503 {
504 NS_LOG_LOGIC("Marking due to CeThreshold " << m_ceThreshold.GetSeconds());
505 }
506 return item;
507 }
508 }
509
510 // if not in a measurement cycle and the queue has built up to dq_threshold,
511 // start the measurement cycle
513 {
515 {
516 m_dqStart = Now();
517 m_dqCount = 0;
518 m_inMeasurement = true;
519 }
520
521 if (m_inMeasurement)
522 {
523 m_dqCount += item->GetSize();
524
525 // done with a measurement cycle
527 {
528 Time dqTime = Now() - m_dqStart;
529 if (dqTime > Seconds(0))
530 {
531 if (m_avgDqRate == 0)
532 {
533 m_avgDqRate = m_dqCount / dqTime.GetSeconds();
534 }
535 else
536 {
538 (0.5 * m_avgDqRate) + (0.5 * (m_dqCount / dqTime.GetSeconds()));
539 }
540 }
541 NS_LOG_DEBUG("Average Dequeue Rate after Dequeue: " << m_avgDqRate);
542
543 // restart a measurement cycle if there is enough data
545 {
546 m_dqStart = Now();
547 m_dqCount = 0;
548 m_inMeasurement = true;
549 }
550 else
551 {
552 m_dqCount = 0;
553 m_inMeasurement = false;
554 }
555 }
556 }
557 }
558 else
559 {
560 m_qDelay = Now() - item->GetTimeStamp();
561
562 if (GetInternalQueue(0)->GetNBytes() == 0)
563 {
564 m_qDelay = Seconds(0);
565 }
566 }
567 return item;
568}
569
570bool
572{
573 NS_LOG_FUNCTION(this);
574 if (GetNQueueDiscClasses() > 0)
575 {
576 NS_LOG_ERROR("PieQueueDisc cannot have classes");
577 return false;
578 }
579
580 if (GetNPacketFilters() > 0)
581 {
582 NS_LOG_ERROR("PieQueueDisc cannot have packet filters");
583 return false;
584 }
585
586 if (GetNInternalQueues() == 0)
587 {
588 // add a DropTail queue
592 }
593
594 if (GetNInternalQueues() != 1)
595 {
596 NS_LOG_ERROR("PieQueueDisc needs 1 internal queue");
597 return false;
598 }
599
600 return true;
601}
602
603} // namespace ns3
This class can be used to hold variables of floating point type such as 'double' or 'float'.
Definition: double.h:42
A FIFO packet queue that drops tail-end packets on overflow.
void Cancel()
This method is syntactic sugar for the ns3::Simulator::Cancel method.
Definition: event-id.cc:55
Implements PIE Active Queue Management discipline.
uint32_t m_dqThreshold
Minimum queue size in bytes before dequeue rate is measured.
uint32_t m_meanPktSize
Average packet size in bytes.
double m_markEcnTh
ECN marking threshold (default 10% as suggested in RFC 8033)
bool m_useDqRateEstimator
Enable/Disable usage of dequeue rate estimator for queue delay calculation.
bool DoEnqueue(Ptr< QueueDiscItem > item) override
This function actually enqueues a packet into the queue disc.
void DoDispose() override
Dispose of the object.
bool m_useL4s
True if L4S is used (ECT1 packets are marked at CE threshold)
Time m_sUpdate
Start time of the update timer.
Time m_dqStart
Start timestamp of current measurement cycle.
bool m_useDerandomization
Enable Derandomization feature mentioned in RFC 8033.
static constexpr const char * UNFORCED_DROP
Early probability drops: proactive.
Time m_maxBurst
Maximum burst allowed before random early dropping kicks in.
EventId m_rtrsEvent
Event used to decide the decision of interval of drop probability calculation.
void CalculateP()
Periodically update the drop probability based on the delay samples: not only the current delay sampl...
Time m_ceThreshold
Threshold above which to CE mark.
Time m_qDelayOld
Old value of queue delay.
double m_dropProb
Variable used in calculation of drop probability.
Time m_burstAllowance
Current max burst value in seconds that is allowed before random drops kick in.
BurstStateT m_burstState
Used to determine the current state of burst.
Time GetQueueDelay()
Get queue delay.
Ptr< QueueDiscItem > DoDequeue() override
This function actually extracts a packet from the queue disc.
bool DropEarly(Ptr< QueueDiscItem > item, uint32_t qSize)
Check if a packet needs to be dropped due to probability drop.
bool m_active
Indicates whether PIE is in active state or not.
double m_avgDqRate
Time averaged dequeue rate.
static const uint64_t DQCOUNT_INVALID
Invalid dqCount value.
uint32_t m_burstReset
Used to reset value of burst allowance.
void InitializeParams() override
Initialize the queue parameters.
bool m_inMeasurement
Indicates whether we are in a measurement cycle.
static constexpr const char * FORCED_DROP
Drops due to queue limit: reactive.
Time m_qDelayRef
Desired queue delay.
~PieQueueDisc() override
PieQueueDisc Destructor.
double m_a
Parameter to pie controller.
static constexpr const char * CE_THRESHOLD_EXCEEDED_MARK
Early probability marks: proactive.
Time m_activeThreshold
Threshold for activating PIE (disabled by default)
bool m_isCapDropAdjustment
Enable/Disable Cap Drop Adjustment feature mentioned in RFC 8033.
int64_t AssignStreams(int64_t stream)
Assign a fixed random variable stream number to the random variables used by this model.
double m_accuProb
Accumulated drop probability.
Ptr< UniformRandomVariable > m_uv
Rng stream.
bool m_useEcn
Enable ECN Marking functionality.
Time m_tUpdate
Time period after which CalculateP () is called.
PieQueueDisc()
PieQueueDisc Constructor.
bool CheckConfig() override
Check whether the current configuration is correct.
Time m_qDelay
Current value of queue delay.
uint64_t m_dqCount
Number of bytes departed since current measurement cycle starts.
static TypeId GetTypeId()
Get the type ID.
double m_b
Parameter to pie controller.
static constexpr const char * UNFORCED_MARK
Early probability marks: proactive.
Smart pointer class similar to boost::intrusive_ptr.
Definition: ptr.h:77
QueueDisc is an abstract base class providing the interface and implementing the operations common to...
Definition: queue-disc.h:184
void AddInternalQueue(Ptr< InternalQueue > queue)
Add an internal queue to the tail of the list of queues.
Definition: queue-disc.cc:573
uint32_t GetNPackets() const
Get the number of packets stored by the queue disc.
Definition: queue-disc.cc:432
uint32_t GetNBytes() const
Get the amount of bytes stored by the queue disc.
Definition: queue-disc.cc:439
Ptr< InternalQueue > GetInternalQueue(std::size_t i) const
Get the i-th internal queue.
Definition: queue-disc.cc:591
QueueSize GetCurrentSize() const
Get the current size of the queue disc in bytes, if operating in bytes mode, or packets,...
Definition: queue-disc.cc:515
std::size_t GetNQueueDiscClasses() const
Get the number of queue disc classes.
Definition: queue-disc.cc:661
QueueSize GetMaxSize() const
Get the maximum size of the queue disc.
Definition: queue-disc.cc:446
std::size_t GetNPacketFilters() const
Get the number of packet filters.
Definition: queue-disc.cc:618
bool SetMaxSize(QueueSize size)
Set the maximum size of the queue disc.
Definition: queue-disc.cc:474
std::size_t GetNInternalQueues() const
Get the number of internal queues.
Definition: queue-disc.cc:598
void DoDispose() override
Dispose of the object.
Definition: queue-disc.cc:376
bool Mark(Ptr< QueueDiscItem > item, const char *reason)
Marks the given packet and, if successful, updates the counters associated with the given reason.
Definition: queue-disc.cc:809
void DropBeforeEnqueue(Ptr< const QueueDiscItem > item, const char *reason)
Perform the actions required when the queue disc is notified of a packet dropped before enqueue.
Definition: queue-disc.cc:720
Class for representing queue sizes.
Definition: queue-size.h:96
uint32_t GetValue() const
Get the underlying value.
Definition: queue-size.cc:183
void SetStream(int64_t stream)
Specifies the stream number for the RngStream.
static EventId Schedule(const Time &delay, FUNC f, Ts &&... args)
Schedule an event to expire after delay.
Definition: simulator.h:571
Simulation virtual time values and global simulation resolution.
Definition: nstime.h:105
int64_t GetMilliSeconds() const
Get an approximation of the time stored in this instance in the indicated unit.
Definition: nstime.h:408
double GetSeconds() const
Get an approximation of the time stored in this instance in the indicated unit.
Definition: nstime.h:403
static Time Max()
Maximum representable Time Not to be confused with Max(Time,Time).
Definition: nstime.h:297
a unique identifier for an interface.
Definition: type-id.h:59
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition: type-id.cc:932
Hold an unsigned integer type.
Definition: uinteger.h:45
double GetValue(double min, double max)
Get the next random value drawn from the distribution.
#define NS_ASSERT_MSG(condition, message)
At runtime, in debugging builds, if this condition is not true, the program prints the message to out...
Definition: assert.h:86
#define NS_LOG_ERROR(msg)
Use NS_LOG to output a message of level LOG_ERROR.
Definition: log.h:254
#define NS_LOG_COMPONENT_DEFINE(name)
Define a Log component with a specific name.
Definition: log.h:202
#define NS_LOG_DEBUG(msg)
Use NS_LOG to output a message of level LOG_DEBUG.
Definition: log.h:268
#define NS_LOG_LOGIC(msg)
Use NS_LOG to output a message of level LOG_LOGIC.
Definition: log.h:282
#define NS_LOG_FUNCTION(parameters)
If log level LOG_FUNCTION is enabled, this macro will output all input parameters separated by ",...
Ptr< T > CreateObjectWithAttributes(Args... args)
Allocate an Object on the heap and initialize with a set of attributes.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition: object-base.h:46
@ BYTES
Use number of bytes for queue size.
Definition: queue-size.h:46
@ PACKETS
Use number of packets for queue size.
Definition: queue-size.h:45
Time Now()
create an ns3::Time instance which contains the current simulation time.
Definition: simulator.cc:305
Time Seconds(double value)
Construct a Time in the indicated unit.
Definition: nstime.h:1319
Time MilliSeconds(uint64_t value)
Construct a Time in the indicated unit.
Definition: nstime.h:1331
QueueDiscSizePolicy
Enumeration of the available policies to handle the queue disc size.
Definition: queue-disc.h:107
@ SINGLE_INTERNAL_QUEUE
Used by queue discs with single internal queue.
Definition: queue-disc.h:108
Every class exported by the ns3 library is enclosed in the ns3 namespace.
Ptr< const AttributeAccessor > MakeQueueSizeAccessor(T1 a1)
Definition: queue-size.h:221
Ptr< const AttributeChecker > MakeBooleanChecker()
Definition: boolean.cc:124
Ptr< const AttributeAccessor > MakeTimeAccessor(T1 a1)
Definition: nstime.h:1407
Ptr< const AttributeAccessor > MakeUintegerAccessor(T1 a1)
Definition: uinteger.h:46
Ptr< const AttributeChecker > MakeQueueSizeChecker()
Definition: queue-size.cc:29
Ptr< const AttributeAccessor > MakeBooleanAccessor(T1 a1)
Definition: boolean.h:81
Ptr< const AttributeAccessor > MakeDoubleAccessor(T1 a1)
Definition: double.h:43
Ptr< const AttributeChecker > MakeTimeChecker()
Helper to make an unbounded Time checker.
Definition: nstime.h:1427
#define BURST_RESET_TIMEOUT
static const uint32_t packetSize
Packet size generated at the AP.