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

📄 node85.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>7.5.5.1 JoBS objects</TITLE><META NAME="description" CONTENT="7.5.5.1 JoBS objects"><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="next" HREF="node86.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node86.html"><LINK REL="previous" HREF="node84.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node84.html"><LINK REL="up" HREF="node84.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node84.html"><LINK REL="next" HREF="node86.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node86.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html2617"  HREF="node86.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node86.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html2611"  HREF="node84.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node84.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html2605"  HREF="node84.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node84.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html2613"  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="tex2html2615"  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="tex2html2618"  HREF="node86.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node86.html">7.5.5.2 Marker objects</A><B> Up:</B> <A NAME="tex2html2612"  HREF="node84.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node84.html">7.5.5 Commands at a</A><B> Previous:</B> <A NAME="tex2html2606"  HREF="node84.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node84.html">7.5.5 Commands at a</A> &nbsp <B>  <A NAME="tex2html2614"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html2616"  HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <BR><BR><!--End of Navigation Panel--><H3><A NAME="SECTION03455100000000000000">7.5.5.1 JoBS objects</A></H3><DIV ALIGN="LEFT"><TT>set q [new Queue/JoBS]</TT><BR>This creates an instance of the JoBS queue. </DIV><P><DIV ALIGN="LEFT"><TT>$q init-rdcs k1 k2 k3 k4</TT><BR>This assigns the RDCs for the four JoBS classes. For instance, using a value of 4 for k2 means that Class-3 delays will be roughly equal to four times Class-2 delays. A value of -1 indicates that the class is not concerned by RDCs. </DIV><P><DIV ALIGN="LEFT"><EM>Important Note:</EM> Since RDCs bound two classes, one would expect only three parameters to be passed (k1, k2, and k3, since k4 theoretically binds Classes 4 and 5, and Class&nbsp;5 does not exist). However, in this prototype implementation, it is imperative to specify a value different from 0 and -1 to k4 if Class&nbsp;4 is to be concerned by RDCs. </DIV><P><DIV ALIGN="LEFT"><EM>Examples:</EM> <TT>$q init-rdcs -1 2 1 -1</TT> specifies that classes&nbsp;2 and 3 are bound by a delay differentiation factor of 2, <TT>$q init-rdcs 4 4 4 4</TT> specifies that all classes are bound by a delay differentiation factor of 4 andis equivalent to <TT>$q init-rdcs 4 4 4 1</TT>, since the last coefficient is only used to specify that Class&nbsp;4 is to be bound by proportional differentiation.</DIV><P><DIV ALIGN="LEFT"><TT>$q init-rlcs k'1 k'2 k'3 k'4</TT><BR>This assigns the RLCs for the four JoBS classes. For instance, using a value of 3 for k1 means that Class-2 loss rates will be roughly equal to four times Class-2 loss rates.A value of -1 indicates that the class is not concerned by RLCs. As with RDCs, each RLC binds two classes, thus, one would expect only three parameters to be passed (k'1, k'2, and k'3, since k'4 theoretically bounds Classes 4 and 5, and Class&nbsp;5 does not exist). As explained above, it is imperative to specify a value different from 0 and -1 to k'4 if Class&nbsp;4 is to be concerned by RLCs.</DIV><P><DIV ALIGN="LEFT"><TT>$q init-alcs L1 L2 L3 L4</TT><BR>This assigns the absolute loss guarantees (ALCs) to all four classes. L1 to L4 are given in fraction of 1. For instance, setting L1 to 0.05 means that Class-1loss rate will be guarantees to be less than 5%. A value of -1 indicates that the corresponding class is not subject to an ALC.</DIV><P><DIV ALIGN="LEFT"><TT>$q init-adcs D1 D2 D3 D4</TT><BR>This assigns the absolute loss guarantees (ADCs) to all four classes. D1 to D4 are given in milliseconds. A value of -1 indicates that the corresponding class is not subject to an ADC.</DIV><P><DIV ALIGN="LEFT"><TT>$q trace-file filename</TT><BR>This specifies the trace file for all per-hop metrics. JoBS uses an internal module to traceloss and delays, service rates, and per-class queue lengths in packets. If filename is set to <B>null</B>, no trace will be provided.</DIV><P><DIV ALIGN="LEFT"><TT>$q link [link-object link]</TT><BR>This command is required to bind a link to a JoBS queue. Note that JoBS needsto know the capacity of the link. Thus, this command <B>has to</B> be issued before the simulation is started.</DIV><P><DIV ALIGN="LEFT"><TT>$q sampling-period sampling-interval</TT><BR>This command specifies the sampling interval (in packets) at which the service rate adjustments for proportional differentiation will be performed. The default is a sampling interval of 1 packet, meaning that the rate allocation is reevaluated upon each packet arrival. Larger sampling intervals speed up the simulations, but typically result in poorer proportional differentiation.</DIV><P><DIV ALIGN="LEFT"><TT>$q id num_id</TT><BR>This command affects a numerical ID to the JoBS queue. </DIV><P><DIV ALIGN="LEFT"><TT>$q initialize</TT><BR>This command is required, and should be run after all configuration operations have been performed. This command will perform the final checks and configuration of the JoBS queue.</DIV><P><DIV ALIGN="LEFT"><TT>$q copyright-info</TT><BR>Displays authors and copyright information.</DIV><P><DIV ALIGN="LEFT">A simple example script (with nam output), fully annotated and commented can be found in /tcl/ex/jobs-lossdel.tcl. A more realistic example of a simulation with JoBS queues can be found in /tcl/ex/jobs-cn2002.tcl. This script is very similar to what was used in a simulation presented in [<A HREF="node589.html#LiCh02" tppabs="http://www.isi.edu/nsnam/ns/doc/node589.html#LiCh02">22</A>]. Associated tracefiles and <EM>gnuplot</EM> scripts for visualization (in case you favor <EM>gnuplot</EM> over <EM>xgraph</EM>can be found in /tcl/ex/jobs-lossdel, and /tcl/ex/jobs-cn2002.</DIV><P><DIV ALIGN="LEFT"></DIV><P><HR><!--Navigation Panel--><A NAME="tex2html2617"  HREF="node86.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node86.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html2611"  HREF="node84.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node84.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html2605"  HREF="node84.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node84.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html2613"  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="tex2html2615"  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="tex2html2618"  HREF="node86.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node86.html">7.5.5.2 Marker objects</A><B> Up:</B> <A NAME="tex2html2612"  HREF="node84.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node84.html">7.5.5 Commands at a</A><B> Previous:</B> <A NAME="tex2html2606"  HREF="node84.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node84.html">7.5.5 Commands at a</A> &nbsp <B>  <A NAME="tex2html2614"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html2616"  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 + -