In article , GS wrote: :What is the main difference between Router and Switch?.
We discussed this about two weeks ago:
formatting link
:Both :functionality are part of Software or Hardware?.
No, that isn't a relevant distinction.
:Why both are required?.
They usually operate on different data layers. A switch usually operates on Layer 2 (link layer), whereas a switch usually operates on Layer 3 (IP layer).
:Is data link layer is same as Mac layer?.
I've never heard of a "Mac layer". MAC (Media Access Control) addresses are a technique that -some- data link layers use to get data to the right point.
:Does every Router had one WAN port as uplink and many ports are :downlink right?.
No and No. A router may have any number of WAN ports, including none. There is no meaningful 'uplink' or 'downlink' for most routers.
You should practically ignore "uplink" and "downlink" when trying to figure out the difference between routers and switches. An uplink or downlink is just an interface, perhaps faster than the other interfaces (but not necessarily), and for the most part the only special property it might have is being wired in reverse so you can use a straight-through cable to connect to devices.
On some devices, there are additional special properties: for example on some of Cisco's middle-aged switches, the uplinks were the only ports that could take part in a GigaChannel, or perhaps the only ports that could have ACLs applied to them. This is, though, just an implementation detail and not a defining factor in switch vs router.
:Is the switch also samething?.
No.
:Can I connect one Router's LAN port to one more Router's WAN port, this :way I can maintain two subnets?.
If it is a "WAN port" it might not be ethernet like the LAN port likely is. If they are both ethernet, go ahead... but be advised that most routers allow you to have multiple subnets.