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.

<strong>The</strong> older cmu model used an incoming_ flag added in all pkts to figure out direction of pkt flow in the lower layers like ll,mac etc. L<strong>at</strong>er this was replaced by a variable called direction_ added in cmn_hdr. direction value can be set to UP, DOWNor NONE. all pkts cre<strong>at</strong>ed with a DOWN dir by default.why: Both these flags were being used which is not really reqd. so incoming_ flag has been replaced with direction_.16.4 Comm<strong>and</strong>s <strong>at</strong> a glanceFollowing is a list of comm<strong>and</strong>s used in wireless simul<strong>at</strong>io<strong>ns</strong>:$<strong>ns</strong>_ node-config -addressingType -adhocRouting -llType-macType -propType -ifqType -ifqLen -phyType -antType -channelType -topoI<strong>ns</strong>tance -wiredRouting -mobileIP -energyModel -initialEnergy -rxPower -txPower -agentTrace -routerTrace -macTrace -movementTrace This comm<strong>and</strong> is used typically to configure for a mobilenode. For more info about this comm<strong>and</strong> (part of new node APIs)see chapter titled "Restructuring <strong>ns</strong> node <strong>and</strong> new Node APIs" in <strong>ns</strong> <strong>Notes</strong> <strong>and</strong> <strong>Document<strong>at</strong>ion</strong>.$<strong>ns</strong>_ node This comm<strong>and</strong> is used to cre<strong>at</strong>e a mobilenode after node configur<strong>at</strong>ion is done as shown in the node-config comm<strong>and</strong>. Incasehierarchical addressing is being used, the hier address of the node needs to be passed as well.$node log-movementThis comm<strong>and</strong> previously used to enable logging of mobilenode’s movement has now been replaced by $<strong>ns</strong>_node-config -movementTrace .cre<strong>at</strong>e-god 167

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

Saved successfully!

Ooh no, something went wrong!