pactus-project / pactus

Pactus blockchain
https://pactus.org
MIT License
216 stars 141 forks source link

UDP packet loss #915

Open kehiy opened 10 months ago

kehiy commented 10 months ago

Some users reported they have packet loss on UDP. also, someone's syncing issue is fixed by disabling the UDP for the network.

Some possible cases:

1- 2024/01/07 11:15:06 failed to sufficiently increase receive buffer size (was: 208 kiB, wanted: 2048 kiB, got: 416 kiB). See https://github.com/quic-go/quic-go/wiki/UDP-Buffer-Sizes for details.

2- filtering and blocking UDP/QUIC packets by ISPs.

laosiji-io commented 10 months ago

Let me add something here. This should not have an impact on synchronization, mainly affecting the broadcast of voting. Because the synchronization of the nodes I tested was normal, but the voting score kept decreasing, and after disabling UDP, the score gradually increased.

b00f commented 10 months ago

This should not have an impact on synchronization, mainly affecting the broadcast of voting.

Sounds weird. Maybe there is something else related to this issue.

laosiji-io commented 10 months ago

Synchronization involves read and write operations, which are closely related to the performance of the available CPUs and disk I/O. As far as I know, some inexpensive ISPs provide services with poor performance in these two areas.