node337.html

来自「相关搜索: ns2仿真结果分析 all-awk ns2 ns2 无限网络中awk」· HTML 代码 · 共 282 行

HTML
282
字号
<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>27.3 Commands at a glance</TITLE><META NAME="description" CONTENT="27.3 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="node323.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node323.html"><LINK REL="up" HREF="node315.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node315.html"><LINK REL="next" HREF="node338.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node338.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html6496"  HREF="node338.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node338.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html6490"  HREF="node315.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node315.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html6486"  HREF="node336.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node336.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html6492"  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="tex2html6494"  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="tex2html6497"  HREF="node338.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node338.html">28. Network Dynamics</A><B> Up:</B> <A NAME="tex2html6491"  HREF="node315.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node315.html">27. Multicast Routing</A><B> Previous:</B> <A NAME="tex2html6487"  HREF="node336.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node336.html">27.2.4 The internal variables</A> &nbsp <B>  <A NAME="tex2html6493"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html6495"  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="SECTION05230000000000000000"></A><A NAME="sec:mcastcommand"></A><BR>27.3 Commands at a glance</H1><P>Following is a list of commands used for multicast simulations:<DIV ALIGN="LEFT"><TT>set ns [new Simulator -mcast on]</TT><BR>This turns the multicast flag on for the the given simulation, at the time ofcreation of the simulator object.</DIV><P><DIV ALIGN="LEFT"><TT>ns_ multicast</TT><BR>This like the command above turns the multicast flag on.</DIV><P><DIV ALIGN="LEFT"><TT>ns_ multicast?</TT><BR>This returns true if multicast flag has been turned on for the simulationand returns false if multicast is not turned on.</DIV><P><DIV ALIGN="LEFT"><TT>$ns_ mrtproto mproto optional:nodelist</TT><BR>This command specifies the type of multicast protocol &lt;mproto&gt; to be usedlike DM, CtrMcast etc. As an additional argument, the list of nodes &lt;nodelist&gt;that will run an instance of detailed routing protocol (other thancentralised mcast) can also be passed.</DIV><P><DIV ALIGN="LEFT"><TT>$ns_ mrtproto-iifs mproto node iifs</TT><BR>This command allows a finer control than mrtproto. Since multiple mcastprotocols can be run at a node, this command specifies which mcast protocol&lt;mproto&gt; to run at which of the incoming interfaces given by &lt;iifs&gt; in the &lt;node&gt;.</DIV><P><DIV ALIGN="LEFT"><TT>Node allocaddr</TT><BR>This returns a new/unused multicast address that may be used to assign a multicastaddress to a group.</DIV><P><DIV ALIGN="LEFT"><TT>Node expandaddr</TT><BR>THIS COMMAND IS OBSOLETE NOWThis command expands the address space from 16 bits to 30 bits. However thiscommand has been replaced by <TT>"ns_ set-address-format-expanded"</TT>.</DIV><P><DIV ALIGN="LEFT"><TT>$node_ join-group agent grp</TT><BR>This command is used when the &lt;agent&gt; at the node joins a particular group &lt;grp&gt;.</DIV><P><DIV ALIGN="LEFT"><TT>$node_ leave-group agent grp</TT><BR>This is used when the &lt;agent&gt; at the nodes decides to leave the group &lt;grp&gt;.</DIV><P><DIV ALIGN="LEFT">Internal methods:<BR></DIV><P><DIV ALIGN="LEFT"><TT>$ns_ run-mcast</TT><BR>This command starts multicast routing at all nodes. </DIV><P><DIV ALIGN="LEFT"><TT>$ns_ clear-mcast</TT><BR>This stopd mcast routing at all nodes.</DIV><P><DIV ALIGN="LEFT"><TT>$node_ enable-mcast sim</TT><BR>This allows special mcast supporting mechanisms (like a mcast classifier) tobe added to the mcast-enabled node. &lt;sim&gt; is the a handle to the simulatorobject.</DIV><P><DIV ALIGN="LEFT">In addition to the internal methods listed here there are other methods specific toprotocols like centralized mcast (CtrMcast), dense mode (DM), shared treemode (ST) or bi-directional shared tree mode (BST), Node and Link classmethods and NetworkInterface and Multicast classifier methods specific tomulticast routing. All mcast related files may be found under/tcl/mcast directory. </DIV><DL><DT><STRONG>Centralised Multicast</STRONG></DT><DD>A handle to the CtrMcastComp object isreturned when the protocol is specified as `CtrMcast' in mrtproto. Ctrmcast methods are: <BR><P><TT>$ctrmcastcomp switch-treetype group-addr</TT><BR>Switch from the Rendezvous Point rooted shared tree to source-specifictrees for the group specified by group-addr. Note that this method cannotbe used to switch from source-specific trees back to a shared tree for amulticast group. <P><TT>$ctrmcastcomp set_c_rp node-list</TT><BR>This sets the RPs.<P><TT>$ctrmcastcomp set_c_bsr node0:0 node1:1</TT><BR>This sets the BSR, specified as list of node:priority.<P><TT>$ctrmcastcomp get_c_rp node group</TT><BR>Returns the RP for the group as seen by the node node for the multicastgroup with address group-addr. Note that different nodes may see differentRPs for the group if the network is partitioned as the nodes might be indifferent partitions. <P><TT>$ctrmcastcomp get_c_bsr node</TT><BR>Returns the current BSR for the group.<P><TT>$ctrmcastcomp compute-mroutes</TT><BR>This recomputes multicast routes in the event of network dynamics or achange in unicast routes.<P></DD><DT><STRONG>Dense Mode</STRONG></DT><DD>The dense mode (DM) protocol can be run as PIM-DM (default) or DVMRPdepending on the class variable <TT>CacheMissMode</TT>. There are no methodsspecific to this mcast protocol object. Class variables are: <DL><DT><STRONG>PruneTimeout</STRONG></DT><DD>Timeout value for prune state at nodes. defaults to0.5sec.   </DD><DT><STRONG>CacheMissMode</STRONG></DT><DD>Used to set PIM-DM or DVMRP type forwarding rules. </DD></DL><P></DD><DT><STRONG>Shared Tree</STRONG></DT><DD>There are no methods for this class. Variables are:<DL><DT><STRONG>RP_</STRONG></DT><DD>RP_ indexed by group determines which node is the RP for aparticular group.</DD></DL><P></DD><DT><STRONG>Bidirectional Shared Tree</STRONG></DT><DD>There are no methods for this class. Variable is same as that of SharedTree described above.<P></DD></DL><DIV ALIGN="LEFT"></DIV><P><DIV ALIGN="LEFT"></DIV><HR><!--Navigation Panel--><A NAME="tex2html6496"  HREF="node338.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node338.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html6490"  HREF="node315.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node315.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html6486"  HREF="node336.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node336.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html6492"  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="tex2html6494"  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="tex2html6497"  HREF="node338.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node338.html">28. Network Dynamics</A><B> Up:</B> <A NAME="tex2html6491"  HREF="node315.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node315.html">27. Multicast Routing</A><B> Previous:</B> <A NAME="tex2html6487"  HREF="node336.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node336.html">27.2.4 The internal variables</A> &nbsp <B>  <A NAME="tex2html6493"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html6495"  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 + =
减小字号Ctrl + -
显示快捷键?