Wednesday, April 25, 2012

LAN Wiring & Pinouts - 10base-T, 100base-TX/T4, 1000base-T, 10Gbase-T

LAN Wiring & Pinouts - 10base-T, 100base-TX/T4, 1000base-T, 10Gbase-T

Crossed and Straight cables - when to use them

The following diagram shows the Normal use of Crossed and Straight cables (see also the notes below).
Notes:
  1. We show Straight cables as BLUE and Crossed as RED. That is our convention. The cable color can be anything you choose or, more likely, the vendor decides.
  2. To avoid the need for Crossed cables many vendors provided UPLINK ports on Hubs or Switches - these were specially designed to allow the use of a STRAIGHT cable when connecting back-to-back Hubs or Switches. Read the manufacturers documentation carefully.
  3. Increasingly vendor hubs (can you still buy them) and switches will auto-detect the connection type and internally switch the connectors so that STRAIGHT cables can be used everywhere.

Standards Summary

The various standards can get a tad complicated and messy. We get occasional email requesting a summary of the standards - this is our attempt to provide a quick overview.

Standard Required Pairs 10M 100M 1000M 10G Cable Notes
10base-T 2 (1/2 and 3/6) yes yes no no cat 5, 5e, 6 100m support only if no cat 3/4 in run
100base-TX 2 (1/2 and 3/6) yes yes no no cat 5, 5e, 6 100m support only if no cat 3/4 in run
100base-T4 4 (1/2, 3/6, 4/5 and 7/8) yes yes yes yes cat 3, 4, 5, 5e, 6 max of 100m if cat 3 or 4 in network
1000base-T 4 (1/2, 3/6, 4/5 and 7/8) yes yes yes yes cat 5e, 6 Functionally identical to 100base-T4. Some cat cables may be acceptable.
10Gbase-T 4 (1/2, 3/6, 4/5 and 7/8) yes yes yes yes cat 6a cat 6 cables may be used but have distance limitations.

Category 5(e) (UTP) colour coding table

The following table shows the normal colour coding for category 5 cables (4 pair) based on the two standards supported by TIA/EIA (see also our primer on this topic)
We get occasional email about the difference between 568A and 568B wiring. Which one you use is a matter of local decision. These standards apply to the color code used within any SINGLE cable run - BOTH ENDS MUST USE THE SAME STANDARD. However, since they both use the same pinout at the connectors you can mix 568A and 568B cables in any installation.
cat colors 

10baseT Straight Cable (PC to HUB/SWITCH)

Straight cables are used to connect PCs or other equipment to a HUB or Switch. If your connection is PC to PC or HUB to HUB you MAY need to use a Crossed cable with older equipment. Most modern Hubs and Switches provide auto-sensing which means a straight cable can always be used.
The following cable description is for the wiring of both ends (RJ45 Male connectors) with the 568B category 5(e) wiring colors you could, of course, use the 568A colour scheme.

Pin No. strand color Name
1 white and orange TX+
2 orange TX-
3 white and green RX+
4 NC *
5 NC *
6 green RX-
7 NC *
8 NC *

