Forums | MacLife

Wide is the new black

You are not logged in.

#1 2003-01-23 1:50 pm

GUI
Chief Dolt
Royal Wombat
From: NC
Registered: 1999-06-08
Posts: 4828
Website

Networking FAQ

Networking FAQ

What is the difference between a hub, switch, and router/gateway?

Hubs
A hub is a very simple networking devices that takes incoming data from one port and sends it out to every other port on the hub. It is then up to each receiving device on the network to determine if that data packet was directed towards itself. If it was, it keeps it, if not it throws it away. As you can see, this is a horribly inefficient way of networking devices--only one device may talk at a time, and the total bandwidth of the hub must be shared among all the devices.

Switches
Switches, on the other hand, are a much more intelligent device. They are able to receive incoming data, determine its destination, and then pass it on to only that device. Each device can talk to another device on its own connection, so multiple devices may communicate simultaneously. Each port on the switch also carries its own independent bandwidth. This means that if two devices are communicating, their activities won't slow down the connection of any other communications occurring at the same time.

Routers/Gateways
Now if you want to get picky, gateways and routers are two different things, but to simply things, I'm referring to what marketers call routers or internet gateways. These routers are essentially a fancy switch that include a special input Ethernet jack where a broadband modem can be connected. Devices may then be hooked up to the "switch" part of the router to not only communicate with each other, but also share the internet connection.

----------

This is just a start. If you have any other ideas for this FAQ or any contributions, post them here and I'll see about adding them. If find any grammar or spelling mistakes, let me know.


Hard work may not kill you, but why take chances?

Offline

 

#2 2003-01-23 2:14 pm

dj phat 2000
Member
From: New York, USA
Registered: 2001-06-22
Posts: 2667
Website

Re: Networking FAQ

How bout a FAQ on networking protocol?  That would be cool cool


Apple is the only company that makes you want everything they create...  MacAddict-4-Life

Offline

 

#3 2003-01-24 11:11 am

Say_What
Member
From: Castaic,CA,USA
Registered: 2000-07-12
Posts: 520

Re: Networking FAQ

It's more than just a port of seperation, Gateway/Routers also differ from standard switches in that they can perform NAT and forward/deny based on port or IP. Also they can function as a DHCP server making connecting to the network cake(plug and play).  All of which a layer two switch can not.


What is the air speed velocity of an unladen swallow?

Offline

 

#4 2003-01-24 11:10 pm

djdawson
Member
From: Minnesota, USA
Registered: 2001-04-19
Posts: 1860

Re: Networking FAQ

How bout a FAQ on networking protocol?  That would be cool cool

Well, it's not what I'd call a FAQ, but it's a great reference for virtually all network protocols:

    http://www.networksorcery.com/enp/default0501.htm


Dana
[MA]{O}FSG

Offline

 

#5 2003-01-25 9:05 pm

Marathionman
Member
From: The land of Snow
Registered: 2001-10-31
Posts: 2045
Website

Re: Networking FAQ

Nice link djdawson

How about a FAQ on how to share a Broadband internet connection.

Offline

 

#6 2003-02-02 11:06 am

djdawson
Member
From: Minnesota, USA
Registered: 2001-04-19
Posts: 1860

Re: Networking FAQ

