📄 node433.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>33.1.2 Other Configuration Parameters</TITLE><META NAME="description" CONTENT="33.1.2 Other Configuration Parameters"><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="node434.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node434.html"><LINK REL="previous" HREF="node429.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node429.html"><LINK REL="up" HREF="node428.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node428.html"><LINK REL="next" HREF="node434.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node434.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html8061" HREF="node434.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node434.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html8055" HREF="node428.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node428.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html8049" HREF="node432.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node432.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html8057" 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="tex2html8059" 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="tex2html8062" HREF="node434.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node434.html">33.1.3 Statistics</A><B> Up:</B> <A NAME="tex2html8056" HREF="node428.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node428.html">33.1 Configuration</A><B> Previous:</B> <A NAME="tex2html8050" HREF="node432.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node432.html">33.1.1.0.3 Starting the Agent</A>   <B> <A NAME="tex2html8058" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html8060" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <BR><BR><!--End of Navigation Panel--><H2><A NAME="SECTION06412000000000000000"></A><A NAME="sec:config-param"></A><BR>33.1.2 Other Configuration Parameters</H2><P>In addition to the above parameters,the SRM agent supports additional configuration variables.Each of the variables described in this section isboth an OTcl class variable and an OTcl object's instance variable.Changing the class variable changes the default valuefor all agents that are created subsequently.Changing the instance variable of a particular agentonly affects the values used by that agent.For example,<PRE> Agent/SRM set D1_ 2.0 # Changes the class variable; $srm set D1_ 2.0 # Changes D1_ for the particular $srm object only;</PRE><P>The default request and repair timer parameters [<A HREF="node589.html#Floy95:Reliable" tppabs="http://www.isi.edu/nsnam/ns/doc/node589.html#Floy95:Reliable">13</A>]for each SRM agent are:<PRE> Agent/SRM set C1_ 2.0 # request parameters; Agent/SRM set C2_ 2.0 Agent/SRM set D1_ 1.0 # repair parameters; Agent/SRM set D2_ 1.0</PRE>It is thus possible to trivially obtain two flavors of SRM agentsbased on whether the agents use probabilistic or deterministicsuppression by using the following definitions:<PRE> Class Agent/SRM/Deterministic -superclass Agent/SRM Agent/SRM/Deterministic set C2_ 0.0 Agent/SRM/Deterministic set D2_ 0.0 Class Agent/SRM/Probabilistic -superclass Agent/SRM Agent/SRM/Probabilistic set C1_ 0.0 Agent/SRM/Probabilistic set D1_ 0.0</PRE>In a later sectionSectionsec:extensions,we will discuss other ways of extending the SRM agent.<P>Timer related functions are handled by separate objectsbelonging to the class SRM.Timers are required for loss recovery and sending periodic session messages.There are loss recovery objects to send request and repair messages.The agent creates a separate request or repair object to handle each loss.In contrast, the agent only creates one session object to sendperiodic session messages.The default classes the express each of these functions are:<PRE> Agent/SRM set requestFunction_ "SRM/request" Agent/SRM set repairFunction_ "SRM/repair" Agent/SRM set sessionFunction_ "SRM/session" Agent/SRM set requestBackoffLimit_ 5 # parameter to requestFunction_; Agent/SRM set sessionDelay_ 1.0 # parameter to sessionFunction_;</PRE>The instance procedures[]requestFunction../ns-/srm.tclAgent/SRM::requestFunction,[]repairFunction../ns-/srm.tclAgent/SRM::repairFunction,and[]sessionFunction../ns-/srm.tclAgent/SRM::sessionFunctioncan be used to change the default function for individual agents.The last two lines are specific parameters used by the request and session objects.The following sectionSectionsec:architecturedescribes the implementation of theses objects in greater detail.<P><HR><!--Navigation Panel--><A NAME="tex2html8061" HREF="node434.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node434.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html8055" HREF="node428.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node428.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html8049" HREF="node432.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node432.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html8057" 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="tex2html8059" 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="tex2html8062" HREF="node434.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node434.html">33.1.3 Statistics</A><B> Up:</B> <A NAME="tex2html8056" HREF="node428.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node428.html">33.1 Configuration</A><B> Previous:</B> <A NAME="tex2html8050" HREF="node432.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node432.html">33.1.1.0.3 Starting the Agent</A>   <B> <A NAME="tex2html8058" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html8060" 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 + -