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

[ns] relation between route_ and slot_ : More precision



Dear  LLoyd

I have just sent you the message below. To be more precise , I am working
on an MPLS implementation in NS. I have written an LDP which populates a 
LIB (Label Information Base) containing for each node an incoming label , 
an outgoing label and the next hop. I have also written an MPLS agent
which should forward packets based on my LIB. I would like to write a
classifier which should forward arriving packets according to my LIB.
When a packet arrives , it is forwarded according to the label contained
in the packet and the information contained in the LIB (outgoing label
and next hop). I would like to understand very well how the forwarding
process is done at the classifiers.


Here is My precedent message
 
> I am looking for a logical relation between the structures route_
> used by the C++ compute_routes in route.cc and the slot array slot_
> used in all the classifiers(see classifier.cc). In my understanding route_
> is a global routing table containing next hops for arriving packets at each
> node. In the NS classifiers upon reception of a packet a function classify() 
> is called to find an index for the slot_ array where the packet will be 
> forwarded. Can you please explain me how these two arrays are related.

 
 Antoine B.
 
 ###############################################################################
 BIGOMOKERO ANTOINE BAGULA               Home : Gardenia 2
 Dept of Computer Science                       Skyvuedrive
 University of Stellenbosch                     Kluis Rivier
 Private Bag XI                                    7580
 7602 Matieland                                 Cape Town
 South Africa                                   South Africa
 
 Email :[email protected]
        [email protected]
 http://www.cs.sun.ac.za/projects/COE/#members
 http://www.cs-net.org
 Fax : +2721 8084416 (W)
 Tel : +2721 8084605 (W)                                
 Cell :+2782 9760453
 ###############################################################################