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.

$<strong>ns</strong>_ link-lossmodel This function gener<strong>at</strong>es losses (using the loss model i<strong>ns</strong>erted in the link between node <strong>and</strong> node) inthe link th<strong>at</strong> can be visualized by nam.$<strong>ns</strong>_ lossmodel This is used to i<strong>ns</strong>ert a loss module in regular links.Following is a list of internal link-rel<strong>at</strong>ed procedures:$<strong>ns</strong>_ register-nam-linkconfig This is an internal procedure used by "$link orient" to register/upd<strong>at</strong>e the order in which links should be cre<strong>at</strong>ed innam.$<strong>ns</strong>_ remove-nam-linkconfig This procedure is used to remove any duplic<strong>at</strong>e links (duplic<strong>at</strong>e links may be cre<strong>at</strong>ed by GT-ITM topology gener<strong>at</strong>or).$link headRetur<strong>ns</strong> the i<strong>ns</strong>tance variable head_ for the link. <strong>The</strong> head_ is the entry pont to the link <strong>and</strong> it points to the first object inthe link.$link add-to-head This allows the object to be now pointed by the head_ element in the link, i.e, now becomes thefirst object in the link.$link linkRetur<strong>ns</strong> the i<strong>ns</strong>tance variable link_. <strong>The</strong> link_ is the element in the link th<strong>at</strong> actually models the link in terms of delay<strong>and</strong> b<strong>and</strong>width characteristics of the link.$link queueRetur<strong>ns</strong> the i<strong>ns</strong>tance variable queue_. queue_ is queue element in the link. <strong>The</strong>re may be one or more queue elements ina particular link.$link cost This sets a link cost of .$link cost?Retur<strong>ns</strong> the cost value for the link. Default cost of link is set to 1.$link if-label?Retur<strong>ns</strong> the network interfaces associ<strong>at</strong>ed with the link (for multicast routing).$link upThis sets the link st<strong>at</strong>us to "up". This comm<strong>and</strong> is a part of network dynamics support in <strong>ns</strong>.$link downSimilar to up, this comm<strong>and</strong> marks the link st<strong>at</strong>us as "down".$link up?Retur<strong>ns</strong> the link st<strong>at</strong>us. <strong>The</strong> st<strong>at</strong>us is always "up" as default, if link dynamics is not enabled.$link all-connectors opThis comm<strong>and</strong> applies the specified oper<strong>at</strong>ion to all connectors in the link. Like, $link all-connectorsreset or $link all-connectors isDynamic.68

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

Saved successfully!

Ooh no, something went wrong!