Getting high ping when MacBook Air is connected to Wi-Fi I have a 13" MacBook Air with Yosemite 10.10.2 installed:



As soon as I connect it to my WiFi, I get a very high ping (1600 ms) on both my machines: Windows 7 PC and my MacBook. As a result browsing becomes very difficult. I ping 8.8.8.8!

But if I disconnect my MacBook ping becomes normal (70-80 ms) on Windows PC. I've checked ping by disconnecting my PC, restarted my modem-router, switched off Bluetooth on my Mac. 

I've a modem + router D-Link 2750u on the ground floor wired to TP Link 740N on the first floor. I've tried connecting only to 2750u also by switching off 740N. I've been using this setup for last 4-5 months, but the issue has started since couple of weeks back. 

What else I've tried:


Setting DNS to 8.8.8.8 and 8.8.4.4
Deleting cache.db file from com.apple.safari 
Booted in safe mode and restarted back. In safe boot mode I get the usual ping of 70-80 ms but after restarting and booting in normal mode the ping returns back to 1600 ms.


How do I solve this issue?
I was frustrated with a symptom which was : 


High and spiking ping between 1ms to 9000ms 
full bar signal but 50%++ loss ping packet
RSSI &lt; -70db with 5-7 m distance from wifi router
Conflicting country code
Safari loading time takes forever, slow loading website (maybe due to loss packet)


What I have done was : 


Restarting, reconfigure network setting, reconfigure router, diagnose network, deleting lot of plist ---> the symptom still there. 
resolving COUNTRY CODE CONFLICT --- I was thinking that those symptom occur because CC conflict, thus I was editing the country code to be X2 by changing airportbrcm4331 (my case MacBook Air 2011) --> success but the ping still high. lot of article discuss how to do it. 
So I think that there was a something wrong with antenna not the modem because there are no indication of wifi failure. so I did a DIY open MBA, check the modem, and find out that the antenna connector loose and not plugged  properly. plug it... put back things...


and voila everything works like charm. low ping, fast Safari response and works like it suppose to be :D