请输入您要查询的百科知识:

 

词条 Echo (computing)
释义

  1. Terminological confusion: echo is not duplex

  2. The devices that echo locally

  3. Controlling local echo

      Terminal emulators    Modems    Host systems  

  4. Footnotes

  5. References

      What supports what    Sources used  
{{for|the computer command-line interpreter command named echo|echo (command)}}

In telecommunications, echo is the local display of data, either initially as it is locally sourced and sent, or finally as a copy of it is received back from a remote destination. Local echo is where the local sending equipment displays the outgoing sent data. Remote echo is where the display is a return copy of data as received remotely.{{sfn|Graf|1999|p=230}}{{sfn|Anmol|2000|p=80}} Both are used together in a computed form of error detection to ensure that data received at the remote destination of a telecommunication are the same as data sent from the local source (a/k/a echoplex, echo check, or loop check). When (two) modems communicate in echoplex mode the remote modem echoes whatever it receives from the local modem.{{sfn|Rosch|1999|p=1161}}{{sfn|Weik|2000|loc="echo check" p. 478}}{{sfn|Weik|2000|loc="echoplex" p.479}}{{sfn|Jordan|Churchill|1987|p=24}}{{sfn|Hill Associates|2002|p=341}}

Terminological confusion: echo is not duplex

A displayed 'echo' is independent of 'duplex' (or any) telecommunications transmission protocol. Probably from technical ignorance, "half-duplex" and "full-duplex" are used as slang for 'local echo' (a/k/a echo on) and 'remote echo', respectively, as typically they accompany one another. Strictly incorrect, this causes confusion (see duplex). Typically 'local echo' accompanies half-duplex transmission, which effectively doubles channel bandwidth by not repeating (echoing) data back from its destination (remote), as is reserved-for with 'full duplex' (which has only half of the bandwidth of 'half duplex'). Half-duplex can be set to 'echo off' for no echo at all.{{sfn|Daintith|2004|p=171}}{{sfn|Jordan|Churchill|1987|p=24}}

One example of 'local echo' used together with 'remote echo' (requires full-duplex) is for error checking pairs of data characters or chunks (echoplex) ensuring their duplicity (or else its just an extraneous annoyance).{{sfn|Bagad|Dhotre|2009|p=9–4}}{{sfn|Black|1987|p=203}}

Similarly, for another example, in the case of the TELNET communications protocol a local echo protocol operates on top of a full-duplex underlying protocol. The TCP connection over which the TELNET protocol is layered provides a full-duplex connection, with no echo, across which data may be sent in either direction simultaneously.{{sfn|Socolofsky|Kale|1991|p=24}} Whereas the Network Virtual Terminal that the TELNET protocol itself incorporates is a half-duplex device with (by default) local echo.{{sfn|IBM|1995|p=2}}{{sfn|Postel|Reynolds|1983|p=2}}

The devices that echo locally

