Networks - Graph & Commands - NS.Tool

Document Sample
Networks - Graph & Commands - NS.Tool Powered By Docstoc
					                                        Graph
plot "input.dat" using 1:2 title 'Tcp Ratio' with lines, "input.dat" using 1:3 title 'Udp Ratio'




                                 COMMAND
Grep Commad
TCP:
$ grep w "tcp" out.nam>tcpfile.txt

Dropped:
$ grep w "d" tcpfile.txt>tcpdfile.txt

Received:
$ grep w "r" tcpfile.txt>tcprfile.txt
The TCP data from out.nam file is extracted to “tcpfile.txt”. Using that file the data for
dropped and received packets is extracted to “tcpdfile.txt” and “tcprfile.txt”.
UDP:
$ grep w "cbr" out.nam>udpfile.txt

Dropped:
$ grep w "d" udpfile.txt>udpdfile.txt

Received:
$ grep w "r" udpfile.txt>udprfile.txt
In the same way data from out.nam file is extracted that of UDP.



Cut Command
After executing the command the data is placed in the following files:

TCP:

Dropped:
$ cut -d" " -f3 tcpdfile.txt>tcpdpack.txt

Received:
$ cut -d" " -f3 tcprfile.txt>tcprpack.txt

Dropped:
$ cut -d" " -f3 udpdfile.txt>udpdpack.txt

Received:
$ cut -d" " -f3 udprfile.txt>udprpack.txt

				
DOCUMENT INFO
Shared By:
Stats:
views:10
posted:7/31/2011
language:English
pages:2