Re: [LARTC] Intelligent P2P detection

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx :     without getting bogged down by fixated demands.''
 `....................'  Sherkaner Underhill, A Deepness in the Sky, V. Vinge



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux