2 ms·
> It may distinguish them (filter them for correctness) but port numbers must be unique across all legal tuples, right? No. TCP connections are distinct from
by wyldfire 10y ago
> It may distinguish them (filter them for correctness) but port numbers must be unique across all legal tuples, right?
No. TCP connections are distinct from one another only by the entire quadruple. There's no (or very nearly no) invalid combinations of ports and IPs.
- JoeAltmaier 10y agoYes. First, the tuple has 5 elements (including Protocol). True that a router can identify uniquely a connection by this tuple, that doesn't speak to dispatching on the client or server endpoint. Every server will listen on a port with a protocol. But then when a connection is made, it will migrate it to a unique local port. Some sharing is possible. Port 80 can be used for HTTP and UDP simultaneously for instance.