[ns] Packet size, dummy question

2009-12-07 Thread Alexandros Giagkos

Dear all,

Let me describe the situation first. I have my routing agent on node A
which at some point broadcasts a packet to the network. Once the packet
is received by another wireless node, lets say B, it gets 'signed' by B
and broadcast further.  I have a new header introduced and I keep the
nodes' 'signatures' in a link-list. This link-list sits on one of my
custom header's fields.

At some other point, I want to measure the transmission delay of the
packet, using the Mac802_11::txtime(double psz, double drt). I have
direct access to Mac from my routing agent.

However I find difficulties when I want to calculate the size of the
packet that carries the 'signatures'. The drt param of the txtime
function will use the basicRate_ value. The size though cannot be fixed
as the packet gets bigger each time it finds a new node.

Obviously, HDR_CMN(p)-size() is not enough. Any suggestions please?


Many thanks in advance,

Regards

-- 
Alexandros GiagkosResearch 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



Re: [ns] Printing out signal strength and delays.

2009-12-02 Thread Alexandros Giagkos

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 GiagkosResearch 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