Hi guys, I have written a new method to implement syncookie to defend DDOS,
I have test the performance of generating and checking cookie which is 50 times more quicker than the standard method.
on my vmware running on P4 1.7G thinkpad, it generates 100,000,000 cookies in 11 seconds while the standard method takes 26 seconds to do 5000,000 times SHA1 encryptions. The standard method would takes more time to generate/check cookie as SHA1 encryption is just one of its steps to generate cookie. So in terms of efficiency, my method would be more than 50 times better than the standard way.
I have tested it on 2.6.20-18, but I have no environment to simulate DDOS(I have only one notebook
). I post my code here and hope if someone is interested and will do some pressure test on it. Any suggestion will be highly appreciated!
Can someone tell me how to upload my code?