Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Technology


 
 
LinkBack Thread Tools
Old 08-05-2003, 03:08 PM   #1 (permalink)
Dumb all over...a little ugly on the side
 
Sion's Avatar
 
Location: In the room where the giant fire puffer works, and the torture never stops.
whats the difference

between a router and an ethernet hub?

I have 3Com OfficeConnect Ethernet Hub 4C that I got from work. (Anytime they have old stuff thats going to get tossed out, I usually scoop it up, even if I dont have a use for it. I figure sooner or later I might.) I am getting into something thats going to require the use of a router and wondered if this Hub I have would work. The router that is recommended for this project is a Netgear RP.

any help would be appreciated.
__________________
He's the best, of course, of all the worst.
Some wrong been done, he done it first. -fz

I jus' want ta thank you...falettinme...be mice elf...agin...
Sion is offline  
Old 08-05-2003, 03:16 PM   #2 (permalink)
Addict
 
Hubs simply allow computers to connect to one another over a network.

Routers are used to distribute an IP's bandwidth to computers behind the router. Routers also act as a firewall.

So, if you're looking to share an internet connection (ie DSL or cable) between a bunch of computers, get a router.

If you only want to network some computers together, use the hub, or better off, get a switch (switches do the same thing as a hub, but faster).
yakimushi is offline  
Old 08-05-2003, 03:18 PM   #3 (permalink)
Psycho
 
Location: North America
Hubs connect two or more computers together, Routers connect a network of 2 or more computers to another network of computers (the internet for example). The real job of the router is to only pass relevent traffic. For example a router wouldn't pass data to the internet if it's meant to be received by a computer on your personal network but would pass internet traffic to and from the internet. Routers can do more complex things but this is basically what they do.
catback is offline  
Old 08-05-2003, 03:25 PM   #4 (permalink)
I am Winter Born
 
Pragma's Avatar
 
Location: Alexandria, VA
Hubs operate at layer one of the OSI network model - that is to say, any traffic coming in one port is retransmitted to every other port on the hub.

Routers, on the other hand, operate at layer three. The purpose of a router is to (somewhat obviously) route between networks. The practical applications are normally Cable/DSL routers that translate (using NAT) between an external IP address given to you by your telco to a variety of private internal address that your computers are set up using. As a matter of convenience, Cable/DSL routers have built-in DHCP servers, though a traditional router does not. Also, most routers have built in switches (very similar to a hub) on the private network, also as a matter of convenience, to allow multiple computers to connect to it.

Suffice to say, it's highly unlikely if you could use a hub for a router's purpose and have any degree of success. Looks like you're stuck going shopping for a router.
__________________
Eat antimatter, Posleen-boy!
Pragma is offline  
Old 08-05-2003, 04:00 PM   #5 (permalink)
Junkie
 
The short answer is no, you won't be able to use a hub as a router.



This is the second time I've done this today, but I'm including a copy of a post I made last week. It gives a good overview of the differences between hubs, switches and routers. I also include explanations on what proxy servers do (as this was in the original question).

Original post is at http://www.tfproject.org/tfp/editpos...&postid=446147

Try checking out more than the first page when asking a question! Often times it has been answered before.

===========BEGIN QUOTE===============


By necessity, this explanation is simplified, but it should give a good idea of the difference between switches/hubs & routers. I also include a little about proxy servers.


How do routers & switches work?

Think of computer networks as being made up of several different layers. There is a international standard that defines these layers; the OSI 7 layer model. This definition is conceptual, but it is very useful in discussing or defining networks and how they work.

The seven layers are

A - Application
P - Presentation
S - Session
T - Transport
N - Network
D - Data
P - Physical

For our purposes, all we need to worry about are the bottom 3 layers.

Layer 1 - Physical Layer
This is literally the layer that the covers the physical electrical signals on the wire (or the radio signals in a wireless network). This layer is concerned with how to transmit raw bits over the communications channel (ie, wire or radio). How many volts represent 1 and 0, how long the signals should last etc. As a user, you never have to worry about this.

