6 ms·
No. TCP connections are identified by a four-tuple of (sender's IP, sender's TCP port, receiver's IP, receiver's port). Thus you are only limited by 65536 conne
by koenigdavidmj 16y ago
No. TCP connections are identified by a four-tuple of (sender's IP, sender's TCP port, receiver's IP, receiver's port). Thus you are only limited by 65536 connections between a particular server and a particular client.
- dfox 16y agoIn fact you are limited to 2^32 (=65536^2) connections between two hosts, as you can vary both ports. But that is only theory. In practice you will run out of some other system resource (kernel memory, file descriptors, slots in connection table...) before reaching this limit.
- koenigdavidmj 16y agoYes, I meant connections to one particular service. In that case both IP fields and the server port are fixed, so the only varying parameter is the client port number.
- unwind 16y agoAnd that was, I feel kind of redundant in pointing out, exactly what I meant too.
- ay 16y agoFor the most scenarios the maximum number of connections between the same client and server will be smaller, because an unbound client socket would reside in the ephemeral port range: http://en.wikipedia.org/wiki/Ephemeral_port http://en.wikipedia.org/wiki/Ephemeral_port