Sign in with
Sign up | Sign in
Your question

Router/switch/hub

Last response: in Networking
Share
June 30, 2003 1:10:51 AM

Ok, I know this is a tired subject... 'how to set up a network for my 2 comps', I gather the best way is with a router, but why? Is it really that important? What are the differences between all the options? Why does a router come out on top?
thanks.

<P ID="edit"><FONT SIZE=-1><EM>Edited by blueedge on 06/29/03 09:11 PM.</EM></FONT></P>

More about : router switch hub

June 30, 2003 7:51:33 AM

a router allows you to share your Internet connection if you only have 1 IP. The others don't. Plus, the router has a switch built into it.

<i>It's always the one thing you never suspected.</i>
July 2, 2003 1:10:01 AM

A router will assign an IP address to each computer and "route" the traffic to just the computer that needs it. A switch will still "route" the traffic but I dont think it will assign IP address. A hub will send all traffic to each computer even if it doesnt need it and wont assign ip address. You can use ICS to share but then both computers must be on for it to work from the second computer and also slows the connection down. Plus if the main computer must be restarted you will lose the connection on the second one. Really sucks for online gaming.
July 2, 2003 1:40:24 AM

Quote:
A router will assign an IP address to each computer and "route" the traffic to just the computer that needs it. A switch will still "route" the traffic but I dont think it will assign IP address

Correct. Just to elaborate, the router operates on layer 3 of the TCP/IP stack (network layer) and the switch operates on layer 2 (data-link layer). This is why the switch knows nothing of IP, which is a layer 3 protocol. The switch knows MAC addresses which is data-link.

<i>It's always the one thing you never suspected.</i>
July 2, 2003 4:30:45 AM

And besides, u asked why is it better with router. Well, if u have already a computer which runs 24/7, then u dont realy need one. DSL/Cable routers works a little different, since u only have one IP, so they use NAT to share your net. NAT is a thing what u can do easily with a computer also. So, if u dont want your main computer to be turned on all day long, u have 2 options: building a linux box(on a cheap hardware, since nat doesnt need too much resourche) to share the internet, or u can buy a router, which is a special "computer" designed for networking tasks.

So, if u have some old comp. part, or u can get one cheap, thats perfect for u, provided u have the knowledge to install a linux with NAT support. DSL/Cable routers beacme very cheap, and the good thing is that, u dont have to have the knowledge to install it (howover this can be a downside also... you cant adjust it as fine as a linux (well, as for the cheaper routers ^_^))
If u decide to runn your main computer consider 2 things: it use much more power than a router, and since thats the computer that u work with or play with , its most likely to freeze, or u must reset it... not wery good thing from the other computers user's aspect ;) )

And some theory:
HUB ans Switch works on Layer 2, in the TCP/IP modell, which means they only knows about your Devices NIC adress. HUb is a "dumb" device, if it got something on one port, it broadcasts to each other, and to select which data is for which device, thats the device's task. Swich is a lil bit smarter, sinc it "knows" which equipment has which NIC adress, and only sends the date to it. So with switch u can utilize bandwith in a better way.
As for Router, they are intelligent devices, they are "route the data flow" in your network. So for example based on the IP adress, they decide which network to send and they can do a lot more thing. For sharing your net u need a Router (DSL/Cable).

Note: Sometimes u can see ppl atachin their DSL modem to a switch. Thats not Net share! Since DSL modems has ethernet interface u can utilize it with switch als, so u can connect with PPPoE drivers from multiple computers. Thats not a net share.Of course this setup can be used to share net in the way we talking about, with a computer runing NAT. But anyway i dont want to mix it up for u ;) )
July 3, 2003 1:43:55 AM

Quote:
HUB and Switch works on Layer 2, in the TCP/IP model, which means they only knows about your Devices NIC adress

Correct me if I'm wrong, but I think a hub is the same as a repeater, which operates on layer 1.

<i>It's always the one thing you never suspected.</i>
July 3, 2003 3:12:38 AM

Ops, my bad ;)  U right, HUBs and repeaters are working on layer 1. Sorry.
!