Notices

Overclockers Forums > Software > Internet, Networking, and Security
Internet, Networking, and Security Networking and Viruses/Malware trouble. Get the answers here.
Forum Jump

Networking Question

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 10-18-07, 08:45 AM Thread Starter   #1
Caust1c
Member

 
Caust1c's Avatar 

Join Date: Sep 2007
Location: NorCal

 
Networking Question


What is the difference between a switch and a router? =)

__________________
The Cake is a Lie! [<3]

Jag känner en bott, hon heter Anna:
abit IN9 32X Max | Intel Core 2 Duo E6750 | 2GB Ballistix DDR2 800 | Evga 8800GT
Corsair 520 HX | X-Fi Xtreme Music | Antec Nine Hundred

Caust1c is offline   QUOTE Thanks
Old 10-18-07, 09:43 AM   #2
CGR
Member

 
CGR's Avatar 

Join Date: Jan 2001
Location: Lower NY

10 Year Badge
 
Easiest way to explain it is:

A switch forwards traffic between machines on a local network

A router forwards traffic between networks.

__________________
Main System:.................................................. ......................Second System:
DFI BloodIron P35-T2RL w/ Q6600 GO@ 3.2 (9x360), 1.4v....DFI Ultra-D w/Opteron 170 @ 2.7
G.skill 4GB (2x2gb).................................................. ..............G.Skill Extreme 2GB (2x1gb)
HIS 4850 680/1108.................................................. .............Nvidia 7600GT
WD VRaptor 300gb/Seagate 1TB..........................................Raptor 74gb/Seagate 200gb
OCZ GameXtreme 600SLI

CGR is offline   QUOTE Thanks
Old 10-18-07, 09:47 AM   #3
curtis1552
Member

 
curtis1552's Avatar 

Join Date: Aug 2007
Location: Dayton, Ohio

 
Routers are for Internet connectivity through DSL, broadband, etc. - they connect your computers to an ISP
A switch connects computers on a intra-net (a local network) usually contained within your home or office.
A router can also act as a switch. The router has more hardware/software/programming to analyze and sort incoming data and makes sure it is redirected to the correct destination.
A hub is a low-end switch, usually used in a residential network.

Wiki
Switch
Router

__________________
Desk Puter - Foxconn C51GU01; AMD X2 3800+ - Dual 2.0Ghz; 1.5gb RAM; Nvidia 6600GT pcie; Win 7 64 bit / Mint 9
NetBook - Acer Aspire One D250: 160Gb HDD: Win 7 / Backtrack 4 / Mint Debian / MeeGo
Server Puter - Supermicro X5DAE; Dual Processor - E7505 XEON - Dual 2.66Ghz; 2gb RAM: Nvidia 6600GT agp; Win 7 32 bit / Mint 9.
HEAT
Restarting a computer is not how you fix a problem...
I suffer from
Fenestraephobia
I don't think being turned on while turning it on is too high on the creepy list - freakdiablo

Last edited by curtis1552; 10-18-07 at 09:56 AM.
curtis1552 is offline   QUOTE Thanks
Old 10-18-07, 02:11 PM   #4
Madwand
Member



Join Date: Dec 2006

 
A typical consumer router has a switch built in. It's a real switch, and works pretty much just like an external switch, but is integrated with the router for convenience.

But what doesn't a simple switch do that you need a router for? A simple switch doesn't allow you to share a single Internet connection by itself. It doesn't allocate IPs to all the connecting devices (DHCP). It doesn't provide a firewall that blocks random incoming Internet traffic.
Madwand is offline   QUOTE Thanks
Old 10-18-07, 04:18 PM   #5
TempliNocturnus
Member

 
TempliNocturnus's Avatar 

Join Date: May 2006
Location: Where angels carry savage weapons

 
Read up on the OSI model. A switch operates on layer 2 (data link) and a router operates on layer 3 (network). A router looks at IP addresses, and determines where that packet wants to go, and which route to send it on to get to its destination.

A switch determines where to forward packets, based off of MAC addresses (layer 2 addresses). It's simply a box that is a single broadcast domain for everything plugged into it. A switch will memorize MAC addresses of every device that sends packets into it. It will then build a table of all known MAC addresses, and their corresponding physical ports, so that it then just has to make a brief connection between two ports when ever data is sent.

