Re: Using ebtables to replace the TC mechanism of linux kernel
Bart De Schuymer <[email protected]>
| Newsgroups | gmane.linux.network.bridge.ebtables.devel |
|---|---|
| Message-ID | <[email protected]> |
Op di, 16-10-2007 te 17:46 +0800, schreef YUNG-CHANG WANG <王勇璋>: > Recently I'm taking a survey on Linux packet QoS mechanisms, using > some parameters such as packet type, MAC, IP addr...etc, to replace > original Linux TC. However, I found the Linux QoS mechanism didn't > provide me a good solution. > > Here are the requirements: on the target machine, the packets from > input should be parsed to be examined their layer 2 (this is why I > need ebtableds) and layer 3 header, checking if these incoming packets > match the rules I defined. These rules decide which kinds of packets > should be put to different priority queues. What I mentioned here > "different priority queues" are quite different from the queues > defined in Linux kernel. They are HW queues. Don't worry about the HW > queues, they are implemented in the HW driver, so all I need is to > classify all the packets incoming, dispatch them to their proper > queues before they're forwarding (maybe encapsulate one more tag to > specify their priority). > > My problem is, I traced both userspace program and kernel space source > code, and it seemed there's no functions like what classification do. > What it was done is by parse, compare, and match to filter the > packets. If I would like to add the feature as I just mentioned, how > or where should I start? The ebtables seems to have less direct > connection with Linux RX and TX. If there's anyone who can give me > some clue or advice, I will be very appreciated. Just an idea... What you could do is make a virtual networking device (like the bridge or vlan). The code in that device then decides where things have to go. You can still do the filtering in ebtables if you want, then just mark the packets and use that mark in your virtual device. Ebtables wasn't really designed to let you alter the destination device but maybe things will keep working if you use an ebtables target that does this, dunno... Good luck, Bart ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Ebtables-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ebtables-devel