www.pudn.com > fast-tcp-ns2-v1_1b.rar > tcp-fast-defaults.tcl, change:2005-06-23,size:808b


# Insert the following lines into ns-allione-2.27/ns-2.27/tcl/lib/ns-default.tcl

Agent/TCP/Fast  set cwnd_update_period_ 0.01
Agent/TCP/Fast  set avgRTT_ 0
Agent/TCP/Fast  set baseRTT_ 0
Agent/TCP/Fast  set avg_cwnd_last_RTT_ 0
Agent/TCP/Fast  set alpha_ 100
Agent/TCP/Fast  set beta_ 100
Agent/TCP/Fast  set mi_threshold_ 0.00075

# This variable is used to determine the calculation method used by NS2 FAST.
# Because in real network system, cwnd is an integral while here cwnd is a
# double, we provide 3 modes to get cwnd: 1. use double to store cwnd
# (high_accuracy_cwnd != 0 nor 1); 2. use int to store cwnd, ignore the
# calculation error(high_accuracy_cwnd = 0); 3. use int to store cwnd but
# also consider the calculation error(high_accuracy_cwnd = 1).
Agent/TCP/Fast  set high_accuracy_cwnd_ 2