lima icon indicating copy to clipboard operation
lima copied to clipboard

Ping is providing a corrupted response

Open iamshreeram opened this issue 1 year ago • 1 comments

Description

When pinging the DNS at 8.8.8.8, the response received is invalid, incorrect, or corrupted. The following is the response obtained from the ping:

~/r/p/lima ❯❯❯ limactl shell ebpf-lima-vm ping -c 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
ping: Warning: time of day goes back (-5043768416157483521us), taking countermeasures
ping: Warning: time of day goes back (-5043768416157483473us), taking countermeasures
64 bytes from 8.8.8.8: icmp_seq=0 ttl=255 time=0.000 ms
wrong data byte #16 should be 0x10 but was 0x0
#16	0 7 0 1 84 e4 8b 65 0 0 0 0 c3 21 2 0 0 0 0 0 10 11 12 13 14 15 16 17 18 19 1a 1b
#48	1c 1d 1e 1f 20 21 22 23
ping: Warning: time of day goes back (-3422754025279804399us), taking countermeasures
64 bytes from 8.8.8.8: icmp_seq=0 ttl=255 time=0.000 ms (DUP!)
wrong data byte #16 should be 0x10 but was 0x0
#16	0 7 0 2 85 e4 8b 65 0 0 0 0 41 37 2 0 0 0 0 0 10 11 12 13 14 15 16 17 18 19 1a 1b
#48	1c 1d 1e 1f 20 21 22 23
ping: Warning: time of day goes back (-2571010745752362412us), taking countermeasures
64 bytes from 8.8.8.8: icmp_seq=0 ttl=255 time=0.000 ms (DUP!)
wrong data byte #16 should be 0x10 but was 0x0
#16	0 7 0 3 86 e4 8b 65 0 0 0 0 12 42 2 0 0 0 0 0 10 11 12 13 14 15 16 17 18 19 1a 1b
#48	1c 1d 1e 1f 20 21 22 23
^C
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 1 received, +2 duplicates, 66.6667% packet loss, time 2008ms
rtt min/avg/max/mdev = 0.000/0.000/0.000/0.000 ms, pipe 4

This problem appears to be connected to issue number #193

iamshreeram avatar Dec 27 '23 08:12 iamshreeram

@iamshreeram are you deploying lima so that ebpf has access to performance counters? E.g., this command is not empty:

# perf list hw

List of pre-defined events (to be used in -e):

vsoch avatar May 18 '24 02:05 vsoch