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.

mean_pkt_size_ Used to set the expected mean packet size of packets arriving <strong>at</strong> a JoBS link. Setting this variable is requiredto e<strong>ns</strong>ure proper delay differenti<strong>at</strong>ion.Marker objectsmarker_arrvs1_ Number of Class-1 packets to have entered a Marker link.marker_arrvs2_ Number of Class-2 packets to have entered a Marker link.marker_arrvs3_ Number of Class-3 packets to have entered a Marker link.marker_arrvs4_ Number of Class-4 packets to have entered a Marker link.Demarker objectsdemarker_arrvs1_ Number of Class-1 packets to have entered a Demarker link.demarker_arrvs2_ Number of Class-2 packets to have entered a Demarker link.demarker_arrvs3_ Number of Class-3 packets to have entered a Demarker link.demarker_arrvs4_ Number of Class-4 packets to have entered a Demarker link.7.5.5 Comm<strong>and</strong>s <strong>at</strong> a glance<strong>The</strong> following is a list of comm<strong>and</strong>s used to configure the JoBS, Marker <strong>and</strong> Demarker objects.JoBS objectsset q [new Queue/JoBS]This cre<strong>at</strong>es an i<strong>ns</strong>tance of the JoBS queue.$q init-rdcs This assig<strong>ns</strong> the RDCs for the four JoBS classes. For i<strong>ns</strong>tance, using a value of 4 for k2 mea<strong>ns</strong> th<strong>at</strong> Class-3 delays will beroughly equal to four times Class-2 delays. A value of -1 indic<strong>at</strong>es th<strong>at</strong> the class is not concerned by RDCs.Important Note: Since RDCs bound two classes, one would expect only three parameters to be passed (k1, k2, <strong>and</strong> k3, sincek4 theoretically binds Classes 4 <strong>and</strong> 5, <strong>and</strong> Class 5 does not exist). However, in this prototype implement<strong>at</strong>ion, it isimper<strong>at</strong>ive to specify a value different from 0 <strong>and</strong> -1 to k4 if Class 4 is to be concerned by RDCs.Examples: $q init-rdcs -1 2 1 -1 specifies th<strong>at</strong> classes 2 <strong>and</strong> 3 are bound by a delay differenti<strong>at</strong>ion factor of 2, $qinit-rdcs 4 4 4 4 specifies th<strong>at</strong> all classes are bound by a delay differenti<strong>at</strong>ion factor of 4 <strong>and</strong> is equivalent to $qinit-rdcs 4 4 4 1, since the last coefficient is only used to specify th<strong>at</strong> Class 4 is to be bound by proportionaldifferenti<strong>at</strong>ion.$q init-rlcs This assig<strong>ns</strong> the RLCs for the four JoBS classes. For i<strong>ns</strong>tance, using a value of 3 for k1 mea<strong>ns</strong> th<strong>at</strong> Class-2 loss r<strong>at</strong>es will beroughly equal to four times Class-2 loss r<strong>at</strong>es. A value of -1 indic<strong>at</strong>es th<strong>at</strong> the class is not concerned by RLCs. As withRDCs, each RLC binds two classes, thus, one would expect only three parameters to be passed (k’1, k’2, <strong>and</strong> k’3, since k’482

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

Saved successfully!

Ooh no, something went wrong!