[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Route Computation



Hi All,

I am having a lot of trouble trying to work out how
routes are computed in ns. Specifically, how the
connection is made between a node's classifier_
and the appropriate queue (e.g. DropTail). I had thought
this was done in the "compute-routes" function in
~ns-2/tcl/lib/ns-route.tcl, but then I had a look at
the simulator startup function, "run" and the appropriate
line was commented out! 

Any tips or pointers would be greatly appreciated.

Thanks in advance,
David.

PS: here is an the start of Simulator run...

Simulator instproc run {} {
	#$self compute-routes

	$self check-node-num
	$self rtmodel-configure			;# in case there are any
	[$self get-routelogic] configure
	$self instvar scheduler_ Node_ link_ started_ 
	
	set started_ 1
	
	#
	# Reset every node, which resets every agent.
	#
	foreach nn [array names Node_] {
		$Node_($nn) reset

--
David Lapsley, Research Engineer
Melbourne Information Technologies Australia Pty. Ltd.
3/207 Bouverie Street, Carlton, Vic. 3053, Australia
Telephone: +61 3 9344 9386, Facsimile: +61 3 9347 9473