As apposed to a hub where all the bandwidth is shared, each device on the switch is given the full 10/100/1000 Mbps that the interface is rated for. A hub is simply a data bus, in which all the interfaces tap into. Therefore it's both a broadcast domain and a collision domain.
TempliNocturnus is offline   QUOTE Thanks
Old 10-18-07, 05:38 PM Thread Starter   #6
Caust1c
Member

 
Caust1c's Avatar 

Join Date: Sep 2007
Location: NorCal

 
Thanks for all the help everyone! I think I understand the difference now, but I was looking at This "switch" on the Manufacturer Product Page and it said that it would split the internet. I like it because I can take it to small LAN Parties too, and it doesnt cost too much. Any advice?

__________________
The Cake is a Lie! [<3]

Jag känner en bott, hon heter Anna:
abit IN9 32X Max | Intel Core 2 Duo E6750 | 2GB Ballistix DDR2 800 | Evga 8800GT
Corsair 520 HX | X-Fi Xtreme Music | Antec Nine Hundred

Caust1c is offline   QUOTE Thanks
Old 10-18-07, 06:18 PM   #7
bLack0ut
Member

 
bLack0ut's Avatar 

Join Date: Dec 2004

 
I'm probably wrong, but I always thought you can just plug the modem(dsl or cable) straight into the switch, and internet should be shared, as long as you manually set dhcp.

__________________
Heat
bLack0ut is offline   QUOTE Thanks
Old 10-18-07, 06:49 PM Thread Starter   #8
Caust1c
Member

 
Caust1c's Avatar 

Join Date: Sep 2007
Location: NorCal

 
Quote:
Originally Posted by bLack0ut View Post
I'm probably wrong, but I always thought you can just plug the modem(dsl or cable) straight into the switch, and internet should be shared, as long as you manually set dhcp.
I hope so, I definitely want a plug and play router/switch, one that will work with DSL. =)

__________________
The Cake is a Lie! [<3]

Jag känner en bott, hon heter Anna:
abit IN9 32X Max | Intel Core 2 Duo E6750 | 2GB Ballistix DDR2 800 | Evga 8800GT
Corsair 520 HX | X-Fi Xtreme Music | Antec Nine Hundred

Caust1c is offline   QUOTE Thanks
Old 10-18-07, 07:21 PM   #9
smokie mcpott
Member

 
smokie mcpott's Avatar 

Join Date: Jul 2006
Location: OKC

 
i have one of those switches on my network, and it will not split the internet. you will need a router of some sort to do that for you. there has to be a device in order to route the traffic to the correct ports for you.

__________________
My HeaT
smokie mcpott is offline   QUOTE Thanks
Old 10-18-07, 07:31 PM Thread Starter   #10
Caust1c
Member

 
Caust1c's Avatar 

Join Date: Sep 2007
Location: NorCal

 
Whats the point in getting a router and a switch if most routers include a switch? seems kinda redundant to me... and why aren't switches outdated then?

__________________
The Cake is a Lie! [<3]

Jag känner en bott, hon heter Anna:
abit IN9 32X Max | Intel Core 2 Duo E6750 | 2GB Ballistix DDR2 800 | Evga 8800GT
Corsair 520 HX | X-Fi Xtreme Music | Antec Nine Hundred

Caust1c is offline   QUOTE Thanks
Old 10-18-07, 07:44 PM   #11
smokie mcpott
Member

 
smokie mcpott's Avatar 

Join Date: Jul 2006
Location: OKC

 
a switch can be used to extend a network beyond what a router can do, without the extra cost of buying more routers
example:
internet
|
router
| | | |
pc1 pc2 pc3 switch(8 port)
|
pc4 pc5 pc6 pc7 pc8 pc9 pc10

do that on a standard 4 port router without using wireless and no other switches


then there are scenarios like my home network...i dont have a router, i have a bsd box that functions as my firewall/dhcp server, sending a signal to an 8 port gig switch and to extend the capabilities of that to other rooms in the house, i added a 5 port gig switch (the one linked) so that all i had to do was run 1 long cable instead of 4

