📄 node396.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>31.4.0.0.4 Functions for Processing ACKs</TITLE><META NAME="description" CONTENT="31.4.0.0.4 Functions for Processing ACKs"><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="node397.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node397.html"><LINK REL="previous" HREF="node395.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node395.html"><LINK REL="up" HREF="node392.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node392.html"><LINK REL="next" HREF="node397.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node397.html"></HEAD><BODY ><!--Navigation Panel--><A NAME="tex2html7467" HREF="node397.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node397.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html7461" HREF="node392.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node392.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html7455" HREF="node395.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node395.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html7463" 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="tex2html7465" 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="tex2html7468" HREF="node397.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node397.html">31.4.0.0.5 Functions for Managing</A><B> Up:</B> <A NAME="tex2html7462" HREF="node392.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node392.html">31.4 Architecture and Internals</A><B> Previous:</B> <A NAME="tex2html7456" HREF="node395.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node395.html">31.4.0.0.3 Functions for Window</A>   <B> <A NAME="tex2html7464" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html7466" 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="SECTION06240040000000000000">31.4.0.0.4 Functions for Processing ACKs</A></H4><P><B>recv()</B> - this function is the main reception path for ACKs.Note that because only one direction of data flow is in use, this functionshould only ever be invoked with a pure ACK packet (i.e. no data).The function stores the timestamp from the ACK in <TT>ts_peer_</TT>, andchecks for the presence of the ECN bit (reducing the send window ifappropriate).If the ACK is a new ACK, it calls <B>newack()</B>, and otherwisechecks to see if it is a duplicate of the last ACK seen.If so, it enters fast retransmit by closing the window, resetting theretransmission timer, and sending a packet by calling <TT>send_much</TT>.<P><B>newack()</B> - this function processes a ``new'' ACK (one that containsan ACK number higher than any seen so far).The function sets a new retransmission timer by calling <B>newtimer()</B>,updates the RTT estimation by calling <B>rtt_update</B>, and updatesthe highest and last ACK variables.<P><HR><!--Navigation Panel--><A NAME="tex2html7467" HREF="node397.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node397.html"><IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="file:/usr/share/latex2html/icons/next.png"></A> <A NAME="tex2html7461" HREF="node392.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node392.html"><IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="file:/usr/share/latex2html/icons/up.png"></A> <A NAME="tex2html7455" HREF="node395.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node395.html"><IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="file:/usr/share/latex2html/icons/prev.png"></A> <A NAME="tex2html7463" 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="tex2html7465" 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="tex2html7468" HREF="node397.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node397.html">31.4.0.0.5 Functions for Managing</A><B> Up:</B> <A NAME="tex2html7462" HREF="node392.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node392.html">31.4 Architecture and Internals</A><B> Previous:</B> <A NAME="tex2html7456" HREF="node395.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node395.html">31.4.0.0.3 Functions for Window</A>   <B> <A NAME="tex2html7464" HREF="node1.html" tppabs="http://www.isi.edu/nsnam/ns/doc/node1.html">Contents</A></B>   <B> <A NAME="tex2html7466" 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 + -