It is a question from Networking stanford course.
A server typically listens for TCP connections on a particular port (e.g. 80 for HTTP or 22 for SSH). Which fields can the server use to distinguish packets for a particular client connection?
It is a multiple choice.The given options are
- Sequence Number
- Acknowledgement Number
- Source Port
- Destination Port
- Source IP
- Destination IP
- Checksum
The answers are 3, 4, 5, 6.
Some people pointed me to this answer Why is a TCP Socket identified by a 4 tuple?
From my understanding the answer in that question describes how we distinguish different client connections.but here we are asked to
distinguish packets for a particular client connection
My doubt is, if all we want to do is distinguish packets for a particular client connection, why do we need to know the destination IP? and why can't we use the sequence number to distinguish them since every packet has a different sequence number?