i have a total of 10 systems online now in my house...plus 2 laptops running on wireless (AP also built in my PFSense/freeBSD firewall box)
i cant do that on a standard router

__________________
My HeaT
smokie mcpott is offline   QUOTE Thanks
Old 10-18-07, 07:57 PM   #12
schnikies79
Member

 
schnikies79's Avatar 

Join Date: Jul 2004

 
A switch is not outdated because not everyone needs a router. A company may have a PC that is the DHCP server and then have huge banks of switches that connect the computers togethor.

Also, a router (consumer) usually has 4 ports. If you need more than that, you need a switch.

__________________
Gave up messing with computers for a bit. It's just my Macbook and my iPhone. :)

Poop!
schnikies79 is offline   QUOTE Thanks
Old 10-18-07, 08:51 PM Thread Starter   #13
Caust1c
Member

 
Caust1c's Avatar 

Join Date: Sep 2007
Location: NorCal

 
Okay. Switches->LANs
Router->Internet
right?
Anyways, I think ill beg my sister for her wireless router with 4 extra ports for a home LAN. (turn the wifi off though... dont want to get into security trouble...) Thanks for the help guys. You really cleared things up for me! =D

__________________
The Cake is a Lie! [<3]

Jag känner en bott, hon heter Anna:
abit IN9 32X Max | Intel Core 2 Duo E6750 | 2GB Ballistix DDR2 800 | Evga 8800GT
Corsair 520 HX | X-Fi Xtreme Music | Antec Nine Hundred

Caust1c is offline   QUOTE Thanks
Old 10-18-07, 09:38 PM   #14
bLack0ut
Member

 
bLack0ut's Avatar 

Join Date: Dec 2004

 
Ah woops, you're right. I was thinking local network only, but one cable from a router into a switch will give all the computers connected to the switch internet access.

Switches are also good because you can get them in gigabit varieties for very cheap, ~$10-20.

__________________
Heat
bLack0ut is offline   QUOTE Thanks
Old 10-19-07, 03:38 PM   #15
TempliNocturnus
Member

 
TempliNocturnus's Avatar 

Join Date: May 2006
Location: Where angels carry savage weapons

 
Yes, switches are very good to have for LAN parties, and no, a switch alone will not split the internet. If you really want to understand why, you really need to read up and understand the OSI model a bit (particularly the bottom three layers).
TempliNocturnus is offline   QUOTE Thanks
Old 10-19-07, 11:22 PM   #16
curtis1552
Member

 
curtis1552's Avatar 

Join Date: Aug 2007
Location: Dayton, Ohio

 
I've got my router plugged into a basic hub and it splits my internet between my XP computer and my Ubuntu computer.

__________________
Desk Puter - Foxconn C51GU01; AMD X2 3800+ - Dual 2.0Ghz; 1.5gb RAM; Nvidia 6600GT pcie; Win 7 64 bit / Mint 9
NetBook - Acer Aspire One D250: 160Gb HDD: Win 7 / Backtrack 4 / Mint Debian / MeeGo
Server Puter - Supermicro X5DAE; Dual Processor - E7505 XEON - Dual 2.66Ghz; 2gb RAM: Nvidia 6600GT agp; Win 7 32 bit / Mint 9.
HEAT
Restarting a computer is not how you fix a problem...
I suffer from
Fenestraephobia
I don't think being turned on while turning it on is too high on the creepy list - freakdiablo
curtis1552 is offline   QUOTE Thanks

Post Reply New Thread Subscribe


Overclockers Forums > Software > Internet, Networking, and Security
Internet, Networking, and Security Networking and Viruses/Malware trouble. Get the answers here.
Forum Jump

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Mobile Skin
All times are GMT -5. The time now is 02:44 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
You can add these icons by updating your profile information to include your Heatware ID, Benching Profile ID or your Folding/SETI profile ID. Edit your profile!
X

Welcome to Overclockers.com

Create your username to jump into the discussion!

New members like you have made this the best community on the Internet since 1998!


(4 digit year)

Why Join Us?

  • Share experience
  • Max out your hardware
  • Best forum members anywhere
  • Customized forum experience

Already a member?