[Top] [Prev] [Next] [Bottom]

Chapter 10

Token-Ring (Single)
Diagnostic Program


This chapter describes the diagnostic program for the single-port token-ring interface card for the CNX 500 router. It includes the following sections:

General Description

Executing the Diagnostic Program

General Description

The diagnostic program for the single token-ring interface card includes the following groups of tests:

Figure 10-1 illustrates the menu flow for the single token-ring diagnostic program. For information on error logging and error statistics, refer to the chapter about the Router Diagnostic Program.

Figure 10¯1 Single Token-Ring Diagnostic Menu Flow

Executing the Diagnostic Program

To run the single token-ring diagnostic program, boot the router diagnostic program. Chapter 1 provides the boot procedure.

Once the router diagnostic program boots, the screen displays the Mode Menu. Select "Use automatic mode of operation" to automatically run all of the diagnostic programs. Or, select "Use manual mode of operation" to run the diagnostic programs individually. Chapter 1 provides additional information on automatic and manual mode.

To display the main menu for the single token-ring diagnostic program:

1. When the router diagnostic program boots, the console displays the Mode Menu. Select "Use manual mode of operation" and the Main Menu appears.
2. From the Main Menu, select "Execute Diagnostics." This displays the Diagnostic Execution Menu.
3. If the single token-ring interface card has been added to the system configuration using the router diagnostic program, the Diagnostic Execution Menu lists the token-ring interface card as a menu item with a number in the parentheses. Enter the menu number that lists the single token-ring interface card. The console displays the following message followed by the main menu for the single token-ring diagnostic program:
CNX Single Token-Ring Standalone Diagnostic Version #.# 
------------------------------------------------------------
------------------------------------------------------------
I/O Base Address: # Slot Number: #

If the single token-ring interface card is not listed on the Diagnostic Execution Menu and/or a number is not in the parentheses, refer to page 15.

4. Figure 10-2 summarizes the main menu items for the single token-ring diagnostic program.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. System Bus Interface Test Checks the interface logic between the CPU board and the token-ring module. This item displays the Data Pattern Menu (Figure 10-4).
2. SIF Register Test Group Checks the TMS380C16 system interface (SIF) registers on the token-ring interface. This item displays the Data Pattern Menu (Figure 10-4).
3. Adapter Memory Data Bits Test Group Checks chapter memory using the TMS380C16 direct input/output (DIO) registers.
4. Adapter Memory Addressing Test Group Checks the address lines of adapter memory using TMS380C16 DIO registers.
5 Adapter Driven DMA Test Group Checks the DMA functionality of the TMS380C16 COMMprocessor by passing blocks of data between host buffer memory and adapter memory.
6. Bus Arbitration Test Group Checks whether direct and indirect access of adapter memory can be done simultaneously.
(continues)

Menu Item Function
7. Adapter Initialization and Selftest Downloads the adapter MAC software, executes the built-in Bring-up Diagnostics (BUD), and loads the initialization block.
8. Interrupt Logic Test Group Checks the interrupt logic between the token-ring interface and host system using the interrupt bit in the CONFIG register. Also, generates and checks the system command block (SCB) request interrupt bit.
9. All of the Above Runs all of the tests listed above this menu item.
10. Loopback Test Group Checks the open, transmit, and receive operations of the adapter using the wrap interface. The wrap interface is an option in the OPEN command.
11. TMS380SRA Test Group Tests the functionality of the source routing accelerator.
12. Network Test Group Checks the transmission of IP and ICMP packets on the token-ring network in 4/16 Mbps for UTP and STP.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.

Figure 10¯2 Token-Ring Diagnostic Main Menu

For information on the Router Diagnostic Flow Control Flags Menu and the Router Diagnostic Parameters Setup Menu, refer to the chapter on the Router Diagnostic Program. The next section describes the Setup Token-Ring Parameters Menu.

Setting the Token-Ring Parameters

