A Digital Age Deserves A Digital Leader

Router VS Hub

Router VS Hub

Postby tWeaKmoD » Tue Mar 30, 2004 1:45 am

Someone asked me today the difference between a router and a hub. I answered to the best of my knowledge but I'm curious if I got everything. So I pose you this question. What is the difference between just a normal hub and a router?
PROfessional Member
User avatar
Posts: 3813
Joined: Tue Mar 16, 2004 4:39 am
Location: USA

Postby Weaver » Tue Mar 30, 2004 2:10 am

Generally, most define a hub as a device for connecting multiple ethernet devices into a single collision domain. A hub in itself is a layer 1 device in terms of OSI. Switches are hubs that can do simple "routing." I use the term routing very cautiously since it does not route in the typical sense. They "route" at layer 2 of OSI, or the MAC level of ethernet.

A "router" in the typical sense is a layer 3 device in terms of OSI. It routes data between logically disparate networks at the network layer and sometimes higher.

Now, those were the technical definitions. Layman's definitions are as follows. Hubs are used for hooking up more than a single ethernet device. Switches are souped up hubs. Routers are devices that relay data between networks. Residential NAT/Firewall/Routers generally have a built-in switch so a lot of people get confused and think they are switches.

-Weaver
Public Keys

The primary purpose of the DATA statement is to give names to constants; instead of referring to pi as 3.141592653589793 at every appearance, the variable PI can be given that value with a DATA statement and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of pi change.
-- FORTRAN manual for Xerox Computers
PROfessional Member
User avatar
Posts: 1967
Joined: Wed Jun 19, 2002 12:05 am
Location: /home/weaver/

Postby tWeaKmoD » Tue Mar 30, 2004 2:14 am

Thanks Weaver. That's what I said it a Layman's term. Now next time someone asks me I can tell them the technical definition too (if they care). ^*^
PROfessional Member
User avatar
Posts: 3813
Joined: Tue Mar 16, 2004 4:39 am
Location: USA

Postby Gelob » Tue Mar 30, 2004 4:25 am

just 2 add switch into the mix here we go.


A hub is typically the least expensive, least intelligent, and least complicated of the three. Its job is very, very simple: anything that comes in one port is sent out to the others. That's it. Every computer connected to the hub "sees" everything that every other computer on the hub sees. The hub itself is blissfully ignorant of the data being transmitted. For years, simple hubs have been quick and easy ways to connect computers in small networks.

A switch does essentially what a hub does, but more efficiently. By paying attention to the traffic that comes across it, it can "learn" where particular addresses are. For example, if it sees traffic from machine A coming in on port 2, it now knows that machine A is connected to that port, and that traffic to machine A needs to only be sent to that port and not any of the others. The net result of using a switch over a hub is that most of the network traffic only goes where it needs to, rather than to every port. On busy networks, this can make the network significantly faster.


A router is the smartest, and most complicated of the bunch. Routers come in all shapes and sizes, from the small four-port broadband routers that are very popular right now, to the large industrial strength devices that drive the internet itself. A simple way to think of a router is as a computer that can be programmed to understand, possibly manipulate, and route the data its being asked to handle. For example, broadband routers include the ability to "hide" computers behind a type of firewall, which involves slightly modifying the packets of network traffic as they traverse the device. All routers include some kind of user interface for configuring how the router will treat traffic. The really large routers include the equivalent of a full-blown programming language to describe how they should operate, as well as the ability to communicate with other routers to describe or determine the best way to get network traffic from point A to point B.

the power of google.although i knew this info i feel rather to google it then type it up.besides im not google.
Image
Im Coming Back To Go PRO!!
PRO Level 3
User avatar
Posts: 97
Joined: Mon Dec 22, 2003 8:01 pm
Location: Florida

Postby Weaver » Tue Mar 30, 2004 5:52 pm

Nevetheless, a very good description.

-Weaver
Public Keys

The primary purpose of the DATA statement is to give names to constants; instead of referring to pi as 3.141592653589793 at every appearance, the variable PI can be given that value with a DATA statement and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of pi change.
-- FORTRAN manual for Xerox Computers
PROfessional Member
User avatar
Posts: 1967
Joined: Wed Jun 19, 2002 12:05 am
Location: /home/weaver/

