Hello,
I am not a programmer thus I cannot try to solve this problem myself but I
have thought about using traffic shaping for incoming traffic:
http://www.hauke-laging.de/ideen/shape-incoming-ip-traffic/index.en.html
Maybe somebody with the necessary capabilities finds this interesting
enough to give it a try...
CU
Hauke