File Trace NS-2 and Program AWK.
This is a trace-all the files so that you can imagine my trace file format.
Code:
+ 0.1 1 0 cbr 164 ------- 1 1.0 0.0 0 0 Code:
BEGIN{ you can edit or tell me why do I fix this. Thank you very much. Here is a snippet of my results. Code:
0.122624 0 5 DTNBundle |
It's always 0 because you inadvertently used an uppercase C instead of lowercase:
Code:
cl1=$2; |
I would add that such an elaborate script is not really required:
Code:
awk '/^[+]/{printf "%f %x %d %s\n",$2,$3,$4,$5}' file |
Thank you very much.
here is link Trace file you can help me how to draw xraph or gnuplot delay packet at the node? http://www.mediafire.com/?ztfw4j77x2zho9h http://www.mediafire.com/?lb9h3labipyf4gf#1 |
Quote:
|
Well the usual story would be, show us what you have done and where you are stuck (like your first post) and then we can help.
|
Cái này nói cũng khó, đây là file Nam ma ḿnh đang làm mô phỏng.
http://www.mediafire.com/?306toggqiap9a6q Ḿnh đang làm mô phỏng về mạng DTN (Delay toleran networking. Ḿnh đă tính được tỉ lệ gói tin nhận và Drop. Bây giờ quan trọng ḿnh muốn lấy delay để tiến hành so sánh, với các khoảng thời gian thay đổi và thời gian truyền lại gói. Đây là mă code TCL.... Code:
# Set variables. để chạy được code các bạn cần cài đặt thành công http://www.illuvatar.nu/ns-dtn/code/ vào trong NS2... Các bạn giúp ḿnh với nhé.... Sorry v́ tớ học kém tiếng anh. |
Quote:
|
This analysis is difficult, this is the file Nam's simulations.
http://www.mediafire.com/?306toggqiap9a6q I'm doing on the network simulation DTN (Delay toleran networking. I've calculated the percentage of packets received and Drop. Now I want to get the delay is important to conduct a comparison with the time change and the transmission time back pack. This is TCL code .... Code:
# Set variables. Here is the download link and instructions to install ns2 in the DTN. http://www.illuvatar.nu/ns-dtn/code/ Thank you very much. |
So what is the issue with this code?
|
I want to calculate drop the packet and received packet latency between two consecutive nodes. So to add anything to the TCL code?
|
Trace Analysis
Hi easyvn112,
It's probably a little late, but I'll answer anyway... For the analysis you can - do it manually, for instance: http://nile.wpi.edu/NS/analysis.html - use ready to use awk scripts: http://www.winlab.rutgers.edu/~zhibi.../ns_trace.html - use external command line tools like NS-2 Trace Analyzer: http://sourceforge.net/projects/trace-analyzer/support - use Trace Graph: http://www.angelfire.com/al4/esorkor/ - use the tool I've developed, NS2 Visual Trace Analyzer: http://nsvisualtraceanalyzer.wordpress.com/ I would advise you to try Trace Graph or my tool first, because they are ready to calculate many statistics at once without loosing effort configuring custom scripts or parameters. Best reagards, Fernando |
All times are GMT -5. The time now is 10:30 PM. |