![]() |
Table Of Contents
Token Ring/IEEE 802.5 Comparison
Troubleshooting Token Ring
The Token Ring network was originally developed by IBM in the 1970s. It is still IBM's primary local-area network (LAN) technology, and is second only to Ethernet/IEEE 802.3 in general LAN popularity. The IEEE 802.5 specification is almost identical to, and completely compatible with, IBM's Token Ring network. In fact, the IEEE 802.5 specification was modeled after IBM Token Ring, and continues to shadow IBM's Token Ring development. The term Token Ring is generally used to refer to both IBM's Token Ring network and IEEE 802.5 networks.
Token Ring/IEEE 802.5 Comparison
Token Ring and IEEE 802.5 networks are basically quite compatible, but the specifications differ in relatively minor ways. IBM's Token Ring network specifies a star, with all end stations attached to a device called a multistation access unit (MAU), whereas IEEE 802.5 does not specify a topology (although virtually all IEEE 802.5 implementations also are based on a star). Other differences exist, including media type (IEEE 802.5 does not specify a media type, whereas IBM Token Ring networks use twisted-pair wire) and routing information field size. Figure 6-1 summarizes IBM Token Ring network and IEEE 802.5 specifications.
Figure 6-1 IBM Token Ring Network/IEEE 802.5 Comparison
Token Passing
Token Ring and IEEE 802.5 are the primary examples of token-passing networks. Token-passing networks move a small frame, called a token, around the network. Possession of the token grants the right to transmit. If a node receiving the token has no information to send, it simply passes the token to the next end station. Each station can hold the token for a maximum period of time.
If a station possessing the token does have information to transmit, it seizes the token, alters 1 bit of the token (which turns the token into a start-of-frame sequence), appends the information it wishes to transmit, and finally sends this information to the next station on the ring. While the information frame is circling the ring, there is no token on the network (unless the ring supports early token release), so other stations wishing to transmit must wait. Therefore, collisions cannot occur in Token Ring networks. If early token release is supported, a new token can be released when frame transmission is complete.
The information frame circulates the ring until it reaches the intended destination station, which copies the information for further processing. The information frame continues to circle the ring and is finally removed when it reaches the sending station. The sending station can check the returning frame to see whether the frame was seen and subsequently copied by the destination.
Unlike carrier sense multiple access collision detect (CSMA/CD) networks—such as Ethernet—token-passing networks are deterministic. In other words, it is possible to calculate the maximum time that will pass before any end station will be able to transmit. This feature and several reliability features, which are discussed in the section "Fault Management Mechanisms" later in this chapter, make Token Ring networks ideal for applications where delay must be predictable and robust network operation is important. Factory automation environments are examples of such applications.
Physical Connections
IBM Token Ring network stations are directly connected to MAUs, which can be wired together to form one large ring (as shown in Figure 6-2). Patch cables connect MAUs to adjacent MAUs. Lobe cables connect MAUs to stations. MAUs include bypass relays for removing stations from the ring.
Figure 6-2 IBM Token Ring Network Physical Connections
The Priority System
Token Ring networks use a sophisticated priority system that permits certain user-designated, high-priority stations to use the network more frequently. Token Ring frames have two fields that control priority: the priority field and the reservation field.
Only stations with a priority equal to or higher than the priority value contained in a token can seize that token. Once the token is seized and changed to an information frame, only stations with a priority value higher than that of the transmitting station can reserve the token for the next pass around the network. When the next token is generated, it includes the higher priority of the reserving station. Stations that raise a token's priority level must reinstate the previous priority after their transmission is complete.
Fault Management Mechanisms
Token Ring networks employ several mechanisms for detecting and compensating for network faults. For example, one station in the Token Ring network is selected to be the active monitor. This station, which can potentially be any station on the network, acts as a centralized source of timing information for other ring stations and performs a variety of ring maintenance functions. One of these functions is the removal of continuously circulating frames from the ring. When a sending device fails, its frame may continue to circle the ring. This can prevent other stations from transmitting their own frames and essentially lock up the network. The active monitor can detect such frames, remove them from the ring, and generate a new token.
The IBM Token Ring network's star topology also contributes to overall network reliability. Because all information in a Token Ring network is seen by active MAUs, these devices can be programmed to check for problems and selectively remove stations from the ring if necessary.
A Token Ring algorithm called beaconing detects and tries to repair certain network faults. Whenever a station detects a serious problem with the network (such as a cable break), it sends a beacon frame. The beacon frame defines a failure domain, which includes the station reporting the failure, its nearest active upstream neighbor (NAUN), and everything in between. Beaconing initiates a process called autoreconfiguration, where nodes within the failure domain automatically perform diagnostics in an attempt to reconfigure the network around the failed areas. Physically, the MAU can accomplish this through electrical reconfiguration.
Frame Formats
Token Ring networks define two frame types: tokens and data/command frames. Both formats are shown in Figure 6-3.
Figure 6-3 IEEE 802.5/Token Ring Frame Formats
Tokens
Each token is 3 bytes in length and consists of a start delimiter, an access control byte, and an end delimiter.
The start delimiter serves to alert each station to the arrival of a token (or data/command frame). This field includes signals that distinguish the byte from the rest of the frame by violating the encoding scheme used elsewhere in the frame.
The access control byte contains the priority and reservation fields, as well as a token bit (used to differentiate a token from a data/command frame) and a monitor bit (used by the active monitor to determine whether a frame is circling the ring endlessly).
Finally, the end delimiter signals the end of the token or data/command frame. It also contains bits to indicate a damaged frame and a frame that is the last in a logical sequence.
Data/Command Frames
Data/command frames vary in size, depending on the size of the information field. Data frames carry information for upper-layer protocols; command frames contain control information and have no data for upper-layer protocols.
In data/command frames, a frame control byte follows the access control byte. The frame control byte indicates whether the frame contains data or control information. In control frames, this byte specifies the type of control information.
Following the frame control byte are the two address fields, which identify the destination and source stations. As with IEEE 802.3, addresses are 6 bytes in length.
The data field follows the address fields. The length of this field is limited by the ring token holding time, which defines the maximum time a station may hold the token.
Following the data field is the frame check sequence (FCS) field. This field is filled by the source station with a calculated value dependent on the frame contents. The destination station recalculates the value to determine whether the frame may have been damaged in transit. If damage did occur, the frame is discarded.
As with the token, the end delimiter completes the data/command frame.
Troubleshooting Token Ring
This section provides troubleshooting procedures for common Token Ring media problems. It describes a specific Token Ring symptom, the problems that are likely to cause this symptom, and the solutions to those problems.
Media Problems: Token Ring
Table 6-1 outlines problems commonly encountered on Token Ring networks and offers general guidelines for solving those problems.
Table 6-1 Media Problems: Token Ring
Media Problem Suggested ActionsNonfunctional
Token Ring1.
Use the show interfaces token command to determine the status of the router's Token Ring interfaces.
2.
If the status line indicates that the interface and line protocol are not up, check the cable from the router to the MAU.1 Make sure that the cable is in good condition. If it is not, replace it.
3.
If you are performing a new installation, make sure that the MAU has been properly initialized. For information on initializing your MAU, refer to the manufacturer's documentation.
Ring speed mismatch
1.
Check the ring speed specification on all nodes attached to the Token Ring backbone. The ring speed configured for all stations must be the same (either 4 Mbps or 16 Mbps). Use the show running-config privileged exec command to determine which speed is specified on the router.
2.
If necessary, modify ring speed specifications for clients, servers, and routers. On routers, use the ring-speed interface configuration command to change the ring speed.
Change jumpers as needed for modular router platforms that do not support software speed configuration. For more information about ring speed specifications, refer to the hardware installation and maintenance manual for your system.
Relay open in MAU
1.
If an "open lobe fault" message appears on the console at system power up, check the cable connection to the MAU.
2.
Use the clear interface privileged exec command to reset the Token Ring interface and reinsert the router into the ring.
For all Token Ring cards except the CTR and access routers, you must use the clear interface command to reinitialize the Token Ring interface if the interface is down.
3.
Use the show interfaces token exec command to verify that the interface and line protocol are up.
4.
If the interface is operational, but the "open lobe fault" message persists and the router still cannot connect to the ring, connect the router to a different MAU port.
5.
If the message continues to appear, disconnect all devices from the MAU and reset the MAU's relay with the tool provided by the MAU vendor.
6.
Reattach the router and determine whether it can connect to the ring. If resetting the relay does not solve the problem, try replacing the MAU with one that is known to be operational.
7.
If the router still cannot connect to the ring, check internal cable connections of the router Token Ring cards. Ensure that cables associated with the respective port numbers are correctly wired and that they are not swapped.
8.
If the router still cannot connect to the ring, replace the cables that connect the router to the MAU with working cables.
9.
Use the clear interface command to reset the interface and reinsert the router into the ring. Use the show interfaces token command to verify that the interface and line protocol are up.
10.
Alternatively, you can connect the router to a spare MAU to which no stations are connected. If the router can attach to the ring, replace the original MAU.
Duplicate MAC2 address
This problem can arise when routers are using locally administered MAC addresses.
1.
Use a network analyzer to check the Duplicate Address test frames from a booting station. If the station gets a response, then there is another station already configured with the MAC address of the booting station.
2.
If there are two stations with the same MAC addresses, change the MAC address of one of the stations and reinitialize the node.
Congested ring
1.
Insert the router during an off-peak period.
2.
If insertion is successful during off-peak periods, but unsuccessful during peak load, segment your internetwork to distribute traffic.
RPS3 conflict
1.
Use the no lnm rps interface configuration command to disable the RPS function on the router that you are trying to insert into the ring.
2.
Try to insert the router into the ring.
3.
If you can insert the router with RPS disabled, there is a conflict between RPS implementations. Contact your technical support representative for more information.
1 MAU = multistation access unit
2 MAC = Media Access Control
3 RPS = Ring Parameter Server
show interfaces tokenring
When troubleshooting Token Ring media in a Cisco router environment, you can use the show interfaces tokenring command to provide several key fields of information that can assist in isolating problems. This section provides a detailed description of the show interfaces tokenring command and the information it provides in Table 6-2.
Use the show interfaces tokenring privileged exec command to display information about the Token Ring interface and the state of source route bridging:
show interfaces tokenring unit [accounting]
show interfaces tokenring slot | port [accounting] (for the Cisco 7500 series and
Cisco 7200 series)
show interfaces tokenring [slot | port-adapter | port] (for ports on VIP cards in the
Cisco 7500 series routers)Syntax Description
•
unit—Must match the interface port line number.
•
accounting—(Optional) Displays the number of packets of each protocol type that have been sent through the interface.
•
slot—Refers to the appropriate hardware manual for slot and port information.
•
port—Refers to the appropriate hardware manual for slot and port information.
•
port-adapter—Refers to the appropriate hardware manual for information about port adapter compatibility.
Command Mode
Privileged exec
Usage Guidelines
This command first appeared in Cisco IOS Release 10.0.
The command description was modified in Cisco IOS Release 11.3 to account for support on new full-duplex Token Ring port adapters.
If you do not provide values for the parameters slot and port, the command will display statistics for all the network interfaces. The optional keyword accounting displays the number of packets of each protocol type that have been sent through the interface.
Sample Display
The following is sample output from the show interfaces tokenring command:
Router# show interfaces tokenring
TokenRing 0 is up, line protocol is upHardware is 16/4 Token Ring, address is 5500.2000.dc27 (bia 0000.3000.072b)Internet address is 150.136.230.203, subnet mask is 255.255.255.0MTU 8136 bytes, BW 16000 Kbit, DLY 630 usec, rely 255/255, load 1/255Encapsulation SNAP, loopback not set, keepalive set (10 sec)ARP type: SNAP, ARP Timeout 4:00:00Ring speed: 16 MbpsSingle ring node, Source Route Bridge capableGroup Address: 0x00000000, Functional Address: 0x60840000Last input 0:00:01, output 0:00:01, output hang neverOutput queue 0/40, 0 drops; input queue 0/75, 0 dropsFive minute input rate 0 bits/sec, 0 packets/secFive minute output rate 0 bits/sec, 0 packets/sec16339 packets input, 1496515 bytes, 0 no bufferReceived 9895 broadcasts, 0 runts, 0 giants0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort32648 packets output, 9738303 bytes, 0 underruns0 output errors, 0 collisions, 2 interface resets, 0 restarts5 transitionsTable 6-2 describes the show interfaces tokenring display field.