1:#NS2_有线部分\LossRate.awk 2:3:BEGIN { 4:#Initialize the variable 5:Lost=0;the Sum of Lost packet 6:Send=0;the Sum of Send packet 7:} 8:9:{ 10:#Event Abbreviation Type Value 11:#g%d%d%s%d%s%d%d.%d%d.%d%d%d 12:#Normal ...
1:#NS2_有线部分\homework02.tcl 2:3:#Create a simulator object 4:set ns[new Simulator]5:6:#Define different colors for data flows 7:$ns color 1 Blue 8:$ns color 2 Red 9:10:#Open the nam trace file 11:set nf[open szsh.nam w]...
1:#NS2_有线部分\homework03.tcl 2:3:#Create a simulator object 4:set ns[new Simulator]5:6:#Define different colors for data flows 7:$ns color 1 Blue 8:$ns color 2 Red 9:10:#Open the nam trace file 11:set nf[open szsh.nam w]...