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

📄 node56.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>5.6 Commands at a glance</TITLE><META NAME="description" CONTENT="5.6 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="node53.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node53.html"><LINK REL="up" HREF="node39.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node39.html"><LINK REL="next" HREF="node57.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node57.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html2167"  HREF="node57.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node57.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html2161"  HREF="node39.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node39.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html2157"  HREF="node55.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node55.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html2163"  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="tex2html2165"  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="tex2html2168"  HREF="node57.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node57.html">6. Links: Simple Links</A><B> Up:</B> <A NAME="tex2html2162"  HREF="node39.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node39.html">5. Nodes and Packet</A><B> Previous:</B> <A NAME="tex2html2158"  HREF="node55.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node55.html">5.5.2 Node Interface</A> &nbsp <B>  <A NAME="tex2html2164"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html2166"  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="SECTION03260000000000000000"></A><A NAME="sec:nodescommand"></A><BR>5.6 Commands at a glance</H1><DIV ALIGN="LEFT"></DIV><P><DIV ALIGN="LEFT">Following is a list of common node commands used in simulation scripts:</DIV><P><DIV ALIGN="LEFT"><TT>$ns_ node [hier_addr]</TT><BR>Command to create and return a node instance. If &lt;hier_addr&gt; is given,assign the node address to be &lt;hier_addr&gt;. Note that the latter MUSTonly be used when hierarchical addressing is enabled via either[]set-address-format hierarchical or []node-config -addressType hierarchical. </DIV><P><DIV ALIGN="LEFT"><TT>$ns_ node-config -config-parameter optional-val</TT><BR>This command is used to configure nodes. The different config-parametersare addressingType, different type of the network stack components,whether tracing will be turned on or not, mobileIP flag is truned or not,energy model is being used or not etc. An option -reset maybe used to setthe node configuration to its default state. The default setting of node-config, i.e if no values are specified, creates a simple node (baseclass Node) with flat addressing/routing. For the syntax details seeSection&nbsp;<A HREF="node46.html#sec:node:nodeconfig" tppabs="http://www.isi.edu/nsnam/ns/doc/node46.html#sec:node:nodeconfig">5.3</A>.</DIV><P><DIV ALIGN="LEFT"><TT>$node id</TT><BR>Returns the id number of the node.</DIV><P><DIV ALIGN="LEFT"><TT>$node node-addr</TT><BR>Returns the address of the node. In case of flat addressing, the node addressis same as its node-id. In case of hierarchical addressing, the node addressin the form of a string (viz. "1.4.3") is returned.</DIV><P><DIV ALIGN="LEFT"><TT>$node reset</TT> <BR>Resets all agent attached to this node.</DIV><P><DIV ALIGN="LEFT"><TT>$node agent port_num</TT> <BR>Returns the handle of the agent at the specified port. If no agent is foundat the given port, a null string is returned.</DIV><P><DIV ALIGN="LEFT"><TT>$node entry</TT><BR>Returns the entry point for the node. This is first object thathandles packet receiving at this node.</DIV><P><DIV ALIGN="LEFT"><TT>$node attach agent optional:port_num</TT><BR>Attaches the &lt;agent&gt; to this node. Incase no specific port number is passed,the node allocates a port number and binds the agent to this port. Thus oncethe agent is attached, it receives packets destined for this host(node) and port. </DIV><P><DIV ALIGN="LEFT"><TT>$node detach agent null_agent</TT><BR>This is the dual of "attach" described above. It detaches the agentfrom this node and installs a null-agent to the port this agent was attached. This isdone to handle transit packets that may be destined to the detachedagent. These on-the-fly packets are then sinked  at the null-agent.</DIV><P><DIV ALIGN="LEFT"><TT>$node neighbors</TT><BR>This returns the list of neighbors for the node.</DIV><P><DIV ALIGN="LEFT"><TT>$node add-neighbor neighbor_node</TT><BR>This is a command to add <TT>neighbor_node</TT> to the list of neighbors maintained by the node.</DIV><P><DIV ALIGN="LEFT">Following is a list of internal node methods:</DIV><P><DIV ALIGN="LEFT"><TT>$node add-route destination_id target</TT><BR>This is used in unicast routing to populate the classifier. The target is aTcl object, which may be the entry of <TT>dmux_</TT> (port demultiplexer inthe node) incase the <TT>destination_id</TT> is same as this node-id.Otherwise it is usually the head of the link for that destination. Itcould also be the entry for other classifiers.</DIV><P><DIV ALIGN="LEFT"><TT>$node alloc-port null_agent</TT><BR>This returns the next available port number.</DIV><P><DIV ALIGN="LEFT"><TT>$node incr-rtgtable-size</TT><BR>The instance variable <TT>rtsize_</TT> is used to keep track of size ofrouting-table in each node. This command is used to increase therouting-table size every time an routing-entry is added to theclassifiers.</DIV><P><DIV ALIGN="LEFT">There are other node commands that supports hierarchicalrouting, detailed dynamic routing, equal cost multipathrouting, manual routing, and energy model for mobile nodes. Theseand other methods described earlier can be found in tcl/lib/ns-node.tcl and tcl/lib/ns-mobilenode.tcl.</DIV><P><DIV ALIGN="LEFT"></DIV><HR><!--Navigation Panel--><A NAME="tex2html2167"  HREF="node57.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node57.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html2161"  HREF="node39.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node39.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html2157"  HREF="node55.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node55.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html2163"  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="tex2html2165"  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="tex2html2168"  HREF="node57.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node57.html">6. Links: Simple Links</A><B> Up:</B> <A NAME="tex2html2162"  HREF="node39.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node39.html">5. Nodes and Packet</A><B> Previous:</B> <A NAME="tex2html2158"  HREF="node55.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node55.html">5.5.2 Node Interface</A> &nbsp <B>  <A NAME="tex2html2164"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html2166"  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 + -