4 ms·
It may distinguish them (filter them for correctness) but port numbers must be unique across all legal tuples, right? So its still a 16-bit space. And the cost
by JoeAltmaier 10y ago
It may distinguish them (filter them for correctness) but port numbers must be unique across all legal tuples, right? So its still a 16-bit space. And the cost of adding 112 bits to each message is perhaps overstated in this modern world. Messages often dwarf that. Though agreed it would help to use a new protocol - once you have a uuid in the message header, you can design a protocol that omits all the other constant fields (ip etc) because the uuid can be associated at every stage with all that.
- 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.