个性化阅读
专注于IT技术分析

计算机网络:远程登录

  • 互联网的主要任务是向用户提供服务。例如, 用户希望在远程站点上运行不同的应用程序, 并将结果传输到本地站点。这需要客户端服务器程序, 例如FTP, SMTP。但这不允许我们为每个需求创建特定的程序。
  • 更好的解决方案是提供一个通用的客户端-服务器程序, 该程序允许用户访问远程计算机上的任何应用程序。因此, 一个允许用户登录到远程计算机的程序。流行的客户端-服务器程序Telnet用于满足此类需求。 Telnet是终端网络的缩写。
  • Telnet提供了到远程计算机的连接, 使得本地终端似乎在远程侧。

有两种登录类型

    Local Login

    • 当用户登录到本地计算机时, 这称为本地登录。
    • 当工作站运行终端仿真器时, 终端驱动程序会接受用户输入的击键。然后, 终端驱动程序将这些字符传递给操作系统, 然后操作系统调用所需的应用程序。
    • 但是, 操作系统对特殊字符具有特殊含义。例如, 在UNIX中, 某些字符组合具有特殊含义, 例如带有“ z”的控制字符表示暂停。这样的情况不会造成任何问题, 因为终端驱动程序知道这些字符的含义。但是, 这可能会导致远程登录中出现问题。

    Remote login

    • 当用户想要访问远程计算机上的应用程序时, 则用户必须执行远程登录。

    How remote login occurs

    At the local site

    The user sends the keystrokes to the terminal driver, the characters are then sent to the TELNET client. The TELNET client which in turn, transforms the characters to a universal character set known as network virtual terminal characters and delivers them to the local TCP/IP stack

    At the remote site

    The commands in NVT forms are transmitted to the TCP/IP at the remote machine. Here, the characters are delivered to the operating system and then pass to the TELNET server. The TELNET server transforms the characters which can be understandable by a remote computer. However, the characters cannot be directly passed to the operating system as a remote operating system does not receive the characters from the TELNET server. Therefore it requires some piece of software that can accept the characters from the TELNET server. The operating system then passes these characters to the appropriate application program.

    Network Virtual Terminal (NVT)

    • 网络虚拟终端是定义如何通过网络发送数据和命令的接口。
    • 在当今世界, 系统是异构的。例如, 操作系统接受特殊的字符组合, 例如运行DOS操作系统ctrl + z的文件结束令牌, 而运行UNIX操作系统的令牌是ctrl + d。
    • TELNET通过定义称为网络虚拟接口的通用接口来解决此问题。
    • TELNET客户端将来自本地终端的字符转换为NVT形式, 然后将其传递到网络。然后, Telnet服务器将数据从NVT格式转换为远程计算机可以理解的格式。
    Next Topic SMTP


    ← prev next →


赞(0)
未经允许不得转载:srcmini » 计算机网络:远程登录

评论 抢沙发

评论前必须登录!