Notices

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

Switch vs Router

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 08-14-02, 01:05 AM Thread Starter   #1
Lumet187
Registered



Join Date: Jun 2002
Location: WI

 
Switch vs Router


Are they the same thing? If not what are the differences? Thanks!
Lumet187 is offline   QUOTE Thanks
Old 08-14-02, 01:29 AM   #2
TC
Senior Seti Addict

 
TC's Avatar 

Join Date: Jan 2001
Location: Denver, CO

10 Year Badge
 
No, they are most definitely not the same thing. This may be a little confusing to understand if you are not familiar with how networks operate. Switches connect network devices that are on the same network, and they only understand physical addresses to do this (aka the mac addy). Routers move data between different networks, and they only know about logical adresses to do this. That's it in a nutshell. If you want more info let me know and I will try to help.

__________________
My Heatware
TC is offline   QUOTE Thanks
Old 08-14-02, 02:20 AM   #3
Crash893
"The man in black fled across the desert, and the gunslinger followed."
Senior Member

 
Crash893's Avatar 

Join Date: Mar 2001
Location: 22033

10 Year Badge
 
from what i understand


a switch is a smart hub

as in it doesnt broadcast a signal to every port but it gets a signal and then finds the port its spoed to go to



a router is basicly a smart switch with a outlet to the internet or anotner router

a router dertermins if the packet is sposed to be in the netwrok or out

if in goes were its sposed to

if out it chucks it out the door.


routers are good becuase every thing behind it looks like 1 comptuer.

so you can have 40 comptuers behind it. and no body would know.

__________________
My Prime95 stats Huzza
1004.793 Years total
Noli turbare circulos meos!
i'm moving to Theory, Everything works there
' I want to be the unwobbling pivot at the center of an ever-revolving universe; I want to be still.'
Crash893 is offline   QUOTE Thanks
Old 08-14-02, 07:00 AM   #4
Edward2
Member


 
Edward2's Avatar 

Join Date: Apr 2002
Location: Folding@Home in Ball Ground, GA

10 Year Badge
 
If you are planning on using one with DSL or a cable modem, then the following applies:

With a switch, every computer connected to the switch must have an IP address assigned from your ISP. This is important if your ISP only allows 1-2 IP addresses per user. Also, a switch does not provide any firewall capabilities to protect you from hackers.

With a router, only the router is assigned an IP address from your ISP. All of the computers connected to the router are assigned LAN IP addresses by the router. Also, a router does provide a hardware firewall to your network to protect you from hackers.

If you are planning on using one with DSL or a cable modem, I highly recommend you get a router. They are not that much more expensive and definitely worth the money.

__________________
Q9300 @ 3.4GHz, Asus P5Q Pro, 4GB OCZ Platinum DDR2-1066, GTX580 @ 900GPU, OCZ Vendetta 2, PC P&C 750W
i5-3570K @ 4.5GHz, Asus P8Z77, 4GB G Skill DDR3-1333, GTX580 @ 900GPU, CM Hyper 212+ HS/F, Corsair 850W
4x 6180SE @ 2.75GHz, SM H8QGi-F, 32GB G Skill DDR3-1333, CM Hyper 212+ HS/F, Redundant 1400W


Folding User Stats
Edward2 is offline Folding Profile   QUOTE Thanks
Old 08-14-02, 05:30 PM   #5
roYal
Member

 
roYal's Avatar 

Join Date: Jun 2002
Location: Chicago, IL

 
a switch can be a router and more. A router works on layer 3 which is the network layer which is responsible for routing information.

There are 3 types of switches, layer1, layer2, and layer3 switch.

Mainly a switch is known for being able to direct bandwidth to a specific computer and mainly dealing wiht bandwidth and stuff. They work faster then the router, hub, bridge, etc...

The layer1 switch is the one that works like the hub since the hub is also on layer1 and is much faster. The layer2 switch works like a bridge since bridges work on layer 2 which is the data-link layer and divides up the networks into different segments and stuff, it deals with mac addresses and stuff and the nic also works on layer2.

