[ns] about packet modify in MAODV protocol

2009-02-25 Thread

hi, 
i want to modify the RREP message packet in MAODV. i add one variable and 
one array in the packet as below :   

struct hdr_aodv_reply {

u_int8_trp_type;// Packet Type

/*** modified for multicast ***/

//u_int8_treserved[2];

u_int8_t   rp_flags;

u_int8_treserved;

/***/

u_int8_trp_hop_count;   // Hop Count

nsaddr_trp_dst; // Destination IP Address

u_int32_t   rp_dst_seqno;   // Destination Sequence Number

nsaddr_trp_src; // Source IP Address

double rp_lifetime;// Lifetime

double  rp_timestamp;   // when corresponding REQ sent;

/add for me/

  double  rp_S;

  nsaddr_t   rp_pt[5];

/**/

  inline int size() { 

  int sz = 0;

  /*

  sz = sizeof(u_int8_t) // rp_type

+ 2*sizeof(u_int8_t)// rp_flags + reserved

+ sizeof(u_int8_t)// rp_hop_count

+ sizeof(double)  // rp_timestamp

+ sizeof(nsaddr_t)  // rp_dst

+ sizeof(u_int32_t)  // rp_dst_seqno

+ sizeof(nsaddr_t)  // rp_src

+ sizeof(u_int32_t); // rp_lifetime

  */

  sz = 6*sizeof(u_int32_t)+sizeof(double)+5*sizeof(nsaddr_t);

  assert (sz = 0);

   return sz;

  }

the error is :segmentation falt (core dumped)
thanks for help me.






[ns] help me about MAODV trace file

2008-12-12 Thread

 
  
 hello all,
i run the MAODV protocol,but i found a interesting thing:
--s 401.509417279 _0_ AGT  --- 746 cbr 256 [0 0 0 0] --- [0:0 234881024:-1 
32 0] [746] 0 0
--r 401.509417279 _0_ RTR  --- 746 cbr 256 [0 0 0 0] --- [0:0 234881024:-1 
32 0] [746] 0 0
--s 410.543042838 _0_ RTR  --- 746 cbr 276 [0 0 0 0] --- [0:0 234881024:-1 
30 34] [746] 0 0
why node 0 send the packet 746 after so long time?
thanks your help

[ns] how to control CBR packets transmitted on different route

2008-12-07 Thread

  
 hi,
supposed that there are two routes betwen node a and d, one through b ,and 
the other through c. that is, the first route is a-b-d, and the send route is 
a-c-d. 
how can i send the different CBR packet on the differnt route. for example, 
i want send packets whose packet_id=1,3,5,7,...on the first route, and the 
packets whose packet_id=2,4,6,...,on the sencond route.
thanks your help.
 
 hujie
 

[ns] how to change the wireless transmit range

2008-11-11 Thread

 
 hi,
I want to change the wireless node's transmit range from 250 to 100, what 
should i do.
thanks.

[ns] who knows the email of Yufang Zhu, the MAODV implementation author

2008-11-06 Thread

 
 hi all,
Do you know the email of Yufang Zhu, she(he) implementated the MAODV in 
NS2.26. i have some problem to consult to she(he).
If you have study the MAODV protocol, please let me know, i want your help.
thanks very much.

[ns] how to add a variable in MAODV

2008-11-03 Thread

 hello all,
i add a proteced variable int nbcount in class aodv in aodv.h file, run 
correctly. but 
in maodv ptotocol, i add the same variable in the same place, without use by 
any other 
operation, it's worong.
the error is: segmentation fault;
why, how can i do.
 
Best wishes to you!

 

 

Yours,

Hu Jie

 

[ns] about AODV

2008-10-28 Thread

 
 
 
 hello:
 
 in aodv protocol, nodes periodically broadcast HELLO messages, i want to 
use this mechanism to caculate the node's neighbor change ration. How can i do 
this. 
 
 thank you very much.

[ns] about MAODV install

2008-10-24 Thread

  
 hi,ns users,
 
 I had followed the instructions of the modv-ns-2.26.pdf to add the files 
in MAODV packages into the respective folders. 

 but i don't know how to add the aodv_mcast.o, aodv_mtable.o, and 
aodv_mtable_aux.o to the compilation list of makefile. 

i have find the file of makefile.

best wishs

   hujie

 
 
 

[ns] MAODV code

2008-09-14 Thread

 
 
 
 Dear ns users,
 
i'm studying MAODV protocol. Do you have the ns code about MAODV? Will you 
share with me the code.
 
Thank you very much! Looking forward to your reply. 

  

Best wishes to you!

  

  Yours,

 Hu Jie

 
 
 



[广告] 买房不必东奔西走,上房老大,看二手房网上房展会