What is the difference between a router and a switch?

On our way to dinner Friday, my Dad and I were wondering what is the exact difference between a router and a switch.  Sounds like something basic most anybody with a home network should know, but at best all we could do was guess/BS our way through the answer.  Wikipedia to the rescue.

Router

A router connects networks together, by extracting the destination for a packet and selecting the best path to that destination, then forwarding data packets to the next device.  We were pretty spot on with our deduction of a router, that it is a device smart enough to connect two subnets (logical networks) like your home network and your ISP.  A commodity linux PC can be used as a route.

Switch

The term switch is a little less specific, sometimes used interchangably with "router", and is really more of a maketing term than a technical term.  On the low end, a switch is similar to a simple hub, with enough intelligence to inspect packets and route them only to the destination device.  Your run-of-the-mill linksys or netgear hub isn't so smart and just broadcasts packets to all devices on the network, letting them sort out what packets are intended for each on their own. 

By the way, if you don't think a switch makes much of a difference, when I replaced our hub with a switch at home, there was a noticeable increase in file transfer speed between computers on the switch.  If won't make your internet connection faster, since switches and hubs are faster than what your ISP provides, but with less packet noise flying around among computers you should notice a difference too.

Related Items

One of the joys of testing with IE8 is the added google time that I get to spend hunting down bugs and solutions. If...
Anyone who can work in two in-context Monty Python references deserves to be read. By the way, while Wall Street may be...
While testing some updates to one of our Facebook applications today, I ran into an odd error message on IE8.  The...
 Google's approach to speeding up the web, explained by Kimsall below, is in stark contrast to Microsoft's...
You would think something named "Domain Name Registration" would be boring service that the overwhelming majority of...