Ethernet was developed in the late 1970's by the Xerox Corporation at their Palo AltoResearch Centre in California. It has been estimated that over 70% of the worldsnetworks use the Ethernet protocol, so with this in mind it would seem only sensibleto discuss how it works. If you would like to buy books on this subject, have a look atthe Network Cabling Help online book store.OK, lets begin the lesson. Ethernet uses a protocol called CSMA/CD, this stands forCarrier Sense, Multiple Access with Collision Detection. To understand what thismeans lets separate the three parts.Carrier Sense - When a device connected to an Ethernet network wants to senddata it first checks to make sure it has a carrier on which to send its data (usually apiece of copper cable connected to a hub or another machine).Multiple Access - This means that all machines on the network are free to use the network wheneverthey like so long as no one else is transmitting.Collision Detection - A means of ensuring that when two machines start to transmit data simultaneously,that the resultant corrupted data is discarded, and re-transmissions are generated at differing timeintervals.Here are some animated GIF's to help explain basic Ethernet operation, below each one is a description ofwhat is happening.If you want to start an animation from the beginning hit your browsers refresh button.
The Basic Ethernet Bus
This is a coax based Ethernet network where all machines are daisy chained using RG58 coaxial cable(sometimes referred to as Thin Ethernet or Thin-net). This type of network is no longer used butunderstanding how Thin Ethernet worked explains the very basics of Ethernet operation.Machine 2 wants to send a message to machine 4, but first it 'listens' to make sure no one else is usingthe network.If it is all clear it starts to transmit its data on to the network (represented by the yellow flashing screens).Each packet of data contains the destination address, the senders address, and of course the data to betransmitted.The signal moves down the cable and is received by every machine on the network but because it is onlyaddressed to number 4, the other machines ignore it.Machine 4 then sends a message back to number 2 acknowledging receipt of the data (represented by the purple flashing screens).But what happens when two machines try to transmit at the same time? . . . . . a collision occurs, and eachmachine has to 'back off' for a random period of time before re-trying.For the sake of simplicity I have omitted the acknowledgement transmissions from the rest of theanimation's on this page.
Collisions
This animation starts with machine 2 and machine 5 both trying to transmit simultaneously.The resulting collision destroys both signals and each machine knows this has happened because they donot 'hear' their own transmission within a given period of time (this time period is the propagation delayand is equivalent to the time it takes for a signal to travel to the furthest part of the network and backagain).Both machines then wait for a random period of time before re-trying. On small networks this all happensso quickly that it is virtually unnoticeable, however, as more and more machines are added to a networkthe number of collisions rises dramatically and eventually results in slow network response.The exact number of machines that a single Ethernet segment can handle depends upon the applicationsbeing used, but it is generally considered that between 40 and 70 users are the limit before network speed is compromised.
Using a Hub
An Ethernet hub changes the topology from a 'bus' to a 'star wired bus', here's how it works.Again, machine 1 is transmitting data to machine 4, but this time the signal travels in and out of the hub toeach of the other machines.As you can see, it is still possible for collisions to occur but hubs have the advantage of centralised wiring,and they can automatically bypass any ports that are disconnected or have a cabling fault. This makes the network much more fault tolerant than a coax based system where disconnecting a single connection willbring the whole network down. Hubs are very rare these days, but understanding how they work makes it easier to explain the differencebetween a hub and a switch.
Using a Switch
To overcome the problem of collisions and other effects on network speed we now use switches.With a switch, machines can transmit simultaneously, in this case 1 & 5 first, and then 2 & 4. As you cansee, the switch reads the destination addresses and 'switches' the signals directly to the recipients withoutbroadcasting to all of the machines on the network.This 'point to point' switching alleviates the problems associated with collisions and considerably improvesnetwork speed.In the real world however, one or more of thesemachines will be servers, and as most network trafficis between the clients and a server a serious bottleneck can occur. The answer to this problem is tomake server connections faster than the clients. Thenormal solution is to have the client machines on100Mbs ports and the servers on 1000Mbs ports(Gigabit Ethernet). This ten to one ratio is usuallyadequate because not all of the clients will need toaccess the servers at the same time.