use xgraph with awk
Hi sir
I try to get a graph by using xgraph at ns2 , i want to show the loss paquet rate in graph . i use a file awk to get it but when i try to execute "awk -f lpr.awk out.tr " an error message showen " syntax error " . I want to know how can i get a graph using xgraph and awk code ? |
Here is one example:
http://mohittahiliani.blogspot.com/2...n-ns-2_06.html |
Scripts to analyze packet loss : awk_scripts_11.2014.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing .. Look for files by name Packet* and packet*. Simulations that are generating some Xgraph output files : xgraph_ns2-files-tcl_11.2014.tar.gz https://drive.google.com/file/d/0B7S...ew?usp=sharing .. $ grep -Rin loss *.tcl (There is "packet loss data" xgraph output in the joseph4* files.) - |
Think you for your responses
I follow this link http://mohittahiliani.blogspot.com/2...n-ns-2_06.html as Mr bigrigdriver tell me and i Downloads file as Mr Knudfl said and i execute this commandeto get file.xgr " awk -f droppachets.awk out.tr > out.xgr " But i have a file out.xgr umpty Can you tell me where is the problem please ? |
← #4 .
The available {perl scripts, awk scripts, shell scripts} are for analyzing (mostly). Examples { packetloss.pl, packet-loss-ratio.awk, packetloss.sh }. How to get a plot output ? For xgraph, etc. → You will have to study the examples that produce such an output. 1) The examples in "xgraph_ns2-files-tcl_11.2014.tar.gz". 2) Please try $ cd ns-2.xx/tcl/ex/red-pd/ && csh runall.sh 3) `awk scripts' for converting a random file.tr to an xgraph plot file do usually not exist. But theoretically you can write such a script yourself. Be aware that xgraph does not require suffix .xgr . Any naming will do, also suffix .tr . The important thing is the formatting. See »xgraph_ns2-files-tcl*«, and run the examples. And also xgraph-12.*/examples/* - |
1 Attachment(s)
Hi sir
I try to use the example wireless-udp-1 to make changes for my tcl file Xgraph is well executed but for the graph of loss packets show the ligne in zero it's mean there is no loss packets . It's is normal that there is no loss paquet or what's the problem exactly . This is the xgraph Attachment 16855 for loss packets. Also i want to get the loss packet for 3 protocols at the same xgraph what should i do ? |
← #6 .
Well, you can do $ awk -f packet-loss.awk file.tr ... to count "packet-loss". Quote:
With the right setup you may be able to show the three losses in three different Xgraph plots ? Example with three "Loss files" : 2x-DMOCA-code_v1.tcl → Code:
1995: exec xgraph sink2.tr securedsr2.tr dsr2.tr -geometry 800x400 -t "For Packet Loss" -x "Time" -y "No.of Packets" -bg white & * MOCA__TCL-files.tar.gz → https://drive.google.com/file/d/0B7S...ew?usp=sharing * 2x-DMOCA-code_v1.tcl → https://drive.google.com/file/d/0B7S...ew?usp=sharing - |
sip installation in ns2.34
i am doing ns2 project in multimedia subsystem.I want sip patch to install in my pc.How to do that? What other the other protocols that I have to do?Do anyone have programs related to multimedia environment or programs using sip?Plz help me it is urgent.
|
All times are GMT -5. The time now is 06:11 PM. |