What is the difference between 0.0.0.0 and a loopback IP address?
From book Computer Network:
The IP address 0.0.0.0, the lowest address, is used by hosts when they
are being booted. It means ‘‘this network’’ or ‘‘this host.’’
... All addresses of the form 127.xx.yy.zz are reserved for loopback
testing. Packets sent to that address are not put out onto the wire; they are processed locally and treated as incoming packets. This allows packets to be sent to the host without the sender knowing its number, which is useful for testing.
If I am correct, a loopback IP address refers to the current host.
What is the difference between 0.0.0.0 and a loopback IP address then?
Thanks.
ip ipv4 subnet ip-address loopback
add a comment |
From book Computer Network:
The IP address 0.0.0.0, the lowest address, is used by hosts when they
are being booted. It means ‘‘this network’’ or ‘‘this host.’’
... All addresses of the form 127.xx.yy.zz are reserved for loopback
testing. Packets sent to that address are not put out onto the wire; they are processed locally and treated as incoming packets. This allows packets to be sent to the host without the sender knowing its number, which is useful for testing.
If I am correct, a loopback IP address refers to the current host.
What is the difference between 0.0.0.0 and a loopback IP address then?
Thanks.
ip ipv4 subnet ip-address loopback
Somewhat pertinent point: the fact that there are 16 million loopback addresses, rather than 1, or maybe 256, is a historical accident, allocated when the IP network spanned a handful sites. In all likelihood, the only one you'll ever see or need is 127.0.0.1. See also networkengineering.stackexchange.com/questions/18076/…
– IMSoP
3 hours ago
add a comment |
From book Computer Network:
The IP address 0.0.0.0, the lowest address, is used by hosts when they
are being booted. It means ‘‘this network’’ or ‘‘this host.’’
... All addresses of the form 127.xx.yy.zz are reserved for loopback
testing. Packets sent to that address are not put out onto the wire; they are processed locally and treated as incoming packets. This allows packets to be sent to the host without the sender knowing its number, which is useful for testing.
If I am correct, a loopback IP address refers to the current host.
What is the difference between 0.0.0.0 and a loopback IP address then?
Thanks.
ip ipv4 subnet ip-address loopback
From book Computer Network:
The IP address 0.0.0.0, the lowest address, is used by hosts when they
are being booted. It means ‘‘this network’’ or ‘‘this host.’’
... All addresses of the form 127.xx.yy.zz are reserved for loopback
testing. Packets sent to that address are not put out onto the wire; they are processed locally and treated as incoming packets. This allows packets to be sent to the host without the sender knowing its number, which is useful for testing.
If I am correct, a loopback IP address refers to the current host.
What is the difference between 0.0.0.0 and a loopback IP address then?
Thanks.
ip ipv4 subnet ip-address loopback
ip ipv4 subnet ip-address loopback
edited 5 hours ago
Community♦
1
1
asked 10 hours ago
TimTim
319214
319214
Somewhat pertinent point: the fact that there are 16 million loopback addresses, rather than 1, or maybe 256, is a historical accident, allocated when the IP network spanned a handful sites. In all likelihood, the only one you'll ever see or need is 127.0.0.1. See also networkengineering.stackexchange.com/questions/18076/…
– IMSoP
3 hours ago
add a comment |
Somewhat pertinent point: the fact that there are 16 million loopback addresses, rather than 1, or maybe 256, is a historical accident, allocated when the IP network spanned a handful sites. In all likelihood, the only one you'll ever see or need is 127.0.0.1. See also networkengineering.stackexchange.com/questions/18076/…
– IMSoP
3 hours ago
Somewhat pertinent point: the fact that there are 16 million loopback addresses, rather than 1, or maybe 256, is a historical accident, allocated when the IP network spanned a handful sites. In all likelihood, the only one you'll ever see or need is 127.0.0.1. See also networkengineering.stackexchange.com/questions/18076/…
– IMSoP
3 hours ago
Somewhat pertinent point: the fact that there are 16 million loopback addresses, rather than 1, or maybe 256, is a historical accident, allocated when the IP network spanned a handful sites. In all likelihood, the only one you'll ever see or need is 127.0.0.1. See also networkengineering.stackexchange.com/questions/18076/…
– IMSoP
3 hours ago
add a comment |
2 Answers
2
active
oldest
votes
The error is in
The IP address 0.0.0.0 [...] means ‘‘this network’’ or ‘‘this host.’’
This statement from the book is simply false.
The correct statement, per RFC1122 is:
{ 0, 0 }
This host on this network. MUST NOT be sent, except as
a source address as part of an initialization procedure
by which the host learns its own IP address.
The loopback address (actually any address in the 127.0.0.0/8 network) is explained in the same RFC this way:
{ 127, any }
Internal host loopback address. Addresses of this form
MUST NOT appear outside a host.
So:
the 0.0.0.0 address can be observed on a network, but only during the DHCP/BOOTP process, and only as a source address.
any address in the 127.0.0.0/8 can not be viewed anywhere on the network, and can only be used for:
testing the TCP/IP stack of the host.
two applications on the same host to communicate together.
add a comment |
If I am correct, a loopback IP address refers to the current host.
No. Traffic sent to a loopback address loops back inside the host. You can send traffic to a loopback address as the destination address and then read it. This is useful in testing.
What is the difference between 0.0.0.0 and a loopback IP address then?
Addresses in the 0.0.0.0/8
network cannot be used as destination addresses. The only practical use is as a source address when a host doesn't have an address and is asking something like a DHCP server to assign it an address.
There is the IANA IPv4 Special-Purpose Address Registry that lists out all the special address blocks, and it has links to the RFCs that define each of those blocks.
Thanks. "Traffic sent to a loopback address loops back inside the host." Isn't it that a loopback IP address addresses the current host?
– Tim
10 hours ago
I do not understand the question. A host can have many addresses (usually, at least one per interface). The loopback addresses are only ever used inside the host, and they can never appear on any network, anywhere. They can be used as both source and destination addresses to communicated between processes inside a host. The zero network cannot be used for a destination address. The zero address is used to represent any address when wanting to receive traffic from any address, or it can be used as a source address for an interface if the address has not yet been assigned.
– Ron Maupin♦
10 hours ago
@Tim, the RFCs for each type of address explain about the address.
– Ron Maupin♦
10 hours ago
" The loopback addresses are only ever used inside the host, and they can never appear on any network". Is it the same for the zero address?
– Tim
10 hours ago
1
As I wrote in my last comment, no, that is incorrect. Again, "The 0.0.0.0 address cannot be used as a destination address, but it is used as a source address on the network when an interface has not yet been assigned an address." I do not know how to make it any plainer than that.
– Ron Maupin♦
10 hours ago
|
show 2 more comments
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "496"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f56845%2fwhat-is-the-difference-between-0-0-0-0-and-a-loopback-ip-address%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The error is in
The IP address 0.0.0.0 [...] means ‘‘this network’’ or ‘‘this host.’’
This statement from the book is simply false.
The correct statement, per RFC1122 is:
{ 0, 0 }
This host on this network. MUST NOT be sent, except as
a source address as part of an initialization procedure
by which the host learns its own IP address.
The loopback address (actually any address in the 127.0.0.0/8 network) is explained in the same RFC this way:
{ 127, any }
Internal host loopback address. Addresses of this form
MUST NOT appear outside a host.
So:
the 0.0.0.0 address can be observed on a network, but only during the DHCP/BOOTP process, and only as a source address.
any address in the 127.0.0.0/8 can not be viewed anywhere on the network, and can only be used for:
testing the TCP/IP stack of the host.
two applications on the same host to communicate together.
add a comment |
The error is in
The IP address 0.0.0.0 [...] means ‘‘this network’’ or ‘‘this host.’’
This statement from the book is simply false.
The correct statement, per RFC1122 is:
{ 0, 0 }
This host on this network. MUST NOT be sent, except as
a source address as part of an initialization procedure
by which the host learns its own IP address.
The loopback address (actually any address in the 127.0.0.0/8 network) is explained in the same RFC this way:
{ 127, any }
Internal host loopback address. Addresses of this form
MUST NOT appear outside a host.
So:
the 0.0.0.0 address can be observed on a network, but only during the DHCP/BOOTP process, and only as a source address.
any address in the 127.0.0.0/8 can not be viewed anywhere on the network, and can only be used for:
testing the TCP/IP stack of the host.
two applications on the same host to communicate together.
add a comment |
The error is in
The IP address 0.0.0.0 [...] means ‘‘this network’’ or ‘‘this host.’’
This statement from the book is simply false.
The correct statement, per RFC1122 is:
{ 0, 0 }
This host on this network. MUST NOT be sent, except as
a source address as part of an initialization procedure
by which the host learns its own IP address.
The loopback address (actually any address in the 127.0.0.0/8 network) is explained in the same RFC this way:
{ 127, any }
Internal host loopback address. Addresses of this form
MUST NOT appear outside a host.
So:
the 0.0.0.0 address can be observed on a network, but only during the DHCP/BOOTP process, and only as a source address.
any address in the 127.0.0.0/8 can not be viewed anywhere on the network, and can only be used for:
testing the TCP/IP stack of the host.
two applications on the same host to communicate together.
The error is in
The IP address 0.0.0.0 [...] means ‘‘this network’’ or ‘‘this host.’’
This statement from the book is simply false.
The correct statement, per RFC1122 is:
{ 0, 0 }
This host on this network. MUST NOT be sent, except as
a source address as part of an initialization procedure
by which the host learns its own IP address.
The loopback address (actually any address in the 127.0.0.0/8 network) is explained in the same RFC this way:
{ 127, any }
Internal host loopback address. Addresses of this form
MUST NOT appear outside a host.
So:
the 0.0.0.0 address can be observed on a network, but only during the DHCP/BOOTP process, and only as a source address.
any address in the 127.0.0.0/8 can not be viewed anywhere on the network, and can only be used for:
testing the TCP/IP stack of the host.
two applications on the same host to communicate together.
edited 10 hours ago
answered 10 hours ago
JFLJFL
11k11236
11k11236
add a comment |
add a comment |
If I am correct, a loopback IP address refers to the current host.
No. Traffic sent to a loopback address loops back inside the host. You can send traffic to a loopback address as the destination address and then read it. This is useful in testing.
What is the difference between 0.0.0.0 and a loopback IP address then?
Addresses in the 0.0.0.0/8
network cannot be used as destination addresses. The only practical use is as a source address when a host doesn't have an address and is asking something like a DHCP server to assign it an address.
There is the IANA IPv4 Special-Purpose Address Registry that lists out all the special address blocks, and it has links to the RFCs that define each of those blocks.
Thanks. "Traffic sent to a loopback address loops back inside the host." Isn't it that a loopback IP address addresses the current host?
– Tim
10 hours ago
I do not understand the question. A host can have many addresses (usually, at least one per interface). The loopback addresses are only ever used inside the host, and they can never appear on any network, anywhere. They can be used as both source and destination addresses to communicated between processes inside a host. The zero network cannot be used for a destination address. The zero address is used to represent any address when wanting to receive traffic from any address, or it can be used as a source address for an interface if the address has not yet been assigned.
– Ron Maupin♦
10 hours ago
@Tim, the RFCs for each type of address explain about the address.
– Ron Maupin♦
10 hours ago
" The loopback addresses are only ever used inside the host, and they can never appear on any network". Is it the same for the zero address?
– Tim
10 hours ago
1
As I wrote in my last comment, no, that is incorrect. Again, "The 0.0.0.0 address cannot be used as a destination address, but it is used as a source address on the network when an interface has not yet been assigned an address." I do not know how to make it any plainer than that.
– Ron Maupin♦
10 hours ago
|
show 2 more comments
If I am correct, a loopback IP address refers to the current host.
No. Traffic sent to a loopback address loops back inside the host. You can send traffic to a loopback address as the destination address and then read it. This is useful in testing.
What is the difference between 0.0.0.0 and a loopback IP address then?
Addresses in the 0.0.0.0/8
network cannot be used as destination addresses. The only practical use is as a source address when a host doesn't have an address and is asking something like a DHCP server to assign it an address.
There is the IANA IPv4 Special-Purpose Address Registry that lists out all the special address blocks, and it has links to the RFCs that define each of those blocks.
Thanks. "Traffic sent to a loopback address loops back inside the host." Isn't it that a loopback IP address addresses the current host?
– Tim
10 hours ago
I do not understand the question. A host can have many addresses (usually, at least one per interface). The loopback addresses are only ever used inside the host, and they can never appear on any network, anywhere. They can be used as both source and destination addresses to communicated between processes inside a host. The zero network cannot be used for a destination address. The zero address is used to represent any address when wanting to receive traffic from any address, or it can be used as a source address for an interface if the address has not yet been assigned.
– Ron Maupin♦
10 hours ago
@Tim, the RFCs for each type of address explain about the address.
– Ron Maupin♦
10 hours ago
" The loopback addresses are only ever used inside the host, and they can never appear on any network". Is it the same for the zero address?
– Tim
10 hours ago
1
As I wrote in my last comment, no, that is incorrect. Again, "The 0.0.0.0 address cannot be used as a destination address, but it is used as a source address on the network when an interface has not yet been assigned an address." I do not know how to make it any plainer than that.
– Ron Maupin♦
10 hours ago
|
show 2 more comments
If I am correct, a loopback IP address refers to the current host.
No. Traffic sent to a loopback address loops back inside the host. You can send traffic to a loopback address as the destination address and then read it. This is useful in testing.
What is the difference between 0.0.0.0 and a loopback IP address then?
Addresses in the 0.0.0.0/8
network cannot be used as destination addresses. The only practical use is as a source address when a host doesn't have an address and is asking something like a DHCP server to assign it an address.
There is the IANA IPv4 Special-Purpose Address Registry that lists out all the special address blocks, and it has links to the RFCs that define each of those blocks.
If I am correct, a loopback IP address refers to the current host.
No. Traffic sent to a loopback address loops back inside the host. You can send traffic to a loopback address as the destination address and then read it. This is useful in testing.
What is the difference between 0.0.0.0 and a loopback IP address then?
Addresses in the 0.0.0.0/8
network cannot be used as destination addresses. The only practical use is as a source address when a host doesn't have an address and is asking something like a DHCP server to assign it an address.
There is the IANA IPv4 Special-Purpose Address Registry that lists out all the special address blocks, and it has links to the RFCs that define each of those blocks.
answered 10 hours ago
Ron Maupin♦Ron Maupin
65k1368121
65k1368121
Thanks. "Traffic sent to a loopback address loops back inside the host." Isn't it that a loopback IP address addresses the current host?
– Tim
10 hours ago
I do not understand the question. A host can have many addresses (usually, at least one per interface). The loopback addresses are only ever used inside the host, and they can never appear on any network, anywhere. They can be used as both source and destination addresses to communicated between processes inside a host. The zero network cannot be used for a destination address. The zero address is used to represent any address when wanting to receive traffic from any address, or it can be used as a source address for an interface if the address has not yet been assigned.
– Ron Maupin♦
10 hours ago
@Tim, the RFCs for each type of address explain about the address.
– Ron Maupin♦
10 hours ago
" The loopback addresses are only ever used inside the host, and they can never appear on any network". Is it the same for the zero address?
– Tim
10 hours ago
1
As I wrote in my last comment, no, that is incorrect. Again, "The 0.0.0.0 address cannot be used as a destination address, but it is used as a source address on the network when an interface has not yet been assigned an address." I do not know how to make it any plainer than that.
– Ron Maupin♦
10 hours ago
|
show 2 more comments
Thanks. "Traffic sent to a loopback address loops back inside the host." Isn't it that a loopback IP address addresses the current host?
– Tim
10 hours ago
I do not understand the question. A host can have many addresses (usually, at least one per interface). The loopback addresses are only ever used inside the host, and they can never appear on any network, anywhere. They can be used as both source and destination addresses to communicated between processes inside a host. The zero network cannot be used for a destination address. The zero address is used to represent any address when wanting to receive traffic from any address, or it can be used as a source address for an interface if the address has not yet been assigned.
– Ron Maupin♦
10 hours ago
@Tim, the RFCs for each type of address explain about the address.
– Ron Maupin♦
10 hours ago
" The loopback addresses are only ever used inside the host, and they can never appear on any network". Is it the same for the zero address?
– Tim
10 hours ago
1
As I wrote in my last comment, no, that is incorrect. Again, "The 0.0.0.0 address cannot be used as a destination address, but it is used as a source address on the network when an interface has not yet been assigned an address." I do not know how to make it any plainer than that.
– Ron Maupin♦
10 hours ago
Thanks. "Traffic sent to a loopback address loops back inside the host." Isn't it that a loopback IP address addresses the current host?
– Tim
10 hours ago
Thanks. "Traffic sent to a loopback address loops back inside the host." Isn't it that a loopback IP address addresses the current host?
– Tim
10 hours ago
I do not understand the question. A host can have many addresses (usually, at least one per interface). The loopback addresses are only ever used inside the host, and they can never appear on any network, anywhere. They can be used as both source and destination addresses to communicated between processes inside a host. The zero network cannot be used for a destination address. The zero address is used to represent any address when wanting to receive traffic from any address, or it can be used as a source address for an interface if the address has not yet been assigned.
– Ron Maupin♦
10 hours ago
I do not understand the question. A host can have many addresses (usually, at least one per interface). The loopback addresses are only ever used inside the host, and they can never appear on any network, anywhere. They can be used as both source and destination addresses to communicated between processes inside a host. The zero network cannot be used for a destination address. The zero address is used to represent any address when wanting to receive traffic from any address, or it can be used as a source address for an interface if the address has not yet been assigned.
– Ron Maupin♦
10 hours ago
@Tim, the RFCs for each type of address explain about the address.
– Ron Maupin♦
10 hours ago
@Tim, the RFCs for each type of address explain about the address.
– Ron Maupin♦
10 hours ago
" The loopback addresses are only ever used inside the host, and they can never appear on any network". Is it the same for the zero address?
– Tim
10 hours ago
" The loopback addresses are only ever used inside the host, and they can never appear on any network". Is it the same for the zero address?
– Tim
10 hours ago
1
1
As I wrote in my last comment, no, that is incorrect. Again, "The 0.0.0.0 address cannot be used as a destination address, but it is used as a source address on the network when an interface has not yet been assigned an address." I do not know how to make it any plainer than that.
– Ron Maupin♦
10 hours ago
As I wrote in my last comment, no, that is incorrect. Again, "The 0.0.0.0 address cannot be used as a destination address, but it is used as a source address on the network when an interface has not yet been assigned an address." I do not know how to make it any plainer than that.
– Ron Maupin♦
10 hours ago
|
show 2 more comments
Thanks for contributing an answer to Network Engineering Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f56845%2fwhat-is-the-difference-between-0-0-0-0-and-a-loopback-ip-address%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Somewhat pertinent point: the fact that there are 16 million loopback addresses, rather than 1, or maybe 256, is a historical accident, allocated when the IP network spanned a handful sites. In all likelihood, the only one you'll ever see or need is 127.0.0.1. See also networkengineering.stackexchange.com/questions/18076/…
– IMSoP
3 hours ago