📄 node62.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>6.3 Object hierarchy</TITLE><META NAME="description" CONTENT="6.3 Object hierarchy"><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="node63.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node63.html"><LINK REL="previous" HREF="node61.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node61.html"><LINK REL="up" HREF="node57.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node57.html"><LINK REL="next" HREF="node63.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node63.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html2257" HREF="node63.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node63.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html2251" HREF="node57.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node57.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html2245" HREF="node61.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node61.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html2253" 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="tex2html2255" 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="tex2html2258" HREF="node63.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node63.html">6.4 Commands at a</A><B> Up:</B> <A NAME="tex2html2252" HREF="node57.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node57.html">6. Links: Simple Links</A><B> Previous:</B> <A NAME="tex2html2246" HREF="node61.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node61.html">6.2 Connectors</A>   <B> <A NAME="tex2html2254" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html2256" 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="SECTION03330000000000000000"></A><A NAME="sec:linkobjects"></A><BR>6.3 Object hierarchy</H1><P>The base class used to represent links is called Link. Methods forthis class are listed in the next section. Other link objects derived fromthe base class are given as follows:<P><UL><LI>SimpleLink ObjectA SimpleLink object is used to represent a simple unidirectional link.There are no state variables or configuration parameters associated withthis object. Methods for this class are:<TT>$simplelink enable-mcast src dst</TT><BR>This turns on multicast for the link by creating an incoming networkinterface for the destination and adds an outgoing interface for thesource.<P><TT>$simplelink trace ns file optional:op</TT><BR>Build trace objects for this link and update object linkage. If op isspecified as "nam" create nam trace files.<P><TT>$simplelink nam-trace ns file</TT><BR>Sets up nam tracing in the link.<P><TT>$simplelink trace-dynamics ns file optional:op</TT><BR>This sets up tracing specially for dynamic links. <op> allows setting upof nam tracing as well.<P><TT>$simplelink init-monitor ns qtrace sampleInterval</TT><BR>Insert objects that allow us to monitor the queue size of this link.Return the name of the object that can be queried to determine the averagequeue size.<P><TT>$simplelink attach-monitors insnoop outsnoop dropsnoop qmon</TT><BR>This is similar to init-monitor, but allows for specification of more ofthe items.<P><TT>$simplelink dynamic</TT><BR>Sets up the dynamic flag for this link.<P><TT>$simplelink errormodule args</TT><BR>Inserts an error module before the queue.<P><TT>$simpleilnk insert-linkloss args</TT><BR>Inserts the error module after the queue.<P>//Other link objects derived from class SimpleLink are FQLink,CBQLink and IntServLink.<P>Configuration parameters for FQLink are:<DL><DT><STRONG>queueManagement_</STRONG></DT><DD>The type of queue management used in the link. Default value is DropTail.</DD></DL><P>No configuration parameters are specified for CBQLink and IntServLinkobjects.<P></LI><LI>DelayLink ObjectThe DelayLink Objects determine the amount of time required for a packetto traverse a link. This is defined to be size/bw + delay where size isthe packet size, bw is the link bandwidth and delay is the linkpropagation delay. There are no methods or state variables associated withthis object. <P>Configuration Parameters are:<DL><DT><STRONG>bandwidth_</STRONG></DT><DD>Link bandwidth in bits per second. <P></DD><DT><STRONG>delay_</STRONG></DT><DD>Link propagation delay in seconds. </DD></DL></LI></UL><P><HR><!--Navigation Panel--><A NAME="tex2html2257" HREF="node63.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node63.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html2251" HREF="node57.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node57.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html2245" HREF="node61.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node61.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html2253" 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="tex2html2255" 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="tex2html2258" HREF="node63.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node63.html">6.4 Commands at a</A><B> Up:</B> <A NAME="tex2html2252" HREF="node57.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node57.html">6. Links: Simple Links</A><B> Previous:</B> <A NAME="tex2html2246" HREF="node61.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node61.html">6.2 Connectors</A>   <B> <A NAME="tex2html2254" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html2256" 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 + -