NOTE: Items marked * are not necessary for 10M LANs (10base-T) but since you will be moving shortly to 100MB or Gigabit LANs (won't you) you will save yourself a LOT OF TIME finding crappy cable (that you made) that does not work. Instead we suggest you wire to 100Base-T4 standards. After all you gotta stick the ends somewhere man.
We use BLUE for 10base-T straight cables. NOTE: All our wiring is now done to the 100base-T4 spec which you can use with 10base-T networks - but NOT necessarily the other way around.

10baseT Crossed cable (PC to PC or HUB to HUB)

Crossed cables are used to connect PCs to one other PC or to connect a HUB to a HUB. Crossed cables are sometimes called Crossover, Patch or Jumper cables. If your connection is PC to HUB you MUST use a Straight cable.
The following description shows the wiring at both ends (male RJ45 connectors) of the crossed cable.
One end
RJ45 Male
Other end
RJ45 Male
1 3
2 6
3 1
4 * 5 *
5 * 4 *
6 2
7 * 8 *
8 * 7 *
NOTES:
  1. Items marked * are not necessary for 10M LANs but since you will be moving shortly to 100MB or Gigabit LANs (won't you) you will save yourself a LOT OF TIME finding crappy cable (that you made) that does not work. Instead we suggest you wire to 100BaseT standards.
  2. We use RED for crossed cables (or more commonly now a red heat-shrink collar at each end).
  3. All our crossed wiring is done to the 100base-T4 spec which you can use with 10baseT networks - but NOT always the other way around.

100base-T Straight Cable (PC to HUB/SWITCH)

Straight cables are used to connect PCs or other equipment to a HUB or Switch. If your connection is PC to PC or HUB to HUB you MAY need to use a Crossed cable with older equipment. Most modern Hubs and Switches provide auto-sensing which means a straight cable can always be used.
The following cable description is for the wiring of BOTH ends (RJ45 Male connectors) with your category 5 wiring colors (TIA/EIA 568A or 568B though the example uses 568B colors).

Pin No. conductor color Name
1 white and orange TX_D1+
2 orange TX_D1-
3 white and green RX_D2+
4 blue BI_D3+ **
5 white and blue BI_D3- **
6 green RX_D2-
7 white and brown BI_D4+ **
8 brown BI_D4- **

We use BLUE for 100baseT straight cables.
NOTES:
  1. Wires marked ** are ABSOLUTELY NECESSARY for 100Base-T4 networks - used when any combination of category 3/4/5 cables are present, when using 1000base-T (GigE) and MAY be required for Power-over-Ethernet (PoE) - see below.
  2. Wires marked ** are not essential for 100Base-TX (using cat 5/5e6/6a ONLY cables) and CAN be used for other purposes, for example, telephony but, .. beware .. read this FAQ and our LAN plus Telephony article before you wire your entire neighbourhood for surround sound.
  3. The Power-over-Ethernet spec (802.3af) allows three schemes where power may be supplied. Two of these schemes use pairs 4,5 and 7,8 (marked ** in above table) for power (called Midspan PSE and Alternative B or Mode B), one scheme uses ONLY pairs 1,2 and 3,6 (Endpoint PSE, Alternative A or Mode A) for both signals and power. Depending on which scheme you use pairs 4,5 and 7,8 may be required. See Power over Ethernet (PoE).
  4. Gigabit Ethernet requires all 4 pairs (8 conductors).
  5. All our wiring is now done to the 100base-T4 spec which you can use with 1000base-T and even 10baseT networks - but NOT the other way around.

100base-T Crossed cable (PC to PC or HUB to HUB)

Crossed cables are used to connect PCs to one other PC or to connect a HUB to a HUB. Crossed cable are sometimes called Crossover, Patch or Jumper cables. If your connection is PC to HUB you MUST use a Straight cable. Most modern Hubs and Switches provide auto-sensing which means a straight cable can always be used.
The following description shows the wiring at both ends (male RJ45 connectors) of the crossed cable. Note: The diagrams below shows crossing of all 4 pairs and allows for the use of cat3/4 cables with 100m LANs (100base-T4). Pairs 4,5 and 7,8 do not NEED to be crossed in 100base-TX wiring. See notes below.
crossed connection
We use RED for crossed cables (or more commonly now a red heat-shrink collar at each end).
NOTES:
  1. All our crossed wiring is now done to the 100base-T4 spec (uses all 4 pairs, 8 conductors) which you can use with 1000base-T and even 10base-T networks - but NOT necessarily the other way around.
  2. Many commercial 100m LAN patch cables seem not to cross pairs 4,5 and 7,8. If there is no cat3/4 wiring in the network this perfectly acceptable.
  3. Gigabit Ethernet uses all 4 pairs so requires the full 4 pair (8 conductor) cross configuration (shown above).
  4. If you are using Power-over-Ethernet (802.3af) then Mode A or Alternative A uses pairs 1,2 and 3,6 for both signals and power. Mode B or alternative B uses 4,5 and 7,8 to carry power. In all cases the spec calls for polarity insensitive implementation (using a diode bridge) and therefore crossing or not crossing pairs 4,5 and 7,8 will have no effect. See Power over Ethernet (PoE).

1000base-T Gigabit Ethernet

1000base-T is the copper based version of the gigabit Ethernet standard defined by 802.3ab which, since it is over 12 months old, is available free of charge from the enlightened IEEE. Great work. In passing, if you want to see sophistry raised to an art form read the EIA's justification for charging for their specifications. (Note: The original EIA statement is, unfortunately, no longer available on-line. This is a great loss to the development of the English language in general, and comedy writing in particular.) The following notes apply to the 1000base-T spec:
  1. The standard defines auto-negotiation of speed between 10, 100 and 1000 Mbit/s so the speed will fall to the maximum supported by both ends - ensuring inter-working with existing installations.
  2. The cable specification base-line is ANSI/TIA/EIA-568-A-1995 (which you have to pay for). This means that if you know your cat5 cable was manufactured to this standard (there was a lower rated 1991 version of this specification) then it will support Gigabit Ethernet. Cat5 cable manufactured to the old specification may work or it may not - you need to run some tests. Cat 5e and cat 6 being higher spec cables will support Gigabit Ethernet.
  3. Maximum runs are the standard 100m (~330ft).
  4. Gigabit Ethernet uses all 4 pairs (8 conductors). The transmission scheme is radically different from 10 and 100 Mbit/s standards (PAM-5: a 5 level amplitude modulation scheme) and each conductor is used for send and receive.
  5. Crossed Gigabit Ethernet cables must cross all 4 pairs however it should be noted that since all 1000base-T equipment includes automatic crossover detection, crossed 1000base-T cables are extremely rare.
  6. Because of the higher speeds everything about a Gigabit cable must be correct. Specifically the connectors must be rated for Gigabit operation with minimal untwisting of the cable when adding the connector. See also cabling hints.
  7. When Cat6 cables are used these will also support 10 Gbit/s operation up to 55m. When Cat6a cables are used these will support 10 Gbit/s operation up to 100m.

10Gbase-T 10 Gigabit Ethernet

This is serious stuff only for server-server installations at this time - most PCs have a hard time even driving Gigabit networks. 10Gbase-T defines 10 gigabit Ethernet over copper cables (multiple other PHYs also exist within the 10G Ethernet ecosystem). Originally defined in 802.3an (2006) this has now been consolidated into the base 802.3-2008 spec (available at no cost from the IEEE). The followings notes apply to 10Gbase-T:
  1. The standard allows for auto-negotiation and thus 10Gbase-T will interwork with 10base-T, 100base-TX/T4 and 1000base-T networks but default, obviously, to the highest common speed supported on any given point-to-point connection.
  2. All 4 pairs - 8 connectors are required - it uses 1000base-T (or 100base-T4) wiring.
  3. 10Gbase-T requires category 6a wiring defined by ANSI/TIA-568-C.2 (ISO 11801 amendment 2) to support 100m (~330ft) runs. Category 6a wiring is bigger (standard allows up to 0.35 inch cable diameter vs ~0.20 for cat 5e and ~0.23 for cat 6) and currently (2011) around 30% more expensive than cat 6 which is around 50% more expensive than cat 5e.
  4. Category 6 wiring will support 10Gbase-T at up to 55m (~185ft) in electrically quiet environments and up to 37m (~81ft) in electrically noisy environments (such as in cable bundles, elevator shafts, proximity to flourescent lights). The measurement of electrical noise threshold levels (especially cross-talk) for cat 6a cables is defined by TIA-155-A (and ISO TR 24750) both of which you will have the dubious pleasure of paying for - handsomely.
  5. To maintain 10G speeds needs serious attention to all wiring practices. Minimum bending radii, careful attention to connectors and minimum untwisting of pairs are all crucial - this is not amateur stuff. STP may be a safer option (a view not always shared by the cable suppliers) or optical.

Power over Ethernet (PoE)

The original PoE specification was 802.3.af (2003) which has been superseded by 802.3at (2009). The primary differences are that the new 802.3at specification includes support for Gigabit LANs and raises the power levels available when using certain cable types. The following notes apply:
  1. The power available at each end-point with 802.3af is 13.0 Watts (W). The maximum input voltage is 44V DC at a current of 350ma which gives a figure of 15.4 W (44 x 350/100) but due to power losses in cables the 13.0 W value is guaranteed even at maximum (100m - ~330ft) runs on category 5, 5e and 6 wiring.
  2. The current 802.3at standard spilts systems into two categories for PoE levels based on the cable type. Type 1 covers cat 5 cables and these remain limited to the 802.3af limits of 13 W. Type 2 covers cat 5e (the actual minimum spec is ANSI/TIA/EIA-568-A-1995 which does cover some late cat 5 cables which only became available some time after 1995) and cat 6 cables and increases the maximum current to 600ma giving a maximum power figure of 44 x 600/100 = 26.4 W. Again due to losses over distance (lower than with Type 1 systems) this gives a figure of 25.5 W which is available even at maximum (100m - ~330ft) runs.
  3. Power Wiring: 802.3at defines two Alternatives (A and B) depending on your wiring system.
    • If you are using 10base-T or 100base-TX (both only need 2 pairs - 4 connectors) then Alternative A wiring sends power over the signal pairs 1,2 and 3,6 since these may be the only ones connected. Alternative B wiring uses the unused pairs 4,5 and 7,8 for power and will clearly only work for systems which have connected all 4 pairs (and are therefore using 100base-T4 wiring!).
    • If you are using 100base-T4 or 1000base-T (both need 4 pairs - 8 connectors) then Alternative A wiring sends power over the signal pairs 1,2 and 3,6. Alternative B wiring uses the signal pairs 4,5 and 7,8. Since 100base-T4 and 1000base-T need all 4 wires connected there is no functional difference between Alternative A and B in this case.

RJ45 Connector (Plug and Receptacle) Pin Numbering

RJ45 Male Connector (Plug) and Female Connector (Receptacle)
rj45
Notes:
  1. Today the male connector is more normally called a plug and the female connector a receptacle. Historically the term Jack was frequently used to describe what is now called a plug and Wall-Jack, or even just Jack, to describe the receptable. It's complicated.
  2. While most commonly referred as an RJ45, it is a modular connector with the catchy name of 8P8C (8 Positions, 8 Connections). RJ - in case you were wandering - means Registered Jack.
  3. The receptacle numbering is shown using a FRONT view (left to right, pin 1 - 8). Beware however, receptacles are wired from the REAR and hence the numbering will be inverted. Viewed from the REAR the numbering will be left to right, pin 8 - 1.

RJ45 Connections - some hints

We get mail saying 'Help. I've wired it correctly but it does not work'. Here are some simple notes that may help. Remember: it's more difficult that you think.
Use the best crimp tool you can afford or borrow. A cheap magnifying glass can sometimes help enormously. LAN cable testers are available in a range of prices from $10s to $100s of dollars and if you are going to do a lot of wiring are well worth the investment.
  1. The RJ45 connector is the critical connection. Always use the highest quality connectors you can afford and rated for the cable category (using category 5e rated connectors with categeory 6/6a cable is a stupid economy). The most common cause of connection faults are bad connectors.
    There are different connectors for stranded and solid cable and manufacturers do not always do a good job at differentiating them. Spend the time to make sure you have the right connector type. Category 6/6a cables have higher rated (read - more expensive) connectors - always use them - don't penny-pinch. If you use the wrong type of connector the cable may work initially but it will almost certainly fail very quickly - then you'll spend hours debugging the problem. It will all end in tears as mothers throughout the world used to say, and probably still do.
  2. Make and test practice cables until you get it right every time - especially before you destroy a cable you just spent 2 hours fitting.
  3. When installing cable runs ensure the bend radius is within the cable specification and avoid kinks and excessive cable twisting. While the bend radius for Cat5/5e/6 is defined to be approximately 1 inch, in general this should be avoided and a more generous 3 - 6 inches should be allowed unless absolutely necessary.
  4. When cutting the exterior cover of the cable be very careful not to cut the insulation cover of the conductors since this can cause shorts. Bottom line: the cable won't work.
  5. Expose a maximum of 1 inch of individual conductors when preparing the cable for connection.
  6. Untwist the pairs and line up all the conductors according to the wiring standard you are using. Only untwist the exposed connector pairs that lie outside of the exterior cover. Do not allow the untwisting operation to propagate under the exterior cover.
  7. Measure the cable end by placing it beside the RJ45 and trim the conductor ends so they are are all the same length and no conductor wire is visible outside the plastic cover of the RJ45 connector. This procedure also ensures the absolute minimum of untwisted cable is used. Untwisting too much cable can easily cause reduced speed - especially when running Gigabit connections.
  8. Carefully slide the prepared cable into the RJ45 connector making sure the end of the conductors reaches the end of the RJ45 connector.
  9. Place the crimp tool carefully over the connector and make the connection with a single firm squeeze operation.
  10. Visually inspect the connection and test the cable before fitting if possible.
Note: If you are having problems, throwing the crimp tool accross the room or beating your head against the nearest wall rarely improves the situation. Inspect the connection with a magnifying glass to see what is going wrong and then go and sit down in a dark room for 30 minutes (aka take a break) before trying again. This sometimes works.

Shielded Twisted Pair

Shielded Twisted Pair (STP) comes in a variety of formats. It is typically used in three applications:
  1. Where there is significant EMI (Electro-Magnetic Induction) in the environment such as that caused by high-powered electric motors (for example, in elevator shafts), flourescent lighting, heavy industrial equipment, etc. In this case the ethernet signals in the cable require protection against external interference from either adjacent pairs or the environment.
  2. Where there is extremely sensitive electrical/electronic equipment in the surrounding environment or where security requirements demand elimination of eavesdropping possibilities from radiated LAN signals (TEMPEST). In this case the ethernet signals in the shielded cable are contained and prevented from polluting, or escaping into, the external environment.
  3. Where maximum performance - either speed or distance - is required. The problem here is normally Alien Crosstalk (ANEXT) such as can occur in very high speed (gigabit and 10gb) LANs. As Ethernet speeds continue to increase either fiber or Shielded Twisted Pair is becoming increasingly common. For instance, to reach 100m distances at 10Gb speeds on copper cables will require shielded cable (limited to 55m for UTP).
Shielded cable comes in three broad types with a confusing range of terminology:
  1. Where there is a single foil (FTP - Foil Twisted Pair) or braided (ScTP - Screened Twisted Pair) shield inside the jacket covering all four pairs. Suitable for applications 1 and 2 above.
  2. Where there is a foil shield covering each pair. This is frequently refered to as PiMF (Pairs in Metal Foil) and is designed primarily to eliminate Alien Cross-talk (ANEXT) from adjacent pairs. Suitable for application 3 above.
  3. Where there is a foil shield covering each pair and a (Foil or Braided) shield covering the whole cable. This is frequently refered to as SSTP (Double Shield Twisted Pair) or even PiMF - since many manufacturers also add a jacket shield to foil covered pair cables. Suitable for applications 1, 2 and 3 above.
In almost all cases there is a single ground wire (called a drain) which allows for connection to secondary grounding sources.
The diagram below illustrates the differences:
Shielded Twisted Pair
Notes:
  1. Shielded cable of any variety has a greater diameter than UTP and will therefore occupy more space in cable ducting and raceways.
  2. Connecting shielded cable is more complex and time consuming - but not execessively so - than conventional UTP. Manufacturers specifications vary enormously, expecially with respect to grounding, and should be followed closely.
  3. In shielded cable installations the jacks and receptacles are typically made of metal and the cable shield (foil or braid) is connected electrically to the connector and thence through the metal receptable to a suitable ground provided by the end equipment.
  4. Foil covered pairs are typically not connected to ground and thus provide only alien crosstalk immunity from adjacent pairs (ANEXT).
  5. Manufacturers specifications and measurements suggest that shielded cables do NOT create antenna effects - indeed experiments show that UTP creates a substantially greater antenna effect (~40db) over correctly grounded shielded cables.
  6. Even ungrounded shielded cables provide better performance (by ~20db) than conventional unshielded twisted pair (UTP).
  7. The drain wire provides a secondary or auxiliary ground method in cases where metallic path grounding is provided by the connectors and, as such, is optional. In cases where metal connectors are not being used (there is no grounding via the connectors) the drain wire may be used as the primary grounding method and needs to be routed independantly to a suitable ground. The drain wire (cable ground) needs to be exposed before the connector is added. This process could require a considerable length of exposed drain wire depending on the location of the ground source. A plastic insulating sheath should be placed over the drain wire to minimize electrical hazards.
  8. In all cases where both ends of a shielded cable are grounded this should be done using a common (building) ground to avoid ground potential loops which if they exceed 1V will have serious effects on cable performance. It is also important to note that 'grounding both ends' means final equipment terminations. Intermediate jacks or faceplates must maintain electrical continuity throughout the cable run but are not themselves grounded. This app note from AMP provides a detailed explanation.
  
You can mail me to abhi.82@aol.in
Please  post any  suggestions or comments.