Re:One Million Concurrent TCP connections
by pacala on Friday September 23, 2011 @12:26AM
(#3028822)
There is one unique connection per (address, port) pair.
[ Parent
| on HN ]
Re:One Million Concurrent TCP connections
by huhtenberg on Friday September 23, 2011 @12:36AM
(#3028841)
Actually, the quintet of [protocol, src_ip, src_port, dst_ip, dst_port] is what's unique (protocol being TCP or UDP)
Re:One Million Concurrent TCP connections
by pacala on Friday September 23, 2011 @01:41AM
(#3028980)
Good point. Each unique client (address, port) can get a separate connection on a given/fixed server (address, port).
Re:One Million Concurrent TCP connections
by Rickasaurus on Friday September 23, 2011 @12:27AM
(#3028825)
Ahh I see, you just give one box a ton of IPs. Thanks :)
Re:One Million Concurrent TCP connections
by kornholi on Friday September 23, 2011 @12:34AM
(#3028839)
No, the pair uses the client IP which means the client can have as many connections to your server as number of ephemeral ports allowed. There is no limit on connections except ram AFAIK.
Re:One Million Concurrent TCP connections
by stonemetal on Friday September 23, 2011 @08:21AM
(#3029725)
Not sure why you got down voted, last time this topic came up the author was using EC2 instances for test clients, it took them 17 or so to get the number of connections to their server that they wanted. When the server IP, server port part of the 4 tuple is constant, it takes quite a few client IPs to turn 64K ports into a million.