Terminals are one of the things that may perform echoing for a connection. Others include modems, some form of intervening communications processor, or even the host system itself.{{sfn|Daintith|2004|p=171}} For several common computer operating systems, it is the host system itself that performs the echoing, if appropriate (which it isn't for, say, entry of a user password when a terminal first connects and a user is prompted to log in). On OpenVMS, for example, echoing is performed as necessary by the host system. Similarly, on Unix-like systems, local echo is performed by the operating system kernel's terminal device driver, according to the state of a device control flag, maintained in software and alterable by applications programs via an ioctl() system call.{{sfn|Duffy|2002|p=43}}{{sfn|Leffler|McKusick|Karels|Quarterman|1989|p=38,262,272}} The actual terminals and modems connected to such systems should have their local echo facilities switched off (so that they operate in no echo mode), lest passwords be locally echoed at password prompts, and all other input appear echoed twice. This is as true for terminal emulator programs, such as C-Kermit, running on a computer as it is for real terminals.{{sfn|Duffy|2002|p=43}}{{sfn|Da Cruz|Gianone|1997|p=158–159}}

Controlling local echo

Terminal emulators

Most terminal emulator programs have the ability to perform echo locally (which sometimes they misname "half-duplex"):{{sfn|Bigelow|2000|p=308}}

  • In the C-Kermit terminal emulator program, local echo is controlled by the SET TERMINAL ECHO command, which can be either SET TERMINAL ECHO LOCAL (which enables local echoing within the terminal emulator program itself) or SET TERMINAL ECHO REMOTE (where disables local echoing, leaving that up to another device in the communications channel—be that the modem or the remote host system—to perform as appropriate).{{sfn|Da Cruz|Gianone|1997|p=158–159}}
  • In ProComm it is the {{keypress|Alt|E}} combination, which is a hot key that may be used at any time to toggle local echo on and off.{{sfn|Woggon|1995|p=101}}
  • In the Terminal program that came with Microsoft Windows 3.1, local echo is controlled by a checkbox in the "Terminal Preferences" dialogue box accessed from the menu of the terminal program's window.{{sfn|Cowart|1992|p=283}}{{sfn|Sheldon|1991|p=678}}{{sfn|Norton|Kent|1993|p=347}}

Modems

The Hayes AT commands that control local echo (in command mode) are E0 for off and E1 for on. For local echo (in data mode), the commands are F1 and F0 respectively (Note the reversal of the suffixed digits). Unlike the "E" commands, the "F" commands are not part of the EIA/TIA-602 standard.{{sfn|Bigelow|2000|p=308}}{{sfn|Durda|2004}}

Host systems

Some host systems perform local echo themselves, in their device drivers and so forth.

  • In Unix and POSIX-compatible systems, local echo is a flag in the POSIX terminal interface, settable programmatically with the tcsetattr() function.{{sfn|Robbins|Robbins|2003|p=204–205}}{{#tag:ref|In the older and superseded Seventh Edition Unix terminal interface, BSD version 4 terminal interface, and System III/System V terminal interface, it was settable via the ioctl() system call.{{sfn|Leffler|McKusick|Karels|Quarterman|1989|p=262}}|group=fn}} The echoing is performed by the operating system's terminal device (in some way that is not specified by the POSIX standard). The standard utility program that alters this flag programmatically is the stty command, using which the flag may be altered from shell scripts or an interactive shell.{{sfn|Robbins|Robbins|2003|p=203}} The command to turn local echo (by the host system) on is stty echo and the command to turn it off is stty -echo.{{sfn|Sobell|Seebach|2006|p=855}}{{#tag:ref|This may not seem to work if used interactively. It does work. It's just immediately overridden. Some shells, such as tcsh, reset the terminal modes, including turning local echo off, when they are about to prompt for input. They actually place the terminal into non-canonical mode with local echo off, and handle echoing themselves, restoring the prior terminal attributes when the input line has been read. Any shell or other program that uses GNU readline also exhibits this interaction with stty -echo.{{sfn|Sobell|Seebach|2006|p=856}}{{sfn|Ramey|2009}}|group=fn}}
  • On OpenVMS systems, the operating system's terminal driver normally performs echoing.{{sfn|Miller|1992|p=30}} The terminal characteristic that controls whether it does this is the ECHO characteristic, settable with the DCL command SET TERMINAL /ECHO and unsettable with SET TERMINAL /NOECHO.{{sfn|Leisner|Cook|1990|p=136,158}} {{#tag:ref|Note that this is not the same as the LOCAL_ECHO terminal characteristic, settable with the DCL command SET TERMINAL /LOCAL_ECHO and unsettable with SET TERMINAL /NOLOCAL_ECHO. That characteristic controls whether the terminal itself performs local echo.{{sfn|Duffy|2002|p=43}}{{sfn|Leisner|Cook|1990|p=136,158}}|group=fn}}

Footnotes

References

What supports what

Sources used

{{refbegin|1}}
  • {{cite book|
      ref=harv|  title=Data Communication & Networking|  first1=V.S.|last1=Bagad|  first2=I.A.|last2=Dhotre|  publisher=Technical Publications|  year=2009|  isbn=978-81-8431-759-6

}}
  • {{cite book|
      ref=harv|  title=Data communications and distributed networks|  first=Uyless D.|last=Black|  edition=2nd|  publisher=Prentice-Hall|  year=1987|  isbn=978-0-8359-1341-6

}}
  • {{cite book|
      ref=harv|  title=PC Technician's Troubleshooting Pocket Reference|  first=Stephen J.|last=Bigelow|  edition=2nd|  publisher=McGraw-Hill Professional|  year=2000|  isbn=978-0-07-212945-8

}}
  • {{cite book|
      ref=harv|  title=Mastering Windows 3.1|  first=Robert|last=Cowart|  publisher=Sybex|  year=1992|  isbn=978-0-89588-842-6

}}
  • {{cite encyclopaedia|
      ref=harv|  encyclopedia=Oxford dictionary of computing|  article=echo|  first=John|last=Daintith|  edition=5th|  publisher=Oxford University Press|  year=2004|  isbn=978-0-19-860877-6

}}
  • {{cite book|
      ref=harv|  title=Using C-Kermit: communication software|  first1=Frank|last1=Da Cruz|  first2=Christine M.|last2=Gianone|  edition=2nd|  publisher=Digital Press|  year=1997|  isbn=978-1-55558-164-0

}}
  • {{cite book|
      ref=harv|  title=Getting started with OpenVMS: a guide for new users|  first=Michael D.|last=Duffy|  publisher=Digital Press|  year=2002|  isbn=978-1-55558-279-1

}}
  • {{cite web|
      ref=harv|  work=The AT Command Set Reference|  first=Frank|last=Durda|  year=2004|  title=Section 3: Unprefixed AT Commands|  url=http://nemesis.lonestar.org./reference/telecom/modems/at/plain-at.html

}}
  • {{cite encyclopaedia|
      ref=harv|  encyclopedia=Modern dictionary of electronics|  article=echo|  first=Rudolf F.|last=Graf|  edition=6th|  publisher=Newnes|  year=1999|  isbn=978-0-7506-9866-5

}}
  • {{cite book|
      ref=harv|  title=Telecommunications: a beginner's guide|  series=Network professional's library|  last=Hill Associates|  publisher=McGraw-Hill Professional|  year=2002|  isbn=978-0-07-219356-5

}}
  • {{cite journal|
      ref=CITEREFIBM1995|  last=IBM|  title=Telnet and the Telnet Protocol|date=June 1995|  url=http://bandwidthco.com./whitepapers/netforensics/telnet/Telnet%20and%20the%20Telnet%20Protocol.pdf|  format=PDF

}}
  • {{cite book|
      ref=harv|  title=Communications and networking for the IBM PC & compatibles|  first1=Larry E.|last1=Jordan|  first2=Bruce|last2=Churchill|  edition=2nd|  publisher=Brady|  year=1987|  isbn=978-0-89303-634-8

}}
  • {{cite book|
      ref=harv|  title=The Design and implementation of the 4.3BSD UNIX operating system|  chapter=Terminal Handling|  series=Addison-Wesley series in computer science|  first1=Samuel J.|last1=Leffler|  first2=Marshall Kirk|last2=McKusick|authorlink2=Marshall Kirk McKusick|  first3=Michael J.|last3=Karels|  first4=John S.|last4=Quarterman|authorlink4=John Quarterman|  publisher=Addison-Wesley|  year=1989|  isbn=978-0-201-06196-3

}}
  • {{cite book|
      ref=harv|  title=VAX DCL programmer's reference VMS 5|  first1=K. M.|last1=Leisner|  first2=David B.|last2=Cook|  publisher=Van Nostrand Reinhold|  year=1990|  isbn=978-0-442-31834-5

}}
  • {{cite book|
      ref=harv|  title=VAX/VMS: operating system concepts|  series=VAX-VMS Series|  first=David Donald|last=Miller|  publisher=Digital Press|  year=1992|  isbn=978-1-55558-065-0

}}
  • {{cite book|
      ref=harv|  title=Peter Norton's user's guide to Windows 3.1|  first1=Peter|last1=Norton|authorlink=Peter Norton|  first2=Peter|last2=Kent|  publisher=Bantam Books|  year=1993|  isbn=978-0-553-37148-2

}}
  • {{cite journal|
      ref=harv|  editor1-first=Chet|editor1-last=Ramey|  year=2009|  url=http://tiswww.case.edu./php/chet/readline/readline.html#SEC43|  title=2.5 Readline Signal Handling|  work=GNU Readline Library

}}
  • {{citation |mode=cs1

|ref=harv
|chapter-url=http://tools.ietf.org/html/rfc0857#section-4|
  title=RFC 0857: Telnet Echo Option|  chapter=Motivation for the Option|  first1=Jon|last1=Postel|authorlink=Jon Postel|  first2=J.|last2=Reynolds|date=May 1983}}
  • {{cite book|
      ref=harv|  title=UNIX systems programming: communication, concurrency, and threads|  first1=Kay A.|last1=Robbins|  first2=Steven|last2=Robbins|  edition=2nd|  publisher=Prentice Hall PTR|  year=2003|  isbn=978-0-13-042411-2

}}
  • {{cite book|
      ref=harv|  title=Winn L. Rosch hardware bible|  first=Winn L.|last=Rosch|  edition=5th|  publisher=Que|  year=1999|  isbn=978-0-7897-1743-6

}}
  • {{cite book|
      ref=harv|  title=Windows 3: the complete reference|  first=Thomas|last=Sheldon|  publisher=Osborne McGraw-Hill|  year=1991|  isbn=978-0-07-881679-6

}}
  • {{cite book|
      ref=harv|  title=A practical guide to Unix for Mac OS X users|  first1=Mark G.|last1=Sobell|  first2=Peter|last2=Seebach|  publisher=Prentice Hall PTR|  year=2006|  isbn=978-0-13-186333-0

}}
  • {{citation |mode=cs1

|ref=harv
|chapter-url=http://tools.ietf.org/html/rfc1180#section-7|
  title=RFC 1180: A TCP/IP Tutorial|  chapter=Transmission Control Protocol|  first1=T.|last1=Socolofsky|  first2=C.|last2=Kale|date=January 1991}}
  • {{cite encyclopaedia|
      ref=harv|  encyclopedia=Computer Science and Communications Dictionary|volume=1|  first=Martin H.|last=Weik|  publisher=Springer|  year=2000|  isbn=978-0-7923-8425-0

}}
  • {{cite book|
      ref=harv|  title=Telecommunications using ProComm & ProComm Plus made easy|  first=Michele|last=Woggon|  publisher=Prentice Hall|  year=1995|  isbn=978-0-13-148412-2

}}
  • {{cite encyclopaedia|
      ref=CITEREFAnmol2000|  encyclopedia=Advanced learner's dictionary of journalism|  article=local echo|  series=Advanced Learner's Dictionary Series|  publisher=Anmol Publications PVT LTD|  year=2000|  isbn=978-81-261-0469-7

}}{{refend}}

3 : Error detection and correction|Modems|Data transmission

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/21 8:46:12