Postby ~Robrowe~ » Tue Mar 30, 2004 7:04 pm

Simply a router is a managed switch that "routes" packets.

A switch 10/100 will allow every poart to connect at 100MB and transfer data as such.

A hub splits the bandwidth among the connections so if you have 5 connections on a 10/100 hub they get 20MB each.
Image
PROfessional Member
User avatar
Posts: 2515
Joined: Sat Mar 27, 2004 8:22 pm

Postby Weaver » Tue Mar 30, 2004 7:46 pm

robrowe wrote:A hub splits the bandwidth among the connections so if you have 5 connections on a 10/100 hub they get 20MB each.


While theoretically this sounds logical, in practice it is far from the truth. This assumes that ethernet is 100% efficient. Anyone who understands ethernet knows this is not true. Ethernet's efficiency on a given collision domain is inversely proportional to the number of nodes on that collision domain. For those quick to retort, make sure you understand that efficiency != throughput the way I am using it here. Ethernet's CSMA/CD logic adds considerable overhead and kills efficiency as the number of nodes increases on a given collision domain.

-Weaver
Public Keys

The primary purpose of the DATA statement is to give names to constants; instead of referring to pi as 3.141592653589793 at every appearance, the variable PI can be given that value with a DATA statement and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of pi change.
-- FORTRAN manual for Xerox Computers
PROfessional Member
User avatar
Posts: 1967
Joined: Wed Jun 19, 2002 12:05 am
Location: /home/weaver/

Postby ~Robrowe~ » Tue Mar 30, 2004 9:05 pm

OK Weaver now you have us all confused :lol:

While there are many factors to consider I was just trying to keep it simple. Nothing in this world is 100% efficient. If it were then perpetual motion would have been perfected and things would be much different.

For my home network I prefer to use a server as a gateway instead of a router. I seem to get better throughput that way then the rest of my network is connected to that server via a 10/100/1000 switch with GB uplink. :notworthy

I am by no means a networking god but I try to do my best :embarrassed:
Image
PROfessional Member
User avatar
Posts: 2515
Joined: Sat Mar 27, 2004 8:22 pm

Postby Weaver » Wed Mar 31, 2004 12:47 am

robrowe wrote:OK Weaver now you have us all confused :lol:

While there are many factors to consider I was just trying to keep it simple. Nothing in this world is 100% efficient. If it were then perpetual motion would have been perfected and things would be much different.

For my home network I prefer to use a server as a gateway instead of a router. I seem to get better throughput that way then the rest of my network is connected to that server via a 10/100/1000 switch with GB uplink. :notworthy

I am by no means a networking god but I try to do my best :embarrassed:


I think you misunderstood the tone of my post. I apologize if you took offense to it. I never insult or try to make someone appear stupid on purpose, publically at least.

I believe you thought I was nitpicking at saying that your analysis of a 100 Mb/s ethernet being split up to 5 20 Mb/s chunks when 5 nodes are on the network was incorrect.

Yes, everyone knows that nothing is 100% efficient. However, ethernet is nowhere near efficient, especially when multiple nodes are on a single collision domain. I wouldn't have made the comment if ethernet was 95% efficient or even 90% efficient. Ethernet is terribly inefficient, usually around 60% and goes down from there when multiple nodes are on a single collision domain. Switching changes this, and the bottlenecks are usually the switches or NIC's themselves.

-Weaver
Public Keys

The primary purpose of the DATA statement is to give names to constants; instead of referring to pi as 3.141592653589793 at every appearance, the variable PI can be given that value with a DATA statement and used instead of the longer form of the constant. This also simplifies modifying the program, should the value of pi change.
-- FORTRAN manual for Xerox Computers
PROfessional Member
User avatar
Posts: 1967
Joined: Wed Jun 19, 2002 12:05 am
Location: /home/weaver/

Postby OsirisX » Wed Mar 31, 2004 12:50 am

John, what the best connection that can be achieved with a wireless router?
OsirisX

"The only thing that interferes with my learning is my education." - Albert Einstein
PROfessional Member
User avatar
Posts: 4261
Joined: Mon Dec 29, 2003 9:45 pm
Location: USA, CT

Next

Return to Hardware and Customizing

Who is online

Users browsing this forum: No registered users and 4 guests

cron
cron