📄 node77.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.2.2 Creating the JoBS links</TITLE><META NAME="description" CONTENT="7.5.2.2 Creating the JoBS links"><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="node78.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node78.html"><LINK REL="previous" HREF="node76.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node76.html"><LINK REL="up" HREF="node75.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node75.html"><LINK REL="next" HREF="node78.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node78.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html2505" HREF="node78.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node78.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html2499" HREF="node75.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node75.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html2493" HREF="node76.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node76.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html2501" 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="tex2html2503" 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="tex2html2506" HREF="node78.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node78.html">7.5.2.3 Marking the traffic</A><B> Up:</B> <A NAME="tex2html2500" HREF="node75.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node75.html">7.5.2 Configuration</A><B> Previous:</B> <A NAME="tex2html2494" HREF="node76.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node76.html">7.5.2.1 Initial Setup</A>   <B> <A NAME="tex2html2502" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html2504" 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="SECTION03452200000000000000">7.5.2.2 Creating the JoBS links</A></H3><PRE>{\bfseries{}$ns duplex-link $router(1) $router(2) $bw $delay JoBS} # Creates the JoBS link;$ns_ queue-limit $router(1) $router(2) $buffset l [$ns_ get-link $router(1) $router(2)]set q [$l queue]{\bfseries{}$q init-rdcs -1 2 2 2} # Classes 2, 3 and 4 are bound by proportional delay differentiation with a factor of 2;{\bfseries{}$q init-rlcs -1 2 2 2} # Classes 2, 3 and 4 are bound by proportional loss differentiation with a factor of 2;{\bfseries{}$q init-alcs 0.01 -1 -1 -1} # Class 1 is provided with a loss rate bound of 1\%;{\bfseries{}$q init-adcs 0.005 -1 -1 -1} # Class 1 is provided with a delay bound of 5 ms;{\bfseries{}$q init-arcs -1 -1 -1 500000} # Class 4 is provided with a minimumthroughput of 500 Kbps;{\bfseries{}$q link [$l link]} # The link is attached to the queue (required);{\bfseries{}$q trace-file jobstrace} # Trace per-hop, per-class metrics to the file jobstrace;{\bfseries{}$q sampling-period 1} # Reevaluate rate allocation upon each arrival;{\bfseries{}$q id 1}# Assigns an ID of 1 to the JoBS queue;{\bfseries{}$q initialize}# Proceed with the initialization;</PRE><P><BR><HR><ADDRESS>2003-09-23</ADDRESS></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -