📄 node441.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.3.0.0.1 Data Packets</TITLE><META NAME="description" CONTENT="33.3.0.0.1 Data Packets"><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="node442.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node442.html"><LINK REL="previous" HREF="node440.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node440.html"><LINK REL="up" HREF="node440.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node440.html"><LINK REL="next" HREF="node442.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node442.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html8176" HREF="node442.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node442.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html8170" HREF="node440.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node440.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html8164" HREF="node440.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node440.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html8172" 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="tex2html8174" 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="tex2html8177" HREF="node442.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node442.html">33.3.0.0.2 Request Packets</A><B> Up:</B> <A NAME="tex2html8171" HREF="node440.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node440.html">33.3 Packet Handling: Processing</A><B> Previous:</B> <A NAME="tex2html8165" HREF="node440.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node440.html">33.3 Packet Handling: Processing</A>   <B> <A NAME="tex2html8173" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html8175" 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="SECTION06430010000000000000">33.3.0.0.1 Data Packets</A></H4>The agent does not generate any data messages.The user has to specify an external agent to generate traffic.The []recv method must distinguish betweenlocally originated data that must be sent to the multicast group,and data received from multicast group that must be processed.Therefore, the application agent mustset the packet's destination address to zero.<P>For locally originated data, the agent adds the appropriate SRM headers,sets the destination address to the multicast group, and forwards the packet to its target.<P>On receiving a data message from the group,[sender, msgid]recv_data../ns-2/srm.ccSRMAgent::recv_datawill update its state marking message sender, msgid received,and possibly trigger requests if it detects losses.In addition, if the message was an older message received out of order,then there must be a pending request or repair that must be cleared.In that case, the compiled object invokes the OTcl instance procedure,[sender, msgid]recv-data../ns-2/srm.tclAgent/SRM::recv-data<A NAME="tex2html60" HREF="footnode.html#foot15003" tppabs="http://www.isi.edu/nsnam/ns/doc/footnode.html#foot15003"><SUP>33.2</SUP></A>.<P>Currently, there is no provision for the receiversto actually receive any application data.The agent does not also store any of the user data.It only generates repair messages of the appropriate size,defined by the instance variable <TT>packetSize_</TT>.However, the agent assumes that any application datais placed in the data portion of the packet,pointed to by <TT>packet-accessdata()</TT>.<P><HR><!--Navigation Panel--><A NAME="tex2html8176" HREF="node442.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node442.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html8170" HREF="node440.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node440.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html8164" HREF="node440.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node440.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html8172" 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="tex2html8174" 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="tex2html8177" HREF="node442.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node442.html">33.3.0.0.2 Request Packets</A><B> Up:</B> <A NAME="tex2html8171" HREF="node440.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node440.html">33.3 Packet Handling: Processing</A><B> Previous:</B> <A NAME="tex2html8165" HREF="node440.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node440.html">33.3 Packet Handling: Processing</A>   <B> <A NAME="tex2html8173" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html8175" 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 + -