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

Reply via email to