00001 /* 00002 * Copyright (c) 2001-2004 by the Protocol Engineering Lab, U of Delaware 00003 * All rights reserved. 00004 * 00005 * Armando L. Caro Jr. <acaro@@cis,udel,edu> 00006 * 00007 * Redistribution and use in source and binary forms, with or without 00008 * modification, are permitted provided that the following conditions 00009 * are met: 00010 * 00011 * 1. Redistributions of source code must retain the above copyright 00012 * notice, this list of conditions and the following disclaimer. 00013 * 00014 * 2. Redistributions in binary form must reproduce the above copyright 00015 * notice, this list of conditions and the following disclaimer in the 00016 * documentation and/or other materials provided with the distribution. 00017 * 00018 * 3. Neither the name of the University nor of the Laboratory may be used 00019 * to endorse or promote products derived from this software without 00020 * specific prior written permission. 00021 * 00022 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 00023 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00024 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00025 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 00026 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00027 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00028 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00029 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00030 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00031 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00032 * SUCH DAMAGE. 00033 * 00034 * @(#) $Header: /nfs/jade/vint/CVSROOT/ns-2/sctp/sctp-mfrHbAfterRto.h,v 1.1 2005/10/07 06:14:38 tomh Exp $ (UD/PEL) 00035 */ 00036 00037 /* This extension combines MultipleFastRtx and HbAfterRto extensions. 00038 * 00039 * MultipleFastRtx extension implements the Caro Multiple Fast Retransmit 00040 * Algorithm. Caro's Algorithm introduces a fastRtxRecover state variable 00041 * per TSN in the send buffer. Any time a TSN is retransmitted, its 00042 * fastRtxRecover is set to the highest TSN outstanding at the time of 00043 * retransmit. That way, only missing reports triggered by TSNs beyond 00044 * fastRtxRecover may trigger yet another fast retransmit. 00045 * 00046 * HbAfterRto extension sends a heartbeat immediately after timeout 00047 * retransmission. The idea is to give the destinations a chance to get an 00048 * RTT measurement after their RTO is backed off. The hope is to avoid 00049 * unnecessarily large RTOs (especially on the alternate destinations). 00050 */ 00051 00052 #ifndef ns_sctp_mfrHbAfterRto_h 00053 #define ns_sctp_mfrHbAfterRto_h 00054 00055 #include "sctp-multipleFastRtx.h" 00056 00057 class MfrHbAfterRtoSctpAgent : public virtual MultipleFastRtxSctpAgent 00058 { 00059 public: 00060 MfrHbAfterRtoSctpAgent(); 00061 00062 virtual void Timeout(SctpChunkType_E, SctpDest_S *); 00063 00064 protected: 00065 virtual void delay_bind_init_all(); 00066 virtual int delay_bind_dispatch(const char *varName, const char *localName, 00067 TclObject *tracer); 00068 }; 00069 00070 #endif
1.4.6