[Click] A question about how to use to click to realize packet forwarding

Kai Chen kch670 at eecs.northwestern.edu
Thu Nov 25 15:36:53 EST 2010


On Wed, Nov 24, 2010 at 11:03 PM, Roman Chertov <rchertov at cs.ucsb.edu> wrote:
> On 11/24/2010 08:10 PM, Kai Chen wrote:
>> Hi, I am new to click, I have the following requirements, hope someone
>> could give me help.
>>
>> Suppose a network with a central controller, the controller computes
>> the routing tables for all the nodes in the network using say shortest
>> path routing, and it injects the routing table for each node, then the
>> nodes will use these tables to do packet forwarding. The network
>> topology could change periodically, which mean the controller needs to
>> recompute routing tables upon topology change.
>
> You can run your custom processing and then use handlers to change the

I am trying to be familiar with using handler, I have the following test

p::Print(ok);
FromDevice(eth1) -> p -> Discard;
read p.active;

then it gives me:

testdevice.click:22: undeclared element ‘read’, assuming element class
testdevice.click:22: syntax error near ‘.’
testdevice.click:22: undeclared element ‘active’, assuming element class

Can someone tell me how to correctly use a handler?

THanks,

> forwarding tables on the nodes.  These elements deal with forwarding
> tables http://read.cs.ucla.edu/click/elements#ipv4-routing and you can
> use the write handlers to change the forwarding behavior.
>
> Roman
>
>>
>> Hope someone can tell me how to realize all these, or give me some
>> example if possible,
>>
>> Thanks,
>> - Kai
>> _______________________________________________
>> click mailing list
>> click at amsterdam.lcs.mit.edu
>> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>>
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>



-- 
Kai Chen, PhD Candidate
Dept. of EECS, Northwestern University
http://www.cs.northwestern.edu/~kch670/



More information about the click mailing list