click-configuration

Eddie Kohler kohler at aciri.org
Thu May 31 02:36:12 EDT 2001


Hi Werner,

> I 'm trying to run a performance measurement on a router based on the
> "polling linux" mode mentioned in your paper. Therefore I configured a
> pc as udp generator with the udpgen.click configuration file in the
> click distribution. The udp receiver just looks like:
>       PollDevice -> Counter -> Discard;

There was a bug in Click 1.2.0's implementation of ToLinux. You may be
encountering that bug.

We have fixed the bug in our anonymous CVS repository, so you can get the
new code that way; or you can wait for us to release Click 1.2.1, which
should happen within the week.

In addition, you don't need to use FromLinux to build a polling Linux
router. ToDevice will automatically check Linux's queues. The configuration
I used in my thesis for a polling Linux router is below. Note that Click
has changed since I wrote my thesis -- in particular, the way it handles
tasks has changed -- so you may get different results.

love,
ed

tl :: ToLinux;
i :: Idle;

p1::PollDevice(eth1) -> tl;
p2::PollDevice(eth2) -> tl;
p3::PollDevice(eth3) -> tl;
p4::PollDevice(eth4) -> tl;
p5::PollDevice(eth5) -> tl;
p6::PollDevice(eth6) -> tl;
p7::PollDevice(eth7) -> tl;
p8::PollDevice(eth8) -> tl;

i -> t1::ToDevice(eth1);
i -> t2::ToDevice(eth2);
i -> t3::ToDevice(eth3);
i -> t4::ToDevice(eth4);
i -> t5::ToDevice(eth5);
i -> t6::ToDevice(eth6);
i -> t7::ToDevice(eth7);
i -> t8::ToDevice(eth8);

sl::ScheduleLinux;

ScheduleInfo(
  sl 4,
  p1 1, p2 1, p3 1, p4 1, p5 1, p6 1, p7 1, p8 1,
  t1 1, t2 1, t3 1, t4 1, t5 1, t6 1, t7 1, t8 1,
);



More information about the click mailing list