Changeset 4247

Show
Ignore:
Timestamp:
08/07/08 11:27:00 (6 years ago)
Author:
soohyunc
Message:

margin vector (simulating TCP's 3 dupack rule)

Location:
vic/branches/cc/cc
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • vic/branches/cc/cc/tfwc_sndr.cpp

    r4246 r4247  
    4545#include "tfwc_sndr.h" 
    4646 
     47#define DUPACKS 3       // simulating TCP's 3 dupacks 
     48 
    4749TfwcSndr::TfwcSndr() : 
    4850        seqno_(0)  
     
    6668{ 
    6769        UNUSED(ackv); 
     70 
     71        // the most recent 3 packets will be marked as 1 using marginvec_ 
     72        ackv_ = ackv | marginvec_; 
    6873} 
    6974 
  • vic/branches/cc/cc/tfwc_sndr.h

    r4246 r4247  
    4949 
    5050        u_int32_t marginvec_;   // margin vec 
     51        u_int32_t ackv_;        // AckVec (in TfwcSndr) 
    5152        TfwcSndr* tfwcsndr_; 
    5253private: