| To: | hadi@xxxxxxxxxx |
|---|---|
| Subject: | Re: Luca Deri's paper: Improving Passive Packet Capture: Beyond Device Polling |
| From: | Luca Deri <deri@xxxxxxxx> |
| Date: | Wed, 07 Apr 2004 08:59:04 +0200 |
| Cc: | P@xxxxxxxxxxxxxx, Jason Lunz <lunz@xxxxxxxxxxxx>, netdev@xxxxxxxxxxx, cpw@xxxxxxxx, ntop-misc@xxxxxxxxxxxxx, Robert.Olsson@xxxxxxxxxxx |
| In-reply-to: | <1081262228.1046.25.camel@jzny.localdomain> |
| Organization: | ntop.org |
| References: | <20040330142354.GA17671@outblaze.com> <1081033332.2037.61.camel@jzny.localdomain> <c4rvvv$dbf$1@sea.gmane.org> <407286BB.8080107@draigBrady.com> <4072A1CD.8070905@ntop.org> <1081262228.1046.25.camel@jzny.localdomain> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7a) Gecko/20040218 |
|
Hi Jamal, from what I read below it seems that you read my first version of the paper/code. The current paper is available here http://luca.ntop.org/Ring.pdf and the code here http://sourceforge.net/project/showfiles.php?group_id=17233&package_id=110128 (as I have said before I plan to have a new release soon). Briefly: - with the new release I don't have to patch the NIC driver anymore - the principle is simple. At the beginning of netif_rx/netif_receive_sk I have added some code that does this: if there's an incoming packet for a device where a PF_RING socket was bound, the packet is processed by the socket and the functions return NET_RX_SUCCESS with no further processing. This means that: - Linux does not have to do anything else with the packet and it's ready to do something else - the PF_RING is mapped to userland via mmap (like libpcap-mmap) but down the stack (for instance I'm below netfilter) so for each incoming packet there's no extra overhead like queuing into data structures, netfilter processing etc. This work has been done to improve passive packet capture in order to speedup apps based on pcap like ntop, snort, ethereal... jamal wrote: On Tue, 2004-04-06 at 08:25, Luca Deri wrote: The code is available at the URL I have specified before.
What I did is not for simply accounting. In fact as you pointed out accounting can be done with the kernel. What i did is for apps that need to access the raw packet and do something with it. Moreover, do not forget that at high speeds (or even at 100 Mbit under attack) the standard Linux kernel is not always able to receive all the traffic. This means that even using kernel apps like tc you will not account traffic properly
I probably missed your patches. Chan you please send them again? I still think you want to manage this device, so some packets should beI agree, that's why in release 2. I have decide not to hack the driver as this is not too smart. What we should do instead is improve Linux so it can be at the same level performance wise as your bare bone driver. I have never seen you post on this subject and then you show up with a a paper showing an ancient OS like BSD beating us at performance (or worse Win2k).
Not really. I have written a simple kernel module with a dummy poll() implementation what returns immediately. Well under high system load the time it takes to process this poll call is much much greater (and totally unpredictable). You should read this: http://home.t-online.de/home/Bernhard_Kuhn/rtirq/20040304/rtirq.html
So tell me what to do in order to integrate my work into Linux and I'll do my best to serve the community. cheers, jamal Cheers, Luca -- Luca Deri <deri@xxxxxxxx> http://luca.ntop.org/ Hacker: someone who loves to program and enjoys being clever about it - Richard Stallman |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: r8169, 2.6.2-rc2, Sager 4780 laptop, bhartin |
|---|---|
| Next by Date: | Re: Luca Deri's paper: Improving Passive Packet Capture: Beyond Device Polling, Luca Deri |
| Previous by Thread: | Re: Luca Deri's paper: Improving Passive Packet Capture: Beyond Device Polling, Ben Greear |
| Next by Thread: | Re: Luca Deri's paper: Improving Passive Packet Capture: Beyond Device Polling, jamal |
| Indexes: | [Date] [Thread] [Top] [All Lists] |