📄 node465.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>34.3.2 Instantiation of a PLM Receiver</TITLE><META NAME="description" CONTENT="34.3.2 Instantiation of a PLM Receiver"><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="node466.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node466.html"><LINK REL="previous" HREF="node464.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node464.html"><LINK REL="up" HREF="node463.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node463.html"><LINK REL="next" HREF="node466.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node466.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html8525" HREF="node466.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node466.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html8519" HREF="node463.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node463.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html8513" HREF="node464.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node464.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html8521" 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="tex2html8523" 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="tex2html8526" HREF="node466.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node466.html">34.3.3 Reception of a</A><B> Up:</B> <A NAME="tex2html8520" HREF="node463.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node463.html">34.3 Architecture of the</A><B> Previous:</B> <A NAME="tex2html8514" HREF="node464.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node464.html">34.3.1 Instantiation of a</A>   <B> <A NAME="tex2html8522" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html8524" 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="SECTION06532000000000000000">34.3.2 Instantiation of a PLM Receiver</A></H2><P><DIV ALIGN="CENTER"><A NAME="fig:instanPLMrecv"></A><A NAME="15547"></A><TABLE><CAPTION ALIGN="BOTTOM"><STRONG>Figure 34.1:</STRONG>Inheritance and instantiation when we create a receiver.</CAPTION><TR><TD><DIV ALIGN="CENTER">figures/instanPLMrecv.eps</DIV></TD></TR></TABLE></DIV><P>All the PLM machinery is implemented at the receiver. In this section we decribethe instantiation process of a receiver. To create, place at node<TT>n</TT>, attach to source <TT>S</TT>, and start at <TT>t</TT> a PLM receiver wecall the PLMTopology instproc <TT> build_receiver n addr t C</TT> where <TT>addr</TT> is the address returnedby <TT>place_source</TT> when <TT>S</TT> was created, and <TT>C</TT> is the check value. Thereceiver created by <TT>build_receiver</TT> is an instance of the class PLM/ns,the ns interface to the PLM machinery. At the initialisation of the receiver, the PLM instproc <TT>init</TT> iscalled due to inheritance. <TT>init</TT> calls the PLM/ns instproc<TT>create-layer</TT> and, by this way, creates as many instances of the class PLMLayer/ns (the ns interface to the PLMLayer class) as there are layers. Eachinstance of PLMLayer/ns creates an instance of the class PLMLossTrace which isreponsible for monitoring the received and lost packets thanks to the fact that the classPLMLossTrace inherits from the class Agent/LossMonitor/PLM. Fig. <A HREF="node465.html#fig:instanPLMrecv" tppabs="http://www.isi.edu/nsnam/ns/doc/node465.html#fig:instanPLMrecv">34.1</A> schematically describes the process of a PLMreceiver instantiation. In the following we describe the behavior of a PLMreceiver when it receives a packet and when it detects a loss.<P><HR><!--Navigation Panel--><A NAME="tex2html8525" HREF="node466.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node466.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html8519" HREF="node463.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node463.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html8513" HREF="node464.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node464.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html8521" 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="tex2html8523" 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="tex2html8526" HREF="node466.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node466.html">34.3.3 Reception of a</A><B> Up:</B> <A NAME="tex2html8520" HREF="node463.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node463.html">34.3 Architecture of the</A><B> Previous:</B> <A NAME="tex2html8514" HREF="node464.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node464.html">34.3.1 Instantiation of a</A>   <B> <A NAME="tex2html8522" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html8524" 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 + -