yea I had ping problem when alot of devices were connected to my wireless router. I was also connected while others were wirelessly connected like xbox, phones etc
its probably related to bandwith but i'm not really sure...
Do you have other computers connected to a the router besides your own
Are you connected wireless or wired?
check whats running on your computer in task manager