📄 node300.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>26.4.1.0.1 RouteLogic../ns-2/route-proto.tcl</TITLE><META NAME="description" CONTENT="26.4.1.0.1 RouteLogic../ns-2/route-proto.tcl"><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="javascript:if(confirm('http://www.isi.edu/nsnam/ns/doc/node301.html \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon. \n\nDo you want to open it from the server?'))window.location='http://www.isi.edu/nsnam/ns/doc/node301.html'" tppabs="http://www.isi.edu/nsnam/ns/doc/node301.html"><LINK REL="previous" HREF="node299.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node299.html"><LINK REL="up" HREF="node299.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node299.html"><LINK REL="next" HREF="javascript:if(confirm('http://www.isi.edu/nsnam/ns/doc/node301.html \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon. \n\nDo you want to open it from the server?'))window.location='http://www.isi.edu/nsnam/ns/doc/node301.html'" tppabs="http://www.isi.edu/nsnam/ns/doc/node301.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html5942" HREF="javascript:if(confirm('http://www.isi.edu/nsnam/ns/doc/node301.html \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon. \n\nDo you want to open it from the server?'))window.location='http://www.isi.edu/nsnam/ns/doc/node301.html'" tppabs="http://www.isi.edu/nsnam/ns/doc/node301.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html5936" HREF="node299.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node299.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html5930" HREF="node299.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node299.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html5938" 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="tex2html5940" 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="tex2html5943" HREF="javascript:if(confirm('http://www.isi.edu/nsnam/ns/doc/node301.html \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon. \n\nDo you want to open it from the server?'))window.location='http://www.isi.edu/nsnam/ns/doc/node301.html'" tppabs="http://www.isi.edu/nsnam/ns/doc/node301.html">26.4.1.0.2 rtObject../ns-2/route-proto.tcl</A><B> Up:</B> <A NAME="tex2html5937" HREF="node299.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node299.html">26.4.1 The classes</A><B> Previous:</B> <A NAME="tex2html5931" HREF="node299.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node299.html">26.4.1 The classes</A>   <B> <A NAME="tex2html5939" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html5941" HREF="node590.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node590.html">Index</A></B> <BR><BR><!--End of Navigation Panel--><H4><A NAME="SECTION05141010000000000000">26.4.1.0.1 RouteLogic../ns-2/route-proto.tcl</A></H4>This class defines two methods to configure unicast routing,and one method to query it for route information.It also defines an instance procedure that is applicable whenthe topology is dynamic.We discuss this last procedure in conjunctionwith the interface to network dynamics.<UL><LI>The instance procedure[]register../ns-2/route-proto.tclRouteLogic::registeris invoked by []Simulator::rtproto.It takes the protocol and a list of nodes as arguments,and constructs an instance variable, <TT>rtprotos_</TT>, as an array;the array index is the name of the protocol, and the value is the listof nodes that will run this protocol.</LI><LI>The[]configure../ns-2/route-proto.tclRouteLogic::configurereads the <TT>rtprotos_</TT> instance variable, and for each element in the array, invokes route protocol methods to perform the appropriate initializations.It is invoked bythe simulator run procedure../ns-2/ns-lib.tclSimulator::run.<P>For each protocol rt-proto indexed in the <TT>rtprotos_</TT> array,this routine invokes<TT>Agent/rtProto/rt-proto init-all rtprotos_(rt-proto)</TT>.<P>If there are no elements in <TT>rtprotos_</TT>,the routine invokes Static routing, as<TT>Agent/rtProto/Static init-all</TT>.<P></LI><LI>The instance procedure[]lookup../ns-2/route-proto.tclRouteLogic::lookuptakes two node numbers, and , as argument;it returns the id of the neighbor node that uses to reach .<P>The procedure is used by the static route computation procedure to querythe computed routes and populate the routes at each of the nodes.It is also used by the multicast routing protocols to perform theappropriate RPF check.<P>Note that this procedure overloads an instproc-like of the same name.The procedure queries the appropriate <TT>rtObject</TT> entitiesif they exist(which they will if dynamic routing strategies are used in the simulation);otherwise, the procedure invokes the instproc-like to obtain the relevantinformation.</LI></UL><P><HR><!--Navigation Panel--><A NAME="tex2html5942" HREF="javascript:if(confirm('http://www.isi.edu/nsnam/ns/doc/node301.html \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon. \n\nDo you want to open it from the server?'))window.location='http://www.isi.edu/nsnam/ns/doc/node301.html'" tppabs="http://www.isi.edu/nsnam/ns/doc/node301.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html5936" HREF="node299.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node299.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html5930" HREF="node299.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node299.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html5938" 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="tex2html5940" 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="tex2html5943" HREF="javascript:if(confirm('http://www.isi.edu/nsnam/ns/doc/node301.html \n\nThis file was not retrieved by Teleport Pro, because it was unavailable, or its retrieval was aborted, or the project was stopped too soon. \n\nDo you want to open it from the server?'))window.location='http://www.isi.edu/nsnam/ns/doc/node301.html'" tppabs="http://www.isi.edu/nsnam/ns/doc/node301.html">26.4.1.0.2 rtObject../ns-2/route-proto.tcl</A><B> Up:</B> <A NAME="tex2html5937" HREF="node299.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node299.html">26.4.1 The classes</A><B> Previous:</B> <A NAME="tex2html5931" HREF="node299.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node299.html">26.4.1 The classes</A>   <B> <A NAME="tex2html5939" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html5941" 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 + -