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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Average sending r<strong>at</strong>eTSW window lengthClass PolicyClassifier also contai<strong>ns</strong> a Policer Table to store the mappings from a policy type <strong>and</strong> initial code pointpair to its associ<strong>at</strong>ed downgraded code point(s).9.3 Configur<strong>at</strong>ion<strong>The</strong> number of physical <strong>and</strong> virtual queues can be configured as:$dsredq set numQueues_ 1$dsredq setNumPrec 2Variable numQueues_ in class dsREDQueue specifies the number of physical queues. It has a default value as 4 definedin ~<strong>ns</strong>/tcl/lib/<strong>ns</strong>-default.tcl <strong>and</strong> can be changed as shown in the example above. Variable setNumPrec sets the number ofvirtual queues within one physical queue.RED parameters can be configured for each virtual queue as follows:$dsredq configQ 0 1 10 20 0.10<strong>The</strong> mean packet size (in bytes) is also needed for the average RED queue length calcul<strong>at</strong>ion.$dsredq meanPktSize 1500<strong>The</strong> variant of MRED used to calcul<strong>at</strong>e queue sizes can be configured.$dsredq setMREDMode RIO-C 0<strong>The</strong> above comm<strong>and</strong> sets the MRED mode of physical queue 0 to RIO-C. If the second argument was not included, all queueswould be set to RIO-C which is the default.<strong>The</strong> various MRED modes supported in DiffServ module are:RIO-C (RIO Coupled): <strong>The</strong> probability of dropping an out-of-profile packet is based on the weighted average lengths of allvirtual queues; while the probability of dropping an in-profile packet is based solely on the weighted average length ofits virtual queue.RIO-D (RIO De-coupled): Similar to RIO-C; except the probability of dropping an out-of-profile packet is based on thesize of its virtual queue.WRED (Weighted RED): All probabilities are based on a single queue length.DROP: Same as a drop tail queue with queue limit set by RED minimum threshold: when the queue size reaches theminimum threshold, all packets are dropped regardless of marking.<strong>The</strong> following comm<strong>and</strong> adds an entry to the PHB Table <strong>and</strong> maps code point 11 to physical queue 0 <strong>and</strong> virtual queue 1.$dsredq addPHBEntry 11 0 190

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

Saved successfully!

Ooh no, something went wrong!