You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
This is a bit of a long shot and depends on the performance of future quic-go releases but QUIC already tends to perform better on high latency connections:
We might want to consider some sort of circuit breaker if implementing this, to prevent an eternal connection-upgrade fight between two differently configured devices.
I also think the "gigabits" claim needs to be verified.
We have a lot of glue around quic, which might be the bottleneck achieving the said gigabytes.
We don't need that glue for TCP.
Also, if anything, the batch writes might break the existing glue rather than make things better.
Yeah, the bare quic-go implementation is performant enough based on those reports. There's still the glue around it that Audrius mentioned plus real networks: I'd be surprised if UDP traffic works as well (more so on reliability than throughput) in the wild. Not because it couldn't, but because of old hard/software or policies/firewalls getting in the way. I'd be vary of changing the default, and maybe make it an opt-in config first. Plus the mentioned problem of flip-flop-management.
I think the safest option would be to treat QUIC and TCP as equal, but choose QUIC first. This would avoid the flip-flop problem with older nodes. If only new nodes are involved and a QUIC connection could be established, it stays that way. An older device could force TCP, but again this would not cause any problems because the newer nodes would see no reason to switch it to QUIC.
So instead of:
Relay < QUIC WAN < TCP WAN < TCP LAN
We would treat it this way:
Relay < QUIC WAN == TCP WAN < TCP LAN
I'm not that concerened about UDP problems to be honest. The adoption of HTTP/3 forces things to work at least on the provider level. If it's blocked in corporate networks or public wifis we can still fallback to TCP.
Reacted by Jakob Borg, Ovidijus Balkauskas and Sonny Bhatia
This is a bit of a long shot and depends on the performance of future quic-go releases but QUIC already tends to perform better on high latency connections:
Seems like quic-go v0.30.0 already comes with a bunch of performance improvements and batch writing is scheduled for v0.31.0.
Once quic-go is able to saturate a gigabit link, we should change the priority for WAN connections.
+1
As for LAN i don't see any benefits because packetloss and latency is not an issue here.
Just wondering... QUIC (aka UDP) on LAN would be easy on network equipment which might come handy if there's lots of traffic. Also, being UDP easily dropped in need, it would coexist better with TCP streaming and low latency applications.
Just my 2c.
enhancementNew features or improvements of some kind, as opposed to a problem (bug)frozen-due-to-ageIssues closed and untouched for a long time, together with being locked for discussion
Activity
calmh commentedon Oct 28, 2022
We might want to consider some sort of circuit breaker if implementing this, to prevent an eternal connection-upgrade fight between two differently configured devices.
bt90 commentedon Oct 28, 2022
At least to avoid issues with nodes running an older Syncthing version.
I wonder if we can already drop the QUIC->TCP upgrade logic.
AudriusButkevicius commentedon Oct 28, 2022
I also think the "gigabits" claim needs to be verified.
We have a lot of glue around quic, which might be the bottleneck achieving the said gigabytes.
We don't need that glue for TCP.
Also, if anything, the batch writes might break the existing glue rather than make things better.
bt90 commentedon Oct 28, 2022
There's also been some discussion on caddys issue tracker around the performance of quic-go: caddyserver/caddy#4876
As you're mentioning the glue code support: AudriusButkevicius/pfilter#7
calmh commentedon Nov 2, 2022
bt90 commentedon Jan 19, 2023
Looks like quic-go is fast enough for our purposes and is already aiming to be able to saturate 10Gbps links: quic-go/quic-go#3670
imsodin commentedon Jan 19, 2023
Yeah, the bare quic-go implementation is performant enough based on those reports. There's still the glue around it that Audrius mentioned plus real networks: I'd be surprised if UDP traffic works as well (more so on reliability than throughput) in the wild. Not because it couldn't, but because of old hard/software or policies/firewalls getting in the way. I'd be vary of changing the default, and maybe make it an opt-in config first. Plus the mentioned problem of flip-flop-management.
bt90 commentedon Jan 19, 2023
I think the safest option would be to treat QUIC and TCP as equal, but choose QUIC first. This would avoid the flip-flop problem with older nodes. If only new nodes are involved and a QUIC connection could be established, it stays that way. An older device could force TCP, but again this would not cause any problems because the newer nodes would see no reason to switch it to QUIC.
So instead of:
Relay < QUIC WAN < TCP WAN < TCP LAN
We would treat it this way:
Relay < QUIC WAN == TCP WAN < TCP LAN
I'm not that concerened about UDP problems to be honest. The adoption of HTTP/3 forces things to work at least on the provider level. If it's blocked in corporate networks or public wifis we can still fallback to TCP.
bt90 commentedon Jan 20, 2023
Blocked by #7403
daiaji commentedon Jan 22, 2023
QoS on older gateways is actually less of a concern, as HTTP3 advances they have to accommodate large amounts of UDP data.
lib/config, lib/connections: Configurable protocol priority (ref sync…
lib/config, lib/connections: Configurable protocol priority (ref sync…
lib/config, lib/connections: Configurable protocol priority (ref #8626)…
Merge branch 'main' into windowsfixtests
Merge branch 'main' into multiquic
Merge branch 'main' into newglobbing
pataquets commentedon Aug 12, 2023
+1
Just wondering... QUIC (aka UDP) on LAN would be easy on network equipment which might come handy if there's lots of traffic. Also, being UDP easily dropped in need, it would coexist better with TCP streaming and low latency applications.
Just my 2c.
calmh commentedon Aug 13, 2023
On further consideration I think this is resolved as you can now tell Syncthing to prefer QUIC, though it's not the default.
pataquets commentedon Aug 13, 2023
@calmh How do you tell ST to prefer QUIC? Is there any way to make it default (eg. a command line switch)?
I can file another issue, if required.
calmh commentedon Aug 16, 2023
@pataquets by setting the connection priority for QUIC to be lower than TCP. Advanced options. I should write a doc article one of these days.
The0013 commentedon Aug 17, 2023
THANK YOU VERY MUCH
nikow commentedon Aug 21, 2023
Looks like we just need to tweak those numbers. Thank you very much!