News for hackers. Stuff that matters.
Re:AWS NLBs and the mixed up TCP connections by nielsole on Thursday October 22, 2020 @09:34AM (#24857800)
Collisions can already occur at two connections
Re:AWS NLBs and the mixed up TCP connections by beowulfe on Thursday October 22, 2020 @09:50AM (#24857966)
AFAIK, all the major tcp/ip stacks do round robin port assignment. Given relatively short, and relatively few, connections you should not have any collisions.
Re:AWS NLBs and the mixed up TCP connections by toast0 on Thursday October 22, 2020 @11:10AM (#24858850)
If your customers are behind CGNAT, and you have a good number of them, it would be pretty easy to run into collisions. CGNAT doesn't have any problem using the same source ip:port for connections to different destination ip:port, because there's no reason not to.

I agree though, that most OS stacks are very conservative about using the same source ip:port for connections to anything else. It works ok until you need to make lots of connections, then you have to manage ports in userspace.

Re:AWS NLBs and the mixed up TCP connections by jcrawfordor on Thursday October 22, 2020 @09:59PM (#24865320)
fwiw CGNAT is fairly uncommon in the United States except for cellphones. This creates one of those bad situations where you can have something that falls flat in the face of CGNAT but also "works fine" for all of your developer/employee traffic.
Re:AWS NLBs and the mixed up TCP connections by nielsole on Thursday October 22, 2020 @10:05AM (#24858144)
Imagine the client is actually two machines behind a NAT (corporate network or school) which each open 1 connection.

You can even reproduce this easily with two docker containers on the same host and curl using the "--local-port" option.