1.9k views
3 votes
Consider the Telnet example consisting of Host A(client) and Host B(server). Suppose Host A initiates a Telnet session with Host B. Each character typed by the Host A will be sent to the Host B; the Host B will send back a copy of each character, which will be displayed on the Telnet Host A screen. Suppose Host A types the Letter ' L ' and the starting sequence numbers are 53 and 64 for the client and server respectively. After letter 'L' client types letter 'J. How many segments are sent between client and server. Draw a diagram to showcase Sequence and acknowledgment numbers for a simple Telnet application over TCP

User Rayrutjes
by
7.2k points

1 Answer

3 votes

Final answer:

In a Telnet session between Host A and Host B, segments are sent when characters are typed. For the given scenario, a segment is sent for the letter 'L' and another segment is sent for the letter 'J', resulting in a total of 2 segments. The sequence and acknowledgment numbers for the Telnet application are shown in the diagram.

Step-by-step explanation:

Telnet Session between Host A and Host B:

In a Telnet session between Host A (client) and Host B (server), each character typed by Host A will be sent to Host B. Host B will then send back a copy of each character, which will be displayed on the Telnet screen of Host A. Let's consider the scenario where Host A types the letter 'L' and then the letter 'J'.

The starting sequence numbers are 53 for the client and 64 for the server. When Host A types the letter 'L', a segment is sent from the client to the server with the letter 'L' and the sequence number 53. Now, Host B will send back an acknowledgment with the sequence number 54.

Next, when Host A types the letter 'J', another segment is sent from the client to the server with the letter 'J' and the sequence number 55. Host B will respond with an acknowledgment with the sequence number 56.

In total, 2 segments are sent between the client and server during this Telnet session.

Sequence and Acknowledgment Numbers:

Here is a diagram showcasing the sequence and acknowledgment numbers for the Telnet application:

+------------------------+-------------------------------+
| FROM A TO B | FROM B TO A |
+------------------------+-------------------------------+
| Sequence: 53 | Acknowledgment: 54 |
| Data: L | |
+------------------------+-------------------------------+
| Sequence: 55 | Acknowledgment: 56 |
| Data: J | |
+------------------------+-------------------------------+

User Maykeye
by
7.8k points