Loopback - Virtual Network Interface

Virtual Network Interface

In TCP/IP a loopback device is a virtual network interface implemented in software only and not connected to any hardware, but which is fully integrated into the computer system's internal network infrastructure. Any traffic that a computer program sends to the loopback interface is immediately received on the same interface.

Correspondingly, the Internet Protocol (IP) specifies a loopback network. In IPv4 this is the network with the CIDR prefix 127.0/8 (RFC 3330). The most commonly used IP address on the loopback device is 127.0.0.1 for IPv4, although any address in the range 127.0.0.1 to 127.255.255.254 is mapped to it. IPv6 designates only a single address for this function, 0:0:0:0:0:0:0:1 (also written as ::1), having the ::1/128 prefix (RFC 3513). The standard, officially reserved, domain name for these addresses is localhost (RFC 2606).

On Unix-like systems, the loopback interface usually has the device name 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, namely on a computer running a web server, pointing a web browser to the URLs http://127.0.0.1/ or http://localhost/ will access that computer's own web site. This works without any actual network connection–so it is useful for testing services without exposing them to security risks from remote network access. Likewise, pinging the loopback interface is a basic test of the functionality of the IP stack in the operating system.

Packets sent in an IP network with a source address belonging to the loopback interface can cause a number of problems for older or buggy network software. Such packets are known as ‘martian packets’ and the source addresses of these are collectively known as ‘bogons’. The Internet Protocol specification dictates that such packets must not be transmitted outside of a host, and must be dropped if received on a network interface (cf. RFC 1700, RFC 2893).

One notable exception to the use of the loopback network addresses (127/8) is their use in Multiprotocol Label Switching (MPLS) traceroute error detection techniques (RFC 4379) in which their property of not being routable provides a convenient means to avoid delivery of faulty packets to end users.

Read more about this topic:  Loopback

Famous quotes containing the words virtual and/or network:

    Tragedy dramatizes human life as potentiality and fulfillment. Its virtual future, or Destiny, is therefore quite different from that created in comedy. Comic Destiny is Fortune—what the world will bring, and the man will take or miss, encounter or escape; tragic Destiny is what the man brings, and the world will demand of him. That is his Fate.
    Susanne K. Langer (1895–1985)

    A culture may be conceived as a network of beliefs and purposes in which any string in the net pulls and is pulled by the others, thus perpetually changing the configuration of the whole. If the cultural element called morals takes on a new shape, we must ask what other strings have pulled it out of line. It cannot be one solitary string, nor even the strings nearby, for the network is three-dimensional at least.
    Jacques Barzun (b. 1907)