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

📄 node98.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>9.4 Commands at a glance</TITLE><META NAME="description" CONTENT="9.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="node97.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node97.html"><LINK REL="up" HREF="node91.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node91.html"><LINK REL="next" HREF="node99.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node99.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html2803"  HREF="node99.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node99.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html2797"  HREF="node91.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node91.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html2793"  HREF="node97.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node97.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html2799"  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="tex2html2801"  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="tex2html2804"  HREF="node99.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node99.html">10. Agents</A><B> Up:</B> <A NAME="tex2html2798"  HREF="node91.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node91.html">9. Differentiated Services Module</A><B> Previous:</B> <A NAME="tex2html2794"  HREF="node97.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node97.html">9.3 Configuration</A> &nbsp <B>  <A NAME="tex2html2800"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html2802"  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="SECTION03640000000000000000"></A>
<A NAME="sec:diffservcommand"></A><BR>9.4 Commands at a glance</H1>

The following is a list of related commands commonly used in
  simulation scripts:

<PRE>
\\$ns simplex-link \\$edge \\$core 10Mb 5ms dsRED/edge
\\$ns simplex-link \\$core \\$edge 10Mb 5ms dsRED/core</PRE>

These two commands create the queues along 
  the link between an edge router and a core router.

<PRE>
set qEC [[\\$ns link \\$edge \\$core] queue]

# Set DS RED parameters from Edge to Core:
\\$qEC meanPktSize \\$packetSize
\\$qEC set numQueues\_ 1
\\$qEC setNumPrec 2
\\$qEC addPolicyEntry [\$s1 id] [\$dest id] TokenBucket 10 \$cir0 \$cbs0
\\$qEC addPolicyEntry [\$s2 id] [\$dest id] TokenBucket 10 \$cir1 \$cbs1
\\$qEC addPolicerEntry TokenBucket 10 11
\\$qEC addPHBEntry 10 0 0
\\$qEC addPHBEntry 11 0 1
\\$qEC configQ 0 0 20 40 0.02
\\$qEC configQ 0 1 10 20 0.10</PRE>

This block of code obtains handle to the DiffServ queue 
  from an edge router to a core router and 
  configures all of the parameters for it.

The meanPktSize command is required for the RED state variables to be 
  calculated accurately.  
Setting the number of physical queues and precedence levels is optional, 
  but it aids efficiency. 
Because neither the scheduling or MRED mode type are set, 
  they default to Round Robin scheduling and RIO-C Active Queue Management.

The addPolicyEntry commands establish two policies at the edge queue: 
  one between nodes S1 and Dest and one between nodes S2 and Dest.  
Note that the <TT>[$s1 id]</TT> command returns the ID value 
  needed by <TT>addPolicyEntry</TT>.  
The CIR and CBS values used in the policies are the ones set at 
  the beginning of the script.

The <TT>addPolicerEntry</TT> line is required 
  because each policer type and initial code point pair requires 
  an entry in the Policer Table.  
Each of the policies uses the same policer and initial code point, 
  so only one entry is needed.

The&nbsp;<TT>addPHBEntry</TT> commands map each code point to 
  a combination of physical and virtual queue.
Although each code point in this example maps to 
  a unique combination of physical and virtual queue,
  multiple code points could receive identical treatment.

Finally, the&nbsp;<TT>configQ</TT> commands set the RED parameters for 
  each virtual queue.  
It specifies the virtual queue by first two parameters,
  for example, 0 and 1.
The next three parameters are the minimum threshold, maximum threshold,
  and the maximum dropping probability.
Note that as the precedence value increases, 
  the RED parameters become harsher.

<PRE>

set qCE [[\\$ns link \\$core \\$e1] queue]

# Set DS RED parameters from Core to Edge:
\\$qCE meanPktSize \\$packetSize
\\$qCE set numQueues\_ 1
\\$qCE setNumPrec 2
\\$qCE addPHBEntry 10 0 0
\\$qCE addPHBEntry 11 0 1
\\$qCE configQ 0 0 20 40 0.02
\\$qCE configQ 0 1 10 20 0.10</PRE>

Note that the configuration of a core queue matches that of an edge queue, 
  except that there is no Policy Table or Policer Table to 
  configure at a core router.  
A core router's chief requirement is that it has a PHB entry for 
  all code points that it will see.

<PRE>
\\$qE1C printPolicyTable
\\$qCE2 printCoreStats</PRE>

These methods output the policy or policer tables on link and different 
  statistics.  

For further information, please refer to the example scripts under 
tcl/ex/diffserv.
%<HR><!--Navigation Panel--><A NAME="tex2html2803"  HREF="node99.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node99.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html2797"  HREF="node91.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node91.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html2793"  HREF="node97.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node97.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html2799"  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="tex2html2801"  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="tex2html2804"  HREF="node99.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node99.html">10. Agents</A><B> Up:</B> <A NAME="tex2html2798"  HREF="node91.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node91.html">9. Differentiated Services Module</A><B> Previous:</B> <A NAME="tex2html2794"  HREF="node97.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node97.html">9.3 Configuration</A> &nbsp <B>  <A NAME="tex2html2800"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html2802"  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 + -