Hubs work on this layer, as they repeat (or retransmit) EVERYTHING they receive on any port TO every port.

Layer 2 - Data Layer
This is where the bits are grouped in frames. There are two "sub-layers" on the Data Layer - MAC (or Media Access Control) and LLC (or Logical Link Control). Most users will be familiar with the term MAC address. This is effectively the physical, burned in address of your network card.

Switches work at this layer.

They switch the packets (or frames) between what are called 'collision domains'.

Ethernet is known as "CSMA/CD - Carrier Sense, Multiple Access / Collision Detect" network. This means each device first listens (Carrier Sense) and if the line is clear sends its packet. However, there are other devices other doing the same (Multiple Access), so sometimes two devices listen at the same time, think the line is free, and transmit at the same time. Their transmission (remember, all a frame or packet is, is some rapid changes in voltage on the cable) "collide" and nothing gets through for either station or device. The senders know this has happened as the recipient of the frame they sent did not reply with an OK. In other words, the station transmitted but didn't hear anything back, so it knows there was a collision. It waits a random amount of time and then starts again. Listen, transmit, wait for acknowledgement.

So this explains what a Collision Domain is.

In Ethernet, when you transmit a packet, every device on that network (or collision domain) can hear or receive that packet (as described above). In large networks, with many devices, this becomes a problem because more and more computers or devices are trying to transmit at the same time. More and more collisions occur and the general network performance degrades. This is why network hubs, which connect all devices to one big collision domain, are not great for busy or large networks. When a PC on Port 1 sends a packet/frame, it is retransmitted on every port on the hub, even if the intended target is only on a single port.

Switches on the other hand are desinged to address this problem.

On a switch, each port is a seperate collision domain. This means that when a PC on Port 1 wants to talk to a PC on Port 8, the frames (and therefore the signals) are only sent to the destination port. All the other ports (and the computers connected to them) do not "hear" the transmission. They can continue to send and receive normally. The number of collisions is greatly reduced, and network performance is increased.

So...

Switches work on Layer 2, as opposed to Hubs which work on Layer 1. They handle the way Ethernet frames are sent along the wire, and what devices can "hear" them.

Routers, on the other hand, are an entirely different kettle of fish.


Layer 3 - Network Layer

Routers work on Layer 3.

We have seen how computers on an Ethernet network can use hubs and switches to communicate. However, Ethernet is a low layer protocol. Computers also need a higher layer protocol. Most computers today use TCP/IP (Transmission Control Protocol / Internet Protocol).

TCP/IP is actually a suite of many protocols. Most users only need to know about the IP part; the Internet Protocol.

Without going into too much detail, IP is a protocol that allows computers to talk to each other, whether they are on the same network or on a seperate network. The term "network" here is different from "collision domain". We are talking about a virtual collection of devices that could be on seperate switches or routers (ie throughout a large building), but are on the same network. The difference is subtle but important.

An IP address is divided into two parts; a host ID and a network ID. They are usually shown in decimal format, like the following 123.123.123.123. In otherwords, four numbers seperated by a period. The numbers can range from 1 to 255. You also need two other series of numbers. A Subnet Mask and a Default Gateway.

So, a computer on a typical network, with a proper IP address (ie, Layer 3 address) looks something like this:

IP address: 64.104.195.151
Subnet mask: 255.255.255.0
Default gateway: 64.104.195.1

