A Made IT project


http://www.made-it.com
info@made-it.com

Token Ring

General
This type of network was developed by IBM and first published as IEEE 802.5 in December 1984. Token Ring is a star wired ring architecture. With a couple of predefined elements:

First of all let's look at the different cables that exist. IBM has defined a couple of different cable levels/types:

Level 12-pair, red+green, orange+black, solid wire, 22 AWG, pairs individually, foil shielded, overall braided shield, smooth PVC jacket
Level 2same as Level 1 + 4 UTP 22 AWG pairs for RS232, voice, etc.
Level 32-pair, solid wire, 24 AWG, unshielded cable, PVC jacket
Level 4not an IBM cable type
Level 5Fiber Optic cable
Level 62-pair, white/red+white/green, white/orange+white/black, stranded wire, overall foil shield, overall braided shield, thinly ridged PVC jacket, patch cable
Level 7not an IBM cable type
Level 8not an IBM cable type
Level 9same as Level 1, but with plenum jacket

With this in mind IBM created two Token Ring types which both have the possibility to run 4 and 16 Mbps. Those types are called type 1 and 3 and are defined as follows:

Token Ring Type 1
Level 1 cabling with IBM Data Connectors (IDC). MAUs have regularly 8 ports, one Ring In and one Ring Out port. Stations are attached to the MAU through IDC to Sub-D9 male lobe cables. Devices have a Sub-D9 female. Two MAUs are connected through patch-cables with two IDCs. The Ring Out from one MAU is connected to the Ring In of the other MAU.

A cabling system with IDC connectors and type 1 cabling is called ICS (IBM Cabling System).

Token Ring Type 3
Unshielded twisted pair cabling with RJ45 connectors (or RJ11 for the older types). The 4 Mbps version uses level 3 or higher and 16 Mbps needs level 4 or higher. The MAUs have the same modular connectors. Stations with a Sub-D9 female connector are connected with a Media Filter, which is actualy a balun that adapts to level 1 cable.

Lobe cables
All lobe cables should be constructed of level 1, 2, 6 or 9 cable. At the station side they have normaly a Sub-D9 male to be connected to a Sub-D9 female of the station.

Patch cables
Patch cables should be of Level 6 cable and shall not exceed the 45 meter or 150 feet.

Connectors

Description Male Female
IBM Data Connector IBM Data Connector
Sub-D9 Sub-D9 Male Sub-D9 Female
RJ11 RJ11 Male RJ11 Female
RJ45 RJ45 Male RJ45 Female

Pinning

Voltage range is 3.0 to 4.5 Vdc Pinning Specifications, between () you find the used pins
  MAU RO MAU RI MAU Lobe Sub-D9F RJ11 RJ45
Tx+ Red Orange Red Orange (9) Orange (2) Orange (3)
Tx- Green Black Green Black (5) Black (5) Black (6)
Rx- Black Green Black Green (6) Green (3) Green (4)
Rx+ Orange Red Orange Red (1) Red (4) Red (5)

Maxima
So far the cabling and connectors. Most of the times the most important thing with networking is what can I do with it, that is, how many stations can I attach and what are the maximum lengths I can use?
To give you a rough idea there is the following table, but read this entire section before you start designing a complex network.

 Level 1Level 3
Lobe length100m / 330 ft45m / 150 ft
Station count26072
Max. Ring length 16 Mbps160m60m
Max. Ring length 4 Mbps360m150m
Max. 8 port MAUs329

More precise cabling length calculation
Token Ring, as the name implies, is a ring structure with stations attached to that ring through special units called MAUs (Media Access Unit). To give you a general idea about what a Token Ring network looks like:

Token Ring Network

Here you see three import different items. First the MAUs, second the cables that connect the MAUs (patch cables) and which form the ring, and third the cables which connect the MAU to the PC and those are called lobe cables.
Token Ring has the benefit of redundancy. The ring is actual a dual ring, when a one cable connecting two MAUs becomes corrupt the MAUs will shorten their associated ports and use the back-up ring to make sure the packets will arrive at their destination. The disadvantage is that a packet might traffel the ring almost twice. This is something you have to keep in mind when designing a Token Ring network.
The maximum ring length depends on the number of MAUs, the number of wiring closets (MAUs connected with eachother with cables shorter than 3 meters are expected to be in the same wiring closet) and the speed of the network. To calculate the maximum ring length there is parameter called ARL (Adjusted Ring Length), which is the worst case distance between two MAUs.

ARL = total cable length used between all the MAUs minus the shortest MAU-MAU cable

Adjust ARL by the following points:

The ARL times 2 should not exceed 366 meter or 1200 feet

The Maximum Drive Distance for a station is the ARL plus the longest lobe length

Or you could use one of the following tables for the maximum ring length:

WC= Wiring Closet
16 Mbps, type 1, in feet/meters
 1 WC2 WC3 WC4 WC5 WC
