The ns-2 modules linked by this page are working versions of TCP Westwood.
In order to run your own simulations, you should:
Add the module tcp-westwood.cc to the main 'ns' directory, and modify the original Makefile so that it compiles and links the new module
Substitute the files tcp.cc and tcp.h with the original ones by the same name. This is probably a bit crude, and if you need to keep your own versions of those files, you will need to do a bit of hacking and just introduce the modifications.
Add the following lines to ns-default.tcl
(it can be found in the tcl/lib directory):
Agent/TCP/Westwood set lastackno_ 0
Agent/TCP/Westwood set lastackrx_ 0
Agent/TCP/Westwood set fr_alpha_ 0.9
Agent/TCP/Westwood set filter_type_ 1
Agent/TCP/Westwood set tau_ 1.0
You can direct any questions to casetti@polito.it
Last updated: Dec. 28, 2000