0 votes
in Computer Networks by (user.guest)
Suppose Client A initiates a Telnet session with Server S. At about the same time, Client B also initiates a Telnet session with Server S. Provide possible source and destination port numbers for:

a. The segments sent from A to S.

b. The segments sent from B to S.

c. The segments sent from S to A.

d. The segments sent from S to B.

e. If A and B are different hosts, is it possible that the source port number in the segments from A to S is the same as that from B to S?

f. How about if they are the same host?

1 Answer

0 votes
by (user.guest)
 
Best answer

The source port number and destination port number can be any number. The port numbers given here are only examples.

Some important point to be noted are:

• In the segments that are sent from A to S and B to S, the destination port numbers are to be same.

• In the segments that are sent from S to A and S to B, source port numbers are to be same.

a) The segments sent from A to S may have the source port number as 467 and destination port number as 23(Telnet).

• 23 is the port number of the Server S.

• 467 is the port number of the Client A.

b) The segments sent from B to S may have the source port number as 513 and destination port number as 23(Telnet). 23 is the port number of the Server S.

• 23 is the port number of the Server S.

• 513 is the port number of the Client B.

c) The segments sent from S to A may have the source port number as 23(Telnet) and destination port number as 467.

• 23 is the port number of the Server S.

• 467 is the port number of the Client A.

d) The segments sent from S to B may have the source port number as 23 and destination port number as 513.

• 23 is the port number of the Server S.

• 513 is the port number of the Client B.

e) Yes, it is possible that the source port number in the segments from A to S is the same as that from B to S even when A and B are different hosts. This is because IP addresses are also included in the segments to recognise the correct host.

f) No, the source ports would need to be different. It is not possible that the source port number in the segments from A to S is the same as that from B to S when they are the same hosts. The server to distinguish the hosts uses IP addresses.


If you found this answer helpful, please upvote and share with other students in your network.

Related questions

Welcome to CPEN Talk
Solution-oriented students of computer engineering on one platform to get you that

ONE SOLUTION

Chuck Norris doesn't bug hunt as that signifies a probability of failure, he goes bug killing.
...