News for hackers. Stuff that matters.
Re:QUIC for the Kernel by WASDx on Thursday July 31, 2025 @12:49PM (#44747484)
I recall this article on QUIC disadvantages: https://www.reddit.com/r/programming/comments/1g7vv66/quic_i...

Seems like this is a step in the right direction to resole some of those issues. I suppose nothing is preventing it from getting hardware support in future network cards as well.

Re:QUIC for the Kernel by miohtama on Thursday July 31, 2025 @01:38PM (#44748059)
QUIC does not work very well for use cases like machine-to-machine traffic. However most of traffic in Internet today is from mobile phones to servers and it is were QUIC and HTTP 3 shine.

For other use cases we can keep using TCP.

Re:QUIC for the Kernel by thickice on Thursday July 31, 2025 @01:56PM (#44748260)
Why doesn't QUIC work well for machine-to-machine traffic ? Is it due to the lack of offloads/optimizations for TCP and machine-to-machine traffic tend to me high volume/high rate ?
Re:QUIC for the Kernel by yello_downunder on Thursday July 31, 2025 @02:07PM (#44748370)
QUIC would work okay, but not really have many advantages for machine-to-machine traffic. Machine-to-machine you tend to have long-lived connections over a pretty good network. In this situation TCP already works well and is currently handled better in the kernel. Eventually QUIC will probably be just as good for TCP in this use case, but we're not there yet.
Re:QUIC for the Kernel by jabart on Thursday July 31, 2025 @02:25PM (#44748566)
You still have latency, legacy window sizes, and packet schedulers to deal with.
Re:QUIC for the Kernel by spwa4 on Thursday July 31, 2025 @04:47PM (#44749940)
But that is the huge advantage of QUIC. It does NOT totally outcompete TCP traffic on links (we already have bittorrent over udp for that purpose). They redesigned the protocol 5 times or so to achieve that.
Re:QUIC for the Kernel by extropy on Thursday July 31, 2025 @02:40PM (#44748726)
The NAT firewalls do not like P2P UDP traffic. Majoritoy of the routers lack the smarts to passtrough QUIC correctly, they need to treat it the same as TCP essentially.
Re:QUIC for the Kernel by beeflet on Thursday July 31, 2025 @02:42PM (#44748748)
NAT is the devil. bring on the IPoc4lypse
Re:QUIC for the Kernel by hdgvhicv on Thursday July 31, 2025 @03:19PM (#44749114)
Nat is massively useful for all sorts of reasons which has nothing to do with ip limitations.
Re:QUIC for the Kernel by unethical_ban on Thursday July 31, 2025 @03:29PM (#44749199)
Rather, NAT is a bandage for all sorts of reasons besides IP exhaustion.

Example: Janky way to get return routing for traffic when you don't control enterprise routes.

Source: FW engineer

Re:QUIC for the Kernel by hdgvhicv on Friday August 01, 2025 @02:57AM (#44753767)
Sure. When I can bgp advertise my laptop with my phone provider and have it update is a second or so globally when I move from tethering to wifi, or one network to another.

No doubt you think I should simply renumber all my VMs every time that happens, breaking internal connections. Or perhaps run a completely separate addrsssing in each vm in parallel and make sure each vm knows which connection to use. Perhaps the vms peer with my laptop and then the laptop decides what to push out which way via localprefs, as paths etc. that sounds so much simpler than a simple masquerade.

What happens when I want vm1 out of connection A, vm 3 out of connection B, vm 4-7 out of connection C. Then I want to change them quickly and easily. I’m balancing outbound and inbound rules, reaching for communities, and causing bgp dampening all over the place.

What when they aren’t VMs but instead physical devices. My $40 mifi is now processing the entire DFZ routing table?

What happens when I want a single physical device like a tv to contact one service via connection 1 and another via connection 2 but the device doesn’t support multiple routing tables or selection of that. What if it does support it but I just want to be able to shift my ssh sessions to a low latency higher loss link but keep my streaming ups on the high latency no loss link.

All this is trivial with nat. Now sure I can use NAT66, and do a 1:1 natting (no PAT here), but then I’m using nat and that breaks the ipv6 cult that believes translating network addresses is useless.

Re:QUIC for the Kernel by unethical_ban on Friday August 01, 2025 @10:36AM (#44757412)
Fair, there are reasons to keep it around, like load-balancing and connection persistence.
Re:QUIC for the Kernel by beeflet on Thursday July 31, 2025 @05:19PM (#44750313)
sounds great but it fucks up P2P in residential connections, where it is mostly used due to ipv4 address conservation. You can still have nat in IPv6 but hopefully I won't have to deal with it
Re:QUIC for the Kernel by mightyham on Thursday July 31, 2025 @07:55PM (#44751560)
In practice, P2P over ipv6 is totally screwed because there are no widely supported protocols for dynamic firewall pinholing (allowing inbound traffic) on home routers, whereas dynamic ipv4 NAT configuration via UPnP is very popular and used by many applications.
Re:QUIC for the Kernel by beeflet on Thursday July 31, 2025 @08:34PM (#44751794)
just don't use a firewall
Re:QUIC for the Kernel by johncolanduoni on Thursday July 31, 2025 @08:49PM (#44751872)
Most home routers do a form of stateful IPv6 firewall (and IPv4 NAT for that matter) compatible with STUN. UPnP is almost never necessary and has frequent security flaws in common implementations.
Re:QUIC for the Kernel by immibis on Friday August 01, 2025 @04:55AM (#44754428)
You just send a (UDP) packet to the other side's address and port and they send one to yours. The firewalls treat it as an outbound connection on both sides.
Re:QUIC for the Kernel by mightyham on Friday August 01, 2025 @11:56AM (#44758659)
I don't believe that's true. You would still need something like UDP hole punching to bootstrap the inbound flow on both sides first. Also you would still only be limited to UDP traffic, TCP would still be blocked.
Re:QUIC for the Kernel by immibis on Friday August 01, 2025 @12:07PM (#44758810)
Sending one packet outbound is hole punching. It's really that simple. Since there's no NAT, you don't need to bother with all the complexity of trying to predict the port number on the public side of the NAT. You just have two sides send at least one packet to each other, and that opens the firewalls on both sides.
Re:QUIC for the Kernel by GoblinSlayer on Friday August 01, 2025 @12:38PM (#44759193)
You just need to tell the other side that you want to connect.
Re:QUIC for the Kernel by paulddraper on Thursday July 31, 2025 @05:42PM (#44750526)
The NAT RPC talks purely about IP exhaustion.

What do you have in mind.

Re:QUIC for the Kernel by skissane on Thursday July 31, 2025 @07:16PM (#44751292)
Why run your K8S cluster on IPv6 when IPv4 with 10.0.0.0/8 works perfectly with less hassle? You can always support IPv6 at the perimeter for ingress/egress. If your cluster is so big it can’t fit in 10.0.0.0/8, maybe the right answer is multiple smaller clusters-your service mesh (e.g. istio) can route inter-cluster traffic just based on names, not IPs.

And if 10.0.0.0/8 is not enough, there is always the old Class E, 240.0.0.0/4 - likely never going to be acceptable for use on the public Internet, but growing use as an additional private IPv4 address range - that gives you over 200 million more IPv4 addresses

Re:QUIC for the Kernel by lmm on Friday August 01, 2025 @12:59AM (#44753144)
> Why run your K8S cluster on IPv6 when IPv4 with 10.0.0.0/8 works perfectly with less hassle? You can always support IPv6 at the perimeter for ingress/egress.

How is it "less hassle"? You've got to use a second, fiddlier protocol and you've got to worry about collisions and translations. Why not just use normal IPv6 and normal addresses for your whole network, how is that more hassle?

> You can always support IPv6 at the perimeter for ingress/egress. If your cluster is so big it can’t fit in 10.0.0.0/8, maybe the right answer is multiple smaller clusters-your service mesh (e.g. istio) can route inter-cluster traffic just based on names, not IPs.

You can work around the problems, sure. But why not just avoid them in the first place?

Re:QUIC for the Kernel by skissane on Friday August 01, 2025 @02:29AM (#44753592)
> How is it "less hassle"? You've got to use a second, fiddlier protocol and you've got to worry about collisions and translations.

Because, while less common than it used to be, software that has weird bugs with IPv6 is still a thing-especially if we are talking about internally developed software as opposed to just open source and major proprietary packages. And as long as IPv6 remains the minority in data centre environments, that’s likely to remain true - it is easy for bugs to linger (or even new ones to be introduced) when they are only triggered by a less popular configuration

Re:QUIC for the Kernel by lmm on Friday August 01, 2025 @02:53AM (#44753737)
True, but already the newest software has good IPv6 support, and that suggests a tipping point should be coming where as soon as the majority is on IPv6 it becomes in everyone's interest to get off of IPv4.
Re:QUIC for the Kernel by paulddraper on Friday August 01, 2025 @02:58PM (#44760925)
Are you responding to the right comment?

My point was that NAT is for IPv4 address exhaustion.

There’s no point to using NAT for IPv6.

If your software doesn’t work with IPv6, and you need IPv4…that is subject to IP address exhaustion. So yeah you need NAT for IPv4.

Re:QUIC for the Kernel by Iwan-Zotow on Thursday July 31, 2025 @09:21PM (#44752079)
Kubes
Re:QUIC for the Kernel by mort96 on Friday August 01, 2025 @04:09AM (#44754172)
NAT isn't dead with IPv6. ISPs assigning a /128 to your residential network is a thing.
Re:QUIC for the Kernel by immibis on Friday August 01, 2025 @04:54AM (#44754421)
No it isn't unless they want to ban you from using iPhones.
Re:QUIC for the Kernel by mort96 on Friday August 01, 2025 @07:06AM (#44755247)
What do you mean? If the v6 configuration is incompatible with iPhones, the iPhone will just use v4
Re:QUIC for the Kernel by johncolanduoni on Thursday July 31, 2025 @08:47PM (#44751863)
QUIC isn’t generally P2P though. Browsers don’t support NAT traversal for it.
Re:QUIC for the Kernel by dan-robertson on Thursday July 31, 2025 @03:11PM (#44749034)
I think basically there is currently a lot of overhead and, when you control the network more and everything is more reliable, you can make tcp work better.
Re:QUIC for the Kernel by exabrial on Thursday July 31, 2025 @03:40PM (#44749307)
For starters, why encrypt something literally in the same datacenter 6 feet away? Add significant latency and processing overhead.
Re:QUIC for the Kernel by switchbak on Thursday July 31, 2025 @04:00PM (#44749494)
Service meshes often encrypt traffic that may be running on the same physical host. Your security policy may simply require this.
Re:QUIC for the Kernel by 20k on Thursday July 31, 2025 @03:49PM (#44749386)
Because the NSA actively intercepts that traffic. There's a reason why encryption is non optional
Re:QUIC for the Kernel by Karrot_Kream on Thursday July 31, 2025 @04:03PM (#44749528)
To me this seems outlandish (e.g. if you're part of PRISM you know what's happening and you're forced to comply.) But to think through this threat model, you're worried that the NSA will tap intra-DC traffic but not that it will try to install software or hardware on your hosts to spy traffic at the NIC level? I guess it would be harder to intercept and untangle traffic at the NIC level than intra-DC, but I'm not sure?
Re:QUIC for the Kernel by viraptor on Thursday July 31, 2025 @04:27PM (#44749756)
> you're worried that the NSA will tap intra-DC traffic but not that it will try to install software or hardware on your hosts

It doesn't have to be one or the other. We've known for over a decade that the traffic between DCs was tapped https://www.theguardian.com/technology/2013/oct/30/google-re... Extending that to intra-DC wouldn't be surprising at all.

Meanwhile backdoored chips and firmware attacks are a constant worry and shouldn't be discounted regardless of the first point.

Re:QUIC for the Kernel by adgjlsfhk1 on Thursday July 31, 2025 @05:17PM (#44750289)
The difference between tapping intra-DC and in computer spying is that in computer spying is much more likely to get caught and much less easily able to get data out. There's a pretty big difference between software/hardware weaknesses that require specific targeting to exploit and passive scooping everything up and scanning
Re:QUIC for the Kernel by heavyset_go on Thursday July 31, 2025 @11:54PM (#44752876)
> (e.g. if you're part of PRISM you know what's happening and you're forced to comply.)

Only a handful of people need to know what happens in Room 641A, and they're compelled or otherwise incentivized not to let anyone else know.

Re:QUIC for the Kernel by codedokode on Friday August 01, 2025 @01:40AM (#44753341)
> you're worried that the NSA will tap intra-DC traffic but not that it will try to install software or hardware on your hosts to spy traffic at the NIC level

It might not be able to, if you use secure boot and your server is locked in a cage.

Re:QUIC for the Kernel by exabrial on Thursday July 31, 2025 @04:34PM (#44749812)
Imaginary problems are the funnest to solve.
Re:QUIC for the Kernel by 20k on Thursday July 31, 2025 @10:47PM (#44752558)
Its a stone cold fact that the NSA does this, it was part of the snowden revelations. Don't spread FUD about security, its important
Re:QUIC for the Kernel by cherryteastain on Thursday July 31, 2025 @04:47PM (#44749941)
If you are concerned about this, how do you think you could protect against AWS etc allowing NSA to snoop on you from the hypervisor level?
Re:QUIC for the Kernel by heavyset_go on Thursday July 31, 2025 @11:58PM (#44752898)
Assuming the PSP isn't backdoored, using AMD SME and SEV theoretically allow you to run VMs that are encrypted such that, even at the hypervisor level, you can't read code or data from the VM.
Re:QUIC for the Kernel by codedokode on Friday August 01, 2025 @01:42AM (#44753347)
You cannot assume that. The solution is to have a server on your territory and use the datacenter only to forward the packets.
Re:QUIC for the Kernel by lll-o-lll on Thursday July 31, 2025 @05:13PM (#44750231)
To stop or slow down the attacker who is inside your network and trying to move horizontally? Isn’t this the principle of defense in depth?
Re:QUIC for the Kernel by sleepydog on Thursday July 31, 2025 @05:51PM (#44750592)
Encryption gets you data integrity "for free". If a bit is flipped by faulty hardware, the packet won't decrypt. TCP checksums are not good enough for catching corruption in many cases.
Re:QUIC for the Kernel by lll-o-lll on Friday August 01, 2025 @03:52AM (#44754079)
Interesting. When I read this I was thinking “that can’t be right, the whole internet relies on tcp being “reliable”. But it is right; https://dl.acm.org/doi/10.1145/347059.347561. It might be rare, but an unencrypted RPC packet might accidentally set that “go nuclear” bit. ECC memory is not enough people! Encrypt your traffic for data integrity!
Re:QUIC for the Kernel by mschuster91 on Thursday July 31, 2025 @06:03PM (#44750691)
Because any random machine in the same datacenter and network segment might be compromised and do stuff like running ARP spoofing attacks. Cisco alone has had so many vendor-provided backdoors cropping up that I wouldn't trust anything in a data center with Cisco gear.
Re:QUIC for the Kernel by subscribed on Friday August 01, 2025 @08:16AM (#44755676)
Ummm, no, The network is completely isolated. No one enters the cage and just plugs something into my switches/routers.

Any communication between the cage and the outside world is through the cross-connects.

Unless it's some state-adversary, no one taps us like this. This is not a shared hosting. No one runs serious workloads like this.

"Unserious"? Sure, everything is encrypted p2p.

Re:QUIC for the Kernel by mschuster91 on Saturday August 02, 2025 @05:48PM (#44771883)
> No one enters the cage and just plugs something into my switches/routers.

I'm not talking about someone plugging something in. I'm talking about someone pwning your VPN endpoint or firewall, and laterally moving from there. There's always a way to move around unless you are really, really careful (and even that is not enough if the adversary has an exploit for something really deep in the network stack).

At the very least, choose different vendors for your VPN/frontend firewall gear and the rest of your system. That way, an adversary can't just go and pwn every little piece of your network infrastructure with a single exploit.

Re:QUIC for the Kernel by subscribed on Sunday August 03, 2025 @06:44PM (#44780478)
This is a very fair point, admittedly, considering multiple vulnerabilities in Juniper and Cisco devices.

I concede my point, thanks for that

Re:QUIC for the Kernel by qingcharles on Saturday August 09, 2025 @11:56PM (#44852651)
Back in the 90s I discovered the CTO of a major telecoms company was packet sniffing EFnet traffic in one of their datacenters in order to log all the PRIVMSGs to extort a couple of people. Security is only as good as its weakest leak, and all that.
Re:QUIC for the Kernel by m00x on Thursday July 31, 2025 @02:32PM (#44748659)
It's explained in the reddit thread. Most of it is because you have to handle a ton of what TCP does in userland.
Re:QUIC for the Kernel by kldx on Friday August 01, 2025 @03:07AM (#44753828)
Let me try providing a different perspective based on experience. QUIC works amazingly well for _some_ kinds of machine to machine traffic.

ssh3, based on QUIC is quicker at dropping into a shell compared to ssh. The latency difference was clearly visible.

QUIC with the unreliable dgram extension is also a great way to implement port forwarding over ssh. Tunneling one reliable transport over another hides the packer losses in the upper layer.

Re:QUIC for the Kernel by exDM69 on Friday August 01, 2025 @09:18AM (#44756378)
The article that GP posted was specifically about throughput over a high speed connection inside a data center.

It was not about latency.

In my opinion, the lessons that one can draw from this article should not be applied for use cases that are not about maximum throughput inside a data center.

Re:QUIC for the Kernel by mort96 on Friday August 01, 2025 @04:09AM (#44754167)
I don't understand what you mean by "machine-to-machine" if a phone (a machine) talking to a server (a machine) is not machine-to-machine.
Re:QUIC for the Kernel by szszrk on Friday August 01, 2025 @04:34AM (#44754311)
I hope you don't think that user-to-machine means that I have to stick my finger in a network switch? :)

Machine-to-machine is usually meant as traffic where neither of the sides is the client device (desktop, mobile etc). Often not initiated by user, but that's debatable.

I would say an server making a sync of database to passive node is machine-to-machine, while a user connection from his browser to webserver is not.