What does the action “loop back” mean? [on hold]2019 Community Moderator ElectionWhy is some virtual network interface assigned private IP address, while some is assigned loopback IP address?What can an IP address be assigned to?What are the rules that determine the default contents of an /etc/hosts file?What is the symbolic variable for “public address”?what does the following egrep command do in combination with the “ip a” command?Does “loopback” in a loopback file mean the same as in loopback IP address?What do `0.0.0.0:*`, `[::]:mysql`, and `[::]:*` mean in netstat output?When does `[::]` or `0.0.0.0` mean this network and when this host?
Partial sums of primes
How did Monica know how to operate Carol's "designer"?
In Star Trek IV, why did the Bounty go back to a time when whales were already rare?
My boss asked me to take a one-day class, then signs it up as a day off
Can a Gentile theist be saved?
Meta programming: Declare a new struct on the fly
Can a malicious addon access internet history and such in chrome/firefox?
Bob has never been a M before
How do ultrasonic sensors differentiate between transmitted and received signals?
Is there enough fresh water in the world to eradicate the drinking water crisis?
Blender - show edges angles “direction”
What should I use for Mishna study?
Could solar power be utilized and substitute coal in the 19th century?
Is it okay / does it make sense for another player to join a running game of Munchkin?
Is there a problem with hiding "forgot password" until it's needed?
Calculating the number of days between 2 dates in Excel
What to do when my ideas aren't chosen, when I strongly disagree with the chosen solution?
Pronouncing Homer as in modern Greek
Can I rely on these GitHub repository files?
How can I successfully establish a nationwide combat training program for a large country?
Is there any significance to the Valyrian Stone vault door of Qarth?
Latex for-and in equation
Greatest common substring
What is Sitecore Managed Cloud?
What does the action “loop back” mean? [on hold]
2019 Community Moderator ElectionWhy is some virtual network interface assigned private IP address, while some is assigned loopback IP address?What can an IP address be assigned to?What are the rules that determine the default contents of an /etc/hosts file?What is the symbolic variable for “public address”?what does the following egrep command do in combination with the “ip a” command?Does “loopback” in a loopback file mean the same as in loopback IP address?What do `0.0.0.0:*`, `[::]:mysql`, and `[::]:*` mean in netstat output?When does `[::]` or `0.0.0.0` mean this network and when this host?
I have some difficulty to picture a diagram for the meaning of loopback. https://en.wikipedia.org/wiki/Loopback#Virtual_loopback_interface
Any traffic that a computer program sends to a loopback IP address is
simply and immediately passed back up the network software stack as if
it had been received from another device.
What does the action "loop back" mean?
What are the source and destination in the loopback scenario?
How is that different from a regular scenario?
Could you use some commands to show the loopback scenario and the regular one?
For example:
- When I type
ssh localhost, it works just likesshwith any other IP address. - When I type
http://localhost:631in browser's address bar and hit return, it works just like typing any other URL.
"loopback" is supposed to mean "a message or signal ends up (or loops) back to where it started" (https://askubuntu.com/questions/247625/what-is-the-loopback-device-and-how-do-i-use-it). But in the two examples, I don't see that meaning happening, but just the same thing as non-loop back IP addresses.
Thanks.
ip-address loopback
put on hold as off-topic by Jeff Schaller, Stephen Harris, Mr Shunz, nwildner, Anthony Geoghegan 8 hours ago
- This question does not appear to be about Unix or Linux within the scope defined in the help center.
add a comment |
I have some difficulty to picture a diagram for the meaning of loopback. https://en.wikipedia.org/wiki/Loopback#Virtual_loopback_interface
Any traffic that a computer program sends to a loopback IP address is
simply and immediately passed back up the network software stack as if
it had been received from another device.
What does the action "loop back" mean?
What are the source and destination in the loopback scenario?
How is that different from a regular scenario?
Could you use some commands to show the loopback scenario and the regular one?
For example:
- When I type
ssh localhost, it works just likesshwith any other IP address. - When I type
http://localhost:631in browser's address bar and hit return, it works just like typing any other URL.
"loopback" is supposed to mean "a message or signal ends up (or loops) back to where it started" (https://askubuntu.com/questions/247625/what-is-the-loopback-device-and-how-do-i-use-it). But in the two examples, I don't see that meaning happening, but just the same thing as non-loop back IP addresses.
Thanks.
ip-address loopback
put on hold as off-topic by Jeff Schaller, Stephen Harris, Mr Shunz, nwildner, Anthony Geoghegan 8 hours ago
- This question does not appear to be about Unix or Linux within the scope defined in the help center.
5
I'm voting to close this question as off-topic because it is also not about Unix / Linux.
– Jeff Schaller
Mar 22 at 18:38
What do you want? Moderator at networkEngineering site says my question is OS specific. Could you stop abusive comments and votes? You should have higher standard on yourself.
– Tim
yesterday
add a comment |
I have some difficulty to picture a diagram for the meaning of loopback. https://en.wikipedia.org/wiki/Loopback#Virtual_loopback_interface
Any traffic that a computer program sends to a loopback IP address is
simply and immediately passed back up the network software stack as if
it had been received from another device.
What does the action "loop back" mean?
What are the source and destination in the loopback scenario?
How is that different from a regular scenario?
Could you use some commands to show the loopback scenario and the regular one?
For example:
- When I type
ssh localhost, it works just likesshwith any other IP address. - When I type
http://localhost:631in browser's address bar and hit return, it works just like typing any other URL.
"loopback" is supposed to mean "a message or signal ends up (or loops) back to where it started" (https://askubuntu.com/questions/247625/what-is-the-loopback-device-and-how-do-i-use-it). But in the two examples, I don't see that meaning happening, but just the same thing as non-loop back IP addresses.
Thanks.
ip-address loopback
I have some difficulty to picture a diagram for the meaning of loopback. https://en.wikipedia.org/wiki/Loopback#Virtual_loopback_interface
Any traffic that a computer program sends to a loopback IP address is
simply and immediately passed back up the network software stack as if
it had been received from another device.
What does the action "loop back" mean?
What are the source and destination in the loopback scenario?
How is that different from a regular scenario?
Could you use some commands to show the loopback scenario and the regular one?
For example:
- When I type
ssh localhost, it works just likesshwith any other IP address. - When I type
http://localhost:631in browser's address bar and hit return, it works just like typing any other URL.
"loopback" is supposed to mean "a message or signal ends up (or loops) back to where it started" (https://askubuntu.com/questions/247625/what-is-the-loopback-device-and-how-do-i-use-it). But in the two examples, I don't see that meaning happening, but just the same thing as non-loop back IP addresses.
Thanks.
ip-address loopback
ip-address loopback
edited 2 days ago
Tim
asked Mar 22 at 18:26
TimTim
28.1k78269490
28.1k78269490
put on hold as off-topic by Jeff Schaller, Stephen Harris, Mr Shunz, nwildner, Anthony Geoghegan 8 hours ago
- This question does not appear to be about Unix or Linux within the scope defined in the help center.
put on hold as off-topic by Jeff Schaller, Stephen Harris, Mr Shunz, nwildner, Anthony Geoghegan 8 hours ago
- This question does not appear to be about Unix or Linux within the scope defined in the help center.
5
I'm voting to close this question as off-topic because it is also not about Unix / Linux.
– Jeff Schaller
Mar 22 at 18:38
What do you want? Moderator at networkEngineering site says my question is OS specific. Could you stop abusive comments and votes? You should have higher standard on yourself.
– Tim
yesterday
add a comment |
5
I'm voting to close this question as off-topic because it is also not about Unix / Linux.
– Jeff Schaller
Mar 22 at 18:38
What do you want? Moderator at networkEngineering site says my question is OS specific. Could you stop abusive comments and votes? You should have higher standard on yourself.
– Tim
yesterday
5
5
I'm voting to close this question as off-topic because it is also not about Unix / Linux.
– Jeff Schaller
Mar 22 at 18:38
I'm voting to close this question as off-topic because it is also not about Unix / Linux.
– Jeff Schaller
Mar 22 at 18:38
What do you want? Moderator at networkEngineering site says my question is OS specific. Could you stop abusive comments and votes? You should have higher standard on yourself.
– Tim
yesterday
What do you want? Moderator at networkEngineering site says my question is OS specific. Could you stop abusive comments and votes? You should have higher standard on yourself.
– Tim
yesterday
add a comment |
2 Answers
2
active
oldest
votes
You are confusing the device driver layers and the IP layers of the stack.
At the IP layer, 127.0.0.1 is just another IP address and treated the same.
At the driver layer, packets sent via the loopback interface are "simply and immediately passed back up the network software stack" as opposed to being sent to a network card.
This concept is not OS specific; various OSes use the same concept.
I am not confusing. I am asking what the action "loop back" means.
– Tim
Mar 22 at 21:25
1
Your edited question shows even more confusion betweenlocalhost(127.0.0.1) and loopback interfaces. Yes, you are confused between the network stack layers.
– Stephen Harris
yesterday
add a comment |
| --- > ---
lo | |
| --- < ---/
| --- > --- |
veth0 | | veth1
| --- < --- |
A veth pair is a pair of ethernet devices with a cable between them. Implemented as a virtual device. They are designed to communicate with containers: one end of the veth pair can be moved into a container.
You can think of lo like a veth pair, except there is only one end.
In reality the implementation details are not the same. This is at least clear when you look at the strange fact that ping 127.0.0.2 works, but you cannot see the address 127.0.0.2 in ip -4 addr. But there is no need to care unless you are exploiting that "feature" of the legacy version of Internet Protocol, or you are developing the kernel.
A more advanced way to think of lo is that it does not need to do anything, just like the dummy interface. (You can play with ip link add type dummy).
When you ping the IP address of your computer's ethernet or wifi interface, it works without sending anything over that interface. It is possible to verify this with tcpdump or the packet counters in ip -s link. The same is true for dummy, and the same is true for lo.
But if you haven't observed this, you can use the less advanced explanation. It does not really mislead you.
There is some difference in how lo and dummy are used, but that is the magic 127.0.0.2 stuff that is not important to the question.
Thanks. Does loopback mean that any process running on a host and sending something to a loopback IP address at the host will receives what it has sent?
– Tim
Mar 22 at 22:04
Does ping always get back what it sends, when success, regardless the target IP address is loopback or not? Do you have other examples to show the difference between a loopback Ip and a nonloopback IP?
– Tim
Mar 22 at 22:08
@Timvethinterfaces have addresses, you assign them and use the addresses like any other network interface. If you're not listening e.g. to UDP port 123, you will not receive packets sent to UDP port 123.
– sourcejedi
Mar 22 at 22:09
@Tim I am explicitly not caring about any difference for loopback interfaces (and loopback IPs), unless of course you found a reason :-).
– sourcejedi
Mar 22 at 22:10
1
Do you mean both loop back and private IP addresses work at packet level in the same "loopback" way? What is the difference between private address and loopback address then? unix.stackexchange.com/questions/507980/…
– Tim
2 days ago
|
show 8 more comments
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
You are confusing the device driver layers and the IP layers of the stack.
At the IP layer, 127.0.0.1 is just another IP address and treated the same.
At the driver layer, packets sent via the loopback interface are "simply and immediately passed back up the network software stack" as opposed to being sent to a network card.
This concept is not OS specific; various OSes use the same concept.
I am not confusing. I am asking what the action "loop back" means.
– Tim
Mar 22 at 21:25
1
Your edited question shows even more confusion betweenlocalhost(127.0.0.1) and loopback interfaces. Yes, you are confused between the network stack layers.
– Stephen Harris
yesterday
add a comment |
You are confusing the device driver layers and the IP layers of the stack.
At the IP layer, 127.0.0.1 is just another IP address and treated the same.
At the driver layer, packets sent via the loopback interface are "simply and immediately passed back up the network software stack" as opposed to being sent to a network card.
This concept is not OS specific; various OSes use the same concept.
I am not confusing. I am asking what the action "loop back" means.
– Tim
Mar 22 at 21:25
1
Your edited question shows even more confusion betweenlocalhost(127.0.0.1) and loopback interfaces. Yes, you are confused between the network stack layers.
– Stephen Harris
yesterday
add a comment |
You are confusing the device driver layers and the IP layers of the stack.
At the IP layer, 127.0.0.1 is just another IP address and treated the same.
At the driver layer, packets sent via the loopback interface are "simply and immediately passed back up the network software stack" as opposed to being sent to a network card.
This concept is not OS specific; various OSes use the same concept.
You are confusing the device driver layers and the IP layers of the stack.
At the IP layer, 127.0.0.1 is just another IP address and treated the same.
At the driver layer, packets sent via the loopback interface are "simply and immediately passed back up the network software stack" as opposed to being sent to a network card.
This concept is not OS specific; various OSes use the same concept.
answered Mar 22 at 20:00
Stephen HarrisStephen Harris
26.9k35181
26.9k35181
I am not confusing. I am asking what the action "loop back" means.
– Tim
Mar 22 at 21:25
1
Your edited question shows even more confusion betweenlocalhost(127.0.0.1) and loopback interfaces. Yes, you are confused between the network stack layers.
– Stephen Harris
yesterday
add a comment |
I am not confusing. I am asking what the action "loop back" means.
– Tim
Mar 22 at 21:25
1
Your edited question shows even more confusion betweenlocalhost(127.0.0.1) and loopback interfaces. Yes, you are confused between the network stack layers.
– Stephen Harris
yesterday
I am not confusing. I am asking what the action "loop back" means.
– Tim
Mar 22 at 21:25
I am not confusing. I am asking what the action "loop back" means.
– Tim
Mar 22 at 21:25
1
1
Your edited question shows even more confusion between
localhost (127.0.0.1) and loopback interfaces. Yes, you are confused between the network stack layers.– Stephen Harris
yesterday
Your edited question shows even more confusion between
localhost (127.0.0.1) and loopback interfaces. Yes, you are confused between the network stack layers.– Stephen Harris
yesterday
add a comment |
| --- > ---
lo | |
| --- < ---/
| --- > --- |
veth0 | | veth1
| --- < --- |
A veth pair is a pair of ethernet devices with a cable between them. Implemented as a virtual device. They are designed to communicate with containers: one end of the veth pair can be moved into a container.
You can think of lo like a veth pair, except there is only one end.
In reality the implementation details are not the same. This is at least clear when you look at the strange fact that ping 127.0.0.2 works, but you cannot see the address 127.0.0.2 in ip -4 addr. But there is no need to care unless you are exploiting that "feature" of the legacy version of Internet Protocol, or you are developing the kernel.
A more advanced way to think of lo is that it does not need to do anything, just like the dummy interface. (You can play with ip link add type dummy).
When you ping the IP address of your computer's ethernet or wifi interface, it works without sending anything over that interface. It is possible to verify this with tcpdump or the packet counters in ip -s link. The same is true for dummy, and the same is true for lo.
But if you haven't observed this, you can use the less advanced explanation. It does not really mislead you.
There is some difference in how lo and dummy are used, but that is the magic 127.0.0.2 stuff that is not important to the question.
Thanks. Does loopback mean that any process running on a host and sending something to a loopback IP address at the host will receives what it has sent?
– Tim
Mar 22 at 22:04
Does ping always get back what it sends, when success, regardless the target IP address is loopback or not? Do you have other examples to show the difference between a loopback Ip and a nonloopback IP?
– Tim
Mar 22 at 22:08
@Timvethinterfaces have addresses, you assign them and use the addresses like any other network interface. If you're not listening e.g. to UDP port 123, you will not receive packets sent to UDP port 123.
– sourcejedi
Mar 22 at 22:09
@Tim I am explicitly not caring about any difference for loopback interfaces (and loopback IPs), unless of course you found a reason :-).
– sourcejedi
Mar 22 at 22:10
1
Do you mean both loop back and private IP addresses work at packet level in the same "loopback" way? What is the difference between private address and loopback address then? unix.stackexchange.com/questions/507980/…
– Tim
2 days ago
|
show 8 more comments
| --- > ---
lo | |
| --- < ---/
| --- > --- |
veth0 | | veth1
| --- < --- |
A veth pair is a pair of ethernet devices with a cable between them. Implemented as a virtual device. They are designed to communicate with containers: one end of the veth pair can be moved into a container.
You can think of lo like a veth pair, except there is only one end.
In reality the implementation details are not the same. This is at least clear when you look at the strange fact that ping 127.0.0.2 works, but you cannot see the address 127.0.0.2 in ip -4 addr. But there is no need to care unless you are exploiting that "feature" of the legacy version of Internet Protocol, or you are developing the kernel.
A more advanced way to think of lo is that it does not need to do anything, just like the dummy interface. (You can play with ip link add type dummy).
When you ping the IP address of your computer's ethernet or wifi interface, it works without sending anything over that interface. It is possible to verify this with tcpdump or the packet counters in ip -s link. The same is true for dummy, and the same is true for lo.
But if you haven't observed this, you can use the less advanced explanation. It does not really mislead you.
There is some difference in how lo and dummy are used, but that is the magic 127.0.0.2 stuff that is not important to the question.
Thanks. Does loopback mean that any process running on a host and sending something to a loopback IP address at the host will receives what it has sent?
– Tim
Mar 22 at 22:04
Does ping always get back what it sends, when success, regardless the target IP address is loopback or not? Do you have other examples to show the difference between a loopback Ip and a nonloopback IP?
– Tim
Mar 22 at 22:08
@Timvethinterfaces have addresses, you assign them and use the addresses like any other network interface. If you're not listening e.g. to UDP port 123, you will not receive packets sent to UDP port 123.
– sourcejedi
Mar 22 at 22:09
@Tim I am explicitly not caring about any difference for loopback interfaces (and loopback IPs), unless of course you found a reason :-).
– sourcejedi
Mar 22 at 22:10
1
Do you mean both loop back and private IP addresses work at packet level in the same "loopback" way? What is the difference between private address and loopback address then? unix.stackexchange.com/questions/507980/…
– Tim
2 days ago
|
show 8 more comments
| --- > ---
lo | |
| --- < ---/
| --- > --- |
veth0 | | veth1
| --- < --- |
A veth pair is a pair of ethernet devices with a cable between them. Implemented as a virtual device. They are designed to communicate with containers: one end of the veth pair can be moved into a container.
You can think of lo like a veth pair, except there is only one end.
In reality the implementation details are not the same. This is at least clear when you look at the strange fact that ping 127.0.0.2 works, but you cannot see the address 127.0.0.2 in ip -4 addr. But there is no need to care unless you are exploiting that "feature" of the legacy version of Internet Protocol, or you are developing the kernel.
A more advanced way to think of lo is that it does not need to do anything, just like the dummy interface. (You can play with ip link add type dummy).
When you ping the IP address of your computer's ethernet or wifi interface, it works without sending anything over that interface. It is possible to verify this with tcpdump or the packet counters in ip -s link. The same is true for dummy, and the same is true for lo.
But if you haven't observed this, you can use the less advanced explanation. It does not really mislead you.
There is some difference in how lo and dummy are used, but that is the magic 127.0.0.2 stuff that is not important to the question.
| --- > ---
lo | |
| --- < ---/
| --- > --- |
veth0 | | veth1
| --- < --- |
A veth pair is a pair of ethernet devices with a cable between them. Implemented as a virtual device. They are designed to communicate with containers: one end of the veth pair can be moved into a container.
You can think of lo like a veth pair, except there is only one end.
In reality the implementation details are not the same. This is at least clear when you look at the strange fact that ping 127.0.0.2 works, but you cannot see the address 127.0.0.2 in ip -4 addr. But there is no need to care unless you are exploiting that "feature" of the legacy version of Internet Protocol, or you are developing the kernel.
A more advanced way to think of lo is that it does not need to do anything, just like the dummy interface. (You can play with ip link add type dummy).
When you ping the IP address of your computer's ethernet or wifi interface, it works without sending anything over that interface. It is possible to verify this with tcpdump or the packet counters in ip -s link. The same is true for dummy, and the same is true for lo.
But if you haven't observed this, you can use the less advanced explanation. It does not really mislead you.
There is some difference in how lo and dummy are used, but that is the magic 127.0.0.2 stuff that is not important to the question.
edited Mar 22 at 22:31
answered Mar 22 at 21:56
sourcejedisourcejedi
25.4k445110
25.4k445110
Thanks. Does loopback mean that any process running on a host and sending something to a loopback IP address at the host will receives what it has sent?
– Tim
Mar 22 at 22:04
Does ping always get back what it sends, when success, regardless the target IP address is loopback or not? Do you have other examples to show the difference between a loopback Ip and a nonloopback IP?
– Tim
Mar 22 at 22:08
@Timvethinterfaces have addresses, you assign them and use the addresses like any other network interface. If you're not listening e.g. to UDP port 123, you will not receive packets sent to UDP port 123.
– sourcejedi
Mar 22 at 22:09
@Tim I am explicitly not caring about any difference for loopback interfaces (and loopback IPs), unless of course you found a reason :-).
– sourcejedi
Mar 22 at 22:10
1
Do you mean both loop back and private IP addresses work at packet level in the same "loopback" way? What is the difference between private address and loopback address then? unix.stackexchange.com/questions/507980/…
– Tim
2 days ago
|
show 8 more comments
Thanks. Does loopback mean that any process running on a host and sending something to a loopback IP address at the host will receives what it has sent?
– Tim
Mar 22 at 22:04
Does ping always get back what it sends, when success, regardless the target IP address is loopback or not? Do you have other examples to show the difference between a loopback Ip and a nonloopback IP?
– Tim
Mar 22 at 22:08
@Timvethinterfaces have addresses, you assign them and use the addresses like any other network interface. If you're not listening e.g. to UDP port 123, you will not receive packets sent to UDP port 123.
– sourcejedi
Mar 22 at 22:09
@Tim I am explicitly not caring about any difference for loopback interfaces (and loopback IPs), unless of course you found a reason :-).
– sourcejedi
Mar 22 at 22:10
1
Do you mean both loop back and private IP addresses work at packet level in the same "loopback" way? What is the difference between private address and loopback address then? unix.stackexchange.com/questions/507980/…
– Tim
2 days ago
Thanks. Does loopback mean that any process running on a host and sending something to a loopback IP address at the host will receives what it has sent?
– Tim
Mar 22 at 22:04
Thanks. Does loopback mean that any process running on a host and sending something to a loopback IP address at the host will receives what it has sent?
– Tim
Mar 22 at 22:04
Does ping always get back what it sends, when success, regardless the target IP address is loopback or not? Do you have other examples to show the difference between a loopback Ip and a nonloopback IP?
– Tim
Mar 22 at 22:08
Does ping always get back what it sends, when success, regardless the target IP address is loopback or not? Do you have other examples to show the difference between a loopback Ip and a nonloopback IP?
– Tim
Mar 22 at 22:08
@Tim
veth interfaces have addresses, you assign them and use the addresses like any other network interface. If you're not listening e.g. to UDP port 123, you will not receive packets sent to UDP port 123.– sourcejedi
Mar 22 at 22:09
@Tim
veth interfaces have addresses, you assign them and use the addresses like any other network interface. If you're not listening e.g. to UDP port 123, you will not receive packets sent to UDP port 123.– sourcejedi
Mar 22 at 22:09
@Tim I am explicitly not caring about any difference for loopback interfaces (and loopback IPs), unless of course you found a reason :-).
– sourcejedi
Mar 22 at 22:10
@Tim I am explicitly not caring about any difference for loopback interfaces (and loopback IPs), unless of course you found a reason :-).
– sourcejedi
Mar 22 at 22:10
1
1
Do you mean both loop back and private IP addresses work at packet level in the same "loopback" way? What is the difference between private address and loopback address then? unix.stackexchange.com/questions/507980/…
– Tim
2 days ago
Do you mean both loop back and private IP addresses work at packet level in the same "loopback" way? What is the difference between private address and loopback address then? unix.stackexchange.com/questions/507980/…
– Tim
2 days ago
|
show 8 more comments
-ip-address, loopback
5
I'm voting to close this question as off-topic because it is also not about Unix / Linux.
– Jeff Schaller
Mar 22 at 18:38
What do you want? Moderator at networkEngineering site says my question is OS specific. Could you stop abusive comments and votes? You should have higher standard on yourself.
– Tim
yesterday