# Requirements: # Make sure you have a complete and working ns-2 distribution (you # can verify this by running ./validate file under ns-2/ directory). # You must also have xgraph, perl, and ns in your $PATH variable. # (You must have a link to `ns' in your current directory.) # # Warning: Some of these simulation sets take many hours to run. # 1) Figure 1 in this paper can be generated using the following command: ./single1.run 15 20 1 1 20 80 0 0.002 # mv out.total figure1.total # To process: cp fixed_15.web_20.ecn_1.reverse_1.adaptive_20.cautious_80.random_0.controltype_0.002.total figure1.total cp figure1.total out.total; ./single1.end.run # Note that this no longer gives the same results as in the paper, # because of changes in some of the defaults. # 2) Figure 2 can be generated using the following command: # OLD: ./single1.run 15 5 1 1 20 80 0 0.0 ./single1.run 15 20 1 1 20 80 0 0.0 mv out.total figure2.total cp figure2.total out.total; ./single1.end.run # 3) Figure 3 can be generated using the following command: ./single1.run 15 20 1 1 20 80 1 0.0 mv out.total figure3.total cp figure3.total out.total; ./single1.end.run # ------------ # 5) To generate figure 6: ns adaptiveRed.tcl red2 gv red2.ps # 6) For figure 7: ns adaptiveRed.tcl red2Adapt gv red2Adapt.ps # 7) For figure 8: ns adaptiveRed.tcl red3 gv red3.ps # 8) For figure 9: ns adaptiveRed.tcl red3Adapt gv red3Adapt.ps # Steps 5 through 9 output corresponding .ps files as well. # ----------- For generating figures 11 through 14: 9) For figure 11: ./w_q_oscil.run 15 0 1 0 0 10 20 80 0 0.002 10) For figure 12: ./w_q_oscil.run 15 20 1 1 0 10 20 80 0 0.002 11) For figure 13: ./w_q_oscil.run 15 0 1 0 0 10 20 80 1 0.0 12) For figure 14: ./w_q_oscil.run 15 20 1 1 0 10 20 80 1 0.0 In all four cases, you can change "plotQueue1{}" procedure call in "stop{}" procedure to "plotQueue{}" to generate .eps output # -------------- # For generating figures 15 through 17: # 13) For figure 15: ns adaptiveRed.tcl transient gv transient.ps # 14) For figure 16: ns adaptiveRed.tcl transient1 gv transient1.ps # 15) For figure 17: ns adaptiveRed.tcl transient2 gv transient2.ps ---------------- 16) For generating figure 18: ns rt.tcl 60 15 1 1 20 0 10 20 80 1 rt.tcl ; follwed by gv reda_rt.eps ; to view the .eps file