Packet delivery ratio - reg.

392 views
Skip to first unread message

Munivenkatesh K

unread,
Oct 26, 2012, 7:16:28 AM10/26/12
to castalia-...@googlegroups.com
Good Day Everyone,

I need your help in calculating packet delivery ratio (PDR).

            No. of packets Received
PDR =  -------------------------------------
               No. of packets sent

I just want to know how can I calculate "Total no. of packets sent" and total no. of packets received. If you have any additional information regarding this please share with me.

I also want to find total amount of energy consumed, residual energy and want to find network life time out of all this. Kindly help me
Hope I will get some help from you.

--
Thanks & Regards,
Muni

Anubha Jain

unread,
Apr 4, 2013, 6:55:12 AM4/4/13
to castalia-...@googlegroups.com
Hi

I am also looking for the same and I want to calculate no of dead nodes in leach, I have added some code in resource manager but my problem is how to access individual nodes parameter value in .cc file??

Regards Anubha

diva

unread,
Apr 15, 2013, 5:27:34 AM4/15/13
to castalia-...@googlegroups.com
I also need to calculate PDR for the n/w.  For this I find total transmitted packets and total received packets as below:

 ../../bin/CastaliaResults -i 130414-131610.txt -s tx --sum

Communication.Radio:TXed pkts - TX pkts

+------+--

| AODV |

+------+

| 2025 |

+------+



../../bin/CastaliaResults -i 130414-131610.txt -s rx --sum

Communication.Radio:RX pkt breakdown

+---------+-----------------------------+---------------------------+----------------------+-------------------------------+

|         | Failed with NO interference | Failed, below sensitivity | Failed, non RX state | Received with NO interference |

+---------+-----------------------------+---------------------------+----------------------+-------------------------------+

| AODV    | 2901                        | 5907                      | 407                  | 3412                          |

 

+---------+-----------------------------+---------------------------+----------------------+-------------------------------+

 but which received packets should I considered, received with no interference / failed or sum of all ?

thanks














On Friday, October 26, 2012 4:46:29 PM UTC+5:30, Muni wrote:

Thanassis Boulis

unread,
May 6, 2013, 12:33:11 AM5/6/13
to castalia-...@googlegroups.com
You should use received packets at the Application level (or at least the routing level AODV) not the Radio level.
At the radio level you see many control packets from the MAC, reTXs and other packets that are not there at the app layer. 

--
You received this message because you are subscribed to the Google Groups "Castalia Simulator" group.
To unsubscribe from this group and stop receiving emails from it, send an email to castalia-simula...@googlegroups.com.
To post to this group, send email to castalia-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/castalia-simulator/-/wkHpjVhg_HYJ.

For more options, visit https://groups.google.com/groups/opt_out.
 
 

kuldeep choudhary

unread,
May 9, 2013, 2:30:29 AM5/9/13
to castalia-...@googlegroups.com
u have to use (resMgrModule->getRemainingEnergy) this and it give u remaining energy of a node.
for received energy--> u have to design this according to ur algorithms

Farah Nassib

unread,
May 22, 2013, 7:03:40 AM5/22/13
to castalia-...@googlegroups.com
Dear all
I have read many posts regarding pdr.

As I know PDR=received pkts/transmitted packets *100%

Where for leach protocol

Received pkts at application layer
Transmitted at communication layer

I need to confirm my doubt ,  in order to get transmitted pkts, why we need to  multiply by number of nodes and sim time and data rate
???? As mentioned in some posts.

Im totally confused plz guide me.




On Thursday, May 9, 2013, kuldeep choudhary <kuldee...@gmail.com> wrote:
> u have to use (resMgrModule->getRemainingEnergy) this and it give u remaining energy of a node.
> for received energy--> u have to design this according to ur algorithms
>
> --
> You received this message because you are subscribed to the Google Groups "Castalia Simulator" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to castalia-simula...@googlegroups.com.
> To post to this group, send email to castalia-...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msg/castalia-simulator/-/xuEadpiOWagJ.

Farah Nassib

unread,
May 22, 2013, 11:57:07 PM5/22/13
to castalia-...@googlegroups.com

Thanassis Boulis

unread,
May 23, 2013, 12:18:42 AM5/23/13
to castalia-...@googlegroups.com
On 22 May 2013 21:03, Farah Nassib <farah...@gmail.com> wrote:
Dear all
I have read many posts regarding pdr.

As I know PDR=received pkts/transmitted packets *100%

Where for leach protocol

Received pkts at application layer
Transmitted at communication layer

If you are calculating PDR then the rx and tx packets will have to be counted from the SAME layer/level. So in your case, application layer.
Not sure what are the other doubts you have and I have not worked with LEACH nor do I know its implementation in Castalia 

Reply all
Reply to author
Forward
0 new messages