Do all network devices need to make routing decisions, regardless of communication across networks or within...
From Hunt's TCP/IP Network Adminstration:
Gateways route data between networks, but all network devices, hosts as well as
gateways, must make routing decisions.
Is it correct that routing decisions are made only for communication across different networks?
For communication within a network (whether it is in an internetwork or not),
does any device in the network need to make routing decisions?
does any device in the network necessarily have a routing table or something similar?
If a device makes routing decision, that that mean the device has a routing table or something similar? If a device has a routing table or something similar, does it make routing decision?
Or, do only gateway devices have to make routing decisions and have routing tables or something similar?
I have these questions because my Linux laptop isn't a gateway in the local wifi network, but has a routing table to my surprise. Is it cecause any device in a network has a routing table? My laptop doesn't seem to connect two networks, because the network for all the loopback addresses and the wifi network can't communicate with each other. But its routing table shows a route for communicating with other devices in the same wifi network, and a default route for all other destinations outside the wifi network.
Thanks.
routing
add a comment |
From Hunt's TCP/IP Network Adminstration:
Gateways route data between networks, but all network devices, hosts as well as
gateways, must make routing decisions.
Is it correct that routing decisions are made only for communication across different networks?
For communication within a network (whether it is in an internetwork or not),
does any device in the network need to make routing decisions?
does any device in the network necessarily have a routing table or something similar?
If a device makes routing decision, that that mean the device has a routing table or something similar? If a device has a routing table or something similar, does it make routing decision?
Or, do only gateway devices have to make routing decisions and have routing tables or something similar?
I have these questions because my Linux laptop isn't a gateway in the local wifi network, but has a routing table to my surprise. Is it cecause any device in a network has a routing table? My laptop doesn't seem to connect two networks, because the network for all the loopback addresses and the wifi network can't communicate with each other. But its routing table shows a route for communicating with other devices in the same wifi network, and a default route for all other destinations outside the wifi network.
Thanks.
routing
add a comment |
From Hunt's TCP/IP Network Adminstration:
Gateways route data between networks, but all network devices, hosts as well as
gateways, must make routing decisions.
Is it correct that routing decisions are made only for communication across different networks?
For communication within a network (whether it is in an internetwork or not),
does any device in the network need to make routing decisions?
does any device in the network necessarily have a routing table or something similar?
If a device makes routing decision, that that mean the device has a routing table or something similar? If a device has a routing table or something similar, does it make routing decision?
Or, do only gateway devices have to make routing decisions and have routing tables or something similar?
I have these questions because my Linux laptop isn't a gateway in the local wifi network, but has a routing table to my surprise. Is it cecause any device in a network has a routing table? My laptop doesn't seem to connect two networks, because the network for all the loopback addresses and the wifi network can't communicate with each other. But its routing table shows a route for communicating with other devices in the same wifi network, and a default route for all other destinations outside the wifi network.
Thanks.
routing
From Hunt's TCP/IP Network Adminstration:
Gateways route data between networks, but all network devices, hosts as well as
gateways, must make routing decisions.
Is it correct that routing decisions are made only for communication across different networks?
For communication within a network (whether it is in an internetwork or not),
does any device in the network need to make routing decisions?
does any device in the network necessarily have a routing table or something similar?
If a device makes routing decision, that that mean the device has a routing table or something similar? If a device has a routing table or something similar, does it make routing decision?
Or, do only gateway devices have to make routing decisions and have routing tables or something similar?
I have these questions because my Linux laptop isn't a gateway in the local wifi network, but has a routing table to my surprise. Is it cecause any device in a network has a routing table? My laptop doesn't seem to connect two networks, because the network for all the loopback addresses and the wifi network can't communicate with each other. But its routing table shows a route for communicating with other devices in the same wifi network, and a default route for all other destinations outside the wifi network.
Thanks.
routing
routing
edited Mar 27 at 12:18
Tim
asked Mar 27 at 12:09
TimTim
665518
665518
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
Every IP device has a routing table, and therefore makes a routing decision. It may be quite simple with only two entries, but fundamentally, a device needs to decide if the destination is on the directly connected network or not. If not, it forwards the packet to the gateway. For most devices like PCs, there is only a default gateway, but there can be more than one.
1
Three entries usually. There's also localhost.
– Zan Lynx
Mar 27 at 23:07
@ZanLynx You’re right. I forgot to mention that.
– Ron Trunk
Mar 27 at 23:10
add a comment |
Theoretically, consider a computer that has an IP address of 192.168.1.3/24
and wants to send some data to the IP address 192.168.2.5/24
then it should make a subnet checking to see if the IP address it wants to reach is in the same network or not; to be able to decide to forward the packet to its gateway or not.
when you have a subnet mask of /24
which refers in binary to 11111111.11111111.11111111.00000000
. Zeros are the places you can modify your IP address in the "same network". If you change anything before zeros start, it means you are changing the network you are in and to be able to communicate with such an IP you need a router between two of them. After all, being able to make this decision is considered as making a routing decision.
Hope the answer helps.
add a comment |
Every host needs to decide what to do with the packets it has generated. For a typical single homed host configuration that means one of three things.
- Loop them back from the output queue to the input queue and process them locally.
- Send them to another host on the same subnet (for example by ARPing for the destination's MAC address)
- Send them out of the network by sending them to the default gateway (for example by ARPing for the default gateway's MAC address).
If you read the early RFCs then they are written on the assumption that this logic will be coded explicitly.
However modern operating systems (at least full-feature ones) support multi-homing and acting as a router (though the latter is typically disabled by default). So they use an explicit routing table to decide what to do with packets. The interface configurations are used to fill-out default entries in this routing table, but entries can also be added manually.
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
});
}
});
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%2f58051%2fdo-all-network-devices-need-to-make-routing-decisions-regardless-of-communicati%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
Every IP device has a routing table, and therefore makes a routing decision. It may be quite simple with only two entries, but fundamentally, a device needs to decide if the destination is on the directly connected network or not. If not, it forwards the packet to the gateway. For most devices like PCs, there is only a default gateway, but there can be more than one.
1
Three entries usually. There's also localhost.
– Zan Lynx
Mar 27 at 23:07
@ZanLynx You’re right. I forgot to mention that.
– Ron Trunk
Mar 27 at 23:10
add a comment |
Every IP device has a routing table, and therefore makes a routing decision. It may be quite simple with only two entries, but fundamentally, a device needs to decide if the destination is on the directly connected network or not. If not, it forwards the packet to the gateway. For most devices like PCs, there is only a default gateway, but there can be more than one.
1
Three entries usually. There's also localhost.
– Zan Lynx
Mar 27 at 23:07
@ZanLynx You’re right. I forgot to mention that.
– Ron Trunk
Mar 27 at 23:10
add a comment |
Every IP device has a routing table, and therefore makes a routing decision. It may be quite simple with only two entries, but fundamentally, a device needs to decide if the destination is on the directly connected network or not. If not, it forwards the packet to the gateway. For most devices like PCs, there is only a default gateway, but there can be more than one.
Every IP device has a routing table, and therefore makes a routing decision. It may be quite simple with only two entries, but fundamentally, a device needs to decide if the destination is on the directly connected network or not. If not, it forwards the packet to the gateway. For most devices like PCs, there is only a default gateway, but there can be more than one.
answered Mar 27 at 12:14
Ron TrunkRon Trunk
39.5k33780
39.5k33780
1
Three entries usually. There's also localhost.
– Zan Lynx
Mar 27 at 23:07
@ZanLynx You’re right. I forgot to mention that.
– Ron Trunk
Mar 27 at 23:10
add a comment |
1
Three entries usually. There's also localhost.
– Zan Lynx
Mar 27 at 23:07
@ZanLynx You’re right. I forgot to mention that.
– Ron Trunk
Mar 27 at 23:10
1
1
Three entries usually. There's also localhost.
– Zan Lynx
Mar 27 at 23:07
Three entries usually. There's also localhost.
– Zan Lynx
Mar 27 at 23:07
@ZanLynx You’re right. I forgot to mention that.
– Ron Trunk
Mar 27 at 23:10
@ZanLynx You’re right. I forgot to mention that.
– Ron Trunk
Mar 27 at 23:10
add a comment |
Theoretically, consider a computer that has an IP address of 192.168.1.3/24
and wants to send some data to the IP address 192.168.2.5/24
then it should make a subnet checking to see if the IP address it wants to reach is in the same network or not; to be able to decide to forward the packet to its gateway or not.
when you have a subnet mask of /24
which refers in binary to 11111111.11111111.11111111.00000000
. Zeros are the places you can modify your IP address in the "same network". If you change anything before zeros start, it means you are changing the network you are in and to be able to communicate with such an IP you need a router between two of them. After all, being able to make this decision is considered as making a routing decision.
Hope the answer helps.
add a comment |
Theoretically, consider a computer that has an IP address of 192.168.1.3/24
and wants to send some data to the IP address 192.168.2.5/24
then it should make a subnet checking to see if the IP address it wants to reach is in the same network or not; to be able to decide to forward the packet to its gateway or not.
when you have a subnet mask of /24
which refers in binary to 11111111.11111111.11111111.00000000
. Zeros are the places you can modify your IP address in the "same network". If you change anything before zeros start, it means you are changing the network you are in and to be able to communicate with such an IP you need a router between two of them. After all, being able to make this decision is considered as making a routing decision.
Hope the answer helps.
add a comment |
Theoretically, consider a computer that has an IP address of 192.168.1.3/24
and wants to send some data to the IP address 192.168.2.5/24
then it should make a subnet checking to see if the IP address it wants to reach is in the same network or not; to be able to decide to forward the packet to its gateway or not.
when you have a subnet mask of /24
which refers in binary to 11111111.11111111.11111111.00000000
. Zeros are the places you can modify your IP address in the "same network". If you change anything before zeros start, it means you are changing the network you are in and to be able to communicate with such an IP you need a router between two of them. After all, being able to make this decision is considered as making a routing decision.
Hope the answer helps.
Theoretically, consider a computer that has an IP address of 192.168.1.3/24
and wants to send some data to the IP address 192.168.2.5/24
then it should make a subnet checking to see if the IP address it wants to reach is in the same network or not; to be able to decide to forward the packet to its gateway or not.
when you have a subnet mask of /24
which refers in binary to 11111111.11111111.11111111.00000000
. Zeros are the places you can modify your IP address in the "same network". If you change anything before zeros start, it means you are changing the network you are in and to be able to communicate with such an IP you need a router between two of them. After all, being able to make this decision is considered as making a routing decision.
Hope the answer helps.
answered Mar 27 at 12:38
metinmetin
664
664
add a comment |
add a comment |
Every host needs to decide what to do with the packets it has generated. For a typical single homed host configuration that means one of three things.
- Loop them back from the output queue to the input queue and process them locally.
- Send them to another host on the same subnet (for example by ARPing for the destination's MAC address)
- Send them out of the network by sending them to the default gateway (for example by ARPing for the default gateway's MAC address).
If you read the early RFCs then they are written on the assumption that this logic will be coded explicitly.
However modern operating systems (at least full-feature ones) support multi-homing and acting as a router (though the latter is typically disabled by default). So they use an explicit routing table to decide what to do with packets. The interface configurations are used to fill-out default entries in this routing table, but entries can also be added manually.
add a comment |
Every host needs to decide what to do with the packets it has generated. For a typical single homed host configuration that means one of three things.
- Loop them back from the output queue to the input queue and process them locally.
- Send them to another host on the same subnet (for example by ARPing for the destination's MAC address)
- Send them out of the network by sending them to the default gateway (for example by ARPing for the default gateway's MAC address).
If you read the early RFCs then they are written on the assumption that this logic will be coded explicitly.
However modern operating systems (at least full-feature ones) support multi-homing and acting as a router (though the latter is typically disabled by default). So they use an explicit routing table to decide what to do with packets. The interface configurations are used to fill-out default entries in this routing table, but entries can also be added manually.
add a comment |
Every host needs to decide what to do with the packets it has generated. For a typical single homed host configuration that means one of three things.
- Loop them back from the output queue to the input queue and process them locally.
- Send them to another host on the same subnet (for example by ARPing for the destination's MAC address)
- Send them out of the network by sending them to the default gateway (for example by ARPing for the default gateway's MAC address).
If you read the early RFCs then they are written on the assumption that this logic will be coded explicitly.
However modern operating systems (at least full-feature ones) support multi-homing and acting as a router (though the latter is typically disabled by default). So they use an explicit routing table to decide what to do with packets. The interface configurations are used to fill-out default entries in this routing table, but entries can also be added manually.
Every host needs to decide what to do with the packets it has generated. For a typical single homed host configuration that means one of three things.
- Loop them back from the output queue to the input queue and process them locally.
- Send them to another host on the same subnet (for example by ARPing for the destination's MAC address)
- Send them out of the network by sending them to the default gateway (for example by ARPing for the default gateway's MAC address).
If you read the early RFCs then they are written on the assumption that this logic will be coded explicitly.
However modern operating systems (at least full-feature ones) support multi-homing and acting as a router (though the latter is typically disabled by default). So they use an explicit routing table to decide what to do with packets. The interface configurations are used to fill-out default entries in this routing table, but entries can also be added manually.
answered Mar 29 at 18:40
Peter GreenPeter Green
8,14221229
8,14221229
add a comment |
add a comment |
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%2f58051%2fdo-all-network-devices-need-to-make-routing-decisions-regardless-of-communicati%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