Hi Roman, I'm a big userlevel Click fan, so I'll have a look tomorrow and post my results.
Regards Beyers On Thu, Oct 28, 2010 at 7:55 PM, Roman Chertov <[email protected]> wrote: > Hello, > > I was curious if anybody could try this test for me using userlevel click. > I am > running CentOS 5.5 2.6.18-194.17.1.el5, and I have two network cards > connected > with a single cable. If I run the script below using userlevel click, > FromDevice(eth3) will receive very few packets and the majority would end > up > dropped on input. > > src :: RatedSource(\<00>, LENGTH 1458, RATE 8000, LIMIT 100000) > -> UDPIPEncap(10.0.1.1, 6667, 20.0.0.2, 6667) > -> EtherEncap(0x0800, 00:30:48:F9:EA:7B, 00:17:cb:0d:f8:db) > -> ctr1 :: AverageCounter > -> ToDevice(eth2); > > > fd :: FromDevice(eth3, SNIFFER false, PROMISC true) > -> ctr2 :: AverageCounter > -> Discard; > > This script just requires ethX names to be changed; otherwise, it can be > run as > is. > > [root]# click test2.click -h ctr1.count -h ctr2.count > ctr1.count: > 100000 > > ctr2.count: > 4482 > > Roman > > > _______________________________________________ > click mailing list > [email protected] > https://amsterdam.lcs.mit.edu/mailman/listinfo/click > _______________________________________________ click mailing list [email protected] https://amsterdam.lcs.mit.edu/mailman/listinfo/click