You can set the parameters for some of the diagnostic tests. This option is available if the menu lists Setup Token-Ring Parameters as an item. Figure 10-3 describes the Setup Token-Ring Parameters Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.
C. Set Source Node Address Reads the address from BIA ROM as the source node address and displays the following prompt:
Input source node address 
[xx:xx:xx:xx:xx:xx]:.

D. Set Destination Node Address Displays the following prompt to enter a destination node address:
Input destination node address 
[xx:xx:xx:xx:xx:xx]:.

E. Set Ring Transmission Speed 4/16 Mbps) Displays the following prompt to set the media transfer rate as 4 or 16 Mbps:
Please enter desired ring speed (4/16)
[#]:.

F. Set Media (UTP/STP) Displays the following prompt to set the media type as unshielded twisted pair (UTP) or shielded twisted pair (STP):
Please enter media type (UTP/STP)[xxx]:.

G. Set User Defined Data Displays the following prompt:

Enter a data pattern in HEX [FF00]:.

Figure 10¯3 Setting the Test Data Patterns

When you run certain tests, the screen displays a Data Pattern Menu to select the data patterns written to the register during the test. Figure 10-4 describes the Data Pattern Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. All Zeros Writes all zeros to the register.
2. All Ones Writes all ones to the register.
3. Alternating Zeros and Ones Writes alternating zeros and ones to the register.
4. Alternating Ones and Zeros Writes alternating ones and zeros to the register.
5. Walking Zero Writes a word pattern of ones with a zero moving through the word.
6. Walking One Writes a word pattern of zeros with a one moving through the word.
7. All of the Above Runs all of the tests listed above this menu item.
8. User Specified Data Pattern Displays the following prompt to enter a data pattern in hexadecimal format:
Enter a data pattern in HEX (0 <= 	
pattern <= FFFFFFFF) [ ]:

A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
(continues)

Menu Item Function
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup menu.
C. Setup Token-Ring Parameters Displays the Setup Token-Ring Parameters Menu.

Figure 10¯4 Data Pattern Menu

System Bus Interface Test Group

This group tests the interface logic between the CPU board and the single token-ring interface card. Selecting this test displays a Data Pattern Menu (Figure 10-4).

SIF Register Test Group

This group tests the TMS380C16 system interface (SIF) registers on the single token-ring interface card. Figure 10-5 describes the SIF Register Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. SIFDAT-SIF Data Register SIFDAT is a data register that works in conjunction with the SIFADR and SIFADX address registers to provide indirect access to adapter memory. A write, read, and compare checks the SIFDAT data register function.
2. SIFDAT/INC-SIF Data Register SIFDAT/INC is a data register that works in conjunction with the SIFADR and SIFADX address registers to perform indirect access to adapter memory.

The SIFDAT/INC register is similar to the SIFDAT data register. However, following each word access, the address in SIFADX/SIFADR automatically increments, by two, to point to the next word in the memory.
(continues)

Menu Item Function
3. SIFCMD/STS-SIF Command and Status Register SIFCMD is the command register and SIFSTS is the status register. Low-level command and status information is passed via these registers.

This test checks bit 0, INTERRUPT_ADAPTER and bit 6, RECEIVE_VALID of the SIFCMD register using a write, read, and compare sequence.
4. SIFACL-SIF Adapter Control Register The SIF adapter control register (SIFACL) enables the host processor to control and, to some extent, reconfigure the adapter under software control.

This test writes, reads, and compares bits 7, 9, and 10 and restores the register to its reset value when done. Bits 0, 1, 2, 3, 11 and 15 of this register always read zero and bit 14 always reads one.
5. SIFADR-SIF Address Register ,(LSByte) The SIFADR address register works with the SIFDAT and SIFDAT/INC registers to provide access to adapter memory. This test checks the SIFADR register using a write, read, and compare sequence.
6. SIFADX-SIF Address Register (MSByte) The SIFADX address register works with the SIFDAT and SIFDAT/INC registers to provide access to adapter memory. This test checks the SIFADX register using a write, read, and compare sequence.
7. All of the Above Runs all of the tests listed above this menu item.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.

Figure 10¯5 SIF Register Test Group Menu

Adapter Memory Data Bits Test Group

This group tests the chapter memory maps. The TMS380C16 maps the memory into 8 chapters of 64K bytes each. The chapters are numbered from 0 to 7. Figure 10-6 describes the Adapter Memory Data Bits Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Test Adapter Memory for Chapters 0 and 1 Tests the integrity of DRAM for chapters 0 and 1 using a write, read, and compare sequence. Chapter 0 reserves bytes for the burned-in address (BIA), code buffers, and MAC code. Chapter 1 reserves bytes for hardware and software interrupt vectors, internal chip registers, external address checker chip, and data storage.
2. Test Adapter Memory for Chapters 2 through 7 Tests the integrity of DRAM for chapters 2 through 7 using a write, read, and compare sequence. Chapters 2 through 7 are code or data memory addresses.
3. All of the Above Runs all of the tests listed above this menu item.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.

Figure 10¯6 Adapter Memory Data Bits Test Group Menu

Adapter Memory Addressing Test Group

This group tests the address lines of the single token-ring interface card. Figure 10-7 describes the Adapter Memory Addressing Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Test Adapter Memory for Chapters 0 and 1 Tests the address lines of the single token-ring interface card for chapters 0 and 1. This item displays the Test Adapter Memory Address Menu (Figure 10-8).
2. Test Adapter Memory for Chapters 2 through 7 Tests the address lines of the single token-ring interface card for chapters 2 through 7. This item displays the Test Adapter Memory Address Menu (Figure 10-8).
3. All of the Above Runs all of the tests listed above this menu item.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.

Figure 10¯7 Adapter Memory Addressing Test Group Menu

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Use SIFDAT register for WRITE and READ Writes the address of available adapter memory into a corresponding location starting from low memory to high memory. The contents of each location are read back and the contents are checked. The test sequence repeats except that the write starts from high memory and goes to low memory.
2. Use SIFDAT/INC register for READ only Tests that the SIFDAT/INC register increments properly when it reads a block of data from the the token-ring interface card memory.
3. Use SIFDAT/INC register for WRITE only Tests whether the SIFDAT/INC register increments properly when it writes a block of data to the token-ring interface card memory.
4. All of the Above Runs all of the tests listed above this menu item.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.

Figure 10¯8 Test Adapter Memory Address Menu

Adapter Driven DMA Test Group

This group tests the DMA functionality of the TMS380C16 COMMprocessor by passing blocks of data between host buffer memory and the token-ring interface card memory. Figure 10-9 describes the Adapter Driven DMA Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. DMA - Host to Adapter Data Transfer Using DMA, transfers data blocks of different sizes with specific data patterns from token-ring interface card memory to host buffer memory. The contents of host buffer memory are then read and verified.
2. DMA - Adapter to Host Data Transfer Using DMA, transfers data blocks of different sizes with unique data patterns from host buffer memory to the token-ring interface card memory. The contents of the token-ring interface card memory are then indirectly read and verified.
3. DMA - Host to Adapter to Host Transfer Using DMA, transfers data blocks of different sizes with specific data patterns from host buffer memory to the token-ring interface card memory and back to host buffer memory. The contents of the token-ring interface card memory are then indirectly read and verified.
4. All of the Above Runs all of the tests listed above this menu item.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
(continues)

Menu Item Function
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.
C. Modify DMA Parameters Displays the following prompts to modify the DMA parameters.


Enter host starting address
(E00000 <= address <=
E7FFFE) [E00000]:

Enter adapter starting address
(103FE <= address <= 7FFFE [20000]:

Enter DMA transfer count (in words,
32 to 16384) [16384]:

Enter DMA burst Size (in words, 1 to 32000) [16]:

Figure 10¯9 Adapter Driven DMA Test Group Menu

Bus Arbitration Test Group

This group tests whether direct and indirect access of token-ring interface card memory can occur simultaneously. Figure 10-10 describes the Bus Arbitration Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. BMI Bus Arbitration with DMA Host to Adapter Writes a block of data to the token-ring interface card memory, starts a DMA read and during the read indirectly accesses the token-ring interface card memory.
2. BMI Bus Arbitration with DMA Adapter to Host Writes to a part of the token-ring interface card memory via DMA. While waiting for the DMA write to complete, a write by indirect access is done to another portion of the interface card memory.
3. All of the Above Runs all of the tests listed above this menu item.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
(continues)

Menu Item Function
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.
C. Modify DMA Parameters Displays the following prompts to modify the DMA parameters.


Enter host starting address
(E00000 <= address <= E7FFFE)
[E00000]:

Enter adapter starting address
(103FE <= address <= 7FFFE [11000]:

Enter DMA transfer count (in words,
32 to 16384) [32]:

Enter DMA burst size (in words, 1 to
32000)[1]:

Figure 10¯10 Bus Arbitration Test Group Menu

Adapter Initialization and Selftest

This test performs the following operations:

1. Loads the TMS380C16 MAC firmware into the adapter.
2. Executes the built-in Bring-up Diagnostics (BUD) and checks its completion status.
3. Loads the initialization block containing the MAC code parameters.
4. Executes the initialization and checks its completion status.
This item displays a prompt to enter the number of passes for the test.

Interrupt Logic Test Group

This group tests the interrupt logic between the token-ring interface card and the host system. Figure 10-11 describes the Interrupt Logic Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Adapter Diagnostic Interrupt Tests the capability of the interface to post interrupts to the host system.
2. Adapter SCB_REQUEST Interrupt Tests the interrupt mask capability of the interface to interrupt the host system upon completion of a command.
3. All of the Above Runs all of the tests listed above this menu item.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.

Figure 10¯11 Interrupt Logic Test Group Menu

Loopback Test Group

This group tests the transmit and receive capability of the token-ring interface card when it is not connected to a network. Figure 10-12 describes the Loopback Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Local Loopback Test - Broadcast Address Tests the open, transmit, and receive operations of the token-ring interface card. To run this test, note the following: ¯ If the dual token-ring interface card is connected via an STP media cable, local loopback is done at the end of the cable.

¯ If the dual token-ring interface card is connected via a UTP media cable, the local loopback test requires a media cable connected to a wire center and a switchbox.

2. Local Loopback Test - Node Address Tests the open, transmit, and receive operation of the token-ring interface card using the node address read from BIA ROM.
3. All of the Above Runs all of the tests listed above this menu item.
4. Network Loopback Test Tests the operation of the token-ring interface card over the network. This test uses the BIA ROM address as the source and destination node addresses. The network tests require a switchbox, cable, and an operational token-ring network.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.
C. Setup Token-Ring Parameters Displays the Setup Token-Ring Parameters Menu.

Figure 10¯12 Loopback Test Group Menu

TMS380SRA Test Group

This group tests the functionality of the source routing accelerator. Figure 10-13 describes the TMS380SRA Test Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Source Routed Address Recognition Checks that the TMS380SRA can be configured and recognizes source routed packets containing routing information that matches the TMS380SRA configuration.
2. Source Routed Address Rejection Checks that the TMS380SRA does not recognize source routed packets containing information that does not match the TMS380SRA configuration.
3. All of the Above Runs all of the tests listed above this menu item.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.
C. Setup Token-Ring Parameters Displays the Setup Token-Ring Parameters Menu.

Figure 10¯13 TMS380SRA Test Menu

Network Test Group

This group uses IP packets to test the transmit, receive, and echoing functions of the single token-ring interface card when it is connected to a network. Before you run the network tests, note the following:

1. Select an operational node for testing.
2. Set the ARP timers to zero so that the ARP cache does not expire. At the operational node, enter set refresh-timer 0 after the ARP config> prompt. For further information on configuring ARP, refer to the Bridging Router Protocol Configuration Guide, Volume 1.
3. Via the operational node, boot the router that is running diagnostics. Chapter 1 provides the boot procedure.
4. From the router that is running diagnostics, display the Token-Ring Diagnostic Main Menu and select Network Tests Group. Figure 10-14 describes the Network Tests Group Menu and Table 10-1 lists the steps to run the network tests.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Transmit Only Test Transmits packets to a slave node.
2. Receive Only Test Receives packets from the transmit only node.
3. Echo Test Master Node Transmits packets to an echo slave node and receives the packets back for processing.
4. Echo Test Slave Node Receives packets from the echo master node. Once it receives the packets, the echo slave node swaps the packet's source and destination node addresses and transmits the packet back to the echo master node.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.
C. Setup Token-Ring Parameters Displays the Setup Token-Ring Parameters Menu.
D. Show Network Test Statistics Displays the network test statistics. Figure 10-15 shows the Network Test Statistics Screen and Chapter 10 defines the statistics.
E. Clear Network Test Statistics Resets the network test status log statistics to zero.

Figure 10¯14 Network Test Group Menu

Table 10-1 Network Test Procedure

Step

Node(s)

Activity Menu
1. Determine two unique source IP addresses.
2. A and B Enter a source IP address on both nodes. Menu: Network Tests Group Item: Setup Diagnostic Parameters Menu: Router Diagnostic Parameters Setup Item: Set Node IP Address
3. A Set the destination IP address to match the source IP address on node B. Menu: Router Diagnostic Parameters Setup Item: Set Destination Node IP Address
4. A Configure the various test parameters such as the number of packets and their size. Menu: Router Diagnostic Parameters Setup
5. B Set the destination IP address to match the source IP address on node A. Menu: Router Diagnostic Parameters Item: Set Destination Node IP Address
6. A and B Set the source node address on both nodes. Menu: Setup Token-Ring Parameters Item: Set Source Node Address
7. A Set the destination node address to match the source node address on node B. Menu: Setup Token-Ring Parameters Item: Set Destination Node Address
8. B Set the destination node address to match the source node address on node A. Menu: Setup Token-Ring Parameters Item: Set Destination Node Address
9. A and B Configure the media transfer rate and media type. Menu: Setup Token-Ring Parameters Item: Set Ring Transmission Speed (4/16 Mbps) Item: Set Media (UTP/STP)
10. B Start the receive operation. Menu: Network Tests Group Item: Receive Only Test
11. B At any time, press s to stop the receive operation.
12. A Start the transmit operation. Menu: Network Tests Group Item: Transmit Only Test
13. A At any time, press s to stop the transmit operation.
14. A Check the number of packets that were transmitted by viewing the "Packets Transmitted" statistic from the Network Test Statistics Screen (Figure 10-15). Menu: Network Tests Group Item: Show Network Test
Statistics
15. B Check the number of packets that were received by viewing the "Packets Received" statistic from the Network Test Statistics Screen (Figure 10-15). Menu: Network Tests Group Item: Show Network Test
Statistics
16. A and B The number of packets transmitted and received should match or be comparably close. If a discrepancy exists, view the other network statistics on both nodes to determine whether errors occurred during the test. If other errors do not exist, run the test again. Contact your representative if a significant discrepancy continues.
16. A and B The number of packets transmitted and received should match or be comparably close. If a discrepancy exists, view the other network statistics on both nodes to determine whether errors occurred during the test. If other errors do not exist, run the test again. Contact your representative if a significant discrepancy continues.
17. A and B Reset the network test statistics to zero. Menu: Network Tests Group Item: Clear Network Test
Statistics
18. B Start the receive operation for the echo tests. Menu: Network Tests Group Item: Echo Test Slave Node
19. B At any time, press s to stop the receive echo operation.
20. A Start the transmit operation for the echo tests. The test is done when the console displays the Network Tests Group Menu. Menu: Network Tests Group Item: Echo Test Master Node
21. A Check the number of packets that were transmitted and received. Menu: Network Tests Group Item: Show Network Test
Statistics
22. The number of packets transmitted and received should match or be comparably close. If a discrepancy exists, view the network statistics on node B to determine whether errors occurred during the test. If there are no errors, run the test again. Contact your representative if a significant discrepancy continues.

Figure 10¯15 Network Test Statistics Screen



[Top] [Prev] [Next] [Bottom]

docs@openroute.com
Copyright © 1997, OpenROUTE Networks, Inc. All rights reserved.