home *** CD-ROM | disk | FTP | other *** search
/ Unix System Administration Handbook 1997 October / usah_oct97.iso / rfc / 900s / rfc946.txt < prev    next >
Text File  |  1992-09-22  |  6KB  |  229 lines

  1.  
  2.  
  3. Network Working Group                                          R. Nedved
  4. Request for Comments: 946                     Carnegie-Mellon University
  5.                                                                 May 1985
  6.  
  7.                  TELNET TERMINAL LOCATION NUMBER OPTION
  8.  
  9.  
  10. Status of this Memo
  11.  
  12.    This RFC proposes a new option for Telnet for the ARPA-Internet
  13.    community, and requests discussion and suggestions for improvements.
  14.    Distribution of this memo is unlimited.
  15.  
  16. Overview
  17.  
  18.    In a community of users that share a large degree of common
  19.    facilities, it is often advantageous to use some common feature to
  20.    improve software performance and reduce initial implementation costs.
  21.  
  22.    In March of 1982, CMU designed and implemented based on the growing
  23.    CMU PUP-based network a terminal location database and modified
  24.    existing network software to handle a 64-bit number which some call
  25.    the Terminal Location Number or TTYLOC for short.  The number can be
  26.    efficiently stored in operating systems tables and can be passed
  27.    between various levels of operating system and network layering with
  28.    minimum modifications to existing software.  An initial evaluation of
  29.    changing software to communicate an unfixed or reasonable length
  30.    terminal location string indicated it would be expensive.
  31.  
  32.    CMU now wishes to extend this mechanism into the TCP-based networking
  33.    support that is replacing the existing PUP-based software.  The
  34.    mechanism is not viewed as a replacement for the Telnet Terminal
  35.    Location (SEND-LOCATION) Option but as a shorthand mechansim for
  36.    communicating hosts in the same community.
  37.  
  38. TTYLOC Number
  39.  
  40.    The TTYLOC number is a 64-bit number composed of two (2) 32-bit
  41.    numbers: The 32-bit official ARPA Internet host address (may be any
  42.    one of the addresses for multi-homed hosts) and a 32-bit number
  43.    representing the terminal on the specified host.  The host address of
  44.    [0.0.0.0] is defined to be "unknown", the terminal number of FFFFFFFF
  45.    (hex, r or-1 in decimal) is defined to be "unknown" and the terminal
  46.    number of FFFFFFFE (hex, or -2 in decimal) is defined to be
  47.    "detached" for processes that are not attached to a terminal.
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56. Nedved                                                          [Page 1]
  57.  
  58.  
  59.  
  60. RFC 946                                                         May 1985
  61. Telnet Terminal Location Number Option
  62.  
  63.  
  64. 1. Command Name and Option Code
  65.  
  66.    TTYLOC  28
  67.  
  68. 2. Command Meanings
  69.  
  70.    IAC WILL TTYLOC
  71.  
  72.       The sender offers to send the TTYLOC information or confirms that
  73.       it can send the TTYLOC information.
  74.  
  75.    IAC WON'T TTYLOC
  76.  
  77.       The sender refuses to send the TTYLOC information.
  78.  
  79.    IAC DO TTYLOC
  80.  
  81.       The sender requests to receive the TTYLOC information or confirms
  82.       that it will receive the TTYLOC information.
  83.  
  84.    IAC DON'T TTYLOC
  85.  
  86.       The sender refuses to receive the TTYLOC information.
  87.  
  88.    IAC SB TTYLOC <format> <TTYLOC number with IAC doubling> IAC SE
  89.  
  90.       The sender is transmitting the TTYLOC information. The 64-bit
  91.       TTYLOC number has format 0. The first 32-bits is the Internet host
  92.       number and the second 32-bits is the line on the specified
  93.       Internet host. The bytes are in most significant 8-bit byte to
  94.       least significant byte order.
  95.  
  96. 3. Default Specification
  97.  
  98.    WON'T TTYLOC
  99.  
  100.       TTYLOC information will not be sent.
  101.  
  102.    DON'T TTYLOC
  103.  
  104.       TTYLOC information will not be received.
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113. Nedved                                                          [Page 2]
  114.  
  115.  
  116.  
  117. RFC 946                                                         May 1985
  118. Telnet Terminal Location Number Option
  119.  
  120.  
  121. 4. Motivation
  122.  
  123.    Many systems provide a mechanism for finding out where a user is
  124.    logged in from usually including information about telephone
  125.    extension and office occupants names. The information is useful for
  126.    physically locating people and/or calling them on the phone.
  127.  
  128.    For incoming network connections to a host, only the remote host's
  129.    name is available. This option and the Telnet Terminal Location
  130.    option (RFC-779) provide the information to the system so it in turn
  131.    can provide the information to the various mechanisms (FINGER, WHOIS,
  132.    etc.).
  133.  
  134. 5. Description of the Option
  135.  
  136.    When the user Telnet connects to a remote host, it can attempt to
  137.    send the terminal location number information by doing a
  138.    IAC WILL TTYLOC command. If the Telnet server can use the
  139.    information, it replies with a IAC DO TTYLOC command. The user Telnet
  140.    then sends the TTYLOC number in the subnegotiation.
  141.  
  142.    It is recommended that if sending the TTYLOC number is refused then
  143.    the Telnet Terminal Location (SEND-LOCATION in RFC-779) should be
  144.    attempted.
  145.  
  146.    The following are two example usage scenarios:
  147.  
  148.       User Side First:
  149.  
  150.          (User) Host1: IAC WILL TTYLOC
  151.  
  152.             Host1 is asking if it can send the 64-bit terminal location
  153.             number (I will send...).
  154.  
  155.          (Server) Host2: IAC DO TTYLOC
  156.  
  157.             Host2 indicates to Host1 that it will accept the 64-bit
  158.             terminal location number in a subnegotiation (You please do
  159.             ...).
  160.  
  161.          (User) Host1: IAC SB TTYLOC 0 <64-bit number> IAC SE
  162.  
  163.             Host1 is sending the location number to Host2 which can
  164.             communicate the number to the operating system or other
  165.             system components.
  166.  
  167.  
  168.  
  169.  
  170. Nedved                                                          [Page 3]
  171.  
  172.  
  173.  
  174. RFC 946                                                         May 1985
  175. Telnet Terminal Location Number Option
  176.  
  177.  
  178.       Server Side First:
  179.  
  180.          (Server) HostA: IAC DO TTYLOC
  181.  
  182.             HostA indicates to HostB that it would like to know the
  183.             64-bit terminal location number (You please do ...).
  184.  
  185.          (User) HostB: IAC WILL TTYLOC
  186.  
  187.             HostB agrees to send the 64-bit terminal location number to
  188.             HostA in a subnegotiation (I will send...).
  189.  
  190.          (User) HostB: IAC SB TTYLOC 0 <64-bit number> IAC SE
  191.  
  192.             HostB is sending the location number to HostA which can
  193.             communicate the number to the operating system or other
  194.             system components.
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.  
  227. Nedved                                                          [Page 4]
  228.  
  229.