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

nmlab.korea.ac.kr
from nmlab.korea.ac.kr More from this publisher
12.07.2015 Views

theoretically bounds Classes 4 and 5, and Class 5 does not exist). As explained above, it is imperative to specify a valuedifferent from 0 and -1 to k’4 if Class 4 is to be concerned by RLCs.$q init-alcs This assigns the absolute loss guarantees (ALCs) to all four classes. L1 to L4 are given in fraction of 1. For instance, settingL1 to 0.05 means that Class-1 loss rate will be guarantees to be less than 5%. A value of -1 indicates that the correspondingclass is not subject to an ALC.$q init-adcs This assigns the absolute loss guarantees (ADCs) to all four classes. D1 to D4 are given in milliseconds. A value of -1indicates that the corresponding class is not subject to an ADC.$q trace-file This specifies the trace file for all per-hop metrics. JoBS uses an internal module to trace loss and delays, service rates, andper-class queue lengths in packets. If filename is set to null, no trace will be provided.$q link [ link]This command is required to bind a link to a JoBS queue. Note that JoBS needs to know the capacity of the link. Thus, thiscommand has to be issued before the simulation is started.$q sampling-period This command specifies the sampling interval (in packets) at which the service rate adjustments for proportionaldifferentiation will be performed. The default is a sampling interval of 1 packet, meaning that the rate allocation isreevaluated upon each packet arrival. Larger sampling intervals speed up the simulations, but typically result in poorerproportional differentiation.$q id This command affects a numerical ID to the JoBS queue.$q initializeThis command is required, and should be run after all configuration operations have been performed. This command willperform the final checks and configuration of the JoBS queue.$q copyright-infoDisplays authors and copyright information.A simple example script (with nam output), fully annotated and commented can be found in ns/tcl/ex/jobs-lossdel.tcl. Amore realistic example of a simulation with JoBS queues can be found in ns/tcl/ex/jobs-cn2002.tcl. This script is verysimilar to what was used in a simulation presented in [21]. Associated tracefiles and gnuplot scripts for visualization (in caseyou favor gnuplot over xgraph can be found in ns/tcl/ex/jobs-lossdel, and ns/tcl/ex/jobs-cn2002.Marker objects$q marker_type Selects the type of marker. 1 is DETERMINISTIC, 2 is STATISTICAL.$q marker_class For a deterministic marker, selects which class packets should be marked with.$q marker_frc For a statistical marker, gives the fraction of packets that should be marked from each class. For instance, using 0.1 for f1means that 10 percent of the traffic coming to the Marker link will be marked as Class 1.83

Demarker objects$q trace-file This command specifies the trace file used for the demarker object. filename.1 will contain the end-to-end delays of eachClass-1 packet to have reached the Demarker link, filename.2 will contain the end-to-end delays of each Class-2 packet tohave reached the Demarker link, and so forth. (There will of course be 4 trace files, one for each class.)84

theoretically bounds Classes 4 <strong>and</strong> 5, <strong>and</strong> Class 5 does not exist). As explained above, it is imper<strong>at</strong>ive to specify a valuedifferent from 0 <strong>and</strong> -1 to k’4 if Class 4 is to be concerned by RLCs.$q init-alcs This assig<strong>ns</strong> the absolute loss guarantees (ALCs) to all four classes. L1 to L4 are given in fraction of 1. For i<strong>ns</strong>tance, settingL1 to 0.05 mea<strong>ns</strong> th<strong>at</strong> Class-1 loss r<strong>at</strong>e will be guarantees to be less than 5%. A value of -1 indic<strong>at</strong>es th<strong>at</strong> the correspondingclass is not subject to an ALC.$q init-adcs This assig<strong>ns</strong> the absolute loss guarantees (ADCs) to all four classes. D1 to D4 are given in milliseconds. A value of -1indic<strong>at</strong>es th<strong>at</strong> the corresponding class is not subject to an ADC.$q trace-file This specifies the trace file for all per-hop metrics. JoBS uses an internal module to trace loss <strong>and</strong> delays, service r<strong>at</strong>es, <strong>and</strong>per-class queue lengths in packets. If filename is set to null, no trace will be provided.$q link [ link]This comm<strong>and</strong> is required to bind a link to a JoBS queue. Note th<strong>at</strong> JoBS needs to know the capacity of the link. Thus, thiscomm<strong>and</strong> has to be issued before the simul<strong>at</strong>ion is started.$q sampling-period This comm<strong>and</strong> specifies the sampling interval (in packets) <strong>at</strong> which the service r<strong>at</strong>e adjustments for proportionaldifferenti<strong>at</strong>ion will be performed. <strong>The</strong> default is a sampling interval of 1 packet, meaning th<strong>at</strong> the r<strong>at</strong>e alloc<strong>at</strong>ion isreevalu<strong>at</strong>ed upon each packet arrival. Larger sampling intervals speed up the simul<strong>at</strong>io<strong>ns</strong>, but typically result in poorerproportional differenti<strong>at</strong>ion.$q id This comm<strong>and</strong> affects a numerical ID to the JoBS queue.$q initializeThis comm<strong>and</strong> is required, <strong>and</strong> should be run after all configur<strong>at</strong>ion oper<strong>at</strong>io<strong>ns</strong> have been performed. This comm<strong>and</strong> willperform the final checks <strong>and</strong> configur<strong>at</strong>ion of the JoBS queue.$q copyright-infoDisplays authors <strong>and</strong> copyright inform<strong>at</strong>ion.A simple example script (with nam output), fully annot<strong>at</strong>ed <strong>and</strong> commented can be found in <strong>ns</strong>/tcl/ex/jobs-lossdel.tcl. Amore realistic example of a simul<strong>at</strong>ion with JoBS queues can be found in <strong>ns</strong>/tcl/ex/jobs-cn2002.tcl. This script is verysimilar to wh<strong>at</strong> was used in a simul<strong>at</strong>ion presented in [21]. Associ<strong>at</strong>ed tracefiles <strong>and</strong> gnuplot scripts for visualiz<strong>at</strong>ion (in caseyou favor gnuplot over xgraph can be found in <strong>ns</strong>/tcl/ex/jobs-lossdel, <strong>and</strong> <strong>ns</strong>/tcl/ex/jobs-cn2002.Marker objects$q marker_type Selects the type of marker. 1 is DETERMINISTIC, 2 is STATISTICAL.$q marker_class For a deterministic marker, selects which class packets should be marked with.$q marker_frc For a st<strong>at</strong>istical marker, gives the fraction of packets th<strong>at</strong> should be marked from each class. For i<strong>ns</strong>tance, using 0.1 for f1mea<strong>ns</strong> th<strong>at</strong> 10 percent of the traffic coming to the Marker link will be marked as Class 1.83

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

Saved successfully!

Ooh no, something went wrong!