[ns] why the void dsREDQueue::reset() function execution alone again?!
=?gb2312?B?0OwgwNo=?=
xulei01_18 at hotmail.com
Sat Apr 1 16:08:45 PST 2006
hello,
I am doing some work about diffserv simulation. I modify some C++ code
about
diffserv module in NS2.
Today I add
¡°printf("test the dsREDQueue::reset function! \n");¡±
to the void dsREDQueue::reset(),
and add
¡°printf("test dsREDQueue::dsREDQueue() function, which is used to
initialize the queue! \n");¡±
to the dsREDQueue::dsREDQueue(),
which are both in /ns-allinone-2.28/ns-2.28/diffserv/dsred.cc.
when the dsREDQueue::dsREDQueue() execute, it will call the
dsREDQueue::reset() to initialize the red queues. Then I find an inserting
thing: when I do some network simulation, the deREDQueue::reset function
will execute alone again after the dsREDQueue::dsREDQueue() execution.
Because the reset function execution, I can¡¯t change the queue length in a
certain diffserv router.
At C++ code, I can¡¯t find any reason about the dsREDQueue::reset function
to execute alone.
Someone can tell me what¡¯s the reason about the reset function execution
alone again? I think it is not necessary.
_________________________________________________________________
ÏíÓÃÊÀ½çÉÏ×î´óµÄµç×ÓÓʼþϵͳ¡ª MSN Hotmail¡£ http://www.hotmail.com
More information about the Ns-users
mailing list