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.

$node neighborsThis retur<strong>ns</strong> the list of neighbors for the node.$node add-neighbor This is a comm<strong>and</strong> to add to the list of neighbors maintained by the node.Following is a list of internal node methods:$node add-route This is used in unicast routing to popul<strong>at</strong>e the classifier. <strong>The</strong> target is a Tcl object, which may be the entry of dmux_ (portdemultiplexer in the node) incase the is same as this node-id. Otherwise it is usually the head of thelink for th<strong>at</strong> destin<strong>at</strong>ion. It could also be the entry for other classifiers.$node alloc-port This retur<strong>ns</strong> the next available port number.$node incr-rtgtable-size<strong>The</strong> i<strong>ns</strong>tance variable rtsize_ is used to keep track of size of routing-table in each node. This comm<strong>and</strong> is used toincrease the routing-table size every time an routing-entry is added to the classifiers.<strong>The</strong>re are other node comm<strong>and</strong>s th<strong>at</strong> supports hierarchical routing, detailed dynamic routing, equal cost multip<strong>at</strong>h routing,manual routing, <strong>and</strong> energy model for mobile nodes. <strong>The</strong>se <strong>and</strong> other methods described earlier can be found in~<strong>ns</strong>/tcl/lib/<strong>ns</strong>-node.tcl <strong>and</strong> ~<strong>ns</strong>/tcl/lib/<strong>ns</strong>-mobilenode.tcl.62

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

Saved successfully!

Ooh no, something went wrong!