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...