Download
disciplines-ns2.1b7a.tar.gz file for ns version 2.1b7a and
higher, and
disciplines.tar.gz for prior versions. Gunzip and untar this
file in the ns-2 directory. You should get the following files:
- csfq.cc - which implements CSFQ.
- fred.{h,cc} - which implement FRED, FREDL; switching
between FRED and FREDL is accomplished by setting "many-flows_"
variable to either 0 (for FRED) or 1 (for FREDL)
- util.{h,cc} - which implement several probability
distribution functions used in csfq.cc
Note: fred.{h,cc} are heavily based on
red.{h,cc} files which come with the original distribution of
ns version 2.0.
Automatic Installation: For an automatic installation you can download
and run
disciplines.install. This will perform automatically
steps 2-6. This script is courtesy of Sergey Balandin
(Sergey.Balandin@nokia.com). The script was tested on ns-2.1b5 and
ns-2.1b6 under Linux RedHat 6.0.