To RUN the experiments for particular figure from the paper "TCP-LP: A 
Distributed Algorithm for Low Priority Data Transfer", do the following:

It is assumed that a user is in "dsp-public" directory.

You should use the ns-allinone-2.1b8a ns version.


Fig 8:
-----
-----

1. "cd ./code"

2. Copy appropriate .cc and .h files to your ns-2 directory
(E.g. "cp *.cc ../ns-2/."
      "cp *.h ../ns-2/."	
)

3. Go to your local ns directory ("cd ../ns-2/")

4. Compile your ns (Execute "make")

5. Copy exe version (ns) to dsp-public/scripts/

6. "cd /dsp-public/scripts/"

7. Execute "dsp_fig8.run" (and wait...)

8. "cd /results-sale/"

9. "cp a-norm1.5M.out a.out"

10. "chmod 777 avg-thr-setting-1000"

11. "avg-thr-setting-1000"

12. The results (avg1:) are in file "out-tr-setting-1000"



Fig 11:
------
------

TCP-LP curve:
------------

Steps 1-6 same as above.

7. Execute "dsp_fig11_LP.run"

Step 8 same as above.

9. "cp a-norm10M.out a.out"

Steps 10-12 same as above.


TCP-LP/ECN curve:
----------------

Steps 1-6 same as above.

7. Execute "dsp_fig11_ECN.run"

Step 8 same as above.

9. "cp a-norm10M.out a.out"

Steps 10-12 same as above.



TCP curve:
---------

Steps 1-6 same as above.

7. Execute "dsp_fig11_TCP.run"

Step 8 same as above.

9. "cp a-norm10M.out a.out"

Steps 10-12 same as above.





Fig 12:
------
------

TCP-LP curve:
------------

Steps 1-6 same as above.

7. Execute "dsp_fig12_LP.run"

Step 8 same as above.

9. "cp a-norm10M.out a.out"

Steps 10-12 same as above.


TCP-LP/ECN curve:
----------------

Steps 1-6 same as above.

7. Execute "dsp_fig12_ECN.run"

Step 8 same as above.

9. "cp a-norm10M.out a.out"

Steps 10-12 same as above.



TCP curve:
---------

Steps 1-6 same as above.

7. Execute "dsp_fig12_TCP.run"

Step 8 same as above.

9. "cp a-norm10M.out a.out"

Steps 10-12 same as above.





Fig 13:
------
------

TCP-LP curve:
------------

Steps 1-6 same as above.

7. Execute "dsp_fig13_LP.run"

Step 8 same as above.

9. No normalization needed - the results are in files "drops-..."



TCP-LP/ECN curve:
----------------

Steps 1-6 same as above.

7. Execute "dsp_fig13_ECN.run"

Step 8 same as above.

9. No normalization needed - the results are in files "drops-..."




TCP curve:
---------

Steps 1-6 same as above.

7. Execute "dsp_fig13_TCP.run"

Step 8 same as above.

9. No normalization needed - the results are in files "drops-..."




Figures 14 and 15:
-----------------
-----------------

TCP-LP curve:
------------

Steps 1-5 same as above

6. "cd /dsp-public/scripts-web/"

7. Execute "dsp_fig_14_15_LP.run" (and wait...)

8. "cd /results-sale/"

9. "chmod 777 avg"

10. Execute "avg"

11. "chmod 777 avg-xmit"

12. Execte "avg-xmit"
    Normalized throughputs are in file "xmit"

12. "chmod 777 ratio"

13. Execute "ratio"

14. "cp out-* ../figs/."

15  "cp no-ftp-fig4 ../figs/."
15a "cp tcp-lp-fig4 ../figs/."

16. "cd /dsp-public/scripts-web/figs"

17. "runplot.com"

You should get Figs 4 and 5.
- Fig 4 should correspond to the results from Figure 14 from the 
paper (for TCP-LP).
- Fig 5 should correspond to Figure 15 from the paper (for TCP-LP).



TCP-LP/ECN curve:
----------------

Steps 1-6 same as above

7. Execute "dsp_fig_14_15_ECN.run" (and wait...)

Steps 8-17 same as above

You should get Figs 4 and 5.
- Fig 4 should correspond to the results from Figure 14 from the 
paper (for TCP-LP/ECN).
- Fig 5 should correspond Figure 15 from the paper (for TCP-LP/ECN).






Figures 17 and 18:
-----------------
-----------------

TCP-LP curve:
------------

Steps 1-5 same as above

6. "cd /dsp-public/scripts-mhop/"

7. Execute "dsp_fig_17_18_LP.run" (and wait...)

8. "cd /results-sale/"

9. "chmod 777 avg"

10. Execute "avg"

11. "chmod 777 avg-xmit"

12. Execte "avg-xmit"
    Normalized throughputs are in file "xmit"

12. "chmod 777 ratio"

13. Execute "ratio"

14. "cp out-* ../figs/."

15  "cp no-ftp-fig4 ../figs/."
15a "cp tcp-lp-fig4 ../figs/."

16. "cd /dsp-public/scripts-mhop/figs"

17. "runplot.com"

You should get Figs 4 and 5.
- Fig 4 should correspond to the results from Figure 17 from the 
paper (for TCP-LP).
- Fig 5 should correspond to Figure 18 from the paper (for TCP-LP).



TCP-LP/ECN curve:
----------------

Steps 1-6 same as above

7. Execute "dsp_fig_17_18_ECN.run" (and wait...)

Steps 8-17 same as above

You should get Figs 4 and 5.
- Fig 4 should correspond to the results from Figure 17 from the 
paper (for TCP-LP/ECN).
- Fig 5 should correspond Figure 18 from the paper (for TCP-LP/ECN).







Figures 20 and 21:
-----------------
-----------------

TCP-LP curve:
------------

Steps 1-5 same as above

6. "cd /dsp-public/scripts-mhop2/"

7. Execute "dsp_fig_20_21_LP.run" (and wait...)

8. "cd /results-sale/"

9. "chmod 777 avg"

10. Execute "avg"

11. "chmod 777 avg-xmit"

12. Execte "avg-xmit"
    Normalized throughputs are in file "xmit"

12. "chmod 777 ratio"

13. Execute "ratio"

14. "cp out-* ../figs/."

15  "cp no-ftp-fig4 ../figs/."
15a "cp tcp-lp-fig4 ../figs/."

16. "cd /dsp-public/scripts-mhop2/figs"

17. "runplot.com"

You should get Figs 4 and 5.
- Fig 4 should correspond to the results from Figure 20 from the 
paper (for TCP-LP).
- Fig 5 should correspond to Figure 21 from the paper (for TCP-LP).



TCP-LP/ECN curve:
----------------

Steps 1-6 same as above

7. Execute "dsp_fig_20_21_ECN.run" (and wait...)

Steps 8-17 same as above

You should get Figs 4 and 5.
- Fig 4 should correspond to the results from Figure 20 from the 
paper (for TCP-LP/ECN).
- Fig 5 should correspond Figure 21 from the paper (for TCP-LP/ECN).