As was noted earlier in this thread, ping with the default 1 second delay is not a useful diagnostic tool for the late 2013 Retina MPBs. The WIFI chip sleeps after 1/4 second of inactivity. So, assuming no other network activity, ping results will always be ugly on these machines unless the delay is reduced to less than 0.25s like so:
ping -i 0.2 <router ip address>
or to test outside connectivity:
ping -i 0.2 www.apple.com
For most real world usage, the aggressive WIFI sleep doesn't cause a problem - either latency doesn't matter or there is enough traffic to prevent sleep during streaming or downloads. Some activies such as remote terminal sessions are affected, which can be a bit frustrating, but it is by design and exchanging computers won't help.
My workaround is to just run a continuous "ping -i 0.2 ..." in the background when I want to keep WIFI from sleeping. Ugly, but it works.
I'm sure some folks on this thread have real connectivity problems that extend beyond the sleep issue. But for ping results to be useful, you must include "-i 0.2".