There seem to be a lot of misconceptions out there about ethernet speed and duplex, especially with the auto negotiation feature (which we networking professionals universally hate, by the way). The devices at the ends of the ethernet cable must agree on both the speed and duplex. If they don't, a few packets may miraculously make it through, but only a few. In the old days, you just set each device to the same settings and it just worked. Then auto negotiation came around and people thought everything would be easier, but there was no standard for how it was supposed to work, so it frequently didn't. As it became more popular many devices dropped the option to manually set the speed and duplex, so then it became an exercise in trial and error to see what magic combination of settings worked. Then things sort of standardized on Intel's method of auto negotiation, so it started working a little better, but still not always. The problem is that auto negotiation only works when both devices do it. If one device attempts to auto negotiate and the other device doesn't do it, the first device is supposed to fall back to 10/half, and it seems that most devices do that these days (but not all). So, the upshot is that if you have a device that you can't manually set to what you want and the auto feature isn't working, your only real alternative is to force the one device you can set to 10/half. You could try setting it to something else, but if it works it's because you're lucky, not because you're smart. To make matters worse, auto negotiation will work fine for months and months and then might one day just decide to break, after which time it'll probably never work again between those two devices (we have an old Dell PC that did that with our SMC router - it's now manually set to 10/half and is just fine). Also, some devices just never work at all with each other, in which case your only option is to replace one of them or put some other device in between them so they'll negotiate with that device instead of each other. We run into that with some regularity at work with customers who have small Cisco routers and cheap little hubs and/or switches.

Given this, how hard should you try to get your device(s) to run at 100/Full?  Well, if you just have a single machine and are connecting to a gateway/router/firewall through a cable/DSL connection to the Internet, then you probably won't notice much or any difference unless you have an exceptionally fast connection to your ISP (like 6 to 8 Mbits/sec).  Even then, you probably won't notice a huge difference because the latency to the Internet becomes a significant factor.  However, if you have multiple machines on your local network and you share files or otherwise move significant amounts of data between them, then having them all run at 100/Full can make a significant difference.  If you do happen to have a bad combination of devices that just won't agree to talk at 100/Full, then getting one of those cheap 4 or 5 port 10/100 switches and putting it in between the two incompatible devices will frequently work (they're usually around $25 to $35, and, in spite of the occasional compatibility issue, they tend to work pretty well - I've had very good luck with Netgear and Linksys switches).  Swapping cables usually doesn't help, though swapping ethernet cards can, since different manufacturers seem to implement autonegotiation differently.

HTH

Dana
CCIE #1937


Dana
[MA]{O}FSG

Offline

 

#7 2003-03-05 1:52 pm

im_electronic
nuf si sdrawkcab gnidaer
From: next to the mouse
Registered: 2001-04-24
Posts: 2207
Website

Re: Networking FAQ

http://www.flakey.info/

that site contains designs for omnidirectional and sector antennas for 802.11b/g and other cool wireless stuff


Please Don't make my brain hurt, ask logical, thought out, and well worded questions.
http://www.imelectronic.com/
Questions? call:619-244-9907
si ti ylsuoires on

Offline

 

#8 2003-03-05 6:02 pm

CyberGreg
Member
From: Canaan, CT, USA
Registered: 2000-06-26
Posts: 114
Website

Re: Networking FAQ

Excellent.... I just finished up some network info charts (PDF's) and would like some feedback before I submit them to search engines.

Here they are:
http://homepage.mac.com/iTiburon/Networ … etwork.pdf
http://homepage.mac.com/iTiburon/Networ … etwork.pdf
http://homepage.mac.com/iTiburon/Networ … etwork.pdf


Mac's Rule!
"Fred: it's 3 o'clock... time to fry another hard drive..."

Offline

 

#9 2003-09-11 1:21 am

Supermac 7
Member
Registered: 2003-02-01
Posts: 35

Re: Networking FAQ

http://hawkingtech.com/prodSpec.php?ProdID=116

tha tis the best little switch i have ever used, it is aout-sensing, has auto MDI/MDI-X, outo senses and configures to the cable type your using, and is about $50 or less.

Just a heads up:

I had quite a few problems with this switch. I swapped it out for a linksys and it fixed more things than I can count.

Jameson


12.1" PowerBook G4

Offline

 

#10 2003-11-01 1:20 am

im_electronic
nuf si sdrawkcab gnidaer
From: next to the mouse
Registered: 2001-04-24
Posts: 2207
Website

Re: Networking FAQ

hawking updated their product, now using a realtek based chip, works better, the one i linkled to started to flake on me due to heat issues i believe, the new one is better:
http://www.hawkingtech.com/prodSpec.php?ProdID=177
usually less than $50.

apple airport 3.1 and newer support any braodcom based 802.11g NIC without any mods, manu. are:
airlink+, linksys, and buffalo all use this chip, i prefer the buffalo because their cardbus adapter has an MC ext. antenna connector, their PCI uses the same connector and comes with an omni antenna.


Please Don't make my brain hurt, ask logical, thought out, and well worded questions.
http://www.imelectronic.com/
Questions? call:619-244-9907
si ti ylsuoires on

Offline

 

#11 2003-11-27 3:19 am

im_electronic
nuf si sdrawkcab gnidaer
From: next to the mouse
Registered: 2001-04-24
Posts: 2207
Website

Re: Networking FAQ

another good item on my list is a RealTek based PCI NIC, easily spotted due to their crab like icon, and model #, realtek has drivers for the cards for wuse with 8.6-9.2.2, and 10.1-10.2, 10.3 has built in suport, along with windows drivers and linux/unix.
here is the driver:
http://www.realtek.com.tw/downloads/dow … e#16Others

here is what the cards generaly look like:
http://209.61.202.44/images/productlg/PN102TXA.jpg

usualy avaialbe for $10 or less, sometimes free(bundle item).


Please Don't make my brain hurt, ask logical, thought out, and well worded questions.
http://www.imelectronic.com/
Questions? call:619-244-9907
si ti ylsuoires on

Offline

 

#12 2005-03-06 3:07 am

resedit
Chicken Little
Royal Wombat
From: /dev/null
Registered: 1999-11-01
Posts: 43045
Website

Re: Networking FAQ

You should add crossover and straighthrough cables to the FAQ - including when each is used. I sometimes have to look up when I need to use which.

More and more devices are becoming auto-sensing, meaning you can use either, but a lot still is not.


I don't believe in gravity, the Earth just sucks.

Offline

 

#13 2005-04-14 2:42 pm

bazooka15
Member
Registered: 2005-03-23
Posts: 1

Re: Networking FAQ

I just bought an airport express and I can't figure out how to play my itunes on my computer speakers without directly connecting them to the ibook. My internet and printer worked immediately once I plugged them in to the airport express, but for some reason I can't figure out how to connect my speakers. Any suggestions?

Offline

 

#14 2005-06-09 2:31 pm

rdalem
Member
Registered: 2005-06-09
Posts: 2

Re: Networking FAQ

Airport Express requires a 1/8" mini male connector to (probably) 2 RCA male connectors, which then plug into an available input on your stereo system.

Name your Airport Express

Choose that name in iTunes (lower right hand corner)

I think you need a wireless connection to be able to even set it up.  I used the laptop then connect from a wired iMac.

Offline

 

#15 2005-11-28 3:40 am

im_electronic
nuf si sdrawkcab gnidaer
From: next to the mouse
Registered: 2001-04-24
Posts: 2207
Website

Re: Networking FAQ

resedit wrote:

You should add crossover and straighthrough cables to the FAQ - including when each is used. I sometimes have to look up when I need to use which.

More and more devices are becoming auto-sensing, meaning you can use either, but a lot still is not.

straighthrouh/patch cable=
a cat5/5e/6 4pair UTP/STP cable wired typically in T568B to T568B wiring configuration, if your a elctronics guy it's pin 1=pin1, pin2=pin2, and so on, used for connecting a client to a concentrator, computer to hub or switch.

crossover cable=
a cat5/5e/6 4 pair UTP/STP cable wired in T568A to T568B wiring configuration, transmit on one end goes to receive on the other, used for connecting like devices, computer to computer, hub/switch to hub/switch.


Please Don't make my brain hurt, ask logical, thought out, and well worded questions.
http://www.imelectronic.com/
Questions? call:619-244-9907
si ti ylsuoires on

Offline

 

#16 2007-08-14 9:24 am

theyraftermymac
Member
Registered: 2007-08-14
Posts: 1

Re: Networking FAQ

eek
The man is trying to hack my machine. How can I get him out?

I have a mac and I have my firewall setup and I am watching my log and I am constantly getting everyone it seems attempts to hack my machine. I am getting stealth mode attempts, TCP attempts and UDP attempt.

I who is some of the IP addresses that are attempting to get in and they are coming from all over the globe. Cable Companies. A Company the tracks copyrights. and something called RIPE.

What is the deal? How can I shut them out or is there someone that I can report this to?

Please help or it's take out the hard drive and reload the system.

Offline

 

#17 2007-09-30 10:06 pm

macinjack
Member
From: Ann Arbor, Michigan, USA
Registered: 2001-08-04
Posts: 209

Re: Networking FAQ

theyraftermymac wrote:

eek
The man is trying to hack my machine. How can I get him out?

I have a mac and I have my firewall setup and I am watching my log and I am constantly getting everyone it seems attempts to hack my machine. I am getting stealth mode attempts, TCP attempts and UDP attempt.

I who is some of the IP addresses that are attempting to get in and they are coming from all over the globe. Cable Companies. A Company the tracks copyrights. and something called RIPE.

What is the deal? How can I shut them out or is there someone that I can report this to?

Please help or it's take out the hard drive and reload the system.

Can't believe no one's told you yet: What you see on your log is just the "usual" contacts made (some malevolent) which computers do all the time.  If your system hasn't been hacked, then relax.

Since you've done whois, you should surmise what I just said.

But I remember the first time I ever looked at a firewall log (years ago) and did some whois. One ID was for a computer in some dorm room at a small college in Florida. Another was obviously from a business network - someone doing a little dirty work on company time.  But of the hundreds of sniffs recorded in a fairly short time, none evergot in.  I eventually got bored and just stopped looking at the log. 

The old rules don't cover everything but they do greatly reduce your chances of getting hacked or infected:
If you're not running a server - you're safer.
If you're downloading only from trusted sources - you're safer.
If you're trashing all emails from unknown sources - you're safer.
If you're not opening email attachments from unknown or questionable sources- you're safer.
If you have a firewall turned on - you're safer.
If you've learned how to identify phishing emails and report them - you're safer.

I'm sure there's more to this than what I've offered - but like I said, these old rules still cover a lot of threats. Remember: there has to be a "beginner class" of hackers who will try the old hacking techniques as part of their learning curve. Don't make it "rewarding" for them.


If you don't have time to do it right the first time, when are you going to have time to do it over?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson