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

📄 node303.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>26.4.1.0.4 Agent/rtProto../ns-2/route-proto.tcl</TITLE><META NAME="description" CONTENT="26.4.1.0.4 Agent/rtProto../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="node304.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node304.html"><LINK REL="previous" HREF="node302.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node302.html"><LINK REL="up" HREF="node299.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node299.html"><LINK REL="next" HREF="node304.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node304.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html5984"  HREF="node304.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node304.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html5978"  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="tex2html5972"  HREF="node302.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node302.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html5980"  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="tex2html5982"  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="tex2html5985"  HREF="node304.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node304.html">26.4.1.0.5 Other Extensions to</A><B> Up:</B> <A NAME="tex2html5979"  HREF="node299.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node299.html">26.4.1 The classes</A><B> Previous:</B> <A NAME="tex2html5973"  HREF="node302.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node302.html">26.4.1.0.3 The rtPeer../ns-2/route-proto.tcl</A> &nbsp <B>  <A NAME="tex2html5981"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html5983"  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="SECTION05141040000000000000">26.4.1.0.4 Agent/rtProto../ns-2/route-proto.tcl</A></H4>This class is the base class fromwhich all routing protocol agents are derived.Each protocol agent must define the procedure[]init-allto initialize the complete protocol,and possibly instance procedures []init, []compute-routes, and[]send-updates.In addition, if the topology is dynamic, and the protocol supports route computation to react to changes in the topology,then the protocol should define the procedure []compute-all, andpossibly the instance procedure []intf-changed.In this section, we will briefly describe the interface for the basicprocedures.We will defer the description of []compute-all and[]intf-changedto the section on network dynamics.We also defer the description of the details of each of the protocolsto their separate section at the end of the chapter.<DL COMPACT><DT>--<DD>The procedure[]init-all../ns-2/route-proto.tclAgent/rtProto::init-allis a global initialization procedure for the class.It may be given a list of the nodes as an argument.This the list of nodes that should run this routing protocol.However, centralized routing protocols such as static and session routingwill ignore this argument;detailed dynamic routing protocols such as DV will use this argumentlist to instantiate protocols agents at each of the nodes specified.<P>Note that derived classes in OTcl do not inherit the proceduresdefined in the base class. Therefore, every derived routing protocol class must define its ownprocedures explicitly.<P><DT>--<DD>The instance procedure[]init../ns-2/route-proto.tclAgent/rtProto::initis the constructor for protocol agents that are created.The base class constructor initializes the default preference for objects in this class,identifies the interfaces incident on the node and their current status.The interfaces are indexed by the neighbor handle and stored in the instancevariable array, <TT>ifs_</TT>;the corresponding status instance variable array is <TT>ifstat_</TT>.<P>Centralized routing protocols such as static and session routing do notcreate separate agents per node, and therefore do not access any of theseinstance procedures.<P><DT>--<DD>The instance procedure[]compute-routes../ns-2/route-proto.tclAgent/rtProto::compute-routescomputes the actual routes for the protocol.The computation is based on the routes learned by the protocol, andvaries from protocol to protocol.<P>This routine is invoked by the rtObject whenever the topology changes.It is also invoked when the node receives an update for the protocol.<P>If the routine computes new routes, []rtObject::compute-routes needs to be invokedto recompute and possibly install new routes at the node.The actual invoking of the rtObject is done by the procedurethat invoked this routine in the first place.<P><DT>--<DD>The instance procedure[]send-updates../ns-2/route-proto.tclAgent/rtProto::send-updatesis invoked by the rtObject whenever the node routing tables have changed,and fresh updates have to be sent to all peers.The rtObject passes as argument the number of changes that were done.This procedure may also be invoked when there are no changes to the routes,but the topology incident on the node changes state.The number of changes is used to determine the list of peers to whicha route update must be sent.</DD></DL>Other procedures relate to responding to topology changes andare described laterSectionsec:rtglibAPI.<P><HR><!--Navigation Panel--><A NAME="tex2html5984"  HREF="node304.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node304.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html5978"  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="tex2html5972"  HREF="node302.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node302.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html5980"  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="tex2html5982"  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="tex2html5985"  HREF="node304.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node304.html">26.4.1.0.5 Other Extensions to</A><B> Up:</B> <A NAME="tex2html5979"  HREF="node299.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node299.html">26.4.1 The classes</A><B> Previous:</B> <A NAME="tex2html5973"  HREF="node302.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node302.html">26.4.1.0.3 The rtPeer../ns-2/route-proto.tcl</A> &nbsp <B>  <A NAME="tex2html5981"  HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>  &nbsp <B>  <A NAME="tex2html5983"  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 + -