[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] When will Queue::deque() be called?
Hi, ns users
If there are some packets in the queue, Queue::deque() will be called and
the HOL packet will be forwarded to the next hop. I record the calling
time in Queue::deque() by "Scheduler::instance().clock()". As expected, if
there are several packets in the buffer, the calling time of
Queue::deque() will differ by the packet transmission time consecutively.
However, if the HOL packet is dropped and NULL pointer is return, the
simulator might think the queue is empty, the there are still some
packets in the buffer, it seems that the simulator needs 0.005 to detect
this. Is this number the accuracy of the simulator clock? If that is the
case, can I change this parameter?
Thanks
sean
--------------------------------------------------------
Hei Xiaojun
Department of Electrical and Electronic Engineering
Hongkong University of Science and Technology