All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Limit packets per second
@ 2003-12-02 22:15 Luciano Lima
  2003-12-03  0:28 ` Damion de Soto
  0 siblings, 1 reply; 2+ messages in thread
From: Luciano Lima @ 2003-12-02 22:15 UTC (permalink / raw)
  To: lartc

Hi all,

Is there a way to create a class that limits the amount of packets of 
any rule in a period ( like pps ) ?
Some aplications like game servers, send so much little udp packets to 
the clients that the router cpu gets exausted, even with relative low 
bandwidith usage.

Any idea ?

Luciano

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] Limit packets per second
  2003-12-02 22:15 [LARTC] Limit packets per second Luciano Lima
@ 2003-12-03  0:28 ` Damion de Soto
  0 siblings, 0 replies; 2+ messages in thread
From: Damion de Soto @ 2003-12-03  0:28 UTC (permalink / raw)
  To: lartc

Luciano Lima wrote:
> Is there a way to create a class that limits the amount of packets of 
> any rule in a period ( like pps ) ?
> Some aplications like game servers, send so much little udp packets to 
> the clients that the router cpu gets exausted, even with relative low 
> bandwidith usage.
If it doesn't mess up your existing QoS ruleset, you can rate limit
packets just using iptables instead:
-m limit --limit 10/s

limit v1.2.7a options:
--limit avg                     max average match rate: default 3/hour
                                 [Packets per second unless followed by
                                 /sec /minute /hour /day postfixes]
--limit-burst number            number to match in a burst, default 5



regards,

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer  email:     damion@snapgear.com
SnapGear - A CyberGuard Company ---    ph:         +61 7 3435 2809
  | Custom Embedded Solutions          fax:         +61 7 3891 3630
  | and Security Appliances            web: http://www.snapgear.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  ---  Free Embedded Linux Distro at   http://www.snapgear.org  ---

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-12-03  0:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-02 22:15 [LARTC] Limit packets per second Luciano Lima
2003-12-03  0:28 ` Damion de Soto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.