Thursday, July 8, 2010

Ethernet crossover

Yesterday provided a moment of 'wtf' when the test cable-diagnostics on a Cisco switch was showing some really screwy output and it made me wonder if the cabling was incorrectly terminated. To make a long story short, the connection was switch-to-switch over copper gigabit Ethernet and the MDIX was causing the odd results but I was sent on an adventure into answering a question, "If copper Gigabit Ethernet uses all 4 pairs for data, is there something unusual about the straight-through versus crossover pinouts for Gigabit Ethernet?" Turns out there is. First, the 'duh' moment where 10/100 Ethernet pinouts are displayed:
 
10/100 Megabit normal:

Pin Function Color Match Function Pin
1 TD+ White/Orange 1
2 TD- Orange/White 2
3 RD+ White/Green 3
4 Blue/White 4
5 White/Blue 5
6 RD- Green/White 6
7 White/Brown 7
8 Brown/White 8




10/100 Megabit crossover:

Pin Function Color/Match Function Pin
1 TD+ White/Orange RD+ 3
2 TD- Orange/White RD- 6
3 RD+ White/Green TD+ 1
4 Blue/White
5 White/Blue
6 RD- Green/White TD- 2
7 White/Brown
8 Brown/White



Nothing unusual there - standard 1,2 3 and 6 in use. If you use this pinout on most Gigabit Ethernet ports, you end up with 100 Mb/s. This creates a hard problem to troubleshoot since the ports will show up and you will get data over the cable but not at the speed you want. Of course, anyone not terminating Cat 5 (or better) with all 4 pair needs to be beaten in my opinion. Now for the Gigabit Ethernet pinouts:

First, Gigabit Ethernet normal:

Pin Function Color Match Function Pin
1 BI_DA+ White/Orange BI_DA+ 1
2 BI_DA- Orange/White BI_DA- 2
3 BI_DB+ White/Green BI_DB+ 3
4 BI_DC+ Blue/White BI_DC+ 4
5 BI_DC- White/Blue BI_DC- 5
6 BI_DB- Green/White BI_DB- 6
7 BI_DD+ White/Brown BI_DD+ 7
8 BI_DD- Brown/White BI_DD- 8


So, this should work fine (assuming the cable wasn't terminated by someone trying to cause you grief). But the crossover is strange:

Gigabit Ethernet crossover:

Pin Function Color Match Function Pin
1 BI_DA+ White/Orange BI_DB+ 3
2 BI_DA- Orange/White BI_DB- 6
3 BI_DB+ White/Green BI_DA+ 1
4 BI_DC+ Blue/White BI_DD+ 7
5 BI_DC- White/Blue BI_DD- 8
6 BI_DB- Green/White BI_DA- 2
7 BI_DD+ White/Brown BI_DC+ 4
8 BI_DD- Brown/White BI_DC- 5



This is really odd and isn't exactly easy to remember. What makes matters even more fun is the MDIX auto feature on most (if not all) Gigabit Ethernet ports on Gigabit Ethernet switches (at least good ones) will correct the crossover pinout and work so you will never know the cable is 'wrong'. A cable tester (or the Cisco 'test cable-diagnostics' command) will likely give some odd results - especially on switch-to-switch connections. For more on the Cisco 'test cable-diagnostics' command, look here.

No comments:

Post a Comment