Does a router send frames or packets?












2















Perhaps it's a novice question, but does a router send/receive frames?
When I read about this subject, it seems that routers decapsulate the frame on arrival, and encapsulate the packet in a frame in order to send it.



But why do people talk about packets forwarding? Also, when you ping a domain name, you have "packets transmitted, received".
Is it an abuse of language?



So, if I eavesdrop the link between two routers, do I see frames (with MAC addresses) or packets ?



Thanks !










share|improve this question




















  • 1





    Unless the packet is large enough to require fragmentation, there's usually a one-to-one correspondence between packets and frames.

    – Barmar
    Feb 5 at 20:52











  • A router (with an Ethernet interface) sends packets inside of frames. This is what "encapsulation" is about.

    – chrylis
    Feb 5 at 23:45
















2















Perhaps it's a novice question, but does a router send/receive frames?
When I read about this subject, it seems that routers decapsulate the frame on arrival, and encapsulate the packet in a frame in order to send it.



But why do people talk about packets forwarding? Also, when you ping a domain name, you have "packets transmitted, received".
Is it an abuse of language?



So, if I eavesdrop the link between two routers, do I see frames (with MAC addresses) or packets ?



Thanks !










share|improve this question




















  • 1





    Unless the packet is large enough to require fragmentation, there's usually a one-to-one correspondence between packets and frames.

    – Barmar
    Feb 5 at 20:52











  • A router (with an Ethernet interface) sends packets inside of frames. This is what "encapsulation" is about.

    – chrylis
    Feb 5 at 23:45














2












2








2








Perhaps it's a novice question, but does a router send/receive frames?
When I read about this subject, it seems that routers decapsulate the frame on arrival, and encapsulate the packet in a frame in order to send it.



But why do people talk about packets forwarding? Also, when you ping a domain name, you have "packets transmitted, received".
Is it an abuse of language?



So, if I eavesdrop the link between two routers, do I see frames (with MAC addresses) or packets ?



Thanks !










share|improve this question
















Perhaps it's a novice question, but does a router send/receive frames?
When I read about this subject, it seems that routers decapsulate the frame on arrival, and encapsulate the packet in a frame in order to send it.



But why do people talk about packets forwarding? Also, when you ping a domain name, you have "packets transmitted, received".
Is it an abuse of language?



So, if I eavesdrop the link between two routers, do I see frames (with MAC addresses) or packets ?



Thanks !







routing router layer2 layer3 icmp






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 5 at 17:49









Ron Maupin

67.9k1369126




67.9k1369126










asked Feb 5 at 15:10









SmbboSmbbo

111




111








  • 1





    Unless the packet is large enough to require fragmentation, there's usually a one-to-one correspondence between packets and frames.

    – Barmar
    Feb 5 at 20:52











  • A router (with an Ethernet interface) sends packets inside of frames. This is what "encapsulation" is about.

    – chrylis
    Feb 5 at 23:45














  • 1





    Unless the packet is large enough to require fragmentation, there's usually a one-to-one correspondence between packets and frames.

    – Barmar
    Feb 5 at 20:52











  • A router (with an Ethernet interface) sends packets inside of frames. This is what "encapsulation" is about.

    – chrylis
    Feb 5 at 23:45








1




1





Unless the packet is large enough to require fragmentation, there's usually a one-to-one correspondence between packets and frames.

– Barmar
Feb 5 at 20:52





Unless the packet is large enough to require fragmentation, there's usually a one-to-one correspondence between packets and frames.

– Barmar
Feb 5 at 20:52













A router (with an Ethernet interface) sends packets inside of frames. This is what "encapsulation" is about.

– chrylis
Feb 5 at 23:45





A router (with an Ethernet interface) sends packets inside of frames. This is what "encapsulation" is about.

– chrylis
Feb 5 at 23:45










3 Answers
3






active

oldest

votes


















7















it seems that routers decapsulate the frame on arrival, and
encapsulate the packet in a frame in order to send it.




Yes. A router must strip off the layer-2 frame in order to get to the layer-3 packet. The router then routes the packet to the next interface toward the destination, based on the layer-3 destination address. At the next interface, it must build a new frame for the packet for the layer-2 protocol on the next interface, which could be a completely different layer-2 protocol than the one used on the first interface.




But why people talk about packets forwarding ?




That is what the router is doing. It forwards packets from one interface to another interface (one network to another network).




Also, when you ping a domain name, you have "packets transmitted,
received". Is it an abuse of language?




No. Ping is an application that uses ICMP echo requests and replies, and ICMP is an integral part of IP, which is a layer-3 protocol that uses packets.




So, if I eavesdrop the link between two routers, do I see frames (with
mac addresses) or packets ?




