Its probably due to this code in common/packet.h


packet.h-                       abort();
packet.h-       }
packet.h-       init(p); // Initialize bits_[]
packet.h:       (HDR_CMN(p))->next_hop_ = -2; // -1 reserved forIP_BROADCAST
packet.h:       (HDR_CMN(p))->last_hop_ = -2; // -1 reserved forIP_BROADCAST
packet.h-       p->fflag_ = TRUE;
packet.h-       (HDR_CMN(p))->direction() = hdr_cmn::DOWN;
packet.h-       /* setting all direction of pkts to be downward as default;

Pedro Vale Estrela

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
> Of Sasan Sahraei
> Sent: quarta-feira, 29 de Março de 2006 21:54
> To: [email protected]
> Subject: [ns] Two questions - Node id and path optimality calculation
> 
> 
> Hi,
> 
> According to the manual -Hd represents the next hop towards the
> destination.
> 
> In my trace file -Hd is mainlly equal to -2. i.e.
> 
> r -t 30.106683874 -Hs 44 -Hd -2 -Ni 44 -Nx 1254.06 -Ny 25.52 -Nz 0.00 -Ne
> -1.000000 -Nl RTR -Nw --- -Ma 0 -Md ffffffff -Ms 2e -Mt 800 -Is 46.255 -Id
> -1.255 -It AODV -Il 48 -If 0 -Ii 0 -Iv 2 -P aodv -Pt 0x2 -Ph 4 -Pb 6 -Pd 3
> -Pds 13 -Ps 2 -Pss 16 -Pc REQUEST
> 
> What does this mean? why the node id is -2? why is it negative?
> 
> also, I am trying to calculate the path optimality and movement pattern
> file is created using setdest. The god object is showing the # of hops
> between two nodes at a point of time, but I don't know (from the trace)
> how to see the number of times a packet has been travered in order to
> perform a comparison.
> 
> Does anyone know any good way to do this?
> 
> Thanks,
> Sasan


Reply via email to