and press Enter key. “wq” Run the simulation program [root@localhost~]# ns lab7.tcl awk file After simulation is completed run to see the output , [root@localhost~]# awk lab7.awk file1.tr > a1 –f [root@localhost~]# awk lab7.awk > a2 –f [root@localhost~]# xgraph a1 a2 Here we are using the congestion window trace files i.e. file1.tr and file2.tr and we are redirecting the contents of those files to new files say a1 and a2 using output redirection operator (>). To see the file contents open the file as , [root@localhost~]# vi lab7.tr Output Graph Dept of ISE, CIT, Page no28 Networks Lab 2015-16 Evaluation:
“wq” and press Enter key. Run the simulation program [root@localhost~]# ns lab7.tcl After simulation is completed run awk file to see the output , [root@localhost~]# awk –f lab7.awk file1.tr > a1 [root@localhost~]# awk –f lab7.awk > a2 [root@localhost~]# xgraph a1 a2 Here we are using the congestion window trace files i.e. file1.tr and file2.tr and we are redirecting the contents of those files to new files say a1 and a2 using output redirection operator (>). To see the file contents open the file as , [root@localhost~]# vi lab7.tr Output Graph Dept of ISE, CIT, Page no28 Networks Lab 2015-16 Evaluation: