Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ping node delay 8000ms #244

Open
CamelShoko opened this issue Jul 27, 2021 · 3 comments
Open

ping node delay 8000ms #244

CamelShoko opened this issue Jul 27, 2021 · 3 comments

Comments

@CamelShoko
Copy link

1、tunslip6
./wi-sun_tunslip6.sh

16:35:36 ********SLIP started on /dev/ttyUSB0'' 0000.011 opened tun device /dev/tun0''
0000.011 ifconfig tun0 inet hostname mtu 1500 up
0000.023 ifconfig tun0 add fd00:7878:7878::1/64
0000.027 ifconfig tun0 add fe80::7878:7878:0:1/64
0000.032 ifconfig tun0

tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 1500
inet 127.0.1.1 netmask 255.255.255.255 destination 127.0.1.1
inet6 fe80::7878:7878:0:1 prefixlen 64 scopeid 0x20
inet6 fd00:7878:7878::1 prefixlen 64 scopeid 0x0
inet6 fe80::940f:2032:fb06:e1de prefixlen 64 scopeid 0x20
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 500 (未指定)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

0000.036 Packet from TUN of length 48 - write SLIP
0000.054 Packet from SLIP of length 72 - write TUN
0004.262 Packet from TUN of length 48 - write SLIP
0004.263 Packet from SLIP of length 64 - write TUN
0012.966 Packet from TUN of length 48 - write SLIP
0012.967 Packet from SLIP of length 64 - write TUN
0029.862 Packet from TUN of length 48 - write SLIP
0029.863 Packet from SLIP of length 72 - write TUN
0062.630 Packet from TUN of length 48 - write SLIP

@CamelShoko
Copy link
Author

2、ping6
ping6 -I tun0 fd00:7878:7878:0:f827:c324:d302:5de
PING fd00:7878:7878:0:f827:c324:d302:5de(fd00:7878:7878:0:f827:c324:d302:5de) from fd00:7878:7878:0:a35b:a417:ad63:3348 tun0: 56 data bytes
64 bytes from fd00:7878:7878:0:f827:c324:d302:5de: icmp_seq=1 ttl=64 time=8180 ms
64 bytes from fd00:7878:7878:0:f827:c324:d302:5de: icmp_seq=2 ttl=64 time=7170 ms
64 bytes from fd00:7878:7878:0:f827:c324:d302:5de: icmp_seq=3 ttl=64 time=7147 ms
64 bytes from fd00:7878:7878:0:f827:c324:d302:5de: icmp_seq=4 ttl=64 time=7125 ms
64 bytes from fd00:7878:7878:0:f827:c324:d302:5de: icmp_seq=5 ttl=64 time=7102 ms
64 bytes from fd00:7878:7878:0:f827:c324:d302:5de: icmp_seq=6 ttl=64 time=6078 ms
64 bytes from fd00:7878:7878:0:f827:c324:d302:5de: icmp_seq=7 ttl=64 time=6056 ms
^C
--- fd00:7878:7878:0:f827:c324:d302:5de ping statistics ---
13 packets transmitted, 7 received, 46% packet loss, time 12184ms
rtt min/avg/max/mdev = 6056.514/6980.398/8180.765/676.893 ms, pipe 9

@CamelShoko
Copy link
Author

CamelShoko commented Jul 27, 2021

3、border-router logs

Destination Cache:
ff02::1 (life 5)
PMTU 1500 (life 0)
ff02::1a (life 2)
PMTU 1280 (life 0)
fd00:7878:7878:0:a35b:a417:ad63:3348 (life 15)
PMTU 1500 (life 0)
fe80::f827:c324:d302:5de (life 0)
PMTU 1280 (life 0)
ff02::2 (life 0)
PMTU 1500 (life 0)
ff02::1:ff4c:31 (life 0)
PMTU 1500 (life 0)
Routing table:
fd00:7878:7878:0:f827:c324:d302:5de/128 if:1 src:'Loopback' id:0 lifetime:infinite
On-link (met 1128)
fd00:7878:7878::/64 if:2 src:'Thread BBR' id:0 lifetime:infinite
On-link (met 128)
fd00:6172:6d00::/64 if:2 src:'Static' id:0 lifetime:1789
On-link (met 128)
fd00:6172:6d00:0:f827:c324:d302:5de/128 if:1 src:'Loopback' id:0 lifetime:infinite
On-link (met 1128)
fd00:7878:7878::/64 if:2 src:'User' id:0 lifetime:infinite
next-hop fe80::1 (met 128)
fd00:7878:7878:0:280:e1ff:fe4c:31/128 if:2 src:'Loopback' id:0 lifetime:infinite
On-link (met 128)
ff00::/8 if:2 src:'Static' id:0 lifetime:infinite
On-link (met 192)
fe80::/64 if:2 src:'Static' id:0 lifetime:infinite
On-link (met 128)
fd00:7878:7878::/64 if:2 src:'Static' id:0 lifetime:1789
On-link (met 64)
ff00::/8 if:1 src:'Static' id:0 lifetime:infinite
On-link (met 1192)
fe80::/64 if:1 src:'Static' id:0 lifetime:infinite
On-link (met 1128)
Time 00:12:43.4 (763.4) RPL memory usage 428
RPL Domain 0x2403f36c
RPL Instance 1

DODAG fd00:6172:6d00:0:f827:c324:d302:5de
G=1 MOP=1 Prf=0
fd00:7878:7878::/64 lifetime:0 flags:--*
Version 241
Current version Rank=00c4
DIO trickle Imin=1311, Imax=10486, k=10
I=5244, now=702, t=5234, c=0
DAO Targets:
fd00:6172:6d00:0:f827:c324:d302:5de/128 ff seq=240 (pub)
fd00:7878:7878:0:f827:c324:d302:5de/128 ff seq=240 (pub)
Neighbour Cache 2
Reachable Time: 15454 Retrans Timer: 1000 MTU: 1500
IP Addr: fd00:7878:7878:0:a35b:a417:ad63:3348
LL Addr: (NEW 0)
Neighbour Cache 1
Reachable Time: 39877 Retrans Timer: 1000 MTU: 1280
IP Addr: fe80::f827:c324:d302:5de
LL Addr: (NEW 0)
[2021-07-27T08:47:41.086Z][1627375661086ms][INFO][app ]: Heap size: 196560, Reserved: 24292, Reserved max: 24888, Alloc fail: 0
[2021-07-27T08:47:41.086Z][1627375661086ms][INFO][brro]: Backhaul interface addresses:
[2021-07-27T08:47:41.086Z][1627375661086ms][INFO][brro]: [0] fe80::280:e1ff:fe4c:31
[2021-07-27T08:47:41.086Z][1627375661086ms][INFO][brro]: [1] fd00:7878:7878:0:280:e1ff:fe4c:31
[2021-07-27T08:47:41.087Z][1627375661087ms][INFO][brro]: RF interface addresses:
[2021-07-27T08:47:41.087Z][1627375661087ms][INFO][brro]: [0] fe80::f827:c324:d302:5de
[2021-07-27T08:47:41.087Z][1627375661087ms][INFO][brro]: [1] fd00:6172:6d00:0:f827:c324:d302:5de
[2021-07-27T08:47:41.087Z][1627375661087ms][INFO][brro]: [2] fd00:7878:7878:0:f827:c324:d302:5de

@mikter
Copy link

mikter commented Aug 11, 2021

The Slip is not very well supported and might have unknown issues as it is not been used for many years.
Can you use PPP instead as it is used more recently and is better supported.

To debug this issue further we need to know where time is spent. Can you get Wireshark captures from Wi-SUN or from Linux interfaces to see what is causing the delays

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants