Showing posts with label ethernet. Show all posts
Showing posts with label ethernet. Show all posts

Friday, January 30, 2009

Network Topologies

In computer networking, topology refers to the layout of connected devices. This article introduces the standard topologies of networking.
Topology in Network Design
Think of a topology as a network's virtual shape or structure. This shape does not necessarily correspond to the actual physical layout of the devices on the network. For example, the computers on a home LAN may be arranged in a circle in a family room, but it would be highly unlikely to find a ring topology there.
Network topologies are categorized into the following basic types:
· bus
· ring
· star
· tree
· mesh
More complex networks can be built as hybrids of two or more of the above basic topologies.
Bus Topology
Bus networks (not to be confused with the system bus of a computer) use a common backbone to connect all devices. A single cable, the backbone functions as a shared communication medium that devices attach or tap into with an interface connector. A device wanting to communicate with another device on the network sends a broadcast message onto the wire that all other devices see, but only the intended recipient actually accepts and processes the message.
Ethernet bus topologies are relatively easy to install and don't require much cabling compared to the alternatives. 10Base-2 ("ThinNet") and 10Base-5 ("ThickNet") both were popular Ethernet cabling options many years ago for bus topologies. However, bus networks work best with a limited number of devices. If more than a few dozen computers are added to a network bus, performance problems will likely result. In addition, if the backbone cable fails, the entire network effectively becomes unusable.
Ring Topology
In a ring network, every device has exactly two neighbors for communication purposes. All messages travel through a ring in the same direction (either "clockwise" or "counterclockwise"). A failure in any cable or device breaks the loop and can take down the entire network.
To implement a ring network, one typically uses FDDI, SONET, or Token Ring technology. Ring topologies are found in some office buildings or school campuses.
Star Topology
Many home networks use the star topology. A star network features a central connection point called a "hub" that may be a hub, switch or router. Devices typically connect to the hub with Unshielded Twisted Pair (UTP) Ethernet.
Compared to the bus topology, a star network generally requires more cable, but a failure in any star network cable will only take down one computer's network access and not the entire LAN. (If the hub fails, however, the entire network also fails.)
Tree Topology
Tree topologies integrate multiple star topologies together onto a bus. In its simplest form, only hub devices connect directly to the tree bus, and each hub functions as the "root" of a tree of devices. This bus/star hybrid approach supports future expandability of the network much better than a bus (limited in the number of devices due to the broadcast traffic it generates) or a star (limited by the number of hub connection points) alone.
Mesh Topology
Mesh topologies involve the concept of routes. Unlike each of the previous topologies, messages sent on a mesh network can take any of several possible paths from source to destination. (Recall that even in a ring, although two cable paths exist, messages can only travel in one direction.) Some WANs, most notably the Internet, employ mesh routing.
A mesh network in which every device connects to every other is called a full mesh. As shown in the illustration below, partial mesh networks also exist in which some devices connect only indirectly to others.

Thursday, January 29, 2009

How to Cabling Your Network


There are two main ways of connecting PCs together to form a network. There are others, but for now, we will consider only the Ethernet alternatives:

  • Coaxial Ethernet

Coaxial ethernet is really a fading concept. Two types are available, Thick-wire and Thin-wire. Thick-wire is very unlikely to be found on modern networking equipment but thin-wire is fairly common. Thin-wire ethernet consists of lengths of 50ohm coax cable that are terminated in BNC bayonet connectors. Thin-wire compatible equipment sport a round barrel that the coax is plugged into. Unfortunately, connecting thin-wire is not always so simple. It is important that a thin-wire cable is correctly terminated and not all thin-net NICs are able to automatically terminate a cable. In this case, it is necessary to use a t-piece c/w a terminator so that a cable impedance of 50ohm is maintained. Failure to observe this will result in communication problems between the network devices.

Note: Thin-wire ethernet is also known by it's technical notation of 10base2.

  • TP Ethernet

TP, or Twisted Pair Ethernet is the modern equivalent of 10base2 cable systems. Far more flexible, neater and less prone to network faults, TP appears on a myriad of networking and communications equipment. If you have your single PC already connected to your CM then you are already using RJ45 TP cabling and it will almost probably feature in your network. CAT5 cable consists of 4 pairs of wires, with each pair being two insulated copper wires twisted together. These 'twisted-pairs' are then sheathed in a plastic outer sleeve that come in a variety of colours, although 'computer' beige is probably the most common;-). The standards for ethernet over Cat5 cabling define a maximum length of 100 metres for operation at 10MBps, but in practice it is perfectly possible to extend this maximum by 20 or 30 metres without detriment to network communication.

RJ45 refers to the connector that is crimped onto the end of the CAT 5 cable. The connector is rectangular in shape and has a tab at the top. The cable is inserted so that the tab latches onto a small recess in the socket, rather like the side latch on the ubiquitos BT telephone plug.

Almost all of the network set-ups featured on this site use RJ45 cabling exclusively, with each cable being of the 'straight' type. Where necessary, x-over cables are also employed. The following diagrams show how the two types of ethernet detailed above can be used in a network, with straight RJ45 cables depicted by BLUE lines and cross-overs in RED. Thinwire Co-ax cable is shown in grey.

Connecting a Single PC to a CM connected PC

  • With Thinwire


For this set-up a single piece of thinwire co-ax is used to connect two PCs, with each end of the cable physically connected to a T-piece, with the 'spare' connector capped with a terminator to maintain the cable impedance.

It is important to use the correct cable type for thinwire so that the impedance is correct. The official designation is RG58.

  • With RJ45


Where two PCs are connected using an RJ45 cable, a cross-over cable needs to be used. An RJ45 cross-over cable actually crosses the transmit and receive pairs in the cable so that one NICs transmit connects to the other NICs receive, and vice versa.

Connecting Multiple PCs to a CM connected PC

  • With Thinwire


To add additional clients to the network, remove one of the t-pieces and connect another thinwire coax cable to the vacant connector and replace the terminator at the t-piece of the last device.

Note that some network cards have an on-board termination setting.

  • With RJ45


In an RJ45 cabled network, adding additonal clients requires the use of an intermediary device such as a hub or a switch. PCs connect to the hub/switch using straight cables and these are, in turn, connected internally within the hub or switch.

In this environment, there is no requirement for RJ45 cross-over cables.

Straight v. X-over Cables

The requirement for RJ45 cross-over, or x-over, cables is dictated by the type of devices that are being connected. There are two interface types associated with networking equipment, DTE (Data Terminating Equipment) and DCE (Data Communications Equipment). DTE devices mainly consist of PC NICs and Routers. When connecting a DTE device to a DCE device, e.g., a PC to a Hub, a straight cable is required. When the two connecting devices have the same interface type, i.e., both DCE or both DTE, then a x-over cable is necessary.

Device

I/F Type

Device

I/F Type

Cable Type

PC

DTE

Hub Port

DCE

Straight

PC

DTE

Cable Modem

DCE

Straight

PC

DTE

PC

DTE

X-Over

Hub Port

DCE

Hub Port

DCE

X-over

Unfortunately, these examples do not constitute hard and fast rules. Some Cable Modems, especially those integrated in Set-Top Boxes, have DTE interfaces, so any PC or Router that connects to it will need a x-over cable. Also, when connecting two hubs together a x-over cable may not be necessary if one of the hubs has an uplink port. An uplink port will have a DTE type interface, so a straight cable can be used to connect to another DCE port, such as a hub port. On many hubs, one of the ports may have a port that is switchable between DCE and DTE. This function can be manual, so a switch has to be activated, or an interface can auto-detect what type of interface it needs to be.

The following diagram shows the necessary cabling required for both straight and x-over CAT5 cables. Each of the four pairs in a cable are colour coded for easy identification, although the colours may vary between different cables.


The Tx and Rx refer to Transmit and Receive respectively, with the + and - symbols refering to the polarity of the signals. A DTE device will transmit data using cables 1 and 2, whilst a DCE device will transmit on Pins 3 and 6. The transmit cables at one end must be connected to the receive cables at the other end for the connection to work. When constructing cables, it is important that the polarities are maintained so that the cable is not affected by interference.