Not really sure how to retrive your data, but to prevent this from happening, you can get an anti-ddos program, I don't know any from the top of my head but there are a few programs that can stop ddos attcks simply by banning the IP that is using too much bandwidth or too much CPU.