99.3k views
1 vote
Suppose two clients (client a and client b) want to establish a telnet connection with a server s at the same time. provide possible source and destination port numbers for:___.

1) the segments sent from a to s
2) the segments sent from b to s
3) the segments sent from s to a
4) the segments sent from s to b

User Sean Smyth
by
7.5k points

1 Answer

2 votes

Final answer:

Telnet typically uses TCP port 23 on the server side, while clients use dynamically assigned unique ports. Client A and B will each have unique source ports, such as 1025 and 1026 respectively, all communicating with the server's port 23.

Step-by-step explanation:

In order to understand the port numbers used in a telnet connection between two clients and a server, it's essential to be aware that telnet typically uses TCP port 23 on the server side for connections. Each client will use a unique TCP port on their end which is usually assigned dynamically by the client's operating system.

  • The segments sent from Client A to Server S could have a source port of 1025 and a destination port of 23.
  • The segments sent from Client B to Server S might have a source port of 1026 and a destination port of 23.
  • When Server S is sending segments back to Client A, the source port will be 23, and the destination port will be 1025.
  • Similarly, segments sent from Server S to Client B will have a source port of 23 and a destination port of 1026.

Note that the actual source ports chosen for Clients A and B may vary because they are assigned dynamically and must be unique to each client's machine to avoid any conflict.

User Marcel Hansemann
by
7.8k points