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

📄 node353.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>28.5 Commands at a glance</TITLE><META NAME="description" CONTENT="28.5 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="node352.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node352.html"><LINK REL="up" HREF="node338.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node338.html"><LINK REL="next" HREF="node354.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node354.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html6742"  HREF="node354.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node354.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html6736"  HREF="node338.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node338.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html6732"  HREF="node352.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node352.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html6738"  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="tex2html6740"  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="tex2html6743"  HREF="node354.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node354.html">29. Hierarchical Routing</A><B> Up:</B> <A NAME="tex2html6737"  HREF="node338.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node338.html">28. Network Dynamics</A><B> Previous:</B> <A NAME="tex2html6733"  HREF="node352.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node352.html">28.4 Deficencies in the</A> &nbsp <B>  <A NAME="tex2html6739"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html6741"  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="SECTION05350000000000000000"></A><A NAME="sec:dynamicscommand"></A><BR>28.5 Commands at a glance</H1><P>Following is a list of commands used to simulate dynamic scenarios in :<P><DIV ALIGN="LEFT"><TT>$ns_ rtmodel model model-params args</TT><BR>This command defines the dynamic model (currently implemented models are:Deterministic, Exponential, Manual or Trace) to be applied to nodes andlinks in the topology. The first two arguments consists of the rtmodel andthe parameter to configure the model. &lt;args&gt; stands for different type ofarguments expected with different dynamic model types. This returns ahandle to a model object corresponding to the specified model. </DIV><UL><LI>In the Deterministic model &lt;model-params&gt; is &lt;start-time&gt;, &lt;up-interval&gt;, &lt;down-interval&gt;, &lt;finish-time&gt;. Starting from start-timethe link is made up for up-interval and down for down-interval tillfinish-time is reached. The default values for start-time, up-interval,downinterval are 0.5s, 2.0s, 1.0s respectively. finishtime defaults to theend of the simulation. The start-time defaults to 0.5s in order to let therouting protocol computation quiesce. <P></LI><LI>If the Exponential model is used model-params is of the form&lt;up-interval&gt;, &lt;down-interval&gt; where the link up-time is an exponentialdistribution around the mean upinterval and the link down-time is anexponential distribution around the mean down-interval. Default values forup-interval and down-interval are 10s and 1s respectively. <P></LI><LI>If the Manual distribution is used model-params is &lt;at&gt; &lt;op&gt; whereatspecifies the time at which the operation op should occur. op is one ofup, down. The Manual distribution could be specified alternately using thertmodel-at method described later in the section. <P></LI><LI>If Trace is specified as the model the link/node dynamics is readfrom aTracefile. The model-params argument would in this case be the file-handleof the Tracefile that has the dynamics information. The tracefile formatis identical to the trace output generated by the trace-dynamics linkmethod (see TRACE AND MONITORING METHODS SECTION). </LI></UL><DIV ALIGN="LEFT"></DIV><P><DIV ALIGN="LEFT"><TT>$ns_ rtmodel-delete model</TT><BR>This command takes the handle of the routemodel &lt;model&gt; as an argument,removes  it from the list of rtmodels maintained by simulator and deletesthe model.</DIV><P><DIV ALIGN="LEFT"><TT>$ns_ rtmodel-at  at op args</TT><BR>This command is a special interface to the Manual model of network dynamics.It takes the time &lt;at&gt;, type of operation &lt;op&gt; and node or link on whichto apply the operation &lt;args&gt; as the arguments. At time &lt;at&gt;, the operation &lt;op&gt;which maybe up or down is applied to a node or link.</DIV><P><DIV ALIGN="LEFT"><TT>$rtmodel trace ns f optional:op</TT><BR>This enables tracing of dynamics effected by this model in the links. &lt;ns&gt;is an instance of the simulator, &lt;f&gt; the output file to write the traces toand &lt;op&gt; is an optional argument that may be used to define a type ofoperation (like nam). This is a wrapper for the class Link procedure<TT>trace-dynamics</TT>.</DIV><P><DIV ALIGN="LEFT"><TT>$link trace-dynamics ns f optional:op</TT><BR>This is a class link instance procedure that is used to setup tracing ofdynamics in that particular link. The arguments are same as that of classrtModel's procedure <TT>trace</TT> described above.</DIV><P><DIV ALIGN="LEFT"><TT>$link dynamic</TT><BR>This command inserts a DynamicLink object at the head of the queue and signalsto all connectors in the link that the link is now dynamic.</DIV><P><DIV ALIGN="LEFT">Internal procedures:<BR></DIV><P><DIV ALIGN="LEFT"><TT>$ns_ rtmodel-configure</TT><BR>This is an internal procedure that configures all dynamic models that arepresent in the list of models maintained by the simulator.</DIV><P><DIV ALIGN="LEFT"></DIV><HR><!--Navigation Panel--><A NAME="tex2html6742"  HREF="node354.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node354.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html6736"  HREF="node338.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node338.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html6732"  HREF="node352.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node352.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html6738"  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="tex2html6740"  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="tex2html6743"  HREF="node354.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node354.html">29. Hierarchical Routing</A><B> Up:</B> <A NAME="tex2html6737"  HREF="node338.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node338.html">28. Network Dynamics</A><B> Previous:</B> <A NAME="tex2html6733"  HREF="node352.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node352.html">28.4 Deficencies in the</A> &nbsp <B>  <A NAME="tex2html6739"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html6741"  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 + -