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

Re: It is hard to find the relation between different classes and functions!



Sun,

	The Classifiers are populated before the execution of the simulation. 
First the routing table is calculated using Dijkstra's spf algorithm, then the 
Classifiers at each node are populated according to this table. There is a 
Classifier for adresses and one for agents (ports #). 
	It should get clearer if you read the chapter on Routing (unicast) and 
the one on Nodes and Packet forwarding in the notes. Take a look at ns-lib.tcl 
and ns-node.tcl. 
	I find it much easier to start on the tcl side before taking a look at 
any C++ code.
	gluck
	
> X-Authentication-Warning: mash.CS.Berkeley.EDU: majrdomo set sender to 
[email protected] using -f
> From: K Sun <[email protected]>
> To: [email protected]
> Subject: It is hard to find the relation between different classes and 
functions!
> Date: Thu, 23 Sep 1999 21:38:44 +0100 (GMT Daylight Time)
> X-Authentication: IMSP
> MIME-Version: 1.0
> 
> Hello, 
>     I have read quite a little about ns programming.
> However, until now, I have not known clearly what the internal 
> operating meachanism of ns-2 is. 
>     For example, the classifier in node can allocate different packet 
> in different ports in a node. However, how does it know these ports are 
> connected with the correct route by which the packet may get to its 
> desirable destination? What functions connect the operation of 
> classifier with the routing function. It is really difficult for me to 
> find the specific relation between these operations like this. I really 
> hope there are some statement about these operation mechanisms of ns-2.
> 
>     Regards,
> 
>          Sun Kai
> 
> 

Tarik