[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] Scheduler and Delay?




> 
> Hi ns users,
> I have implemented i new protocol and i would have to simulate the time
> of initialisation. Si i want to know how can I introduce a delay of
> treatement of eachh packet before sending it to the next node.

by deriving the object that will mimic the "treatment" from class LinkDelay, you 
can delay packets before sending them. Or you could use a timer (derive it from 
class TimerHandler), but if it's only the same delay that has to be applied to 
every packet then you are better off with LinkDelay.


> I want to say by that, before I send a packet to a destination , it has
> to be treated by the current node. so a delay must be added to the
> scheduler before sending it?
> How to do that!
> Thank You
> -- 
> --------------------------------------------------------------------------
>         Cordialement
>         
> Koubaa Anis 
> Organization : LORIA Nancy
> Equipe : RESEDAS
> Adresse : CU Haute Malgrange Vandeoeuvre Nancy Bloc C 528
> Mail : [email protected]
> Projet : Comparaison des Protocoles de cl�s de distribution de cl� de
> groupe en utilisant NS
> --------------------------------------------------------------------------

Tarik