Jump to content

Loopback

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 65.60.80.199 (talk) at 02:02, 16 September 2008 (Telecommunications: Added space after a full stop.). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

The term loopback (sometimes spelled 'loop-back') is generally used to describe methods or procedures of routing electronic signals, digital data streams, or other flows of items, from their originating facility quickly back to the same source entity without intentional processing or modification. This is primarily intended as a means of testing the transmission or transportation infrastructure.

Examples of applications include the following:

  • A method of performing transmission tests of access lines from the serving switching center, which method usually does not require the assistance of personnel at the served terminal.
  • A method of testing between stations (not necessarily adjacent) wherein two lines are used, with the testing being done at one station and the two lines interconnected at the distant station. Commonly called loop around when the interconnecting circuit is accessed by dialing.
  • A patch cable, applied manually or automatically, remotely or locally, that facilitates a loop-back test.
  • A communication channel with only one endpoint. Any message transmitted through such a channel is immediately received by the same channel.

Virtual Internet Protocol Network Interface

Most TCP/IP implementations support a loopback interface, which is a virtual software interface, i.e., not connected to any hardware, but fully integrated into the computer system's internal network infrastructure. Any traffic that a computer program sends on the loopback network is immediately received on the same interface.

Correspondingly, the Internet Protocol (IP) specifies a loopback network. In IPv4 this is the network 127/8 ("this network", RFC 3330), and in IPv6 it is the ::1/128 prefix (RFC 3513). The most commonly used IP address on the loopback device is 127.0.0.1 for IPv4, although any address between 127.0.0.0 and 127.255.255.255 is mapped to it. In IPv6 the loopback prefix consists of only one single address. 0:0:0:0:0:0:0:1 (also written as ::1). The standard, officially reserved, domain name for these addresses is localhost (RFC 2606).

On Unix-like systems, the loopback interface is commonly called lo or lo0.

A loopback interface has several uses. It may be used by network client software on a computer to communicate with server software on the same computer–viz., on a computer running a web server, pointing a web browser to http://127.0.0.1/ (and/or http://localhost/) URLs will result in access to that computer's own web site. This can be done without the computer being connected to any network–so it is useful for testing services without exposing them to remote network access. Likewise, to ping the loopback interface is a basic test that one's IP stack is working properly.

Loopback addresses are the subject of a reasonably common Internet prank: directing an inexperienced user to connect to (or attack) his own loopback interface as if it were a remote server[1]. Note, however, that contrary to popular belief, a computer will normally not crash if it "flood-pings" the loopback address. The only effect is a busy processor.[citation needed]

Packets sent on a "real" IP network with a source address on the loopback interface can cause a number of problems for older or buggy network software. Such packets are known as "martian packets" [2]. Internet Protocol specification dictate that such packet must not be transmitted outside of a host, and must be dropped if received on a network interface.

Network Equipment

Some network equipment uses the term loopback for a virtual interface used for management purposes. Unlike a proper loopback interface, this loopback device is not used to talk with itself.

Such an interface is assigned an address that can be accessed from management equipment over a network but is not assigned to any of the real interfaces on the device. This loopback address is also used for management datagrams, such as alarms, originating from the equipment. The property that makes this virtual interface special is that applications that use it will send or receive traffic using the address assigned to the virtual interface as opposed to the address on the physical interface through which the traffic passes.

Serial Interface

A serial communications transceiver can use loopback for testing its functionality. For example, a device's transmit pin connected to its receive pin will result in the device receiving exactly what it transmits. Moving this looping connection to the remote end of a cable adds the cable to this test. Moving it to the far end of a modem link extends the test further. This is a common troubleshooting technique and is often combined with a specialized test device that sends specific patterns and counts any errors that come back (see Bit Error Rate Test). Some devices include built-in loopback capability.

Telecommunications

In telecommunications, loopback, (short loop) is a hardware or software method which feeds a received signal or data back to the sender. It is used as an aid in debugging physical connection problems. As a test, many data communication devices can be configured to send specific patterns (such as all ones) on an interface, and can detect the reception of this signal on the same port. This is called a loopback test and can be performed within a modem or transceiver by connecting its output to its own input. A circuit between two points in different locations may be tested by applying a test signal on the circuit in one location, and having the network device at the other location send a signal back through the circuit. If this device receives its own signal back, this proves that the circuit is functioning.

A hardware loop is a simple device that hardwires the receive channel to the transmit channel. In the case of a network termination connector such as X.21, this is typically done by simply connecting the pins together in the connector. Media such as optical fiber or coaxial cable, which have separate transmit and receive connectors, can simply be looped together with a single strand of the appropriate medium.

A modem can be configured to loop incoming signals from either the remote modem or the local terminal. This is referred to as loopback or software loop.

References

Public Domain This article incorporates public domain material from Federal Standard 1037C. General Services Administration. Archived from the original on 2022-01-22. (in support of MIL-STD-188).

See also