Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / The following questions is related to TELNET

The following questions is related to TELNET

Computer Science

The following questions is related to TELNET. A user types cp file1 file2. What is the minimum number of TCP segments exchanged if the transfer uses the following mode. Explain your answer.

i. default mode
ii. character mode
iii. line mode.

pur-new-sol

Purchase A New Answer

Custom new solution created by our subject matter experts

GET A QUOTE

Answer Preview

ii. character mode:

"In character-at-a-time mode, most text typed is immediately sent to the remote host for processing." This means the number of TCP segments is equal to the number of characters in the command. The command "cp file1 file2" has 15 characters (including white space and carriage return). So the number of TCP segments for character mode is 15.

iii. line mode

" In old line-by-line mode, all text is echoed locally, and (in most cases) only completed lines are sent to the remote host." This means the number of TCP segments is equal to the number of lines of commands. In our case, we just issued one command, so the number of TCP segments is 1.

i. default mode

" If telnet is issued with arguments, it performs an open subcommand with
those arguments, then enters input mode. Once a connection is opened, tel-
net attempts to enable the TELNET LINEMODE option. If this fails, telnet
reverts to one of two input modes: either character-at-a-time or old line-
by-line mode, depending on what the remote system supports."

This means the default mode is LINEMODE. So the number of TCP segments is 1 in default mode.