12.07.2015 Views

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

maxthresh_ <strong>The</strong> maximum threshold for the average queue size in packets.mean_pktsize_ A rough estim<strong>at</strong>e of the average packet size in bytes. Used in upd<strong>at</strong>ing the calcul<strong>at</strong>ed average queuesize after an idle period.q_weight_ <strong>The</strong> queue weight, used in the exponential-weighted moving average for calcul<strong>at</strong>ing the average queue size.wait_ Set to true to maintain an interval between dropped packets.linterm_ As the average queue size varies between "thresh_" <strong>and</strong> "maxthresh_", the packet dropping probability variesbetween 0 <strong>and</strong> "1/linterm".setbit_ Set to "true" to mark packets by setting the congestion indic<strong>at</strong>ion bit in packet headers r<strong>at</strong>her than drop packets.drop-tail_ Set to true to use drop-tail r<strong>at</strong>her than r<strong>and</strong>omdrop when the queue overflows or the average queue sizeexceeds "maxthresh_". For a further explan<strong>at</strong>ion of these variables, see [2].None of the st<strong>at</strong>e variables of the RED implement<strong>at</strong>ion are accessible.• CBQ objects: CBQ objects are a subclass of Queue objects th<strong>at</strong> implement class-based queueing.$cbq i<strong>ns</strong>ert I<strong>ns</strong>ert traffic class class into the link-sharing structure associ<strong>at</strong>ed with link object cbq.$cbq bind [$id2]Cause packets containing flow id id1 (or those in the range id1 to id2 inclusive) to be associ<strong>at</strong>ed with the traffic classcbqclass.$cbq algorithm Select the CBQ internal algorithm. may be set to one of: "ancestor-only", "top-level", or "formal".• CBQ/WRR objects: CBQ/WRR objects are a subclass of CBQ objects th<strong>at</strong> implement weighted round-robin schedulingamong classes of the same priority level. In contrast, CBQ objects implement packet-by-packet round-robin schedulingamong classes of the same priority level. Configur<strong>at</strong>ion Parameters are:maxpkt_ <strong>The</strong> maximum size of a packet in bytes. This is used only by CBQ/WRR objects in computing maximumb<strong>and</strong>width alloc<strong>at</strong>io<strong>ns</strong> for the weighted round-robin scheduler.CBQCLASS OBJECTSCBQClass objects implement the traffic classes associ<strong>at</strong>ed with CBQ objects.$cbqclass setparams Sets several of the configur<strong>at</strong>ion parameters for the CBQ traffic class (see below).$cbqclass parent specify the parent of this class in the link-sharing tree. <strong>The</strong> parent may be specified as “none” to indic<strong>at</strong>e this class is a root.$cbqclass newallot Change the link alloc<strong>at</strong>ion of this class to the specified amount (in range 0.0 to 1.0). Note th<strong>at</strong> only the specified class isaffected.$cbqclass i<strong>ns</strong>tall-queue I<strong>ns</strong>tall a Queue object into the compound CBQ or CBQ/WRR link structure. When a CBQ object is initially cre<strong>at</strong>ed, itincludes no internal queue (only a packet classifier <strong>and</strong> scheduler).Configur<strong>at</strong>ion Parameters are:okborrow_ is a boolean indic<strong>at</strong>ing the class is permitted to borrow b<strong>and</strong>width from its parent.allot_ is the maximum fraction of link b<strong>and</strong>width alloc<strong>at</strong>ed to the class expressed as a real number between 0.0 <strong>and</strong> 1.0.75

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!