Hacker News new | ask | show | jobs
by AceJohnny2 1215 days ago
How else would the kernel know to which application it should route a response?
2 comments

Destination port number should be sufficient.

For example, imagine if there are two sockets established between server and client processes (due to multiple ips or roaming, time lags, etc.), then in theory, request received from one socket could be responded through another socket. From application pov it doesn't need to care about the socket. We can do this over TCP, but connection-oriented nature of TCP makes this weird.

Destinations can be described in the packet headers. That is how the current systems work.