How can you tell which part of the IP address is the host address and which is the subnet address? By using the subnet mask. This tells you which parts of the numbers are the network ID and which part is the host ID. This is not concrete and can change from IP address to IP address. In the example above, you can see the subnet mask has "maxed out" the first 3 sections of IP address. Remember, the decimal numbers can only range from 1 to 255. The first three sections are set to 255.255.255 and the last one is a zero (meaning it's blank). This means that the "network address" is the first 3 parts of the IP address, ie 64.104.195.151, and the "host address" (my computers address) is the last part of the IP address, ie 64.104.195.151

A computer can talk to another computer on the same network with no problems. In my example, I can talk to a computer on the 64.104.195.xxx with no difficulties. Say I have a second computer with the address 64.104.195.100. It may be in a different room (or even a different building), but because it is on the same network (ie, the network address, the first 3 numbers as defined by my subnet mask, are the same), then I can communicate to it easily. The IP protocol handles this easily. I don't need a router.

Things get a bit more complex when the computer wants to talk to another computer on a DIFFERENT network. Typically, this means something on the internet, or across a large companies network.

The IP packets need to be routed to the correct network, and then the correct host (ie, destination computer).

How does this happen? Well, this is where a router steps in . When my computer realizes I want to talk to another computer with a different network address, it has no idea where to send the packets. What does it do? Well, it simply forwards them to the Default Gateway. Effectively, your computer is saying "I have no idea of where this is, you handle it"...

The Default Gateway is always a router.

The router usually knows about its neighbours (ie, your network, because you're connected to it and whatever is down the line; for home users, this usually means the ISP).

Chances are you don't want to just talk to a box in your ISP's building, so the router forwards the packet onto the "next hop". This will be another router, that looks at the packet and, if it doesn't know where it is, forwards it again, up the line. It's saying "I don't know where this is either, let me send it on to my neighbour who is connected to more networks and might know".

This goes on until the packet reaches a major internet router that knows about loads of networks. Eventually it will come to a router that 'recognizes' the network address and says "OK, I know where this is, go down this path and you will get there".

The packet goes down the correct path until it finally reaches the correct network. The last router it talks to (which, is the Default Gateway for THAT network) says "Yeah, this network address is me! Let me transmit this packet out on the wire and the recipient will no doubt hear it and respond" The packet is transmitted onto the correct network. Every computer hears it but only the recipient responds (it could be another PC you are playing CounterStrike with, or it could be a webserver and your browsing a webpage). Eitherway, your packet has reached its destination and it sends back a reply.

The freaky thing is that this all occurs in milliseconds.



So...


Routers are usually pieces of hardware (though PCs can "act" as a router in some circumstances) that handle how IP packets are sent from network to network. They work in Layer 3 and above.

Hubs and switches are always pieces of hardware then physically handle how Ethernet frames are sent along the wire to the correct physical network card.

IP (ie, Layer 3) runs "on top of" Ethernet (or 802.11b for wireless etc) which is Layer 2.


Finally...

Proxy Servers are used to "disguise" where you are coming from when you browse the internet. As we can see from above, your IP packets traverse the internet eventually getting to their destination. The thing is, once they get to where they are going their original starting point is included in the packet.

How else would your destination (PC, website etc) know how to send the data back again?!

This is normally not a problem, but when websurfing some people don't WANT their location (or original IP address) to be known. This can be for security reasons for for anonyminity or privacy reasons. You don't want someone knowing you're surfing the "Big Beautiful Women in Uniforms" website etc...

So, you surf the internet through a Proxy Server. This 'strips' off your original IP address and sticks its own in there before sending the packet on its way.

When the response comes back, the Proxy Server knows that you were the one transmitting to that IP address and sends the reply to you.

Anyone intercepting the packets along the way and analyzing them only knows that the traffic is between "www.bighotwomen.in-uniforms.com" and the proxy server. They don't know the packets came from you.

Some companies use Proxy Servers for security, as it also prevents hackers trying to intercept packets and use them as a backdoor into the companies network (complicated, so I won't go into detail here).

There are also public Proxy Servers out there. http://www.anonymizer.com/ is a famous one.



I hope this helps to explain. I have deliberately simplified a lot of the issues to make it easier to understand. I'm sure someone will step in and make some pedantic correction... :-) But this is for beginners and it gives a good overview of the differences between switches, hubs and routers and how Proxy Servers work.



Mr Mephisto
Mephisto2 is offline  
Old 08-05-2003, 05:11 PM   #6 (permalink)
I am Winter Born
 
Pragma's Avatar
 
Location: Alexandria, VA
Ah, thanks Mr Mephisto. I knew I had read a post on here somewhere about this same issue, but couldn't think of the post title off the top of my head. Your explanation went a lot more into detail than mine.
__________________
Eat antimatter, Posleen-boy!
Pragma is offline  
Old 08-05-2003, 06:24 PM   #7 (permalink)
Knight of the Old Republic
 
Lasereth's Avatar
 
Location: Winston-Salem, NC
Quote:
Hubs simply allow computers to connect to one another over a network.

Routers are used to distribute an IP's bandwidth to computers behind the router. Routers also act as a firewall.

So, if you're looking to share an internet connection (ie DSL or cable) between a bunch of computers, get a router.

If you only want to network some computers together, use the hub, or better off, get a switch (switches do the same thing as a hub, but faster).
No other explanation needed.

-Lasereth
__________________
"A Darwinian attacks his theory, seeking to find flaws. An ID believer defends his theory, seeking to conceal flaws." -Roger Ebert
Lasereth is offline  
Old 08-05-2003, 06:32 PM   #8 (permalink)
kel
WARNING: FLAMMABLE
 
Location: Ask Acetylene
Networking theory... when they made me take a course in it I was downright shocked that such a thing existed...
__________________
"It better be funny"
kel is offline  
Old 08-05-2003, 06:58 PM   #9 (permalink)
Junkie
 
Quote:
Originally posted by Lasereth
No other explanation needed.

-Lasereth
Are you saying that explaining is not a good idea and that only simple statements suffice?

In which case, a simple reply of "No" would also fit the bill.

But then again, that's not very illuminating now, is it?




Mr Mephisto

Last edited by Mephisto2; 08-05-2003 at 09:23 PM..
Mephisto2 is offline  
Old 08-05-2003, 07:36 PM   #10 (permalink)
Psycho
 
Great answers all. Search the TFP and you will find more.
poof is offline  
Old 08-06-2003, 04:06 AM   #11 (permalink)
Dumb all over...a little ugly on the side
 
Sion's Avatar
 
Location: In the room where the giant fire puffer works, and the torture never stops.
thanks for all the help everyone, especially Mephisto. and yes, I SHOULD have performed a search first. sorry, sometimes things slip ones mind.

I have learned a lot from this discussion, enough to know that I will indeed need a router for this project. bummer, I was hoping to save myself $40.
__________________
He's the best, of course, of all the worst.
Some wrong been done, he done it first. -fz

I jus' want ta thank you...falettinme...be mice elf...agin...
Sion is offline  
Old 08-06-2003, 07:56 PM   #12 (permalink)
Junkie
 
Quote:
Originally posted by Sion
thanks for all the help everyone, especially Mephisto.
No problem.

Glad to be of some help.

Quote:

I have learned a lot from this discussion, enough to know that I will indeed need a router for this project. bummer, I was hoping to save myself $40.
$40 for a router?!

I'd be astounded if you could get anything more than a switch for that.

Good luck in any case!

Mr Mephisto
Mephisto2 is offline  
Old 08-07-2003, 04:16 AM   #13 (permalink)
Dumb all over...a little ugly on the side
 
Sion's Avatar
 
Location: In the room where the giant fire puffer works, and the torture never stops.
the NetgearRP recommended for this project can be purchased through them for $39.99. Googlegear also has a couple under $50. cheapest I saw was $36.99, dont remember the brand/model.
__________________
He's the best, of course, of all the worst.
Some wrong been done, he done it first. -fz

I jus' want ta thank you...falettinme...be mice elf...agin...
Sion is offline  
Old 08-07-2003, 04:32 AM   #14 (permalink)
Junkie
 
Quote:
Originally posted by Sion
the NetgearRP recommended for this project can be purchased through them for $39.99. Googlegear also has a couple under $50. cheapest I saw was $36.99, dont remember the brand/model.
For a ROUTER?

I wonder what capabilities they have.

Interesting. Let me investigate further. Thanks for the names.

I've been spoilt using top-shelf enterprise class kit for far too long...



Mr Mephisto
Mephisto2 is offline  
 

Tags
difference


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 12:50 AM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360