Router filter broadcast frame?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












Hi I'm a newbie in Networking, still confused about some basic concepts. If given a picture below:
enter image description here



My questions is:



Let's say node C wants to send a datagram to node A but node C doesn't know node A's MAC address. So node C passes an ARP query packet which contains MAC broadcast address FF-FF-FF-FF-FF-FF and node A's IP address. I know node A will return its MAC address when it receives the packet.
But what happen if the LAN use private IP address? what will the router do when it receive the packet? since the router's other interface might connect to some other node or even another switch, will the router broadcast the packet to all its interfaces?







share|improve this question




















  • Sounds like this question is mainly asking about the difference between a switch and a router. I couldn't find an earlier question about that on this site. That question has however been asked and answered a few times on Super User.
    – kasperd
    Aug 27 at 16:30














up vote
2
down vote

favorite












Hi I'm a newbie in Networking, still confused about some basic concepts. If given a picture below:
enter image description here



My questions is:



Let's say node C wants to send a datagram to node A but node C doesn't know node A's MAC address. So node C passes an ARP query packet which contains MAC broadcast address FF-FF-FF-FF-FF-FF and node A's IP address. I know node A will return its MAC address when it receives the packet.
But what happen if the LAN use private IP address? what will the router do when it receive the packet? since the router's other interface might connect to some other node or even another switch, will the router broadcast the packet to all its interfaces?







share|improve this question




















  • Sounds like this question is mainly asking about the difference between a switch and a router. I couldn't find an earlier question about that on this site. That question has however been asked and answered a few times on Super User.
    – kasperd
    Aug 27 at 16:30












up vote
2
down vote

favorite









up vote
2
down vote

favorite











Hi I'm a newbie in Networking, still confused about some basic concepts. If given a picture below:
enter image description here



My questions is:



Let's say node C wants to send a datagram to node A but node C doesn't know node A's MAC address. So node C passes an ARP query packet which contains MAC broadcast address FF-FF-FF-FF-FF-FF and node A's IP address. I know node A will return its MAC address when it receives the packet.
But what happen if the LAN use private IP address? what will the router do when it receive the packet? since the router's other interface might connect to some other node or even another switch, will the router broadcast the packet to all its interfaces?







share|improve this question












Hi I'm a newbie in Networking, still confused about some basic concepts. If given a picture below:
enter image description here



My questions is:



Let's say node C wants to send a datagram to node A but node C doesn't know node A's MAC address. So node C passes an ARP query packet which contains MAC broadcast address FF-FF-FF-FF-FF-FF and node A's IP address. I know node A will return its MAC address when it receives the packet.
But what happen if the LAN use private IP address? what will the router do when it receive the packet? since the router's other interface might connect to some other node or even another switch, will the router broadcast the packet to all its interfaces?









share|improve this question











share|improve this question




share|improve this question










asked Aug 27 at 7:33









amjad

513




513











  • Sounds like this question is mainly asking about the difference between a switch and a router. I couldn't find an earlier question about that on this site. That question has however been asked and answered a few times on Super User.
    – kasperd
    Aug 27 at 16:30
















  • Sounds like this question is mainly asking about the difference between a switch and a router. I couldn't find an earlier question about that on this site. That question has however been asked and answered a few times on Super User.
    – kasperd
    Aug 27 at 16:30















Sounds like this question is mainly asking about the difference between a switch and a router. I couldn't find an earlier question about that on this site. That question has however been asked and answered a few times on Super User.
– kasperd
Aug 27 at 16:30




Sounds like this question is mainly asking about the difference between a switch and a router. I couldn't find an earlier question about that on this site. That question has however been asked and answered a few times on Super User.
– kasperd
Aug 27 at 16:30










2 Answers
2






active

oldest

votes

















up vote
5
down vote



accepted











Let's say node C wants to send a datagram to node A but node C doesn't know node A's MAC address. So node C passes an ARP query packet which contains MAC broadcast address FF-FF-FF-FF-FF-FF and node A's IP address. I know node A will return its MAC address when it receives the packet.




This is a correct description of ARP for IPv4.




But what happen if the LAN use private IP address?




It doesn't matter what IP range the LAN uses as long as it forms one subnet.




what will the router do when it receive the packet?




When the (broadcast) ARP request doesn't ask for the router's LAN IP address the request is just dropped.




since the router's other interface might connect to some other node or even another switch, will the router broadcast the packet to all its interfaces?




No, a router does not forward L2 broadcasts that are used with ARP.



If node C wants to send an IP packet to a destination outside the LAN, its routing table tells it to pass the packet to the router as gateway. The packet is encapsulated by an L2 frame addressing the router's MAC. The router then receives the frame with the packet and forwards the latter according to its own routing table.



If the destination is local to the router, the router ARPs the destination IP and uses the discovered MAC for the Ethernet frame (assuming Ethernet is used). If the destination isn't local to the router it will use the next hop's MAC as local L2 destination in the frame.






share|improve this answer





























    up vote
    2
    down vote













    The router is constantly "veryfing" the destination IP address of every packet that comes to each one of its interfaces.



    If the destination address matches with any entry of the routing table then it forwards the packet to the corresponding interface.



    The following picture shows the Routing table of each router in a network:



    enter image description here



    When the router "sees" an ARP packet, it checks the destination IP and does the following checklist:



    1. If the destination IP is the router itself, then it answers with an ARP reply sending its own MAC.


    2. If the destination IP belongs to the local network, then it ignores it.


    3. If the destination IP belongs to a external network that exists in the routing table, then the router replies with its own MAC address.


    4. Everything else is ignored.






    share|improve this answer






















    • I'll change it to "verifying"
      – jcbermu
      Aug 27 at 12:50










    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    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%2f52828%2frouter-filter-broadcast-frame%23new-answer', 'question_page');

    );

    Post as a guest






























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    5
    down vote



    accepted











    Let's say node C wants to send a datagram to node A but node C doesn't know node A's MAC address. So node C passes an ARP query packet which contains MAC broadcast address FF-FF-FF-FF-FF-FF and node A's IP address. I know node A will return its MAC address when it receives the packet.




    This is a correct description of ARP for IPv4.




    But what happen if the LAN use private IP address?




    It doesn't matter what IP range the LAN uses as long as it forms one subnet.




    what will the router do when it receive the packet?




    When the (broadcast) ARP request doesn't ask for the router's LAN IP address the request is just dropped.




    since the router's other interface might connect to some other node or even another switch, will the router broadcast the packet to all its interfaces?




    No, a router does not forward L2 broadcasts that are used with ARP.



    If node C wants to send an IP packet to a destination outside the LAN, its routing table tells it to pass the packet to the router as gateway. The packet is encapsulated by an L2 frame addressing the router's MAC. The router then receives the frame with the packet and forwards the latter according to its own routing table.



    If the destination is local to the router, the router ARPs the destination IP and uses the discovered MAC for the Ethernet frame (assuming Ethernet is used). If the destination isn't local to the router it will use the next hop's MAC as local L2 destination in the frame.






    share|improve this answer


























      up vote
      5
      down vote



      accepted











      Let's say node C wants to send a datagram to node A but node C doesn't know node A's MAC address. So node C passes an ARP query packet which contains MAC broadcast address FF-FF-FF-FF-FF-FF and node A's IP address. I know node A will return its MAC address when it receives the packet.




      This is a correct description of ARP for IPv4.




      But what happen if the LAN use private IP address?




      It doesn't matter what IP range the LAN uses as long as it forms one subnet.




      what will the router do when it receive the packet?




      When the (broadcast) ARP request doesn't ask for the router's LAN IP address the request is just dropped.




      since the router's other interface might connect to some other node or even another switch, will the router broadcast the packet to all its interfaces?




      No, a router does not forward L2 broadcasts that are used with ARP.



      If node C wants to send an IP packet to a destination outside the LAN, its routing table tells it to pass the packet to the router as gateway. The packet is encapsulated by an L2 frame addressing the router's MAC. The router then receives the frame with the packet and forwards the latter according to its own routing table.



      If the destination is local to the router, the router ARPs the destination IP and uses the discovered MAC for the Ethernet frame (assuming Ethernet is used). If the destination isn't local to the router it will use the next hop's MAC as local L2 destination in the frame.






      share|improve this answer
























        up vote
        5
        down vote



        accepted







        up vote
        5
        down vote



        accepted







        Let's say node C wants to send a datagram to node A but node C doesn't know node A's MAC address. So node C passes an ARP query packet which contains MAC broadcast address FF-FF-FF-FF-FF-FF and node A's IP address. I know node A will return its MAC address when it receives the packet.




        This is a correct description of ARP for IPv4.




        But what happen if the LAN use private IP address?




        It doesn't matter what IP range the LAN uses as long as it forms one subnet.




        what will the router do when it receive the packet?




        When the (broadcast) ARP request doesn't ask for the router's LAN IP address the request is just dropped.




        since the router's other interface might connect to some other node or even another switch, will the router broadcast the packet to all its interfaces?




        No, a router does not forward L2 broadcasts that are used with ARP.



        If node C wants to send an IP packet to a destination outside the LAN, its routing table tells it to pass the packet to the router as gateway. The packet is encapsulated by an L2 frame addressing the router's MAC. The router then receives the frame with the packet and forwards the latter according to its own routing table.



        If the destination is local to the router, the router ARPs the destination IP and uses the discovered MAC for the Ethernet frame (assuming Ethernet is used). If the destination isn't local to the router it will use the next hop's MAC as local L2 destination in the frame.






        share|improve this answer















        Let's say node C wants to send a datagram to node A but node C doesn't know node A's MAC address. So node C passes an ARP query packet which contains MAC broadcast address FF-FF-FF-FF-FF-FF and node A's IP address. I know node A will return its MAC address when it receives the packet.




        This is a correct description of ARP for IPv4.




        But what happen if the LAN use private IP address?




        It doesn't matter what IP range the LAN uses as long as it forms one subnet.




        what will the router do when it receive the packet?




        When the (broadcast) ARP request doesn't ask for the router's LAN IP address the request is just dropped.




        since the router's other interface might connect to some other node or even another switch, will the router broadcast the packet to all its interfaces?




        No, a router does not forward L2 broadcasts that are used with ARP.



        If node C wants to send an IP packet to a destination outside the LAN, its routing table tells it to pass the packet to the router as gateway. The packet is encapsulated by an L2 frame addressing the router's MAC. The router then receives the frame with the packet and forwards the latter according to its own routing table.



        If the destination is local to the router, the router ARPs the destination IP and uses the discovered MAC for the Ethernet frame (assuming Ethernet is used). If the destination isn't local to the router it will use the next hop's MAC as local L2 destination in the frame.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Aug 27 at 9:27

























        answered Aug 27 at 8:52









        Zac67

        19.1k21047




        19.1k21047




















            up vote
            2
            down vote













            The router is constantly "veryfing" the destination IP address of every packet that comes to each one of its interfaces.



            If the destination address matches with any entry of the routing table then it forwards the packet to the corresponding interface.



            The following picture shows the Routing table of each router in a network:



            enter image description here



            When the router "sees" an ARP packet, it checks the destination IP and does the following checklist:



            1. If the destination IP is the router itself, then it answers with an ARP reply sending its own MAC.


            2. If the destination IP belongs to the local network, then it ignores it.


            3. If the destination IP belongs to a external network that exists in the routing table, then the router replies with its own MAC address.


            4. Everything else is ignored.






            share|improve this answer






















            • I'll change it to "verifying"
              – jcbermu
              Aug 27 at 12:50














            up vote
            2
            down vote













            The router is constantly "veryfing" the destination IP address of every packet that comes to each one of its interfaces.



            If the destination address matches with any entry of the routing table then it forwards the packet to the corresponding interface.



            The following picture shows the Routing table of each router in a network:



            enter image description here



            When the router "sees" an ARP packet, it checks the destination IP and does the following checklist:



            1. If the destination IP is the router itself, then it answers with an ARP reply sending its own MAC.


            2. If the destination IP belongs to the local network, then it ignores it.


            3. If the destination IP belongs to a external network that exists in the routing table, then the router replies with its own MAC address.


            4. Everything else is ignored.






            share|improve this answer






















            • I'll change it to "verifying"
              – jcbermu
              Aug 27 at 12:50












            up vote
            2
            down vote










            up vote
            2
            down vote









            The router is constantly "veryfing" the destination IP address of every packet that comes to each one of its interfaces.



            If the destination address matches with any entry of the routing table then it forwards the packet to the corresponding interface.



            The following picture shows the Routing table of each router in a network:



            enter image description here



            When the router "sees" an ARP packet, it checks the destination IP and does the following checklist:



            1. If the destination IP is the router itself, then it answers with an ARP reply sending its own MAC.


            2. If the destination IP belongs to the local network, then it ignores it.


            3. If the destination IP belongs to a external network that exists in the routing table, then the router replies with its own MAC address.


            4. Everything else is ignored.






            share|improve this answer














            The router is constantly "veryfing" the destination IP address of every packet that comes to each one of its interfaces.



            If the destination address matches with any entry of the routing table then it forwards the packet to the corresponding interface.



            The following picture shows the Routing table of each router in a network:



            enter image description here



            When the router "sees" an ARP packet, it checks the destination IP and does the following checklist:



            1. If the destination IP is the router itself, then it answers with an ARP reply sending its own MAC.


            2. If the destination IP belongs to the local network, then it ignores it.


            3. If the destination IP belongs to a external network that exists in the routing table, then the router replies with its own MAC address.


            4. Everything else is ignored.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Aug 27 at 12:50

























            answered Aug 27 at 8:31









            jcbermu

            3,753817




            3,753817











            • I'll change it to "verifying"
              – jcbermu
              Aug 27 at 12:50
















            • I'll change it to "verifying"
              – jcbermu
              Aug 27 at 12:50















            I'll change it to "verifying"
            – jcbermu
            Aug 27 at 12:50




            I'll change it to "verifying"
            – jcbermu
            Aug 27 at 12:50

















             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f52828%2frouter-filter-broadcast-frame%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What does second last employer means? [closed]

            List of Gilmore Girls characters

            Confectionery