Slashdot Mirror


Application Layer Packet Shaping on Linux

sommere writes "We have added application layer (layer-7) filtering to Linux. That means that you can set up your linux-router/linux-switch to prioritize mail over the web over kazaa or gnutella regardless of what port each program is using. Colleges have been paying thousands of dollars for packet shapers to prioritize their networks, now you can do it for free. Get your kernel patch at l7-filter.sourceforge.net."

12 of 353 comments (clear)

  1. 15 grand for 100mbit to be exact by York+the+Mysterious · · Score: 4, Informative

    It cost my school 15 grand for 100mbit of shaping to be exact. Try using Kazaa when there are 4 huge dorms full of students trying to access kazaa, irc, ftp, hotline and some other protcols on 150k. Not fun

    --

    Tim Smith - Ramblings from Nerd Land
  2. OpenBSD by Penguuu · · Score: 3, Informative

    This type of thing has been in OpenBSD long time now (altq) but it nice to see that this type of thing is done in linux.

    --
    The problem in the world today is communication. Too much communication - Homer Simpson
    1. Re:OpenBSD by shaitand · · Score: 3, Informative

      It's not impossible to do throttling on inbound packets, I do it with my current configuration at home. Outbound is easy because you only have to queue the packets and send them out at the rate you want, inbound requires dropping packets... it really only works with tcp/ip though, basically tcp/ip determines your connection speed by flinging packets at you as fast as it can and seeing if they all are recieved, if not, it slows down until it's finally able to negotiate an acceptable speed, this is how that OC3 connected webserver is able to figure out to send your 56k modem data at 56k. So basically you have the packets dropped until the speed is where you want it.

      This linux patch is different in those ways from ALTQ... because that's it's entire purpose? You can already do all the things altq does with iptables as it already stands. The entire purpose of this patch is that it allows you to shape traffic based on application rather than based on port. The inbound/outbound thing already works under iptables (like I said, I'm doing it myself).

  3. Re:This will be nice by oldcowhand · · Score: 3, Informative

    Performance isn't an issue--ImageStream has a full line of commercial Linux-based routers in use in over 70 countries worldwide. They offer wirespeed performance and interfaces from T1/E1 to DS3/E3 through OC12 and OC48.

    http://www.imagestream.com/

    Don't take my word for it, either. ImageStream's Rebel Router with a DS3 interface was reviewed in Linux Journal and Network Computing last year. Both publications confirmed the wirespeed specification.

  4. Re:Correct me if I'm wrong, but CBQ anyone? by SharpFang · · Score: 3, Informative

    That's based on service, port number notwithstanding. Set up FTP on 25 and Kazaa on 80 and you still get FTP treated as FTP and Kazaa blocked completely ;)

    --
    45 5F E1 04 22 CA 29 C4 93 3F 95 05 2B 79 2A B2
  5. Trickle by Earlybird · · Score: 5, Informative

    For those not ready to upgrade to Linux 2.5, and for those on other platforms, there is Trickle, a userland traffic shaper for Linux, *BSD and Solaris. It works on a per-process basis (or on groups of processes to limit aggregate traffic consumption), does not require root-level access nor kernel patches, and is, of course, open source.

  6. Re:New type of linux distro? (again) by bogie · · Score: 3, Informative

    Ever heard of Esmith? http://www.e-smith.org/
    Mandrake and Red Hat will work fine as well.
    Or I guess you could buy a Netwinder www.netwinder.net which really is plug and play.

    "If Linux is going to break into home of joe average that might very well be the way."

    Well realistically that's really not likely to happen. Joe average doesn't go around setting up servers. Of course no offense, but I'm not really sure what your initial point was ;) Are you saying the average home user needs Application Layer Packet Shaping or that there are no easy to setup linux "server distros"? I guess maybe you meant both, but considering most homes aren't even running the easy to use linux servers out there now the availability of ALPS probably won't change that.

    For businesses it might spur more linux adoption though.

    --
    If you wanna get rich, you know that payback is a bitch
  7. Re:This will be nice by tzanger · · Score: 5, Informative

    If you put your ISP on a commodity linux box and expect five 9's you need to back off the medication.

    While not five 9's, I do run an ISP off of commodity Linux boxes and achieve three 9's (8.77 hours out of the year downtime) -- we're a commercial ISP and frankly, if that's not good enough for you, go buy someone else's service. I can't get three 9's downtime out of my upstream ISP if you count the scheduled downtime (which my three 9's figure does count).

  8. Re:this could be a help for me at home by JLester · · Score: 4, Informative

    Not at Layer-7, that's what makes it ideal. The expensive shapers like Packeteers work the same way. It doesn't matter what port, it actually looks at the traffic itself at the application layer.

    Jason

    --
    "FORMAT C:" - Kills bugs dead!
  9. Re:This will be nice by Mattsson · · Score: 3, Informative

    Mmm... But a small Cisco router or firewall can't do advanced packetshaping.
    Not even the large ones can do really advanced shaping.
    You'll need specialised boxes that *aren't* routers or firewalls at all but only do packetshaping.
    They're usually totaly transparent to the network, except that they shape the traffic.
    The best product I know in this field is the Packeteer Packetshaper, but there might be other products that are as good or even better out there...

    --
    /.Mattsson - My native language is not English, so please don't whine over linguistic errors. (That's lame anyway...)
  10. Re:this could be a help for me at home by smeenz · · Score: 3, Informative

    I just downloaded their protocol definitions and took a look - they differentiate kazaa and generic http by looking for the "user-agent: kazaa" line in the header.

    so there you go.

  11. Re:This will be nice by Yottabyte84 · · Score: 3, Informative

    /bok'sn/ (By analogy with VAXen) A fanciful plural of box
    often encountered in the phrase "Unix boxen", used to describe
    commodity Unix hardware. The connotation is that any two
    Unix boxen are interchangeable.

    --FOLDOC