[Sumover-dev] [svn commit] r4247 - vic/branches/cc/cc
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Thu Aug 7 11:27:01 BST 2008
Author: soohyunc
Date: Thu Aug 7 11:27:00 2008
New Revision: 4247
Modified:
vic/branches/cc/cc/tfwc_sndr.cpp
vic/branches/cc/cc/tfwc_sndr.h
Log:
margin vector (simulating TCP's 3 dupack rule)
Modified: vic/branches/cc/cc/tfwc_sndr.cpp
==============================================================================
--- vic/branches/cc/cc/tfwc_sndr.cpp (original)
+++ vic/branches/cc/cc/tfwc_sndr.cpp Thu Aug 7 11:27:00 2008
@@ -44,6 +44,8 @@
#include "transmitter.h"
#include "tfwc_sndr.h"
+#define DUPACKS 3 // simulating TCP's 3 dupacks
+
TfwcSndr::TfwcSndr() :
seqno_(0)
{
@@ -65,6 +67,9 @@
void TfwcSndr::tfwc_sndr_recv(u_int32_t ackv)
{
UNUSED(ackv);
+
+ // the most recent 3 packets will be marked as 1 using marginvec_
+ ackv_ = ackv | marginvec_;
}
Modified: vic/branches/cc/cc/tfwc_sndr.h
==============================================================================
--- vic/branches/cc/cc/tfwc_sndr.h (original)
+++ vic/branches/cc/cc/tfwc_sndr.h Thu Aug 7 11:27:00 2008
@@ -48,6 +48,7 @@
void tfwc_sndr_recv(u_int32_t ackv);
u_int32_t marginvec_; // margin vec
+ u_int32_t ackv_; // AckVec (in TfwcSndr)
TfwcSndr* tfwcsndr_;
private:
};
More information about the Sumover-dev
mailing list