[Click] Quick Question

Eddie Kohler kohler at cs.ucla.edu
Mon May 9 16:50:20 EDT 2005


It doesn't serve any purpose for gathering UDP statistics, no; one 
could probably rely on the host's ARP responder with no loss of 
functionality.  It is probably there, though, to reduce failure modes: 
now you know that Click is responsible for ARP replies.

Eddie


On May 6, 2005, at 2:58 PM, betamaz wrote:

> Hi,
>
> In the sample configuration files udpcount.click/udpgen.click, why
> does udpcount use an ARPResponder? Does it serve any purpose for
> gathering udp statistics?
>
> Thanks,
> Bita.
>
>
> ------------------------------------
> here is the config for reference:
>
> AddressInfo(the_interface 1.0.0.1 0:0:c0:8a:67:ef);
>
> classifier	:: Classifier(12/0800 /* IP packets */,
> 			      12/0806 20/0001 /* ARP requests */,
> 			      - /* everything else */);
> ip_classifier	:: IPClassifier(dst udp port 1234 /* relevant UDP 
> packets */,
> 				- /* everything else */);
> in_device	:: PollDevice(the_interface);
> out		:: Queue(200) -> ToDevice(the_interface);
> to_host		:: ToHost;
> ctr		:: Counter /* or AverageCounter */;
>
>
> in_device -> classifier
> 	-> CheckIPHeader(14, CHECKSUM false) // don't check checksum for speed
> 	-> ip_classifier
> 	-> ctr
> 	-> Print(ok:udp)
> 	-> Discard;
> classifier[1] -> ARPResponder(the_interface) -> out;
> classifier[2] -> to_host;
> ip_classifier[1] -> to_host;
>
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click



More information about the click mailing list