How does a router know the MTU of a network?












3














I've done several exercises where you're given the MTU of a net or subnet, but I wonder how routers know the MTU of the nets they're connected. I've learnt that in OSPF protocol this information is excanged among routers. However, is there another way of finding that information for a router that doesn't use OSPF?



I hope someone can help me. Thank you for your responses.










share|improve this question





























    3














    I've done several exercises where you're given the MTU of a net or subnet, but I wonder how routers know the MTU of the nets they're connected. I've learnt that in OSPF protocol this information is excanged among routers. However, is there another way of finding that information for a router that doesn't use OSPF?



    I hope someone can help me. Thank you for your responses.










    share|improve this question



























      3












      3








      3







      I've done several exercises where you're given the MTU of a net or subnet, but I wonder how routers know the MTU of the nets they're connected. I've learnt that in OSPF protocol this information is excanged among routers. However, is there another way of finding that information for a router that doesn't use OSPF?



      I hope someone can help me. Thank you for your responses.










      share|improve this question















      I've done several exercises where you're given the MTU of a net or subnet, but I wonder how routers know the MTU of the nets they're connected. I've learnt that in OSPF protocol this information is excanged among routers. However, is there another way of finding that information for a router that doesn't use OSPF?



      I hope someone can help me. Thank you for your responses.







      routing router layer1 interface mtu






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 5 hours ago









      Ron Maupin

      62.8k1365120




      62.8k1365120










      asked 5 hours ago









      Josemi Josemi

      302




      302






















          2 Answers
          2






          active

          oldest

          votes


















          2














          The MTU of an interface is a function of the layer-2 protocol for that interface, and a device, including a router, will inherently know the MTU of the interface based on the protocol for the interface. For example the MTU for ethernet is 1500.



          Some routers can configure the interface MTU with a configuration command. Also virtual interfaces, e.g. a tunnel, will calculate the MTU based on the MTU of the physical interface that is the source of the tunnel, minus the tunnel protocol overhead.





          For Cisco routers, you can use the show interfaces command to see the MTU for one or more interfaces. Other vendors will have similar commands.






          share|improve this answer





























            3














            Routers know because they have physical interfaces connected to the networks. Those interfaces are configured for the correct MTU.



            You are mistaken about OSPF: The protocol does not exchange MTU information.






            share|improve this answer





















            • I think the OSPF confusion is that the MTU must match for OSPF to form a neighbor.
              – Ron Maupin
              5 hours ago










            • I don't think so, if you consult the rfc of OSPF, version 2: rfc-editor.org/pdfrfc/rfc2328.txt.pdf , in page 195 where the information database packet is described, there is a field of interface MTU.
              – Josemi
              5 hours ago










            • @Josemi, from Why Are OSPF Neighbors Stuck in Exstart/Exchange State?: "OSPF states for adjacency formation are Down, Init, Attempt, 2-way, Exstart, Exchange, Loading and Full. There can be number of reasons why the Open Shortest Path First (OSPF) neighbors are stuck in exstart/exchange state. This document focuses on an MTU mismatch between OSPF neighbors resulting in exstart/exchange state. For more details on troubleshooting OSPF refer to Troubleshooting OSPF."
              – Ron Maupin
              3 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%2f55931%2fhow-does-a-router-know-the-mtu-of-a-network%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









            2














            The MTU of an interface is a function of the layer-2 protocol for that interface, and a device, including a router, will inherently know the MTU of the interface based on the protocol for the interface. For example the MTU for ethernet is 1500.



            Some routers can configure the interface MTU with a configuration command. Also virtual interfaces, e.g. a tunnel, will calculate the MTU based on the MTU of the physical interface that is the source of the tunnel, minus the tunnel protocol overhead.





            For Cisco routers, you can use the show interfaces command to see the MTU for one or more interfaces. Other vendors will have similar commands.






            share|improve this answer


























              2














              The MTU of an interface is a function of the layer-2 protocol for that interface, and a device, including a router, will inherently know the MTU of the interface based on the protocol for the interface. For example the MTU for ethernet is 1500.



              Some routers can configure the interface MTU with a configuration command. Also virtual interfaces, e.g. a tunnel, will calculate the MTU based on the MTU of the physical interface that is the source of the tunnel, minus the tunnel protocol overhead.





              For Cisco routers, you can use the show interfaces command to see the MTU for one or more interfaces. Other vendors will have similar commands.






              share|improve this answer
























                2












                2








                2






                The MTU of an interface is a function of the layer-2 protocol for that interface, and a device, including a router, will inherently know the MTU of the interface based on the protocol for the interface. For example the MTU for ethernet is 1500.



                Some routers can configure the interface MTU with a configuration command. Also virtual interfaces, e.g. a tunnel, will calculate the MTU based on the MTU of the physical interface that is the source of the tunnel, minus the tunnel protocol overhead.





                For Cisco routers, you can use the show interfaces command to see the MTU for one or more interfaces. Other vendors will have similar commands.






                share|improve this answer












                The MTU of an interface is a function of the layer-2 protocol for that interface, and a device, including a router, will inherently know the MTU of the interface based on the protocol for the interface. For example the MTU for ethernet is 1500.



                Some routers can configure the interface MTU with a configuration command. Also virtual interfaces, e.g. a tunnel, will calculate the MTU based on the MTU of the physical interface that is the source of the tunnel, minus the tunnel protocol overhead.





                For Cisco routers, you can use the show interfaces command to see the MTU for one or more interfaces. Other vendors will have similar commands.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 5 hours ago









                Ron MaupinRon Maupin

                62.8k1365120




                62.8k1365120























                    3














                    Routers know because they have physical interfaces connected to the networks. Those interfaces are configured for the correct MTU.



                    You are mistaken about OSPF: The protocol does not exchange MTU information.






                    share|improve this answer





















                    • I think the OSPF confusion is that the MTU must match for OSPF to form a neighbor.
                      – Ron Maupin
                      5 hours ago










                    • I don't think so, if you consult the rfc of OSPF, version 2: rfc-editor.org/pdfrfc/rfc2328.txt.pdf , in page 195 where the information database packet is described, there is a field of interface MTU.
                      – Josemi
                      5 hours ago










                    • @Josemi, from Why Are OSPF Neighbors Stuck in Exstart/Exchange State?: "OSPF states for adjacency formation are Down, Init, Attempt, 2-way, Exstart, Exchange, Loading and Full. There can be number of reasons why the Open Shortest Path First (OSPF) neighbors are stuck in exstart/exchange state. This document focuses on an MTU mismatch between OSPF neighbors resulting in exstart/exchange state. For more details on troubleshooting OSPF refer to Troubleshooting OSPF."
                      – Ron Maupin
                      3 hours ago
















                    3














                    Routers know because they have physical interfaces connected to the networks. Those interfaces are configured for the correct MTU.



                    You are mistaken about OSPF: The protocol does not exchange MTU information.






                    share|improve this answer





















                    • I think the OSPF confusion is that the MTU must match for OSPF to form a neighbor.
                      – Ron Maupin
                      5 hours ago










                    • I don't think so, if you consult the rfc of OSPF, version 2: rfc-editor.org/pdfrfc/rfc2328.txt.pdf , in page 195 where the information database packet is described, there is a field of interface MTU.
                      – Josemi
                      5 hours ago










                    • @Josemi, from Why Are OSPF Neighbors Stuck in Exstart/Exchange State?: "OSPF states for adjacency formation are Down, Init, Attempt, 2-way, Exstart, Exchange, Loading and Full. There can be number of reasons why the Open Shortest Path First (OSPF) neighbors are stuck in exstart/exchange state. This document focuses on an MTU mismatch between OSPF neighbors resulting in exstart/exchange state. For more details on troubleshooting OSPF refer to Troubleshooting OSPF."
                      – Ron Maupin
                      3 hours ago














                    3












                    3








                    3






                    Routers know because they have physical interfaces connected to the networks. Those interfaces are configured for the correct MTU.



                    You are mistaken about OSPF: The protocol does not exchange MTU information.






                    share|improve this answer












                    Routers know because they have physical interfaces connected to the networks. Those interfaces are configured for the correct MTU.



                    You are mistaken about OSPF: The protocol does not exchange MTU information.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered 5 hours ago









                    Ron TrunkRon Trunk

                    34.9k23272




                    34.9k23272












                    • I think the OSPF confusion is that the MTU must match for OSPF to form a neighbor.
                      – Ron Maupin
                      5 hours ago










                    • I don't think so, if you consult the rfc of OSPF, version 2: rfc-editor.org/pdfrfc/rfc2328.txt.pdf , in page 195 where the information database packet is described, there is a field of interface MTU.
                      – Josemi
                      5 hours ago










                    • @Josemi, from Why Are OSPF Neighbors Stuck in Exstart/Exchange State?: "OSPF states for adjacency formation are Down, Init, Attempt, 2-way, Exstart, Exchange, Loading and Full. There can be number of reasons why the Open Shortest Path First (OSPF) neighbors are stuck in exstart/exchange state. This document focuses on an MTU mismatch between OSPF neighbors resulting in exstart/exchange state. For more details on troubleshooting OSPF refer to Troubleshooting OSPF."
                      – Ron Maupin
                      3 hours ago


















                    • I think the OSPF confusion is that the MTU must match for OSPF to form a neighbor.
                      – Ron Maupin
                      5 hours ago










                    • I don't think so, if you consult the rfc of OSPF, version 2: rfc-editor.org/pdfrfc/rfc2328.txt.pdf , in page 195 where the information database packet is described, there is a field of interface MTU.
                      – Josemi
                      5 hours ago










                    • @Josemi, from Why Are OSPF Neighbors Stuck in Exstart/Exchange State?: "OSPF states for adjacency formation are Down, Init, Attempt, 2-way, Exstart, Exchange, Loading and Full. There can be number of reasons why the Open Shortest Path First (OSPF) neighbors are stuck in exstart/exchange state. This document focuses on an MTU mismatch between OSPF neighbors resulting in exstart/exchange state. For more details on troubleshooting OSPF refer to Troubleshooting OSPF."
                      – Ron Maupin
                      3 hours ago
















                    I think the OSPF confusion is that the MTU must match for OSPF to form a neighbor.
                    – Ron Maupin
                    5 hours ago




                    I think the OSPF confusion is that the MTU must match for OSPF to form a neighbor.
                    – Ron Maupin
                    5 hours ago












                    I don't think so, if you consult the rfc of OSPF, version 2: rfc-editor.org/pdfrfc/rfc2328.txt.pdf , in page 195 where the information database packet is described, there is a field of interface MTU.
                    – Josemi
                    5 hours ago




                    I don't think so, if you consult the rfc of OSPF, version 2: rfc-editor.org/pdfrfc/rfc2328.txt.pdf , in page 195 where the information database packet is described, there is a field of interface MTU.
                    – Josemi
                    5 hours ago












                    @Josemi, from Why Are OSPF Neighbors Stuck in Exstart/Exchange State?: "OSPF states for adjacency formation are Down, Init, Attempt, 2-way, Exstart, Exchange, Loading and Full. There can be number of reasons why the Open Shortest Path First (OSPF) neighbors are stuck in exstart/exchange state. This document focuses on an MTU mismatch between OSPF neighbors resulting in exstart/exchange state. For more details on troubleshooting OSPF refer to Troubleshooting OSPF."
                    – Ron Maupin
                    3 hours ago




                    @Josemi, from Why Are OSPF Neighbors Stuck in Exstart/Exchange State?: "OSPF states for adjacency formation are Down, Init, Attempt, 2-way, Exstart, Exchange, Loading and Full. There can be number of reasons why the Open Shortest Path First (OSPF) neighbors are stuck in exstart/exchange state. This document focuses on an MTU mismatch between OSPF neighbors resulting in exstart/exchange state. For more details on troubleshooting OSPF refer to Troubleshooting OSPF."
                    – Ron Maupin
                    3 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.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • 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%2f55931%2fhow-does-a-router-know-the-mtu-of-a-network%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

                    Contact image not getting when fetch all contact list from iPhone by CNContact

                    count number of partitions of a set with n elements into k subsets

                    A CLEAN and SIMPLE way to add appendices to Table of Contents and bookmarks