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

📄 node141.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>13.4 Commands at a glance</TITLE><META NAME="description" CONTENT="13.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="node140.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node140.html"><LINK REL="up" HREF="node137.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node137.html"><LINK REL="next" HREF="node142.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node142.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html3444"  HREF="node142.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node142.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html3438"  HREF="node137.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node137.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html3434"  HREF="node140.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node140.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html3440"  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="tex2html3442"  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="tex2html3445"  HREF="node142.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node142.html">14. Local Area Networks</A><B> Up:</B> <A NAME="tex2html3439"  HREF="node137.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node137.html">13. Error Model</A><B> Previous:</B> <A NAME="tex2html3435"  HREF="node140.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node140.html">13.3 Multi-state error model</A> &nbsp <B>  <A NAME="tex2html3441"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html3443"  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="SECTION031040000000000000000"></A><A NAME="sec:errmodelcommand"></A><BR>13.4 Commands at a glance</H1><P>The following is a list of error-model related commands commonly used insimulation scripts:<P><PRE>set em [new ErrorModel]$em unit pkt$em set rate_ 0.02$em ranvar [new RandomVariable/Uniform]$em drop-target [new Agent/Null]</PRE><P>This is a simple example of how to create and configure an error model.The commands to place the error-model in a simple link will be shown next.<P><DIV ALIGN="LEFT"><TT>$simplelink errormodule  args</TT><BR>This commands inserts the error-model before the queue object in simple link.However in this case the error-model's drop-target points to the link's<TT>drophead_</TT> element.</DIV><P><DIV ALIGN="LEFT"><TT>$ns_ lossmodel em src dst</TT><BR>This command places the error-model before the queue in a simplelink definedby the &lt;src&gt; and &lt;dst&gt; nodes. This is basically a wrapper for the above method.</DIV><P><DIV ALIGN="LEFT"><TT>$simplelink insert-linkloss args</TT><BR>This inserts a loss-module after the queue, but right before the delay <TT>link_</TT>element in the simple link. This is because nam can visualize a packet droponly if the packet is on the link or in the queue. The error-module'sdrop-target points to the link's <TT>drophead_</TT> element.</DIV><P><DIV ALIGN="LEFT"><TT>$ns_ link-lossmodel em src dst</TT><BR>This too is a wrapper method for insert-linkloss method described above.That is this inserts the error-module right after the queue element in asimple link (src-dst).</DIV><P><DIV ALIGN="LEFT"></DIV><P><P><HR><!--Navigation Panel--><A NAME="tex2html3444"  HREF="node142.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node142.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html3438"  HREF="node137.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node137.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html3434"  HREF="node140.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node140.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html3440"  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="tex2html3442"  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="tex2html3445"  HREF="node142.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node142.html">14. Local Area Networks</A><B> Up:</B> <A NAME="tex2html3439"  HREF="node137.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node137.html">13. Error Model</A><B> Previous:</B> <A NAME="tex2html3435"  HREF="node140.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node140.html">13.3 Multi-state error model</A> &nbsp <B>  <A NAME="tex2html3441"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html3443"  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 + -