Wikipedista:Vobrcz/Loopback: Porovnání verzí

Smazaný obsah Přidaný obsah
Nová stránka: '''Loopback''' (nebo též '''loop-back''') je termín využívaný v počítačové terminologii. Jedná se o logickou smyčku elektrického signálu nebo datového toku z půvo...
 
Bez shrnutí editace
Řádek 5:
 
Tímto způsobem popisuje protokol [Internet Protocol|IP] síť ''loopback''. V [[IPv4]] této síti přísluší dle [[RFC]] 3330 [[prefix]] 127/8. Nejpoužívanější adresa pro zařízení loopback je 127.0.0.1, nicméně je pro tento účel možné použít libovolnou adresu z rozsahu 127.0.0.0 až 127.255.255.255. Oproti tomu [[IPv6]] má pro loopback vyhrazenu pouze jednu IP adresu, a to 0:0:0:0:0:0:0:1 (lze též napsat jako ::1). Bežné, oficiálně stanovené [[doménové jméno]] pro tuto adresu je ''[[localhost]]''. (RFC 2606)
 
 
V [[UNIX]]ových opererčních systémech se rozhraní loopback obvykle označuje názvy <TT>lo</TT> či <TT>lo0</TT>.
 
Využití rozhraní loopback je hned několik. Je možné ho třeba využít pro komunikaci síťového klienta se síťovým serverem běžícím na tomtéž počítači.
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 [[Uniform Resource Locator|URLs]] <code><nowiki>http://127.0.0.1/</nowiki></code> or <code><nowiki>http://localhost/</nowiki></code> 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, [[ping]]ing the loopback interface is a basic test of the functionality of the IP stack in the operating system.
Například vývojář [[World Wide Web|webových stránek]] může mít pro testovací účely míst rozpracované stránky umístěné na svém počítači a přistupovat k nim pomocí [[Uniform Resource Locator|URL]] adresy <code><nowiki>http://127.0.0.1/</nowiki></code> nebo <code><nowiki>http://localhost/</nowiki></code>. Výhodou tohoto přístupu je absolutní nezávislost na hardwaru počítače a vyšší bezpečnost, protože data fyzicky neputují sítí. Podobným způsobem je možné vyzkoušet funkčnost [[Internet protocol|IP]] služeb na počítači příkazem [[ping]] směrovaným na adresu localhost nebo 127.0.0.1.
 
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 packet]]s’'' [http://www.catb.org/~esr/jargon/html/M/martian.html] and the source addresses of these are collectively known as ''‘[[bogon filtering|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.
 
==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 interfaces==
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.
 
A simple serial interface loopback test, called ''paperclip test'', is sometimes used to identify serial ports of a computer and verify operation. It utilizes a terminal emulator application to send characters, with flow control set to off, to the serial port and receive the same back. For this purpose, a paperclip is used to short pin 2 to pin 3 (the receive and transmit pins) on a standard [[RS-232]] interface using [[D-subminiature]] DE-9 or DB-25 connectors.
 
==Telecommunications==
[[Paket]]y putující v IP sítích, které mají v hlavičce nastavenou jako odesílatele [[IP adresa|adresu]] z rozsahu vyhrazeného pro loopback, mohou ve starších či chybně fungujících programech způsobovat potíže. Takové pakety proto označujeme jako ''[[marťanské pakety]]'' [http://www.catb.org/~esr/jargon/html/M/martian.html] a samotné adresy pak jako ''[[bogon]]y''. Podle pravidel IP protokolu nesmíte takto označený paket opusit počítač a v případě, že se tak stane doputuje k nějakému dalšímu síťovému rozhraní, musí být zahozen. (RFC 1700, RFC 2893)
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 [[telecommunication circuit|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.
 
==Síťová zařízení==
A ''hardware loop'' is a simple device that physically connects 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.
Některá síťová zařízení používají výraz '''loopback''' pro virtuální rozhraní používané pro správu a konfiguraci. Na rozdíl od běžného loopback rozhraní se toto loopback zařízení nepoužívá pro komunikaci zařízení se sebou samotným.
 
Takovému zařízení je přiřazena adresa na kterou lze přistupovat z řídícího zařízení přes síť, tato adresa však nepřísluší konkrétnímu fyzickému rozhraní zařízení.
A [[modem]] can be configured to loop incoming signals from either the remote modem or the local [[terminal (telecommunication)|terminal]]. This is referred to as loopback or software loop.
 
==Sériová zařízení==
==References==
Vysílač seriové komunikace může pro testovací účely využít loopback smyčku. Například tak, že fyzicky propojí výstupní porty se vstupními a na vstupu se objeví přesně totéž co je odesláno na výstup. Přesunutím této smyčky na konec vedení je možné například otestovat zda je vedení neporušeno.
 
{{FS1037C MS188}}
 
==See alsoTelekomunikace==
V [[telekomunikace|telekomunikaci]], se jako loopback (někdy též zkráceně '''loop''') označuje hardwarová nebo softwarová metoda zašle zachycený [[signál]] nebo data zašle zpět k odesílateli. Využívá se toho poodbně jako u seriových rozhraní k testovacím účelům. Velké množství zařízení disponují funkcí, která na výstup zašle určitý testovací vzorek a zároveň je schopna tento vzorek detekovat na vstupu.
* [[Loop around]]
* [[Loopback disk device]]
 
[[Kategorie:Telekomunikace]]
[[Category:Communication circuits]]
[[Kategorie:Síťová_architektura]]
[[Category:Internet architecture]]
 
[[ca:Loopback]]
* [[en:Loopback disk device]]
[[de:Loopback]]
[[es:Loopback]]