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?