The layer3 switch is the router switch, it works on the network layer and will do all the work that a router do and more. So in essence, a router CAN work as a router.

__________________
Cpu: Intel Core i7 920 @ 3.5ghz
Motherboard: Gigabyte EX58-UD3R
Memory: 6GB (3x2GB) OCZ Gold DDR3 1600 @ 533 mhz (8-8-8-24)
Hard Drives: 1 x 120gb Intel 320 ssd (System) / 1TB WD (Storage)
Cooling: TRUE w/Nexus 120mm
Video: EVGA GTX 580 SC
Monitor: 2x 24" Dell U2401 (1900x1200)
Sound: Sound Blaster X-Fi ExtremeGamer / Sennheiser HD595 Headphones
Power: Corsair HX620W
OS: Windows 7 Ultimate 64-bit
roYal is offline   QUOTE Thanks
Old 08-14-02, 05:41 PM   #6
TC
Senior Seti Addict

 
TC's Avatar 

Join Date: Jan 2001
Location: Denver, CO

10 Year Badge
 
I think there may be some confusion here because of broadband routers for cable and dsl that include switch ports. The important thing to keep in mind here is that switches deal with physical addressing - they do not route logical addresses. Routers know about networks only - not clients. Routers are used to segment networks and move data from one network to another. Switches cannot do that - they operate only within one network. When a router gets a packet it looks at the logical (IP) address it determines what network to send the packet to. When the packet gets to its destination network it is the switch that knows which client to send the packet to via the physical aka mac address. If a lan is connected with a hub the packet will be broadcast to every node. A switch on the other hand maintains a mapping table of mac address to port assignments and will send the packet only to the port to which the mac address is connected. In this way a switch defines multiple collision domains. This provides full duplex operation as well. If a switch receives a packet for which is has no entry in its table then it will be broadcast out on each interface. A router on the other hand will drop a packet if it has no information about the logical address in its routing table. These combination switch/router units have a basic router connected to a switch in one box. The router portion connects your local network to the wide area network. The switch portion simply connects your internal computers together. The router serves basic functions such as nat, but they're really not full featured routers in the sense of something like a Cisco unit.

__________________
My Heatware

Last edited by TC; 08-14-02 at 06:13 PM.
TC is offline   QUOTE Thanks
Old 08-14-02, 09:53 PM   #7
jajmon
Member

 
jajmon's Avatar 

Join Date: Apr 2002
Location: Burnsville, Minnesota

 
TC - great post on explaining the difference between the devices.

Lumet187 - if you are planning to share your high speed connection (dsl/cable) the best way to go is with a dsl/cable router w/switch ports. Most vendors offer 4 port 10/100 switch ports on their dsl/cable routers. Using a 'router' of this type gives you the following,
>Hardware firewall via NAT (network address translation) This means the Internet see's only your router and not your internal network. The 'router' function routes traffic from the internet to your internal network.
>The router can act as a DHCP server and assign tcpip addresses to your internal pc's
>The 'switch' aspect of the equipment allows your internal pc's to see each other for file sharing if need be as well as talk to the router in order to get on the Internet.

Hope this helps,,,,,,,,,,,,,,
jajmon is offline   QUOTE Thanks
Old 08-14-02, 10:38 PM Thread Starter   #8
Lumet187
Registered



Join Date: Jun 2002
Location: WI

 
THANKS!!


thanks for the replys. I'm beggining to understand the router vs. switch. Thanks!! A hub can not hook up to the internet correct? If it can, then it is really a switch? Thanks.
Lumet187 is offline   QUOTE Thanks
Old 08-14-02, 11:00 PM   #9
jajmon
Member

 
jajmon's Avatar 

