00001 /* 00002 * Copyright (c) 2001-2003 by the Protocol Engineering Lab, U of Delaware 00003 * All rights reserved. 00004 * 00005 * Armando L. Caro Jr. <acaro@@cis,udel,edu> 00006 * Keyur Shah <shah@@cis,udel,edu> 00007 * 00008 * Redistribution and use in source and binary forms, with or without 00009 * modification, are permitted provided that the following conditions 00010 * are met: 00011 * 00012 * 1. Redistributions of source code must retain the above copyright 00013 * notice, this list of conditions and the following disclaimer. 00014 * 00015 * 2. Redistributions in binary form must reproduce the above copyright 00016 * notice, this list of conditions and the following disclaimer in the 00017 * documentation and/or other materials provided with the distribution. 00018 * 00019 * 3. Neither the name of the University nor of the Laboratory may be used 00020 * to endorse or promote products derived from this software without 00021 * specific prior written permission. 00022 * 00023 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 00024 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00025 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00026 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 00027 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00028 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00029 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00030 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00031 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00032 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00033 * SUCH DAMAGE. 00034 * 00035 * @(#) $Header: /nfs/jade/vint/CVSROOT/ns-2/sctp/sctp-newreno.h,v 1.1 2003/08/21 18:29:14 haldar Exp $ (UD/PEL) 00036 */ 00037 00038 /* NewReno extension introduces a recover state variable per destination 00039 * similar to avoid multiple cwnd cuts in a single window (ie, round 00040 * trip). The concept is borrowed from TCP NewReno. 00041 */ 00042 00043 #ifndef ns_sctp_newreno_h 00044 #define ns_sctp_newreno_h 00045 00046 #include "sctp.h" 00047 00048 class NewRenoSctpAgent : public virtual SctpAgent 00049 { 00050 public: 00051 NewRenoSctpAgent(); 00052 00053 protected: 00054 virtual void delay_bind_init_all(); 00055 virtual int delay_bind_dispatch(const char *varName, const char *localName, 00056 TclObject *tracer); 00057 00058 /* initialization stuff 00059 */ 00060 virtual void OptionReset(); 00061 00062 /* sending functions 00063 */ 00064 virtual void SendBufferDequeueUpTo(u_int); 00065 virtual void FastRtx(); 00066 00067 /* processing functions 00068 */ 00069 virtual Boolean_E ProcessGapAckBlocks(u_char *, Boolean_E); 00070 virtual void ProcessSackChunk(u_char *); 00071 00072 u_int uiRecover; 00073 u_int uiHighestTsnNewlyAcked; /* global now for NewReno's HTNA */ 00074 }; 00075 00076 #endif
1.4.6