-
Notifications
You must be signed in to change notification settings - Fork 144
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
Netcheck timeouts on high latency networks #2337
Comments
The short answer is, yes. In most scenarios we are currently deploying to, latency larger than this is an indicator that the device is offline/things are broken. |
There are quite a few things that will break on networks with this kind of latency, for example most hole punching strategies will fail, because routers often keep things open for only around 5 seconds. |
If NAT traversal fails, I expect the connection to keep working over relay. I also doubt NAT keeps port mapping for 5 seconds, from a quick search it should be something like 1 minute for half-open and at least a day for two-way open connection. On Linux |
this is about the port mappings inside the router, when no connection has been established yet, which are often times much shorter re relay connection, sure in theory that can be made to work, but it will take some thinking anf work to do so, without making things worse for folks on lower latency connections, as failing fast is often times very desirable |
If I am downloading a file, e.g. transferring a backup on such a bad connection, I want it to eventually succeed, not fail fast. This 10 s latency is not an artificial scenario, it happens on trains when connection is bad and congested between stations but gets better when the train gets connection. There are times when latency is ~500ms, but it also jumps to >10 s from time to time:
|
I am also fine with netcheck failing completely, but if netcheck fails I think iroh-net should still keep trying to use the relay. |
I have been testing Delta Chat with iroh-gossip realtime channels on a network with high latency (>10s ping) and while Delta Chat worked for sending messages, p2p channels failed to connect.
Apparently netcheck has a very low timeout with no backoff:
iroh/iroh-net/src/netcheck/reportgen.rs
Lines 50 to 51 in 4dd69f4
Is it true that there is no way to use iroh-net when network has >5s RTT?
The text was updated successfully, but these errors were encountered: