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

Re: Active networking in ns




> X-Sender: [email protected]
> Date: Tue, 19 Oct 1999 09:18:34 +0200
> To: Tarik Alj <[email protected]>
> From: Guillermo Rodriguez Garcia <[email protected]>
> Subject: Re: Active networking in ns
> Mime-Version: 1.0
> 
> At 09:20 18/10/99 -0400, you wrote:
> 
> >> But this approach also involves modifiying classifier.cc, so that
> >> the first object found in the node is classifier-switch instead
> >> of classifier.
> >
> >You could install the classifier-switch in the adress's classifier slots. I 
> >don't think it implies modifying ns internals very much. Basically you are 
> >inserting an object, that implies modifying the targets a bit (putting the 
> >filter in the classifier's slots and stting the filter's target to be the
> link's 
> >head).
> 
> This seems interesting. I'm afraid I'm not very familiar with ns, so
> I don't grasp the thing completely. Could you please elaborate this
> a bit more ?

Every node has an address classifier wich slots contains the links' heads to 
reach the destination. Say you put a filter object in every slots (or some 
depending on you implementation) of the classifier of a given node. For every 
slot the filter is connected to corresponding link. Now every time the packet is 
given to the object in the slot, according to dst, it is filtered. the filter 
can then give the packet to the AN processor wich will give it to the link, or 
directly to the link.

My guess is you would have to overide add-route for that. See ns-routes.tcl.
 
> 
> >From what i have understood of what you wich to implement, i would have
> put the 
> >filter in between the node and the classifier, so that packets that need 
> >processing can be send to the processor and the other packets send to the 
> >classifier wich puts them on the link. 
> >
> >I don't know what is to happen to packets out of the AN processor but i
> guess 
> >you could send them to the classifier so they can be put on the link.
> 
> After active packets are processed (and possibly the destination address
> changed) they should be forwarded as normal packets to their (possibly
> new) destination.
> 
> Regards,
> G.
> --
> Guillermo Rodriguez Garcia
> <[email protected]>

Tarik