Home

Papers

Experimental Results

Research

Script & Sources

People

Friendly Links

 

Westwood+ TCP

(modules and sample scripts)

 

Ns-2 modules of Westwood+ TCP with the New Reno feature (ns2.1b9a version) are now available.

They integrate previous modules developed at TCP Westwood NS- Modules

 

The following points summarize the installation procedure:

1)    Download the files tcp-westwood-nr.cc and tcp-westwood-nr.h (last update 23 June 2003)

2)    Edit the file Makefile.in so that it compiles and links the new module (i.e. add tcp-westwood-nr.o anywhere in the OBJ_CC variable, for example near the other TCP related modules like tcp-newreno.o or tcp-vegas.o). You can find the Makefile.in file under the main NS-2 directory

3)    Add the following lines to the file ns-default.tcl and recompile ns:

# Added for TCP WestwoodNR

Agent/TCP/WestwoodNR set openadd_ 1
Agent/TCP/WestwoodNR set current_bwe_ 0
Agent/TCP/WestwoodNR set last_bwe_sample_ 0
Agent/TCP/WestwoodNR set unaccounted_ 0
Agent/TCP/WestwoodNR set fr_a_ 1
Agent/TCP/WestwoodNR set min_rtt_estimate 10000
Agent/TCP/WestwoodNR set myseqno_ 1

Agent/TCP/WestwoodNR set lastackno_ 0
Agent/TCP/WestwoodNR set lastackrx_ 0
Agent/TCP/WestwoodNR set fr_alpha_ 0.9
Agent/TCP/WestwoodNR set filter_type_ 4
Agent/TCP/WestwoodNR set tau_ 1.0
Agent/TCP/WestwoodNR set west_type_ 3.0
Agent/TCP/WestwoodNR set qest_ 0.0
Agent/TCP/WestwoodNR set fr_amin_ 0.0
Agent/TCP/WestwoodNR set fr_amax_ 0.0
Agent/TCP/WestwoodNR set total_time_ 0.0
Agent/TCP/WestwoodNR set total_size_ 0.0
Agent/TCP/WestwoodNR set interp_type_ 0.0
Agent/TCP/WestwoodNR set fr_prev_ 1.0
Agent/TCP/WestwoodNR set last_seq_ 0
Agent/TCP/WestwoodNR set last_echoed_ts_ 0.0
Agent/TCP/WestwoodNR set last_ts_ 0.0
Agent/TCP/WestwoodNR set last_cwnd_ 1.0

Agent/TCP/WestwoodNR set current_ts_ 0.0
Agent/TCP/WestwoodNR set current_echoed_ts_ 0.0
Agent/TCP/WestwoodNR set newreno_changes_ 0
Agent/TCP/WestwoodNR set newreno_changes1_ 0
Agent/TCP/WestwoodNR set partial_window_deflation_ 0
Agent/TCP/WestwoodNR set exit_recovery_fix_ 0

 

Important Note:

if you set filter_type_ 3 you use the original Westwood TCP that overestimates the bandwidth in the presence of ACK compression. If you set filter_type_ 4 you use Westwood+ TCP that eliminates this problem

 

Scripts

The scripts singlebottleneck.tcl and mhop.tcl generate single bottleneck and multihop topologies

 

Home | Papers | Experimental Results | Research | Script & Sources | People | Friendly Links

 

 

 

 

 

Page maintained by Luigi Alfredo Grieco

Please contact a.grieco@poliba.it for any question or suggestion.

Last update 23, June 2003.