Not all layer-2 protocols use MAC addresses, Only the IEEE LAN protocols use MAC addresses. Often, the layer-2 connection between routers will use something like PPP, which has no addressing on the layer-2 frames because there are only two possible endpoints. If the connection between the two routers is an IEEE protocol, then, yes, you will see frames with MAC addresses. If it is frame relay, you will see frames with DLCIs; with ATM, you will see frames with VPI/VCI; etc.






share|improve this answer

































    2














    In the case of eavesdropping a web fetch over an ethernet-connected router, you could consider yourself to be looking at voltages, bits, bytes, frames, packets, segments, streams, or pages.



    For an analogy, consider whether you hear words or sounds when someone speaks to you. Obviously, it's both, and which you focus on depends on what you're thinking about.






    share|improve this answer































      0















      Perhaps it's a novice question, but does a router send/receive frames?




      Yes




      When I read about this subject, it seems that routers decapsulate the
      frame on arrival, and encapsulate the packet in a frame in order to
      send it.




      That is correct. L2 router needs to decapsulate packet data from it's framing headers (and trailers) on source port, then reencapsulate it in another frame for sending on outgoing port.
      That's because frame headers will change (for example, router might receive Ethernet II frame on one port, decapsulate packet data, and reencapsulate with different source MAC and checksum before sending it on outgoing port).



      Also, input and output ports could be of different type, so entirely different frame (like for example Frame relay could be constructed, but it will still hold the same payload ("packet data")




      But why do people talk about packets forwarding? Also, when you ping a
      domain name, you have "packets transmitted, received". Is it an abuse
      of language?




      More like ambiguity of language. You can view Network packet and Frame as synonyms. Or you can use "packet" to mean frame payload (that is just "packet data" from frame, as in for example commonly used "TCP/IP packet").




      So, if I eavesdrop the link between two routers, do I see frames (with
      MAC addresses) or packets ?




      You would see complete frames, including it's headers (like source/destination MAC on Ethernet)






      share|improve this answer























        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%2f56643%2fdoes-a-router-send-frames-or-packets%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        7















        it seems that routers decapsulate the frame on arrival, and
        encapsulate the packet in a frame in order to send it.




        Yes. A router must strip off the layer-2 frame in order to get to the layer-3 packet. The router then routes the packet to the next interface toward the destination, based on the layer-3 destination address. At the next interface, it must build a new frame for the packet for the layer-2 protocol on the next interface, which could be a completely different layer-2 protocol than the one used on the first interface.




        But why people talk about packets forwarding ?




        That is what the router is doing. It forwards packets from one interface to another interface (one network to another network).




        Also, when you ping a domain name, you have "packets transmitted,
        received". Is it an abuse of language?




        No. Ping is an application that uses ICMP echo requests and replies, and ICMP is an integral part of IP, which is a layer-3 protocol that uses packets.




        So, if I eavesdrop the link between two routers, do I see frames (with
        mac addresses) or packets ?




        Not all layer-2 protocols use MAC addresses, Only the IEEE LAN protocols use MAC addresses. Often, the layer-2 connection between routers will use something like PPP, which has no addressing on the layer-2 frames because there are only two possible endpoints. If the connection between the two routers is an IEEE protocol, then, yes, you will see frames with MAC addresses. If it is frame relay, you will see frames with DLCIs; with ATM, you will see frames with VPI/VCI; etc.






        share|improve this answer






























          7















          it seems that routers decapsulate the frame on arrival, and
          encapsulate the packet in a frame in order to send it.




          Yes. A router must strip off the layer-2 frame in order to get to the layer-3 packet. The router then routes the packet to the next interface toward the destination, based on the layer-3 destination address. At the next interface, it must build a new frame for the packet for the layer-2 protocol on the next interface, which could be a completely different layer-2 protocol than the one used on the first interface.




          But why people talk about packets forwarding ?




          That is what the router is doing. It forwards packets from one interface to another interface (one network to another network).




          Also, when you ping a domain name, you have "packets transmitted,
          received". Is it an abuse of language?




          No. Ping is an application that uses ICMP echo requests and replies, and ICMP is an integral part of IP, which is a layer-3 protocol that uses packets.




          So, if I eavesdrop the link between two routers, do I see frames (with
          mac addresses) or packets ?




          Not all layer-2 protocols use MAC addresses, Only the IEEE LAN protocols use MAC addresses. Often, the layer-2 connection between routers will use something like PPP, which has no addressing on the layer-2 frames because there are only two possible endpoints. If the connection between the two routers is an IEEE protocol, then, yes, you will see frames with MAC addresses. If it is frame relay, you will see frames with DLCIs; with ATM, you will see frames with VPI/VCI; etc.






          share|improve this answer




























            7












            7








            7








            it seems that routers decapsulate the frame on arrival, and
            encapsulate the packet in a frame in order to send it.




            Yes. A router must strip off the layer-2 frame in order to get to the layer-3 packet. The router then routes the packet to the next interface toward the destination, based on the layer-3 destination address. At the next interface, it must build a new frame for the packet for the layer-2 protocol on the next interface, which could be a completely different layer-2 protocol than the one used on the first interface.




            But why people talk about packets forwarding ?




            That is what the router is doing. It forwards packets from one interface to another interface (one network to another network).




            Also, when you ping a domain name, you have "packets transmitted,
            received". Is it an abuse of language?




            No. Ping is an application that uses ICMP echo requests and replies, and ICMP is an integral part of IP, which is a layer-3 protocol that uses packets.




            So, if I eavesdrop the link between two routers, do I see frames (with
            mac addresses) or packets ?




            Not all layer-2 protocols use MAC addresses, Only the IEEE LAN protocols use MAC addresses. Often, the layer-2 connection between routers will use something like PPP, which has no addressing on the layer-2 frames because there are only two possible endpoints. If the connection between the two routers is an IEEE protocol, then, yes, you will see frames with MAC addresses. If it is frame relay, you will see frames with DLCIs; with ATM, you will see frames with VPI/VCI; etc.






            share|improve this answer
















            it seems that routers decapsulate the frame on arrival, and
            encapsulate the packet in a frame in order to send it.




            Yes. A router must strip off the layer-2 frame in order to get to the layer-3 packet. The router then routes the packet to the next interface toward the destination, based on the layer-3 destination address. At the next interface, it must build a new frame for the packet for the layer-2 protocol on the next interface, which could be a completely different layer-2 protocol than the one used on the first interface.




            But why people talk about packets forwarding ?




            That is what the router is doing. It forwards packets from one interface to another interface (one network to another network).




            Also, when you ping a domain name, you have "packets transmitted,
            received". Is it an abuse of language?




            No. Ping is an application that uses ICMP echo requests and replies, and ICMP is an integral part of IP, which is a layer-3 protocol that uses packets.




            So, if I eavesdrop the link between two routers, do I see frames (with
            mac addresses) or packets ?




            Not all layer-2 protocols use MAC addresses, Only the IEEE LAN protocols use MAC addresses. Often, the layer-2 connection between routers will use something like PPP, which has no addressing on the layer-2 frames because there are only two possible endpoints. If the connection between the two routers is an IEEE protocol, then, yes, you will see frames with MAC addresses. If it is frame relay, you will see frames with DLCIs; with ATM, you will see frames with VPI/VCI; etc.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Feb 5 at 17:51

























            answered Feb 5 at 15:17









            Ron MaupinRon Maupin

            67.9k1369126




            67.9k1369126























                2














                In the case of eavesdropping a web fetch over an ethernet-connected router, you could consider yourself to be looking at voltages, bits, bytes, frames, packets, segments, streams, or pages.



                For an analogy, consider whether you hear words or sounds when someone speaks to you. Obviously, it's both, and which you focus on depends on what you're thinking about.






                share|improve this answer




























                  2














                  In the case of eavesdropping a web fetch over an ethernet-connected router, you could consider yourself to be looking at voltages, bits, bytes, frames, packets, segments, streams, or pages.



                  For an analogy, consider whether you hear words or sounds when someone speaks to you. Obviously, it's both, and which you focus on depends on what you're thinking about.






                  share|improve this answer


























                    2












                    2








                    2







                    In the case of eavesdropping a web fetch over an ethernet-connected router, you could consider yourself to be looking at voltages, bits, bytes, frames, packets, segments, streams, or pages.



                    For an analogy, consider whether you hear words or sounds when someone speaks to you. Obviously, it's both, and which you focus on depends on what you're thinking about.






                    share|improve this answer













                    In the case of eavesdropping a web fetch over an ethernet-connected router, you could consider yourself to be looking at voltages, bits, bytes, frames, packets, segments, streams, or pages.



                    For an analogy, consider whether you hear words or sounds when someone speaks to you. Obviously, it's both, and which you focus on depends on what you're thinking about.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Feb 5 at 16:12









                    jonathanjojonathanjo

                    11.9k1936




                    11.9k1936























                        0















                        Perhaps it's a novice question, but does a router send/receive frames?




                        Yes




                        When I read about this subject, it seems that routers decapsulate the
                        frame on arrival, and encapsulate the packet in a frame in order to
                        send it.




                        That is correct. L2 router needs to decapsulate packet data from it's framing headers (and trailers) on source port, then reencapsulate it in another frame for sending on outgoing port.
                        That's because frame headers will change (for example, router might receive Ethernet II frame on one port, decapsulate packet data, and reencapsulate with different source MAC and checksum before sending it on outgoing port).



                        Also, input and output ports could be of different type, so entirely different frame (like for example Frame relay could be constructed, but it will still hold the same payload ("packet data")




                        But why do people talk about packets forwarding? Also, when you ping a
                        domain name, you have "packets transmitted, received". Is it an abuse
                        of language?




                        More like ambiguity of language. You can view Network packet and Frame as synonyms. Or you can use "packet" to mean frame payload (that is just "packet data" from frame, as in for example commonly used "TCP/IP packet").




                        So, if I eavesdrop the link between two routers, do I see frames (with
                        MAC addresses) or packets ?




                        You would see complete frames, including it's headers (like source/destination MAC on Ethernet)






                        share|improve this answer




























                          0















                          Perhaps it's a novice question, but does a router send/receive frames?




                          Yes




                          When I read about this subject, it seems that routers decapsulate the
                          frame on arrival, and encapsulate the packet in a frame in order to
                          send it.




                          That is correct. L2 router needs to decapsulate packet data from it's framing headers (and trailers) on source port, then reencapsulate it in another frame for sending on outgoing port.
                          That's because frame headers will change (for example, router might receive Ethernet II frame on one port, decapsulate packet data, and reencapsulate with different source MAC and checksum before sending it on outgoing port).



                          Also, input and output ports could be of different type, so entirely different frame (like for example Frame relay could be constructed, but it will still hold the same payload ("packet data")




                          But why do people talk about packets forwarding? Also, when you ping a
                          domain name, you have "packets transmitted, received". Is it an abuse
                          of language?




                          More like ambiguity of language. You can view Network packet and Frame as synonyms. Or you can use "packet" to mean frame payload (that is just "packet data" from frame, as in for example commonly used "TCP/IP packet").




                          So, if I eavesdrop the link between two routers, do I see frames (with
                          MAC addresses) or packets ?




                          You would see complete frames, including it's headers (like source/destination MAC on Ethernet)






                          share|improve this answer


























                            0












                            0








                            0








                            Perhaps it's a novice question, but does a router send/receive frames?




                            Yes




                            When I read about this subject, it seems that routers decapsulate the
                            frame on arrival, and encapsulate the packet in a frame in order to
                            send it.




                            That is correct. L2 router needs to decapsulate packet data from it's framing headers (and trailers) on source port, then reencapsulate it in another frame for sending on outgoing port.
                            That's because frame headers will change (for example, router might receive Ethernet II frame on one port, decapsulate packet data, and reencapsulate with different source MAC and checksum before sending it on outgoing port).



                            Also, input and output ports could be of different type, so entirely different frame (like for example Frame relay could be constructed, but it will still hold the same payload ("packet data")




                            But why do people talk about packets forwarding? Also, when you ping a
                            domain name, you have "packets transmitted, received". Is it an abuse
                            of language?




                            More like ambiguity of language. You can view Network packet and Frame as synonyms. Or you can use "packet" to mean frame payload (that is just "packet data" from frame, as in for example commonly used "TCP/IP packet").




                            So, if I eavesdrop the link between two routers, do I see frames (with
                            MAC addresses) or packets ?




                            You would see complete frames, including it's headers (like source/destination MAC on Ethernet)






                            share|improve this answer














                            Perhaps it's a novice question, but does a router send/receive frames?




                            Yes




                            When I read about this subject, it seems that routers decapsulate the
                            frame on arrival, and encapsulate the packet in a frame in order to
                            send it.




                            That is correct. L2 router needs to decapsulate packet data from it's framing headers (and trailers) on source port, then reencapsulate it in another frame for sending on outgoing port.
                            That's because frame headers will change (for example, router might receive Ethernet II frame on one port, decapsulate packet data, and reencapsulate with different source MAC and checksum before sending it on outgoing port).



                            Also, input and output ports could be of different type, so entirely different frame (like for example Frame relay could be constructed, but it will still hold the same payload ("packet data")




                            But why do people talk about packets forwarding? Also, when you ping a
                            domain name, you have "packets transmitted, received". Is it an abuse
                            of language?




                            More like ambiguity of language. You can view Network packet and Frame as synonyms. Or you can use "packet" to mean frame payload (that is just "packet data" from frame, as in for example commonly used "TCP/IP packet").




                            So, if I eavesdrop the link between two routers, do I see frames (with
                            MAC addresses) or packets ?




                            You would see complete frames, including it's headers (like source/destination MAC on Ethernet)







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Feb 6 at 0:24









                            Matija NalisMatija Nalis

                            1034




                            1034






























                                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%2f56643%2fdoes-a-router-send-frames-or-packets%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

                                Human spaceflight

                                Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                                張江高科駅