1 MAU427/130    
2 MAU416/216410/124   
3 MAU406/123399/121402/122  
4 MAU396/120389/118382/116375/114 
5 MAU385/117378/115371/113364/110357/108
6 MAU375/114368/112361/110354/107347/105
7 MAU364/110357/108350/106343/104336/102
8 MAU364/110347/105340/103333/101326/99
16 Mbps, type 3 (24 AWG), in feet/meters
 1 WC2 WC3 WC4 WC5 WC
1 MAU210/64    
2 MAU205/62202/61   
3 MAU200/61197/60195/59  
4 MAU195/59193/58190/57168/56 
5 MAU190/58188/57185/56164/55179/54
6 MAU186/56183/55180/54160/54174/52
7 MAU181/55178/54175/53155/52169/51
8 MAU176/53173/52170/51151/50165/50
4 Mbps, type 1, in feet/meters
 1 WC2 WC3 WC4 WC5 WC
1 MAU1220/371    
2 MAU1190/3621170/356   
3 MAU1160/3531140/3471120/341  
4 MAU1130/3441110/3381090/3321070/326 
5 MAU1100/3351080/3291060/3231040/3161010/310
6 MAU1070/3261050/3201030/3131010/307990/301
7 MAU1040/3161020/3101000/304980/298960/292
8 MAU1010/307990/301970/295950/289930/283
4 Mbps, type 3 (24 AWG), in feet/meters
 1 WC2 WC3 WC4 WC5 WC
1 MAU500/150    
2 MAU485/147475/144   
3 MAU470/143460/140450/137  
4 MAU455/138445/135435/132425/129 
5 MAU440/134430/131420/128410/124400/121
6 MAU425/129415/126405/123395/120385/117
7 MAU410/124400/121390/118380/115370/112
8 MAU395/120385/117375/114365/111355/108

The MAUs
In the previous text we have spoken about MAUs as the attachment units for workstation to the ring, but there are several types. The MAU is the oldest one, which is actually just a switch unit. The inside of the box contains some relays which are normaly closed and as soon as a station is attached to the port the relay is opened and the station is added to the ring. Relays do have the problem that they sometimes switch during transport, that's why you need to a relay-tool to reset the relays before installing a unit.
There are active and passive MAUs. Passive MAUs only have the switching technique, while active MAUs also act as repeaters, so they regenerate the signal.
Next to the MAU there are TAUs, CAUs and LAUs.

A CAU is a Controlled Access Unit. This type is managed remotely, e.g. through SNMP.
A LAU is a Lobe Access Unit. This unit makes it possible to connect several (mostly 2) to one Lobe port on a MAU or CAU.
A TAU is a ..., I wish I knew. If someone can tell me I would be very happy!!!

Detailed description

According to the OSI layers an token ring network looks like this:

2Data LinkLLC or LLC + SNAP
MAC
1PhysicalInterface + PHY
OSI layer 2

LLC
For SNAP and IEEE802.2 (LLC) see the corresponding documents.

MAC: IEEE802.5 Token Passing
Token Ring is a star wired ring architecture. Work stations gain access to the network in a predetermined way through the use of a token that runs around on the ring. In the idle state (no traffic is generated) the token is send from station to station. As soon as it reaches a station that has something to send that station captures the token, changes it to a frame and sets the busy bit. It adds frame header, information and trailer fields and releases the packet on the network. Each station reads the packet, looks at the destination address and if necessary copies it and sends it out again. This means that every station acts as a repeater(!). When the originating station receives the packet again it removes it from the network. After that it releases a new token and someone else may take it's turn.
In every ring there is one station that acts as the 'Active Monitor'. The Active Monitor takes care of generating the token, the ring clock, etc. The first station in the ring that powers up becomes the active monitor. If there are two or more Active Monitors at the same time, the one with the highest MAC address will stay alive. When the Active Monitor leaves the network another will be generated.

The token consists or 3 bytes: SD AC ED

A frame looks like this:
Start delimiter1 bit
Access control1 bit
Frame control1 bit
Destination address2 or 6 bits
Source address2 or 6 bits
DataNo limit
Checksum4 bits
Ending delimiter1 bit
Frame status1 bit

The MAC layer offers 19 different MAC frames for network management.

ControlNameFunction
00000000Duplicate Address TestTest if two stations have the same address
00000010BeaconLocate breaks in the ring
00000011Claim TokenAttempt to become Active Monitor
00000100PurgeReinitialize the Ring
00000101Active Monitor PresentPeriodically send message by the Active Monitor to show its presence
00000110Standby Monitor PresentAnnounce presence of potential Monitors

The Data-link-frame
[META]

OSI layer 1


Resources:
http://www.netsuite.com/ts/tr/tring.htm
Token Ring Technical Reference
http://sobac.com/~bjonkman/tokensw.htm
IBM Token Ring card settings