How long does the Telnet server wait until it closes the TCP connection?

What will be an ideal response?

About 60 seconds.
```
No. Time Source Destination Protocol Info
20 23.602188 10.0.5.11 10.0.5.22 TCP 3113 >

telnet [SYN] Seq=836600528 Ack=0 Win=5840 Len=0

21 23.602515 10.0.5.22 10.0.5.11 TCP telnet >
3113 [SYN, ACK] Seq=805361808 Ack=836600529 Win=5792 Len=0
22 23.602571 10.0.5.11 10.0.5.22 TCP 3113 >
telnet [ACK] Seq=836600529 Ack=805361809 Win=5840 Len=0

23 23.611580 10.0.5.22 10.0.5.11 TELNET Telnet Data

...

24 23.611654 10.0.5.11 10.0.5.22 TCP 3113 >
telnet [ACK] Seq=836600529 Ack=805361821 Win=5840 Len=0

25 23.614013 10.0.5.11 10.0.5.22 TELNET Telnet Data

...

26 23.614387 10.0.5.22 10.0.5.11 TCP telnet >

3113 [ACK] Seq=805361821 Ack=836600562 Win=5792 Len=0

27 23.614571 10.0.5.22 10.0.5.11 TELNET Telnet Data

...

28 23.620558 10.0.5.11 10.0.5.22 TELNET Telnet Data

...

29 23.628388 10.0.5.22 10.0.5.11 TELNET Telnet Data

...

30 23.646953 10.0.5.11 10.0.5.22 TELNET Telnet Data

...

31 23.647722 10.0.5.22 10.0.5.11 TELNET Telnet Data

...

32 23.648060 10.0.5.11 10.0.5.22 TELNET Telnet Data
33 23.648301 10.0.5.22 10.0.5.11 TELNET Telnet Data

...

34 23.684650 10.0.5.11 10.0.5.22 TCP 3113 >
telnet [ACK] Seq=836600640 Ack=805361941 Win=5840 Len=0

35 83.621974 10.0.5.22 10.0.5.11 TCP telnet >
3113 [FIN, ACK] Seq=805361941 Ack=836600640 Win=5792 Len=0
36 83.622473 10.0.5.11 10.0.5.22 TCP 3113 >
telnet [FIN, ACK] Seq=836600640 Ack=805361942 Win=5840 Len=0
37 83.622743 10.0.5.22 10.0.5.11 TCP telnet >

3113 [ACK] Seq=805361942 Ack=836600641 Win=5792 Len=0
```
The closing of connection was now initiated by the server. When the server timed out the connection, it would actively tear down the connection. The packets that involved in closing the TCP connection is frame 35, 36 and 37. We can see that FIN and ACK flags were present in these packets. When the first packet with FIN came back from the server, the client knew the server wished to close the connection, it responded by sending back a FIN packet and ACKed the server sequence. When server received the FIN and ACK from client, it sent back a final ACK and closed the connection (it actually waited a while before eventually closing the connection).

Computer Science & Information Technology

You might also like to view...

Speaker notes are always projected for the audience together with your presentation.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

When the Check In/Check Out feature is enabled in Dreamweaver, you cannot make edits to a file that has been checked in, unless you check it out again.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology