Wednesday, May 13, 2009

WHAT IS A HUB

Introduction :

A 4 port 'compact design' USB hub: upstream and downstream ports shown
A USB hub is a device that allows many USB devices to be connected to a single USB port on a host computer or another hub.
USB hubs are often built into equipment, such as keyboards, monitors, printers, or computers. When a computer has several USB ports they might all be part of one internal USB hub rather than each port having independent USB hardware.
Physically separate USB hubs come in a wide variety of form factors: from boxes (looking similar to a network hub as shown above) connectible with a long cable, to small designs that can be directly plugged into a USB port (see the 'compact design' picture). In the middle case, there are "short cable" hubs which typically use an integral 6 inch cable to slightly distance a small hub away from physical port congestion and of course increase the number of available ports.

Inverse or Sharing Hubs:

Also available are so-called "sharing hubs", which effectively are the reverse of a USB hub, allowing several PCs to access (usually) a single peripheral. They can either be manual, effectively a simple switch-box, or automatic, incorporating a mechanism that recognises which PC wishes to use the peripheral and switches accordingly. They cannot grant both PCs access at once. Some models, however, have the ability to control multiple peripherals separately (e.g. 2 PCs and 4 peripherals, assigning access separately). Only the simpler switches tend to be automatic, and this feature generally places them at a higher price point too.

Physical layout:

A "star" "short cable" external USB hub with the plastic cover removed
A USB network with many devices requires one or more hubs connected to each other. USB hubs can extend a USB network a maximum of five times. The USB specification requires that bus-powered hubs may not be connected in series to other bus-powered hubs.
USB ports are often closely spaced, so that plugging a device into one port may block an adjacent port, particularly when the plug is not part of a cable but is integral to a device such as a USB flash drive. A horizontal array of horizontal sockets, may be easy to fabricate, but can sometimes cause say only two out of four ports to be usable (depending on plug width).
Port arrays in which the port orientation is perpendicular to the array orientation generally have fewer blockage problems. 'Octopus' hubs (with each socket at the end of a very short cable), or 'star' hubs (with each port pointing in a different direction, as pictured) avoid this problem completely.
Aside from practical layouts, novelty USB hubs have also been produced, such as one shaped like the TARDIS, a fictional time-travelling space ship from the BBC science fiction series Doctor Who, or another shaped like a nuclear missile launch console complete with a big red button (which shuts down the PC).
Laptop computers may come with many USB ports built in, but an external USB hub can consolidate several everyday devices (like a mouse and a printer) into a single port for quick attachment and removal.

Length limitations:

USB cables are limited to 5m. A hub can be used as an active USB repeater to extend cable length for up to 5m lengths at a time. "Active" cables (specialized connector-embedded one-port hubs) perform the same function, but since they are strictly bus-powered, externally powered (non-bus-powered) USB hubs would likely be required for some of the segments.

Power:

A bus-powered hub is a hub that draws all its power from the host computer's USB interface. It does not need a separate power connection. However, many devices require more power than this method can provide, and will not work in this type of hub.
USB current (related to power) is allocated in units of 100 mA up to a maximum total of 500 mA per port. Therefore a compliant bus powered hub can have no more than four downstream ports and cannot offer more than four 100 mA units of current in total to downstream devices (since one unit is needed for the hub itself). If more units of current are required by a device than can be supplied by the port it is plugged into, the operating system usually reports this to the user.
In contrast a self-powered hub is one that takes its power from an external power supply unit and can therefore provide full power (up to 500mA) to every port. Many hubs can operate as either bus powered or self powered hubs.
However, there are many non-compliant hubs on the market which announce themselves to the host as self-powered despite really being bus-powered. Equally there are plenty of non-compliant devices that use more than 100 mA without announcing this fact (or indeed sometimes without identifying themselves as USB devices at all). These hubs and devices do allow more flexibility in the use of power (in particular many devices use far less than 100 mA and many USB ports can supply more than 500 mA before going into overload shut-off) but they are likely to make power problems harder to diagnose.
Some powered hubs do not supply enough power to support a 500mA load on every port. For example, many 7 port hubs come with a 1A power adapter, when in fact seven ports could draw a maximum of 7 x 0.5 = 3.5A, plus power for the hub itself. The assumption is that the user will most likely connect many low power devices and only one or two requiring a full 500mA.

Speed:

To allow high-speed devices to operate in their fastest mode all hubs between the devices and the computer must be high speed. High-speed devices should fall back to full-speed when plugged in to a full-speed hub (or connected to an older full-speed computer port). While high-speed hubs support all device speeds, low and full-speed traffic is combined and segregated from high-speed traffic through a transaction translator. Each transaction translator segregates lower speed traffic into its own pool, essentially creating a virtual full-speed bus. Some designs use a single transaction translator, while other designs have multiple translators. Having multiple translators is only a significant benefit when connecting multiple high-bandwidth full-speed devices.
It is an important consideration that in common language (and often product marketing) USB 2.0 is used as synonymous with high-speed. However, because the USB 2.0 specification, which introduced high-speed, incorporates and supersedes the USB 1.1 specification, any compliant full-speed or low-speed device is still a USB 2.0 device. Thus, not all USB 2.0 hubs operate at high-speed.

Protocol:

Each hub has exactly one upstream port and a number of downstream ports. The upstream port connects the hub (directly or through other hubs) to the host. Other hubs or devices can be attached to the downstream ports.
During normal transmission, hubs are essentially transparent: data received from its upstream port is broadcast to all devices attached to its downstream ports; data received from a downstream port is generally forwarded to the upstream port only. This way, what is sent by the host is received by all hubs and devices, and what sent by a device is received by the host but not by the other devices (an exception is resume signaling).
Hubs are not transparent when dealing with changes in the status of downstream ports, such as insertion or removal of devices. In particular, if a downstream port of a hub changes status, this change is dealt with an interaction between the host and this hub; the hubs between them act as transparent in this case.
To this aim, each hub has a single interrupt endpoint "1 IN" (endpoint address 1, hub-to-host direction) used to signal changes in the status of the downstream ports. When a device is attached, the hub detects the device pull-up resistor on either D+ or D- and signals the insertion to the host via this interrupt endpoint. When the host polls this interrupt endpoint, it is informed of the presence of the new device. It then instructs the hub (via the default control pipe) to reset the port where the new device is connected. This reset makes the new device assuming address 0, and the host can then interact with it directly; this interaction will result in the assignment of a new (non-zero) address to the device.

Electronic design:

Most USB hubs use one or more integrated controller ICs, of which several designs are available from various manufacturers. Most support a four port hub system, but hubs using seven-port hub controllers are also available.Additional features on some hub controllers include control of port LEDs (sometimes automatic, sometimes under control of the host PC) and PS/2 to USB conversion for mice and keyboards.

NETWORK TOPOLOGY

Network topology

Network topology is the study of the arrangement or mapping of the elements (links, nodes, etc.) of a network, especially the physical (real) and logical (virtual) interconnections between nodes.[1][2] A local area network (LAN) is one example of a network that exhibits both a physical topology and a logical topology. Any given node in the LAN will have one or more links to one or more other nodes in the network and the mapping of these links and nodes onto a graph results in a geometrical shape that determines the physical topology of the network. Likewise, the mapping of the flow of data between the nodes in the network determines the logical topology of the network. The physical and logical topologies might be identical in any particular network but they also may be different.
Any particular network topology is determined only by the graphical mapping of the configuration of physical and/or logical connections between nodes. LAN Network Topology is, therefore, technically a part of graph theory. Distances between nodes, physical interconnections, transmission rates, and/or signal types may differ in two networks and yet their topologies may be identical

MAN CONNECTION

Metropolitan area networks, or MANs, are large computer networks usually spanning a city. They typically use wireless infrastructure or Optical fiber connections to link their sites.

A MAN is optimized for a larger geographical area than a LAN, ranging from several blocks of buildings to entire cities. MANs can also depend on communications channels of moderate-to-high data rates. A MAN might be owned and operated by a single organization, but it usually will be used by many individuals and organizations. MANs might also be owned and operated as public utilities. They will often provide means for internetworking of local networks. Metropolitan area networks can span up to 50km, devices used are modem and wire/cable

Implementation
Some technologies used for this purpose are ATM, FDDI, and SMDS. These older technologies are in the process of being displaced by Ethernet-based MANs (e.g. Metro Ethernet) in most areas. MAN links between LANs have been built without cables using either microwave, radio, or infra-red laser links. Most companies rent or lease circuits from common carriers due to the fact that laying long stretches of cable can be expensive.
DQDB, Distributed Queue Dual Bus, is the Metropolitan Area Network standard for data communication. It is specified in the IEEE 802.6 standard. Using DQDB, networks can be up to 20 miles (30 km) long and operate at speeds of 34 to 155 Mbit/s.
Several notable networks started as MANs, such as the Internet peering points MAE-West, MAE-East, and the Sohonet media network

