From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dawid Kuroczko Date: Wed, 26 Mar 2003 21:37:09 +0000 Subject: Re: [LARTC] Intelligent P2P detection Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org On Tue, 25 Mar 2003, Luman wrote: > I need this solution not only to prioritizing the traffic (prioritizing > can be achieve in other way) but also to selection the Internet link. I > want to NAT this low quality data for some specific address in order to > send it over cheaper link. I do not know if it might help you, but here's my "temporary hack quality" solution. Assumptions: Determine and mark 'good traffic' -- i.e. smtp, ftp, http, ssh, etc., everything which uses well known ports. Probably most people do it anyway, at least to some level. All what is left are P2P connections and some other misc connections. A bit unfair for other protocol using non-standard ports, like Instant Messenger style-software, and lots of other stuff. So here we introduce a trick. IMs and other low bandwidth traffic will use small packets ( < 512 or even < 256), P2P will use maximum MTA available (usually 1500, but I've seen some using 576 packets, hence i treat > 512 as P2P). Probably you've notices that I mention round numbers, as 512 or 1024, that's because I use u32 for marking packets. How I do it, we leave as an exercise to the reader. ;-))) Regards, Dawid -- .................. ``The essence of real creativity is a certain : *Dawid Kuroczko* `. playfulness, a flitting from idea to idea : q n e x@knm.org.pl : without getting bogged down by fixated demands.'' `....................' Sherkaner Underhill, A Deepness in the Sky, V. Vinge _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/