[Q] Scheduling ..??
HoKun Chung
heaven2@knusun.kangnung.ac.kr
Sat, 11 Sep 1999 15:32:37 +0900
--------------1F4FD0C066F3F4E6B39B1B1E
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
hi, ns users.
I try to create a input queue in node and simulate it.
but, node is not act correctly. I guess, Input Queue, i made,
is not schedule in event scheduler.
A node, recivied packet, does not any kind of action.
and, in NAM, I write a tcl code for 1 second simulation code,
NAM only work during 10ns.
After receiver node received one packet, NAM finished the simulation.
Below is show my work ( create input queue )
-----------------------------------------------------------------------------
Node
-----------------------------------------
| |
| entry_ ------------> Classifier_ |
| ^ |
| | |
| input_queue_ |
| |
-----------------------------------------
[ ns-node.tcl ] I modified ....
Node instproc mk-default-classifier {} {
$self instvar address_ classifier_ id_ input_queue_
set classifier_ [new Classifier/Addr]
# set up classifer as a router (default value 8 bit of addr and 8
bit port)
$classifier_ set mask_ [AddrParams set NodeMask_(1)]
$classifier_ set shift_ [AddrParams set NodeShift_(1)]
set address_ $id_
# 1999.09.09 hokunchung inserted
---------------------------------------
puts "Node instproc mk-default-classifier routine.."
set input_queue_ [new Queue/RED]
$input_queue_ target $classifier_
#
----------------------------------------------------------------------
}
How can I schedule input_queue_ ?
previously, thank you...
--------------1F4FD0C066F3F4E6B39B1B1E
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
hi, ns users.
<br>I try to create a input queue in node and simulate it.
<br>but, node is not act correctly. I guess, Input Queue, i made,
<br>is not schedule in event scheduler.
<br>A node, recivied packet, does not any kind of action.
<br>and, in NAM, I write a tcl code for 1 second simulation code,
<br>NAM only work during 10ns.
<br>After receiver node received one packet, NAM finished the simulation.
<p>Below is show my work ( create input queue )
<br>-----------------------------------------------------------------------------
<p>Node
<br>-----------------------------------------
<br>|
|
<br>| entry_ ------------> Classifier_
|
<br>|
^
|
<br>|
|
|
<br>|
input_queue_
|
<br>|
|
<br>-----------------------------------------
<p>[ ns-node.tcl ] I modified ....
<p>Node instproc mk-default-classifier {} {
<br> $self instvar address_ classifier_ id_<b>
input_queue_</b>
<br> set classifier_ [new Classifier/Addr]
<br> # set up classifer as a router (default value
8 bit of addr and 8 bit port)
<br> $classifier_ set mask_ [AddrParams set NodeMask_(1)]
<br> $classifier_ set shift_ [AddrParams set NodeShift_(1)]
<br> set address_ $id_
<br> <b># 1999.09.09 hokunchung inserted ---------------------------------------</b>
<br> puts "Node instproc mk-default-classifier
routine.."
<br> set input_queue_ [new Queue/RED]
<br> $input_queue_ target $classifier_
<br> # ----------------------------------------------------------------------
<br>}
<p>How can I schedule input_queue_ ?
<p>previously, thank you...
<br> </html>
--------------1F4FD0C066F3F4E6B39B1B1E--