Use Ethernet instead of wireless. If the problem disappears when using Ethernet, you've narrowed down the problem to wireless-related issues (most of which are almost infinite in number and are extremely difficult to solve without hours and hours of troubleshooting efforts). 802.11n made the situation even worse, sadly.