My Ping So High and How to Reduce It?

Hello,
when I connect to my raspberry pi using the hotspot wifi, the ping is very very high, I can’t connect to it by vnc viewer:

1622 ms :sob:

on this capture screen, I’ve ping my iphone from the raspberry pi.

is there anything to do?

thanks in advance

@Dobermann_VJ there could be any number of reasons why you’re seeing the high ping time:

  • Are the devices on the same network?
  • Do you have the same slow ping time with other devices on the network?
  • Is this over wifi or cabled? If wifi, how’s your signal strength?

Without more detail it will be hard to diagnose the problem.

It’s not you pi! Notice that the errors are from your router, 172.24.1.1, saying it cannot reach the other end. Try pinging the router first. If that is snappy, then the issue is w with the iPhone or the fire wall. Also ping a reliable Internet address like 8.8.8.8, and see how that time is.

2 Likes

Hi jtemple967 and mzero,

As mentionned on my first message, the Pi is the hotspot wifi (172.24.1.1), my Macbook pro and iphone are connected to it.
The Vnc viewer (on both) takes over than 5min to get connected to it.

From the Macbook pro, I send pings:

Last login: Fri Jan 17 12:46:39 on ttys001
vj-dob-2:~ vjdobermann$ ping 172.24.1.1
PING 172.24.1.1 (172.24.1.1): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
64 bytes from 172.24.1.1: icmp_seq=1 ttl=64 time=1111.309 ms
64 bytes from 172.24.1.1: icmp_seq=2 ttl=64 time=107.736 ms
64 bytes from 172.24.1.1: icmp_seq=3 ttl=64 time=2.914 ms
64 bytes from 172.24.1.1: icmp_seq=4 ttl=64 time=6.061 ms
64 bytes from 172.24.1.1: icmp_seq=5 ttl=64 time=5.616 ms
64 bytes from 172.24.1.1: icmp_seq=6 ttl=64 time=5.187 ms
64 bytes from 172.24.1.1: icmp_seq=7 ttl=64 time=1.166 ms
64 bytes from 172.24.1.1: icmp_seq=8 ttl=64 time=1124.847 ms
64 bytes from 172.24.1.1: icmp_seq=9 ttl=64 time=124.682 ms
64 bytes from 172.24.1.1: icmp_seq=10 ttl=64 time=1.076 ms
64 bytes from 172.24.1.1: icmp_seq=11 ttl=64 time=1.044 ms
^C
--- 172.24.1.1 ping statistics ---
12 packets transmitted, 11 packets received, 8.3% packet loss
round-trip min/avg/max/stddev = 1.044/226.513/1124.847/422.456 ms
vj-dob-2:~ vjdobermann$

And after 5-6min waiting, I can see it and manage from VNC viewer but after 2-3 minutes it freezes :cold_face:
I guess the problem is from the Pi wifi card that I think the signal is very weak. I tried by using directly a cat6 ethernet cable and no latency.

I do outdoor art installations and I need to have a strong wifi signal to manage pi’s in case of issues.
This morning, a workmate has suggested me to connecte the pi to a network router (Netgear for eg) with ethernet cable and log to it has a bridge.

I’m short of time of searching why the pi has weak signal, the opening of an art festival will start tonight and my installation must be ready before 5pm.

thanks for your help and time :slight_smile:
I will post some pictures :wink:

Try disabling the power saving on the wireless hotspot connection:

sudo nmcli c modify pb-hotspot 802-11-wireless.powersave 2

See 802-11-wireless: NetworkManager Reference Manual for documentation. Value of 2 means ‘Disable’

Is your Raspberry Pi in some sort of a metal enclosure? It can have a dramatic effect on the strength of the WiFi signal.

This for sure! I experienced that too!

Ah, I thought you meant the pi was connected to a hotspot, not was the hotspot.

Hi Giedrius,

only the basic plastic enclosure (white and red)