Hi guys,

How to implement probabilistic-based flooding in NS-2 ? Say, upon receiving a packet, a mobile node will decide whether to forward it with a certain probability.

  I only know we can use the function below to send a packet in NS-2:
            Scheduler::instance().schedule(target_, p, delay);
  But how to deal with the probability?


Regards,
Phenix

Reply via email to