2
Theoretical question. Can every computer on the Internet be connected directly to router instead through switch?
This can be paraphrased as can we make a network setup where we replace all switches with routers (or NAT routers)?
I'm not sure but maybe this boils down to the why do we need MAC if we have IP asked already here: Why do we need MAC address? and here What is the exact use of a MAC address?.
Most of the answers do not satisfy me, like we need Layer 2 addressing, IP is layer 3..., or inter-operation of two protocols.
Let me explain couple of counterarguments:
If end device has a direct link to router it can give him the IP directly, no need to pre-communicate with MACs.
MACs are unique and can be blocked, but they can also be faked. I don't see other need for unique addressing.
Why map MAC with ports (links) when we can map IP with ports (links).
I'm motivated by our home networks where we don't really need switches instead we connect devices with NAT routers.
So without link layer switching and addressing it would go like this:
- I connect to router with dedicated link (wireless or ethernet)
- It gives IP address to that link
- I continue communication with Internet hidden behind NAT communicating with my router on my dedicated link
Can you say what feature would we miss if we eliminate all the switches?
Is there some issue you're trying to solve, or are you looking for a wide-ranging discussion on the pros and cons of switched vs routed networks of the size of the entire internet? Right now this question really doesn't feel like the right sort of question for Superuser. – music2myear – 2017-11-01T21:19:48.000
I'm not solving practical problem. Want to understand why link level addressing. – croraf – 2017-11-01T21:20:55.757
You want to understand why link level addressing... what? – music2myear – 2017-11-01T21:21:24.293
why it exists.- – croraf – 2017-11-01T21:21:58.577
1Oh, ok. "Why" questions need open discussion, a forum. Superuser is not about open discussion, but is about focused, specific questions and good solid answers. It's not that we don't want your questions here, it is that this is not the place you are likely to get the best answer to this sort of question, and this sort of question detracts from what this place is about. – music2myear – 2017-11-01T21:24:23.503
I partially agree. If I understand correctly from your comment, what I posted is a sane question for open discussion, and actually has a name "routed vs switched networks"? I thought I'm missing something basic and wanted the answers to point me that but seems the matter is a bit more delicate. Now I found more info here: https://serverfault.com/questions/222963/why-should-i-use-a-switched-network-over-routed?rq=1
– croraf – 2017-11-02T08:57:16.917The bigger issue I see is that by including "the entire internet" as your focus you have made your question necessarily theoretical with no real way of making it practical without substantial change. If you could find a way to narrow the question so that it is more clear that you are asking for practical reasons to choose switched over routed networks, that would make more sense, but would still be borderline because the final decision and reasons come down to you personally and things we do not and cannot know about you. – music2myear – 2017-11-02T16:02:54.380