class <Queue/DRR> DRR : public Queue


Inheritance:


Public Methods

inline int blength()
returns queuelength in bytes
inline int length()
returns queuelength in packets

Protected Fields

int blimit_
total number of bytes allowed across all flows
int buckets_
total number of flows allowed
int bytecnt
cumulative sum of bytes across all flows
PacketDRR* curr
current active flow
PacketDRR* drr
pointer to the entire drr struct
int flwcnt
total number of active flows
int mask_
if set hashes on just the node address otherwise on node+port address
int off_ip_
int pktcnt
cumulative sum of packets across all flows
int quantum_
total number of bytes that a flow can send

Protected Methods

inline PacketDRR* getMaxflow(PacketDRR *curr)

Private Methods

void clear()
virtual int command(int argc, const char*const* argv)
Packet* deque(void)
public : DRR()
void enque(Packet *pkt)
int hash(Packet *pkt)

Inherited from Queue:

Public Methods

QueueElem <T> * dequeue()
virtual void destroy()
void detach(QueueElem<T>* e)
void enqueue(QueueElem<T> *e)
QueueElem <T> * getHead()
int is_empty()
virtual void reset()
int size()

Protected Fields

QueueElem <T> * head_
int size_

Documentation

public : DRR()

virtual int command(int argc, const char*const* argv)

Packet* deque(void)

void enque(Packet *pkt)

int hash(Packet *pkt)

void clear()

int buckets_
total number of flows allowed

int blimit_
total number of bytes allowed across all flows

int quantum_
total number of bytes that a flow can send

int mask_
if set hashes on just the node address otherwise on node+port address

int bytecnt
cumulative sum of bytes across all flows

int pktcnt
cumulative sum of packets across all flows

int flwcnt
total number of active flows

PacketDRR* curr
current active flow

PacketDRR* drr
pointer to the entire drr struct

int off_ip_

inline PacketDRR* getMaxflow(PacketDRR *curr)

inline int length()
returns queuelength in packets

inline int blength()
returns queuelength in bytes


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

Adapted for the NS documentation page

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de