Changeset 4764

Show
Ignore:
Timestamp:
04/07/10 14:05:59 (4 years ago)
Author:
soohyunc
Message:

continue from Revision 4752
(in preparation of cwnd computation in bytes)

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

Legend:

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

    r4763 r4764  
    372372        else 
    373373                cwnd_in_packets(revert); 
    374 }  
     374} 
     375 
     376/* 
     377 * TFWC congestion window in bytes 
     378 */ 
     379void TfwcSndr::window_in_bytes(bool revert) { 
     380        // TFWC is not turned on (i.e., no packet loss yet) 
     381        if(!is_tfwc_on_) 
     382                tcp_like_increase(); 
     383        // TFWC is turned on, so compute congestion window 
     384        else 
     385                cwnd_in_bytes(revert); 
     386} 
    375387 
    376388/* 
     
    597609 * (cwnd is in bytes) 
    598610 */ 
    599 void cwnd_in_bytes() { 
     611void TfwcSndr::cwnd_in_bytes(bool revert) { 
     612        if(!revert) { 
     613        loss_history(); 
     614        avg_loss_interval(); 
     615        } 
    600616} 
    601617 
  • vic/branches/cc/cc/tfwc_sndr.h

    r4763 r4764  
    191191        void cwnd_in_packets(bool revert); 
    192192        // TFWC congestion window in bytes 
    193         void cwnd_in_bytes(); 
     193        void window_in_bytes(bool revert); 
     194        void cwnd_in_bytes(bool revert); 
    194195 
    195196        // calcuate average loss interval