@eyobatem, can you give us more details ? And in particular, what are AODV and NS2 ?
@eyobatem, AODV and NS2 are not related to blockchain. Does this help? https://stackoverflow.com/questions/21084591/how-to-get-length-of-queue-in-aodv