switch vs router

LumbergTech

Diamond Member
Sep 15, 2005
3,622
1
0
Can someone give me a clear explanation about what the difference between a switch and a router is? I keep reading page after page and I can never get a clear idea of how they differ
 

Rifter

Lifer
Oct 9, 1999
11,522
751
126
A Switch connects computers together on a network so they can communicate with each other. It has nothing to do with internet connection sharing.

A Router has 2 sides, one connects to a WAN like your cable/DSL modem but could be any ethernet internet connection and then shares this single IP address to the other side which connects to your LAN. Some routers have 1 WAN and 1 LAN port so you would need to combine your router with a switch to share the connection accross your LAN. Some routers have 1 WAN and a built in switch providing multiple LAN ports.

I hope this has helped.
 

jlazzaro

Golden Member
May 6, 2004
1,743
0
0
switches forward frames on local area networks based upon the source-mac address table. routers route packets to next-hop addresses using (traditionally) destination IP addresses.

most SOHO routers contain a combination router and switch. LAN communication with other computer in your network are strictly switched, since they never leave your network segment (ie 192.168.1.0/24). once you need to communicate with an address outside your segment (ie website on the internet), your computer will forward those packets to the router (aka default gateway) which in turn routes the packets to the service provider and out to the internet.

as disgruntled stated, the OSI model is the basis for these processes.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
A Router has 2 sides, one connects to a WAN like your cable/DSL modem but could be any ethernet internet connection and then shares this single IP address to the other side which connects to your LAN. Some routers have 1 WAN and 1 LAN port so you would need to combine your router with a switch to share the connection accross your LAN. Some routers have 1 WAN and a built in switch providing multiple LAN ports.

What you describe is generally only true on SOHO routers. A router connects two different networks, nothing more. NAT and PAT are available on every router that I've touched however they're not required for a device to be a router.
 

RadiclDreamer

Diamond Member
Aug 8, 2004
8,622
40
91
Switches are a layer 2 device and facilitate communications on a local network
Routers are a layer 3 device and facilitate communications on different networks


For example, a switch allows you and 4 friends play a network game on a local network, that is your home/office network.
A router would allow that network to speak to the internet or another network somewhere else.


Anything that you buy for you house is typically a 4-5 port switch/router all in one.