Hi I've the algorithm for ETX fo a link to calculate{from the book ,ALGORITHM AND PROTOCOLS FOR WIRELESs ADHOC NETWORK} Require: Node X receives an ETX probe packet from Node Y { // W = Number of probe packets sent by a node in 1 second } { // n xy = number of probe packets heard by Y that was sent by X in the last w seconds } { // n yx = Number of probe packets heard by X that was sent by Y in the last w seconds } Extract n xy from the received packet r xy ← nxy wW { // Rating of XY } Update n y r yx ← ny wW { //Rating of YX } etx xy ← 1 rxyryx { //ETX for the link XY } can anybody help me to calculate it in ns2 for routing protocols like aodv and olsr etc,I"ve postedd the question before ,but no answer.