Rate Limiting Per-Socket

From: Paul Querna (chip_at_force-elite.com)
Date: 06/23/04

  • Next message: Takashi Okumura: "Re: Rate Limiting Per-Socket"
    To: freebsd-net@freebsd.org
    Date: Tue, 22 Jun 2004 20:39:48 -0700
    
    

    Hello,
            I am looking at methods to rate limit a single socket to a specific
    pipe or rate with FreeBSD. I would like to make an Apache module that
    could do its outgoing rate limit *in* kernel, making the module very
    simple, and more accurate by using the kernel todo the rate limiting.

    I have been looking at Dummynet and pfil_hooks, but these seem to
    operate only on an entire interface. I would like to have these operate
    only on a socket fd that I designate. Ie a special setsockopt() would
    put socket x into pipe a. This pipe 'a' was setup ahead of time to only
    allow 512 kb/s.

    Is this possible with FreeBSD? Do you have any suggestions on the best
    way to proceed?

    Thank you,
    -Paul Querna

    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Takashi Okumura: "Re: Rate Limiting Per-Socket"

    Relevant Pages

    • problem with linux 2.6.11 and sa
      ... I recall a problem a while back with a pipe from ... kernel and my spamassassin setup. ... sent on to my local MDA. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
      (Linux-Kernel)
    • problem with linux 2.6.11 and sa
      ... I recall a problem a while back with a pipe from ... /proc/kmsg that was sent by root to a program with a ... The fix was to run the logging program as ... kernel and my spamassassin setup. ...
      (Linux-Kernel)
    • Re: create named pipe in kernel driver?
      ... Though I can give you example how to open pipes within kernel mode, but it won't help you with remoting. ... In kernel pipe name has different ... my driver on a remote machine aswell, without any extra code for sending it over the network. ... create a named pipe from a kernel driver? ...
      (microsoft.public.win32.programmer.kernel)
    • Re: Are Linux pipes slower than the FreeBSD ones ?
      ... performance on Linux and FreeBSD systems. ... Unfortunately, Linux ... I tried the 'pipe' prog on a fresh linux-2.6.24.2, ...
      (Linux-Kernel)
    • Re: [patch 00/11] ANNOUNCE: "Syslets", generic asynchronous system call support
      ... the same thread is allowed to continue execution even if the system call ... the kernel switches the user-space ... returns to user-space as if nothing happened - allowing the user-space ... context to 'fill the pipe' as much as it can. ...
      (Linux-Kernel)