Does a router send frames or packets?
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
New contributor
add a comment |
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
New contributor
1
Unless the packet is large enough to require fragmentation, there's usually a one-to-one correspondence between packets and frames.
– Barmar
4 hours ago
A router (with an Ethernet interface) sends packets inside of frames. This is what "encapsulation" is about.
– chrylis
1 hour ago
add a comment |
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
New contributor
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
routing router layer2 layer3 icmp
New contributor
New contributor
edited 7 hours ago
Ron Maupin♦
64.4k1367120
64.4k1367120
New contributor
asked 10 hours ago
SmbboSmbbo
111
111
New contributor
New contributor
1
Unless the packet is large enough to require fragmentation, there's usually a one-to-one correspondence between packets and frames.
– Barmar
4 hours ago
A router (with an Ethernet interface) sends packets inside of frames. This is what "encapsulation" is about.
– chrylis
1 hour ago
add a comment |
1
Unless the packet is large enough to require fragmentation, there's usually a one-to-one correspondence between packets and frames.
– Barmar
4 hours ago
A router (with an Ethernet interface) sends packets inside of frames. This is what "encapsulation" is about.
– chrylis
1 hour ago
1
1
Unless the packet is large enough to require fragmentation, there's usually a one-to-one correspondence between packets and frames.
– Barmar
4 hours ago
Unless the packet is large enough to require fragmentation, there's usually a one-to-one correspondence between packets and frames.
– Barmar
4 hours ago
A router (with an Ethernet interface) sends packets inside of frames. This is what "encapsulation" is about.
– chrylis
1 hour ago
A router (with an Ethernet interface) sends packets inside of frames. This is what "encapsulation" is about.
– chrylis
1 hour ago
add a comment |
3 Answers
3
active
oldest
votes
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.
add a comment |
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.
add a comment |
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)
New contributor
add a comment |
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
});
}
});
Smbbo is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%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
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.
add a comment |
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.
add a comment |
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.
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.
edited 7 hours ago
answered 10 hours ago
Ron Maupin♦Ron Maupin
64.4k1367120
64.4k1367120
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered 9 hours ago
jonathanjojonathanjo
11.4k1934
11.4k1934
add a comment |
add a comment |
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)
New contributor
add a comment |
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)
New contributor
add a comment |
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)
New contributor
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)
New contributor
New contributor
answered 1 hour ago
Matija NalisMatija Nalis
1013
1013
New contributor
New contributor
add a comment |
add a comment |
Smbbo is a new contributor. Be nice, and check out our Code of Conduct.
Smbbo is a new contributor. Be nice, and check out our Code of Conduct.
Smbbo is a new contributor. Be nice, and check out our Code of Conduct.
Smbbo is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Network Engineering Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fnetworkengineering.stackexchange.com%2fquestions%2f56643%2fdoes-a-router-send-frames-or-packets%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Unless the packet is large enough to require fragmentation, there's usually a one-to-one correspondence between packets and frames.
– Barmar
4 hours ago
A router (with an Ethernet interface) sends packets inside of frames. This is what "encapsulation" is about.
– chrylis
1 hour ago