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.

$simplelink init-monitor I<strong>ns</strong>ert objects th<strong>at</strong> allow us to monitor the queue size of this link. Return the name of the object th<strong>at</strong> can be queried todetermine the average queue size.$simplelink <strong>at</strong>tach-monitors This is similar to init-monitor, but allows for specific<strong>at</strong>ion of more of the items.$simplelink dynamicSets up the dynamic flag for this link.$simplelink errormodule I<strong>ns</strong>erts an error module before the queue.$simpleilnk i<strong>ns</strong>ert-linkloss I<strong>ns</strong>erts the error module after the queue.//Other link objects derived from class SimpleLink are FQLink, CBQLink <strong>and</strong> IntServLink.Configur<strong>at</strong>ion parameters for FQLink are:queueManagement_ <strong>The</strong> type of queue management used in the link. Default value is DropTail.No configur<strong>at</strong>ion parameters are specified for CBQLink <strong>and</strong> IntServLink objects.• DelayLink Object <strong>The</strong> DelayLink Objects determine the amount of time required for a packet to traverse a link. This isdefined to be size/bw + delay where size is the packet size, bw is the link b<strong>and</strong>width <strong>and</strong> delay is the link propag<strong>at</strong>iondelay. <strong>The</strong>re are no methods or st<strong>at</strong>e variables associ<strong>at</strong>ed with this object.Configur<strong>at</strong>ion Parameters are:b<strong>and</strong>width_ Link b<strong>and</strong>width in bits per second.delay_ Link propag<strong>at</strong>ion delay in seconds.6.4 Comm<strong>and</strong>s <strong>at</strong> a glanceFollowing is a list of common link comm<strong>and</strong>s used in simul<strong>at</strong>ion scripts:$<strong>ns</strong>_ simplex-link This comm<strong>and</strong> cre<strong>at</strong>es an unidirectional link between node1 <strong>and</strong> node2 with specified b<strong>and</strong>width (BW) <strong>and</strong> delaycharacteristics. <strong>The</strong> link uses a queue type of <strong>and</strong> depending on the queue type different arguments are passedthrough .$<strong>ns</strong>_ duplex-link This cre<strong>at</strong>es a bi-directional link between node1 <strong>and</strong> node2. This procedure essentially cre<strong>at</strong>es a duplex-link from twosimplex links, one from node1 to node2 <strong>and</strong> the other from node2 to node1. <strong>The</strong> syntax for duplex-link is same as th<strong>at</strong> ofsimplex-link described above.$<strong>ns</strong>_ duplex-intserv-link This cre<strong>at</strong>es a duplex-link between n1 <strong>and</strong> n2 with queue type of intserv, with specified BW <strong>and</strong> delay. This type of queueimplements a scheduler with two level services priority. <strong>The</strong> type of intserv queue is given by , with admissioncontrol unit type of <strong>and</strong> signal module of type .$<strong>ns</strong>_ simplex-link-op This is used to set <strong>at</strong>tributes for a simplex link. <strong>The</strong> <strong>at</strong>tributes may be the orient<strong>at</strong>ion, color, label, or queue-position.$<strong>ns</strong>_ duplex-link-op This comm<strong>and</strong> is used to set link <strong>at</strong>tributes (like orient<strong>at</strong>ion of the links, color, label, or queue-position) for duplex links.67

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

Saved successfully!

Ooh no, something went wrong!