Join Date: Apr 2002
Location: Burnsville, Minnesota

 
A hub or switch can hook to the internet, but you need to run Internet Connection sharing or similar on one pc that has the connection to the internet (dsl/cable) If the modem (dsl/cable) is internal, then you need a nic for pc1 and pc2 and a crossover cable connected to the two nics (that is the most simplistic config) Config #2 assuming internal modem (cable/dsl) would be nic in pc1 and nic in pc2, both hooked to a hub or switch with strait thru cables. Still the pc that has the connection to internet still needs to run ICS or similar for pc2 to connect to internet. Config #3 if pc with internet connection has external dsl or cable modem, then pc1 would need another nic, then you could either do the crossover cable config or hub/switch config as stated above. If your connection to internet is via an external dsl or cable modem, a better choice would be to go with a dsl/cable router/switch combination. You would already have a nic in pc one, so then you would just need another nic and cable for pc2 and connect pc1 and pc2 nic to switch ports on the router. In this config, you would not need to run ICS or similar on pc1.

Hope this helps
jajmon is offline   QUOTE Thanks
Old 08-14-02, 11:38 PM   #10
TC
Senior Seti Addict

 
TC's Avatar 

Join Date: Jan 2001
Location: Denver, CO

10 Year Badge
 
Re: THANKS!!


Quote:
Originally posted by Lumet187
thanks for the replys. I'm beggining to understand the router vs. switch. Thanks!! A hub can not hook up to the internet correct? If it can, then it is really a switch? Thanks.
Not quite how it works. Both a hub and a switch are used to connect multiple computers together on a network. A hub is a cheaper device that simply forwards everything it receives to everything connected to it. Because of this every computer is a member of one collision domain. The way ethernet works is called csma/cd carrier sense multiple access with collision detection. All devices share the same physical medium. When a nic in a computer wants to transmit it listens to the wire. If there is no carrier detected (meaning nothing else is currently talking) then it will transmit. If two computers happen to listen to the wire at the same time and decide it's okay to send, then you get a collision from two signals being transmitted at the same time. This is in part because ethernet is a baseband medium - meaning only one thing at a time can be sent over the wire. Anyway lots of collisions slow down the network. A switch prevents this by connecting the systems point to point with a virtual circuit. Once a switch has learned about everything connected to it, it will only send packets to the port which has the destination computer connected. So if two computers transmit at the same time to different places the switch prevents the packets from colliding by providing each message a dedicated path. Having said all of that, both a switch and a hub could be connected to a cable/dsl router and share your internet connection among multiple computers. A switch just does a better job of keeping your network running smoothly when you have lots of computers on your lan. For what you want to do a broadband router with some built in switch ports is perfect. Sorry for the long post. Sometimes I get carried away when I want people to understand something.

__________________
My Heatware
TC is offline   QUOTE Thanks
Old 08-14-02, 11:52 PM   #11
Spec_Ops2087
Member

 
Spec_Ops2087's Avatar 

Join Date: Jan 2002
Location: NJ

 
basicly if a switch is directly connected to the cable modem you can only use the computers if you buy seperate IPs for them where as a router will split up 1 IP address....but I believe you can take a router and then plug a switch into it so that you can use multiple computers on the switch without haveing to buy more IPs because the router splits it up for the switch...I think



Spec

__________________
Rutgers University School of Engineering Class of 2009 Alumni

NAVY
Spec_Ops2087 is offline   QUOTE Thanks
Old 08-15-02, 12:09 AM   #12
TC
Senior Seti Addict

 
TC's Avatar 

Join Date: Jan 2001
Location: Denver, CO

10 Year Badge
 
Quote:
Originally posted by Spec_Ops2087
basicly if a switch is directly connected to the cable modem you can only use the computers if you buy seperate IPs for them where as a router will split up 1 IP address....but I believe you can take a router and then plug a switch into it so that you can use multiple computers on the switch without haveing to buy more IPs because the router splits it up for the switch...I think



Spec
Yep that's pretty much it. The router assigns private non routable IP's to your internal computers, and then provides NAT in out for the single public IP given to you by your ISP. If you get a dsl router that only has one port you can hook that up to a separate switch or hub and plug computers into that.

