Re: Traffic quota features in IPFW

From: Max Laier (max_at_love2party.net)
Date: 07/16/05

  • Next message: Chris Dionissopoulos: "Re: Traffic quota features in IPFW"
    To: freebsd-ipfw@freebsd.org, Chris Dionissopoulos <dionch@freemail.gr>
    Date: Sat, 16 Jul 2005 17:40:32 +0200
    
    
    

    On Saturday 16 July 2005 17:02, Chris Dionissopoulos wrote:
    > Hi ppl, ( and sorry for cross posting)
    >
    > I review Andrey's Elsukov patch for adding "bound" support in ipfw, and i
    > decide to push a little forward this feature.

    Sorry to be blunt, but I don't see the point in this feature nor do I think
    it's a good idea. All it does is adding overhead to every packet that is
    processed by IPFW. You might argue that this overhead is fairly little, but
    if you combine the last ten "neat to have though not really necessary"
    features this adds up. Also the code is getting more and more hacked up.
    Your feature might be nicely done, but it adds to the main switch-loops
    making them more and more unreadable until it all falls over and nobody is
    willing to touch the code anymore. I have seen (too) much ipfw code lately
    while tieing together lose ends in the IPv6-import and it's already messy
    enough.

    I urge you to reconsider if we really need this. If you think we can't live
    without it, it'd be nice if you could come up with a clean(er) way to extend
    IPFW with additional stuff like this without impact to performance and
    maintainability for the common case (without the magic foobar-option of the
    day). Thanks.

    BTW: This function can be done with a three line awk-skript without any effect
    on performance. Of course you will lose some precision, but I don't see
    applications where you have to be *that* percise.

    > You can see the whole picture in there:
    > http://www.freebsd.org/cgi/query-pr.cgi?pr=80642
    > and there:
    > http://butcher.heavennet.ru/
    >
    > In my patch, 3 new options are added:
    > 1. "below <VALUE>" (which is the same option as Andrey's "bound" option, I
    > just rename it) 2. "above <VALUE>" which is the oposite option of "below".
    > Match rules when the counter is above <value> 3. "check-quota" (which is
    > the same option as Andrey's "check-bound" , but now applies to both "above"
    > and "below" options).
    >
    > Notes:
    > 1. Patch is against releng_6.
    > 2. I also include a more compicated example which is (IMHO) a complete
    > traffic quota+shaping solution for a small (or not so small) ISP.
    > 3. For installation, follow the instructions Adrey publish in his webspace:
    > http://butcher.heavennet.ru/
    > 4. Patch doesn't breaks ipfw ABI (today) , because adds new options at the
    > end of list. If you apply this patch in a month or so, I cannot guarantee
    > success.
    > 5. Please test, and send me your feedbacks.
    >
    >
    > I 'll be happy if you find usefull these features and if any developer
    > commits this patch in current or releng_6 branch.

    -- 
    /"\  Best regards,                      | mlaier@freebsd.org
    \ /  Max Laier                          | ICQ #67774661
     X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
    / \  ASCII Ribbon Campaign              | Against HTML Mail and News
    
    



  • Next message: Chris Dionissopoulos: "Re: Traffic quota features in IPFW"

    Relevant Pages

    • Re: packet order, ipf or ipfw
      ... On Thu, 29 Jul 2004, Jeremie Le Hen wrote: ... >> feature. ... >> So, what is the order, if I'm running ipf AND ipfw at the same time? ... the patch in the above PR changes it to: ...
      (freebsd-net)
    • =?iso-8859-15?Q?Re:_[RFC]_BadRAM_still_not_ready_for_inclusion_=3F_(wa?= =?iso-8859-
      ... maybe this patch is just something very special, having many pro's but also con's - so this also could be one reason why it exists for so long outside mainline. ... BadRAM let's you tell the kernel to skip certain regions of ram, ... forever, once it becomes a supported feature, for the benefit of the few ... people who can't or won't replace bad memory. ...
      (Linux-Kernel)
    • [patch 00/15] 2nd batch of s390 patches for 2.6.26
      ... The usual fixes and one new feature. ... Heiko's vmemmap sparsemem patch. ... System z large page support. ... cpu topology: Fix possible deadlock. ...
      (Linux-Kernel)
    • rl network driver / patch for peppercon card
      ... Networking works with standard FreeBSD driver, but not the reset ... I only use the reset feature, ... Some peppercon developer was very kind and made a patch for if_rl.c ... This Patch works about 1 year. ...
      (freebsd-current)
    • Re: [patch] convert aio event reap to use atomic-op instead of spin_lock
      ... says just how desperately the feature isn't needed. ... My initial patch was dated back May 2004. ... io_geteventsand the userspace code pulling events out of the ring. ... we don't account those in aio_max_nr. ...
      (Linux-Kernel)