Skip to contentSkip to conversation

Limit packets per second

LARTC Luciano Lima 2 participants 2 messages Dec 2, 2003 – Dec 3, 2003

lore
Share & tools
lore
#1 lore raw
Quoted 5 lines · Luciano Lima

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,

Signature · 11 lines
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Damion de Soto - Software Engineer  email:     [email protected]
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 / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/