WAN CONNECTION

Wide area network

Wide Area Network (WAN) is a computer network that covers a broad area (i.e., any network whose communications links cross metropolitan, regional, or national boundaries [1]). In contrast with personal area networks (PANs), local area networks (LANs), campus area networks (CANs), or metropolitan area networks (MANs) which are usually limited to a room, building, campus or specific metropolitan area (e.g., a city) respectively. The largest and most well-known example of a WAN is the Internet.
WANs [a] are used to connect LANs and other types of networks together, so that users and computers in one location can communicate with users and computers in other locations. Many WANs are built for one particular organization and are private. Others, built by Internet service providers, provide connections from an organization's LAN to the Internet. WANs are often built using leased lines. At each end of the leased line, a router connects to the LAN on one side and a hub within the WAN on the other. Leased lines can be very expensive. Instead of using leased lines, WANs can also be built using less costly circuit switching or packet switching methods. Network protocols including TCP/IP deliver transport and addressing functions. Protocols including Packet over SONET/SDH, MPLS, ATM and Frame relay are often used by service providers to deliver the links that are used in WANs. X.25 was an important early WAN protocol, and is often considered to be the "grandfather" of Frame Relay as many of the underlying protocols and functions of X.25 are still in use today (with upgrades) by Frame Relay.
Academic research into wide area networks can be broken down into three areas: Mathematical models, network emulation and network simulation.

ETHERNET

ETHERNET CABLE
About the Cable:You can find bulk supplies of the cable at many computer stores or most electrical or home centers. You want UTP (Unshielded Twisted Pair) Category 5 cable for basic 10/100 functionality. You want CAT 5e for gigabit (1000BaseT) operation and CAT 6 or 7 gives you a measure of future proofing. Bulk cable comes in many types, there are 2 basic categories, solid and braided cable. Braided cable tends to work better in patch applications for desktop use. It is more flexible and resilient than solid cable and easier to work with, but really meant for shorter lengths. Solid cable is meant for longer runs in a fixed position. Plenum rated cable must be used whenever the cable travels through an air circulation space. For example, above a false ceiling or below a raised floor. It may be difficult or impossible to tell from the package what type of cable it is, so peal out an end and investigate.
Here is what the internals of the cable look like:
Internal Cable Structure and Color Coding
Inside the cable, there are 8 color coded wires. These wires are twisted into 4 pairs of wires, each pair has a common color theme. One wire in the pair being a solid or primarily solid colored wire and the other being a primarily white wire with a colored stripe (Sometimes cables won't have any color on the striped wire, the only way to tell which is which is to check which wire it is twisted around). Examples of the naming schemes used are: Orange (alternatively Orange/White) for the solid colored wire and White/Orange for the striped cable. The twists are extremely important. They are there to counteract noise and interference. It is important to wire according to a standard to get proper performance from the cable. The TIA/EIA-568-A specifies two wiring standards for an 8-position modular connector such as RJ45. The two wiring standards, T568A and T568B vary only in the arrangement of the colored pairs. Tom writes to say "...sources suggest using T568A cabling since T568B is the AT&T standard, but the US Government specifies T568A since it matches USOC cabling for pairs 1 & 2, which allows it to work for 1/2 line phones...". Your choice might be determined by the need to match existing wiring, jacks or personal preference, but you should maintain consistency. I've shown both below for straight through cabling and just T568B for cross over cabling.
A local area network (LAN) is a computer network covering a small physical area (Within 1 KM), like a home, office, or small group of buildings, such as a school, or an airport. The defining characteristics of LANs, in contrast to wide-area networks (WANs), include their usually higher data-transfer rates, smaller geographic place, and lack of a need for leased telecommunication lines.

Wireless LAN

A wireless LAN (WLAN) is a wireless local area network that links two or more computers or devices using spread-spectrum or OFDM modulation technology based to enable communication between devices in a limited area. This gives users the mobility to move around within a broad coverage area and still be connected to the network.
For the home user, wireless has become popular due to ease of installation, and location freedom with the gaining popularity of laptops. Public businesses such as coffee shops or malls have begun to offer wireless access to their customers; some are even provided as a free service. Large wireless network projects are being put up in many major cities: New York City, for instance, has begun a pilot program to cover all five boroughs of the city with wireless Internet access.