📄 node445.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.4 Loss Detection--The Class SRMinfo</TITLE><META NAME="description" CONTENT="33.4 Loss Detection--The Class SRMinfo"><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="node446.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node446.html"><LINK REL="previous" HREF="node440.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node440.html"><LINK REL="up" HREF="node427.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node427.html"><LINK REL="next" HREF="node446.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node446.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html8230" HREF="node446.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node446.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html8224" HREF="node427.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node427.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html8218" HREF="node444.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node444.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html8226" 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="tex2html8228" 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="tex2html8231" HREF="node446.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node446.html">33.5 Loss Recovery Objects</A><B> Up:</B> <A NAME="tex2html8225" HREF="node427.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node427.html">33. Agent/SRM</A><B> Previous:</B> <A NAME="tex2html8219" HREF="node444.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node444.html">33.3.0.0.4 Session Packets</A>   <B> <A NAME="tex2html8227" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html8229" 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="SECTION06440000000000000000"></A><A NAME="sec:srminfo"></A><BR>33.4 Loss Detection--The Class SRMinfo</H1><P>A very small encapsulating class, entirely in C++,tracks a number of assorted state information.Each member of the group, , uses one SRMinfo block for every othermember of the group.<P>An SRMinfo object about group member at ,contains information about the session messagesreceived by from . can use this information to compute its distance to .<P>If sends is active in sending data traffic, thenthe SRMinfo object will also contain information about thereceived data, including a bit vector indicating all packetsreceived from .<P>The agent keeps a list of SRMinfo objects, one per group member,in its member variable, <TT>sip_</TT>.Its method, [int sender]get_statewill return the object corresponding to that sender,possibly creating that object, if it did not already exist.The SRMinfo../ns-2/srm-state.h has two methodsto access and set the bit vector, ,<BR><BR>The session message variables to access timing information are public;no encapsulating methods are provided. These are:<PRE> int lsess_; /* # of last session msg received / int sendTime_; /* Time sess. msg. # sent / int recvTime_; /* Time sess. msg. # received / double distance_; /* Data messages */ int ldata_; /* # of last data msg sent /</PRE><P><HR><!--Navigation Panel--><A NAME="tex2html8230" HREF="node446.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node446.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html8224" HREF="node427.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node427.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html8218" HREF="node444.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node444.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html8226" 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="tex2html8228" 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="tex2html8231" HREF="node446.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node446.html">33.5 Loss Recovery Objects</A><B> Up:</B> <A NAME="tex2html8225" HREF="node427.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node427.html">33. Agent/SRM</A><B> Previous:</B> <A NAME="tex2html8219" HREF="node444.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node444.html">33.3.0.0.4 Session Packets</A>   <B> <A NAME="tex2html8227" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html8229" 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 + -