Sometimes it is necessary to perform UDP flood towards some network device(s) in order to test its behavior in stress… Actually I am sure that every system administrator might use this small perl script for this purpose. Certainly there are many special programs for this but believe me that it is much more easier to do the following:
#touch > /tmp/flood.pl
#chmod +x /tmp/flood.pl
3. Copy the this code to /tmp/flood.pl:
/tmp/flood.pl 192.168.0.1 0 0 0, where 192.168.0.1 is IP you would like to flood with huge amount of UDP datagrams.
Thanks to Ivan Pepelnjak from http://ioshints.blogspot.com/.