[ns] Problem with Scheduler

Maurizio Bellemo maurizio.bellemo at gmail.com
Wed Sep 24 03:40:00 PDT 2008


Hi all,

I have a little problem with the Scheduler. I schedule some packets in my
program

Scheduler::instance().schedule(target_, p, (100/tcf_time));

but when i try to cancel some of them from the queue not to be sent

Scheduler::instance().cancel(p);
drop(p);

It doesn't work. I read the trace and saw that, even if the node drops the
packet, it send it anyway

r 0.772681927 _1_ RTR  --- 2 protoname 27 [0 ffffffff 2 800] ------- [2:255
-1:255 32 0]
D 0.772681927 _1_ RTR  --- 2 protoname 27 [0 ffffffff 2 800] ------- [2:255
-1:255 32 0]
s 1.320665076 _1_ RTR  --- 1 protoname 27 [0 0 0 0] ------- [1:255 -1:255 32
0]

Does anyone know why? How can i cancel a packet from the scheduler queue?

Thks
Maurizio


More information about the Ns-users mailing list