__________________
My Heatware
TC is offline   QUOTE Thanks
Old 08-15-02, 12:53 AM   #13
Smizack
Dead Boomslang collector

 
Smizack's Avatar 

Join Date: Jun 2001
Location: O.K.

 
Quote:
Originally posted by jajmon
A hub or switch can hook to the internet, but you need to run Internet Connection sharing or similar on one pc that has the connection to the internet (dsl/cable) If the modem (dsl/cable) is internal, then you need a nic for pc1 and pc2 and a crossover cable connected to the two nics (that is the most simplistic config) Config #2 assuming internal modem (cable/dsl) would be nic in pc1 and nic in pc2, both hooked to a hub or switch with strait thru cables. Still the pc that has the connection to internet still needs to run ICS or similar for pc2 to connect to internet. Config #3 if pc with internet connection has external dsl or cable modem, then pc1 would need another nic, then you could either do the crossover cable config or hub/switch config as stated above. If your connection to internet is via an external dsl or cable modem, a better choice would be to go with a dsl/cable router/switch combination. You would already have a nic in pc one, so then you would just need another nic and cable for pc2 and connect pc1 and pc2 nic to switch ports on the router. In this config, you would not need to run ICS or similar on pc1.

Hope this helps
If you use a hub, you each computer has to have it's own ip add. Most isp's frown on this, and will suggest a router.
Smizack is offline   QUOTE Thanks
Old 08-15-02, 02:07 AM   #14
TC
Senior Seti Addict

 
TC's Avatar 

Join Date: Jan 2001
Location: Denver, CO

10 Year Badge
 
Every computer has to have its own IP regardless of anything else. A hub doesn't have any bearing on this. The issue is without a router to do NAT your internal computers would need a public IP assigned by your ISP whether you used a hub or a switch. Get a broadband router and it doesn't matter whether you use a hub or a switch on the "inside." A broadband router lets your ISP think you have one computer connected to the internet (one public IP),while on the inside you have multiple computers each with their own private IP.

__________________
My Heatware
TC is offline   QUOTE Thanks
Old 08-15-02, 04:00 AM Thread Starter   #15
Lumet187
Registered



Join Date: Jun 2002
Location: WI

 
Alright guys, Thanks for all the info. We are starting to get into the whole "isp allows this" and i've been around and around with my isp about networking Thanks again!
Lumet187 is offline   QUOTE Thanks
Old 08-16-02, 11:22 AM   #16
Lusankya
Member

 
Lusankya's Avatar 

Join Date: Aug 2002
Location: Da Windy City / Chicago

 
Having worked for a large city ISP...

Switch- if you have that many questions about it.. you really don't need it

Router- all you need for a network. Get one with Network Address Translation if you want to run a private network that your ISP can't see and hence charge you for more then one machine

Hub- nothing but bunch of wires that lets one cable see another cable.

I have AT&T cable at the moment going from the cable modem to my SMC Barracaide 4 port router which has my 4 rigs plugged into it.

Each comp has internet access
Each comp has a private IP that the cable company can't see.
The SMC Barracaide holds the IP so the cable company only see that as a single machine.

I recomend the SMC Barricade most highly

__________________

Asus G1Sn-B1 7/18/2008- ??
Intel Core 2 Duo Penryn T9300 2.5GHz 6MB 800FSB/4GB DDR2/nVidia GeForce 9500M GS 512MB/15.4” WSXGA+ 1680X1050 (Wet)/320GB/Blue-Ray Disk/DVD-RW

Deceased:Sager NP9860 11/24/2004 - 7/9/2008.. R.I.P
Intel 3.4GHZ P4 LGA775, 800FSB/3GB 533DDR2/256MB PCI-Express NVIDIA GeForce GO 6800/60GB/17" WSXGA+ 1680 X 1050/8X DL DVD-R

Lusankya 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 01:47 PM.
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?