Re: [netnice-users] [Netnice-developer] VIFlet - flexibly extends VIF functionality with embedded J
Status: Alpha
Brought to you by:
taost6
From: Matt D. <mat...@gm...> - 2006-06-08 03:10:54
|
Takashi Okumura wrote: > Dear netnice users/hackers, > > I have a good news, and a request, for you today. > > So far, VIFs can flexibly control network traffic on a host, but, it > cannot provide ALTQ-like queuing control, for example, queuing control > by address-port pairs. So, I have implemented a new mechanism for VIF > system, VIFlet. As the name suggests, VIFlet is a software component, > based on the Java technology. A VIFlet is a container of methods to > perform processing of packets. On the new system, Java Virtual Machines > are embedded on each VIF, and users can run their own VIFlets to > customize functionality of their VIFs. To write such a program, > you can simply use ordinary Java development environment. Just inherit > VIFlet class provided in the class library, and override necessary > methods. Sample VIFlet is attached below, and you will notice that > it is really easy to write a VIFlet. To boost the performance, I also > implemented a in-kernel Just-In-Time compiler, which speeds up > execution of VIFlets close to hardcoded implementations. > Ahh very cool. I can imagine this might consume quite a bit of resources? Although I must say, that is quite a good idea to add it to the kernel for improved performance. Congrats! -Matt |