What is the difference between 0.0.0.0 and a loopback IP address?












6















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.










share|improve this question

























  • 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


















6















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.










share|improve this question

























  • 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
















6












6








6








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.










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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





















  • 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












2 Answers
2






active

oldest

votes


















9














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.









share|improve this answer

































    4















    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.






    share|improve this answer
























    • 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











    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
    });


    }
    });














    draft saved

    draft discarded


















    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









    9














    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.









    share|improve this answer






























      9














      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.









      share|improve this answer




























        9












        9








        9







        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.









        share|improve this answer















        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.










        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 10 hours ago

























        answered 10 hours ago









        JFLJFL

        11k11236




        11k11236























            4















            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.






            share|improve this answer
























            • 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
















            4















            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.






            share|improve this answer
























            • 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














            4












            4








            4








            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.






            share|improve this answer














            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.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 10 hours ago









            Ron MaupinRon 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



















            • 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


















            draft saved

            draft discarded




















































            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.




            draft saved


            draft discarded














            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





















































            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







            Popular posts from this blog

            "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

            Alcedinidae

            Origin of the phrase “under your belt”?