Firstly, what is the best way to print out the signal strength of a
packet (p->txinfo_.RxPr) using printf in C++ code? What is the result's
unit?
I think there are three way for that:(before starting you should be familiar
with trace file format for the routing protocol you use).
1- Try use printf function with its specifier like %d %f %d, (review this).
2- Modify the output trace file format to include the signal strength.
3- Stor the signal strength parameters in a new file.
Look at the following sites it may close the picture to you:
http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats#Mobile_node_movement_and_energy_trace_formats
http://hilalkaratoy.wordpress.com/modify-trace-file-on-ns-2/
http://www.cse.msu.edu/~wangbo1/ns2/nshowto7.html
For second points: look at the attached file or the following link:
http://labs.nec.com.cn/tcpeval/tcpeval-manual.pdf
Regards,
Mohammed AbuHajar
--- On Wed, 12/2/09, Alexandros Giagkos wrote:
From: Alexandros Giagkos
Subject: Re: [ns] Printing out signal strength and delays.
To: "NS_2 Mailing List"
Date: Wednesday, December 2, 2009, 2:42 PM
Hello list,
I need to ask a couple of things.
Firstly, what is the best way to print out the signal strength of a
packet (p->txinfo_.RxPr) using printf in C++ code? What is the result's
unit?
Secondly, can you propose a neat way to measure the propagation delay of
links and transmission delays of packets in ns2? What will the units
look like?
Thanks in advance,
--
Alexandros Giagkos Research Student
(email) aa...@aber.ac.uk - (web) http://users.aber.ac.uk/aag07
My GPG public key can be found at: (web)/gpg-public-key.asc