⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 node194.html

📁 相关搜索: ns2仿真结果分析 all-awk ns2 ns2 无限网络中awk文件 ... [2.tcl.rar] - 在ns2平台上实现对AODV协议的模拟
💻 HTML
字号:
<html><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><!--Converted with jLaTeX2HTML 2002 (1.62) JA patch-1.4patched version by:  Kenshi Muto, Debian Project.LaTeX2HTML 2002 (1.62),original version by:  Nikos Drakos, CBLU, University of Leeds* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan* with significant contributions from:  Jens Lippmann, Marek Rouchal, Martin Wilck and others --><HTML><HEAD><TITLE>16.4 Commands at a glance</TITLE><META NAME="description" CONTENT="16.4 Commands at a glance"><META NAME="keywords" CONTENT="everything"><META NAME="resource-type" CONTENT="document"><META NAME="distribution" CONTENT="global"><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1"><META NAME="Generator" CONTENT="jLaTeX2HTML v2002 JA patch-1.4"><META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css"><LINK REL="STYLESHEET" HREF="everything.css" tppabs="http://www.isi.edu/nsnam/ns/doc/everything.css"><LINK REL="previous" HREF="node193.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node193.html"><LINK REL="up" HREF="node171.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node171.html"><LINK REL="next" HREF="node195.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node195.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html4249"  HREF="node195.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node195.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html4243"  HREF="node171.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node171.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html4239"  HREF="node193.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node193.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html4245"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html"><IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="file:/usr/share/latex2html/icons/contents.png"></A> <A NAME="tex2html4247"  HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html"><IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="file:/usr/share/latex2html/icons/index.png"></A> <BR><B> Next:</B> <A NAME="tex2html4250"  HREF="node195.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node195.html">17. Satellite Networking in</A><B> Up:</B> <A NAME="tex2html4244"  HREF="node171.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node171.html">16. Mobile Networking in</A><B> Previous:</B> <A NAME="tex2html4240"  HREF="node193.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node193.html">16.3 Lists of changes</A> &nbsp <B>  <A NAME="tex2html4246"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html4248"  HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <BR><BR><!--End of Navigation Panel--><H1><A NAME="SECTION031340000000000000000"></A><A NAME="sec:wirelesscommand"></A><BR>16.4 Commands at a glance</H1><P>Following is a list of commands used in wireless simulations:<PRE>$ns_ node-config -addressingType \&lt;usually flat or hierarchical used for                                    wireless topologies\&gt;                 -adhocRouting   \&lt;adhoc rotuing protocol like DSDV, DSR,                                   TORA, AODV etc\&gt;                 -llType         \&lt;LinkLayer\&gt;                 -macType        \&lt;MAC type like Mac/802_11\&gt;                 -propType       \&lt;Propagation model like                                   Propagation/TwoRayGround\&gt;                 -ifqType        \&lt;interface queue type like                                   Queue/DropTail/PriQueue\&gt;                 -ifqLen         \&lt;interface queue length like 50\&gt;                 -phyType        \&lt;network inteface type like                                   Phy/WirelessPhy\&gt;                 -antType        \&lt;antenna type like Antenna/OmniAntenna\&gt;                 -channelType    \&lt;Channel type like Channel/WirelessChannel\&gt;                 -topoInstance   \&lt;the topography instance\&gt;                 -wiredRouting   \&lt;turning wired routing ON or OFF\&gt;                 -mobileIP       \&lt;setting the flag for mobileIP ON or OFF\&gt;                 -energyModel    \&lt;EnergyModel type\&gt;                 -initialEnergy  \&lt;specified in Joules\&gt;                 -rxPower        \&lt;specified in W\&gt;                 -txPower        \&lt;specified in W\&gt;                 -agentTrace     \&lt;tracing at agent level turned ON or OFF\&gt;                 -routerTrace    \&lt;tracing at router level turned ON or OFF\&gt;                 -macTrace       \&lt;tracing at mac level turned ON or OFF\&gt;                 -movementTrace  \&lt;mobilenode movement logging turned                                   ON or OFF\&gt;</PRE>This command is used typically to configure for a mobilenode. For more infoabout this command (part of new node APIs) see chapter titled "Restructuringns node and new Node APIs" in ns Notes and Documentation.<P><DIV ALIGN="LEFT"><TT>$ns_ node optional:hier address</TT><BR>This command is used to create a mobilenode after node configuration is doneas shown in the node-config command. Incase hierarchical addressing is beingused, the hier address of the node needs to be passed as well.</DIV><P><DIV ALIGN="LEFT"><TT>$node log-movement</TT><BR>This command previously used to enable logging of mobilenode's movement has nowbeen replaced by <TT>$ns_ node-config -movementTrace ON or OFF</TT>.</DIV><P><DIV ALIGN="LEFT"><TT>create-god num_nodes</TT><BR>This command is used to create a God instance. The number of mobilenodesis passed as argument which is used by God to create a matrix to storeconnectivity information of the topology.</DIV><P><DIV ALIGN="LEFT"><TT>$topo load_flatgrid X Y optional:res</TT><BR>This initializes the grid for the topography object. &lt;X&gt; and &lt;Y&gt; are the x-yco-ordinates for the topology and are used for sizing the grid. The gridresolution may be passed as &lt;res&gt;. A default value of 1 is normally used.</DIV><P><DIV ALIGN="LEFT"><TT>$topo load_demfile file-descrptor</TT><BR>For loading DEMFile objects into topography. See /dem.cc,.h for details onDEMFiles.</DIV><P><DIV ALIGN="LEFT"><TT>$ns_ namtrace-all-wireless namtrace X Y</TT><BR>This command is used to initialize a namtrace file for logging node movementsto be viewed in nam. The namtrace file descriptor, the X and Y co-ordinates of the wireless topology is passed as parameters withthis command.</DIV><P><DIV ALIGN="LEFT"><TT>$ns_ nam-end-wireless stop-time</TT><BR>This command is used to tell nam the simulation stop time given by &lt;stop-time&gt;.</DIV><P><DIV ALIGN="LEFT"><TT>$ns_ initial_node_pos node size</TT><BR>This command defines the node initial position in nam. &lt;size&gt; denotes the sizeof node in nam. This function must be called after mobility model has beendefined.</DIV><P><DIV ALIGN="LEFT"><TT>$mobilenode random-motion 0 or 1</TT><BR>Random-motion is used to turn on random movements for the mobilenode, in whichcase random destinations are assigned to the node. 0 disables and 1 enablesrandom-motion.</DIV><P><DIV ALIGN="LEFT"><TT>$mobilenode setdest X Y s</TT><BR>This command is used to setup a destination for the mobilenode. The mobilenode starts moving towards destination given by &lt;X&gt; and &lt;Y&gt; at a speed of&lt;s&gt; m/s.</DIV><P><DIV ALIGN="LEFT"><TT>$mobilenode reset</TT><BR>This command is used to reset all the objects in the nodes (network components like LL, MAC, phy etc).</DIV><P><DIV ALIGN="LEFT">Internal procedures<BR>Following is a list of internal procedures used in wireless networking:</DIV><P><DIV ALIGN="LEFT"><TT>$mobilenode base-station BSnode-hier-addr</TT><BR>This is used for wired-cum-wireless scenarios. Here the mobilenode is providedwith the base-stationnode info for its domain. The address is hierarchicalsince wired-cum-wireless scenarios typically use hierarchical addressing.</DIV><P><DIV ALIGN="LEFT"><TT>$mobilenode log-target  target-object</TT><BR>The &lt;target-object&gt;, which is normally a trace object, is used to logmobilenode movements and their energy usage, if energy model is provided.</DIV><P><DIV ALIGN="LEFT"><TT>$mobilenode topography topoinstance</TT><BR>This command is used to provide the node with a handle to the topographyobject.</DIV><P><DIV ALIGN="LEFT"><TT>$mobilenode addif</TT><BR>A mobilenode may have more than one network interface. This command is usedto pass handle for a network interface to the node.</DIV><P><DIV ALIGN="LEFT"><TT>$mobilenode  namattach namtracefd</TT><BR>This command is used to attach the namtrace file descriptor &lt;namtracefd&gt;to the mobilenode. All nam traces for the node are then written into thisnamtrace file.</DIV><P><DIV ALIGN="LEFT"><TT>$mobilenode radius r</TT><BR>The radius &lt;r&gt; denotes the node's range. All mobilenodes that fall withinthe circle of radius &lt;r&gt; with the node at its center are considered asneighbours. This info is typically used by the gridkeeper.</DIV><P><DIV ALIGN="LEFT"><TT>$mobilenode start</TT><BR>This command is used to start off the movement of the mobilenode.</DIV><P><DIV ALIGN="LEFT"></DIV><HR><!--Navigation Panel--><A NAME="tex2html4249"  HREF="node195.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node195.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html4243"  HREF="node171.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node171.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html4239"  HREF="node193.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node193.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html4245"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html"><IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="file:/usr/share/latex2html/icons/contents.png"></A> <A NAME="tex2html4247"  HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html"><IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="file:/usr/share/latex2html/icons/index.png"></A> <BR><B> Next:</B> <A NAME="tex2html4250"  HREF="node195.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node195.html">17. Satellite Networking in</A><B> Up:</B> <A NAME="tex2html4244"  HREF="node171.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node171.html">16. Mobile Networking in</A><B> Previous:</B> <A NAME="tex2html4240"  HREF="node193.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node193.html">16.3 Lists of changes</A> &nbsp <B>  <A NAME="tex2html4246"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html4248"  HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <!--End of Navigation Panel--><ADDRESS>2003-09-23</ADDRESS></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -