Most likely it was the D-Link router problem. I used to use the D-Link router and had the same problem. I changed to BELKIN, which is very stable for most of the time.
If you can return the D-Link router, I suggest you buy a different one. You can also try to change the link channels to see there's any improvement.