• Main Page
  • Classes
  • Files
  • File List

/Users/yzchen/ns/ns-allinone-2.33/ns-2.33/sctp/sctp-mfrTimestamp.h

00001 /*
00002  * Copyright (c) 2006-2007 by the Protocol Engineering Lab, U of Delaware
00003  * All rights reserved.
00004  * 
00005  * Protocol Engineering Lab web page : http://pel.cis.udel.edu/
00006  *
00007  * Paul D. Amer        <amer@@cis,udel,edu>
00008  * Armando L. Caro Jr. <acaro@@cis,udel,edu>
00009  *
00010  * Redistribution and use in source and binary forms, with or without
00011  * modification, are permitted provided that the following conditions
00012  * are met:
00013  *
00014  * 1. Redistributions of source code must retain the above copyright
00015  *    notice, this list of conditions and the following disclaimer.
00016  *
00017  * 2. Redistributions in binary form must reproduce the above copyright
00018  *    notice, this list of conditions and the following disclaimer in the
00019  *    documentation and/or other materials provided with the distribution.
00020  *
00021  * 3. Neither the name of the University nor of the Laboratory may be used
00022  *    to endorse or promote products derived from this software without
00023  *    specific prior written permission.
00024  *
00025  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
00026  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00027  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00028  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
00029  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
00030  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
00031  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
00032  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
00033  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
00034  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
00035  * SUCH DAMAGE.
00036  *
00037  * @(#) $Header: /cvsroot/nsnam/ns-2/sctp/sctp-mfrTimestamp.h,v 1.2 2007/06/17 21:44:41 tom_henderson Exp $ (UD/PEL)
00038  */
00039 
00040 /* This extension combines MultipleFastRtx and Timestamp extensions.
00041  *
00042  * MultipleFastRtx extension implements the Caro Multiple Fast Retransmit
00043  * Algorithm. Caro's Algorithm introduces a fastRtxRecover state variable
00044  * per TSN in the send buffer. Any time a TSN is retransmitted, its
00045  * fastRtxRecover is set to the highest TSN outstanding at the time of
00046  * retransmit. That way, only missing reports triggered by TSNs beyond
00047  * fastRtxRecover may trigger yet another fast retransmit.
00048  *
00049  * Timestamp extension adds a TIMESTAMP chunk into every packet with DATA
00050  * or SACK chunk(s). The timestamps allow RTT measurements to be made per
00051  * packet on both original transmissiosn and retransmissions. Thus, Karn's
00052  * algorithm is no longer needed.
00053  */
00054 
00055 #ifndef ns_sctp_mfrTimestamp_h
00056 #define ns_sctp_mfrTimestamp_h
00057 
00058 #include "sctp-timestamp.h"
00059 
00060 class MfrTimestampSctpAgent : public virtual TimestampSctpAgent 
00061 {
00062 public:
00063   MfrTimestampSctpAgent();
00064 
00065 protected:
00066   virtual void  delay_bind_init_all();
00067   virtual int   delay_bind_dispatch(const char *varName, const char *localName,
00068                                     TclObject *tracer);
00069 
00070   /* tracing functions
00071    */
00072   virtual void  TraceVar(const char*);
00073   virtual void  TraceAll();
00074 
00075   /* sending functions
00076    */
00077   virtual void  AddToSendBuffer(SctpDataChunkHdr_S *, int, u_int, SctpDest_S *);
00078   virtual void  SendBufferDequeueUpTo(u_int);
00079   
00080   /* processing functions
00081    */
00082   virtual Boolean_E  ProcessGapAckBlocks(u_char *, Boolean_E);
00083 
00084   TracedInt        tiMfrCount;        // trace each time MFR gets triggered
00085 };
00086 
00087 #endif

Generated on Tue Aug 10 2010 16:16:08 for ns-2.33 by  doxygen 1.7.1