World Library  
Flag as Inappropriate
Email this Article

Echo (computing)

Article Id: WHEBN0017306295
Reproduction Date:

Title: Echo (computing)  
Author: World Heritage Encyclopedia
Language: English
Subject: Keyboard buffer, Terminal emulator, Modems
Collection:
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Echo (computing)

In computer telecommunications, echo is the display or return of sent data at or to the sending end of a transmission. Echo can be either local echo, where the sending device itself displays the sent data, or remote echo, where the receiving device returns the sent data that it receives to the sender (which is of course simply no local echo from the point of view of the sending device itself).[1][2] That latter, when used as a form of error detection to determine that data received at the remote end of a communications line are the same as data sent, is also known as echoplex, echo check, or loop check. When two modems are communicating in echoplex mode, for example, the remote modem echoes whatever it receives from the local modem.[3][4][4][5][6]

Terminological confusion: echo is not duplex

Whilst local echo and remote echo are sometimes referred to as "half-duplex" and "full-duplex", those latter appellations are strictly incorrect, and are misleading (see duplex for their correct meanings). Whilst local echo is often used with half-duplex transmission, so that bandwidth is not wasted upon remotely echoing data from the remote end of the communications channel, it is not the same as half-duplex transmission. A full-duplex communications channel can still employ local echo, and a half-duplex channel can still (albeit wastefully) employ remote echo, or no echo at all.[7][5]

Indeed, for example, that is the case for echoplex error checking, which requires full-duplex communication, so that received data can be echoed back as they are being received.[8][9]

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.[10] Whereas the Network Virtual Terminal that the TELNET protocol itself incorporates is a half-duplex device with (by default) local echo.[11][12]

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.[7] 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.[13][14] 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.[13][15]

Controlling local echo

Terminal emulators

Most terminal emulator programs have the ability to perform echo locally (which sometimes they misname "half-duplex"):[16]

  • 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).[15]
  • In ProComm it is the Alt+E combination, which is a hot key that may be used at any time to toggle local echo on and off.[17]
  • 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.[18][19][20]

Modems

In the Hayes command set, the AT command that switches local echo off (in command mode) is E0 and the command to switch it on is E1. For local echo in data mode, the commands are F1 and F0 respectively. (Note the reversal of the numbers. The "F" commands are not part of the EIA/TIA-602 standard, but the "E" commands are.)[16][21]

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.[22][fn 1] 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.[24] The command to turn local echo (by the host system) on is
    stty echo
    
    and the command to turn it off is
    stty -echo
    
    .[25][fn 2]
  • On OpenVMS systems, the operating system's terminal driver normally performs echoing.[28] 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.[29] [fn 3]

Footnotes

  1. ^ 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.[23]
  2. ^ 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
    
    .[26][27]
  3. ^ 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.[13][29]

References

What supports what

  1. ^ Graf 1999, p. 230.
  2. ^ Anmol 2000, p. 80.
  3. ^ Rosch 1999, p. 1161.
  4. ^ a b Weik 2000, "echo check" p. 478.
  5. ^ a b Jordan & Churchill 1987, p. 24.
  6. ^ Hill Associates 2002, p. 341.
  7. ^ a b Daintith 2004, p. 171.
  8. ^ Bagad & Dhotre 2009, p. 9—4.
  9. ^ Black 1987, p. 203.
  10. ^ Socolofsky & Kale 1991, p. 24.
  11. ^ IBM 1995, p. 2.
  12. ^ Postel & Reynolds 1983, p. 2.
  13. ^ a b c Duffy 2002, p. 43.
  14. ^ Leffler et al. 1989, p. 38,262,272.
  15. ^ a b Da Cruz & Gianone 1997, p. 158–159.
  16. ^ a b Bigelow 2000, p. 308.
  17. ^ Woggon 1995, p. 101.
  18. ^ Cowart 1992, p. 283.
  19. ^ Sheldon 1991, p. 678.
  20. ^ Norton & Kent 1993, p. 347.
  21. ^ Durda 2004.
  22. ^ Robbins & Robbins 2003, p. 204–205.
  23. ^ Leffler et al. 1989, p. 262.
  24. ^ Robbins & Robbins 2003, p. 203.
  25. ^ Sobell & Seebach 2006, p. 855.
  26. ^ Sobell & Seebach 2006, p. 856.
  27. ^ Ramey 2009.
  28. ^ Miller 1992, p. 30.
  29. ^ a b Leisner & Cook 1990, p. 136,158.

Sources used

This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 



Copyright © World Library Foundation. All rights reserved. eBooks from World eBook Library are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.