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

Chapter 5

Ethernet (Quad) Diagnostic Program


This chapter describes the diagnostic program for the quad Ethernet interface card. It includes the following sections:

General Description

Executing the Diagnostic Program

General Description

The diagnostic program for the quad Ethernet interface card includes the following groups of tests:

Executing the Diagnostic Program

To run the quad Ethernet diagnostic program, boot the router diagnostic program. Chapter 1 provides the boot procedure.

When the router diagnostic program boots, the screen displays the Mode Menu. To automatically run the diagnostic programs for all of the interface cards, select "Use automatic mode of operation" from this menu. To display the main menu for the quad Ethernet interface card only, do the following:

1. Select "Use manual mode of operation" from the Mode Menu. This displays the Main Menu.

2. Enter 3 to select "Execute Diagnostics." This displays the Diagnostic Execution Menu.

If the quad Ethernet interface card has been added to the system configuration using the router diagnostic program, the Diagnostic Execution Menu lists it as a menu item with a number in the parentheses.

If the quad Ethernet interface card is not listed on the Diagnostic Execution Menu and/or a number is not in the parentheses, refer to Chapter 2 for information about the Diagnostic Execution Menu.

3. Enter the menu item number that lists the quad Ethernet interface card. This displays the following information and the Quad Ethernet Diagnostic Main Menu. Figure 5-1 summarizes the items on this menu.
CNX Quad Ethernet Stand alone Diagnostic Version #.#

------------------------------------------------------------
------------------------------------------------------------
I/O Base Address: # Slot Number: #

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. System Bus Interface Test Group Checks the bus interface logic of the quad Ethernet interface card.
2. 82596 Test Group Initializes and configures the 82596 chip.
3. Interrupt Test Group Checks the interrupt function of the quad Ethernet interface card.
4. DMA Test Group Checks DMA functionality between the quad Ethernet interface card and host buffer memory.
5. Loopback Test Group Tests the transmit and receive capability of the quad Ethernet interface card when it is not connected to a network.
6. Bus Contention Test Group Generates bus contention between LAN ports by performing DMA reads, writes, and slave accesses.
7. All of the Above Runs all of the tests listed above this menu item.
8. Network Test Group Tests the transmit, receive, and echoing capabilities of the quad Ethernet interface card when it is connected to a network.
(continues)

Menu Item Function
9. Media Test Group Activates the time domain reflectometry function to detect open or short circuits and their distance from the diagnosing 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 Ethernet
Parameters
Displays the Setup Ethernet Parameters Menu.

Figure 5¯1 Ethernet (Quad) Diagnostic Main Menu

For information about the Router Diagnostic Flow Control Flags Menu and the Router Diagnostic Parameters Setup Menu, refer Chapter 2. The next section describes the Setup Ethernet Parameters Menu.

Setting the Ethernet Parameters

You can set the parameters for some of the diagnostic tests. This option is available when the menu lists Setup Ethernet Parameters as an item. Figure 5-2 describes the Setup Ethernet 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 User Defined Data To enter a data pattern in HEX. The prompt is
Enter a data pattern (0 <= pattern <= 			FFFF) [FF00]:.

D. Set Ethernet Source Address To enter an Ethernet source address for each port. The default is the BIA of the quad Ethernet interface card. The prompt is

Input Port Number Ethernet Source Addr [FF:FF:FF:FF:FF:FF]:.

(continues)

Menu Item Function
E. Set Ethernet Destination Address To enter an Ethernet destination address for each port. The default is 00.00.00.00.00.00. The prompt is
Input Port Number Ethernet Destination Addr [##.##.##.##.##.##]:.

F. Display Item C through E Settings Displays the following information for each port:
User Define Data:  # x FFFF
Port # Source Address:
[FF:FF:FF:FF:FF:FF]
Port # destination address:
00.00.00.00.00.00

To return to the Setup Ethernet Parameters Menu,
press c.
G. Set 82596 Configuration Bytes Displays the following prompts to set the 82596 configuration bytes:
Select the configuration byte number 
[0-12] you want to change:.
Current value of byte number is XxX. Please input the new value:.

H. Display 82596 Configuration Bytes Displays the current value for each byte number.
I. Display Daughter Card Configuration Displays the connector type for each each port.
J. Turn on LEDs Enables the front bracket LEDs on the quad Ethernet interface card to test LED functionality.
K. Turn off LED Disables the front bracket LEDs on the quad Ethernet interface card to test LED functionality.

Figure 5¯2 Setup Ethernet Parameters Menu

Setting the Test Data Patterns

When you run certain tests, the console displays the Data Pattern Menu to select the data patterns written to the register during the test. Figure 5-3 describes this 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 Defined Data 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.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.
C. Setup Ethernet Parameters Displays the Setup Ethernet Parameters Menu.

Figure 5¯3 Data Pattern Menu

System Bus Interface Test Group

This group tests the bus interface logic of the quad Ethernet interface card and verifies that the interface card can talk to the CPU over the system bus. Figure 5-4 describes the System Bus Interface Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Identification Register Test (MODID reg.) Reads the module ID register and displays the version number of the quad Ethernet interface card.
2. System Bus Interface Test (CSR reg.) Displays the Data Pattern Menu (Figure 5-3) to select the data patterns written to the CSR register during the test.
3. System Bus Interface Test (INTRST reg.) Displays the Data Pattern Menu (Figure 5-3) to select the data patterns written to the INTRST register during the test.
4. Burn In Address (BIA) Test Checks the BIA ROM contents, reads the BIA, calculates the checksum and compares it with the checksum from ROM. If the two checksums do not match, an error message appears. This test saves the address as a source address for future use.
5. Slot Register Test
(INTSTAT reg.)
This test is for the CNX 600 router only. It displays the slot the Ethernet interface card is in.
6. LED Flash Test Tests the functionality of the Ethernet interface card LEDs.
(continues)

Menu Item Function
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.
C. Setup Ethernet Parameters Displays the Setup Ethernet Parameters Menu.

Figure 5¯4 System Bus Interface Test Group Menu

82596 Tests Group

This group initializes and configures the 82596 chip. Figure 5-5 describes the 82596 Tests Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. 82596 Test for LAN Port 0 Initializes and configures the 82596 chip for port 0. This item displays a menu called 82596 Test for LAN Port # (Figure 5-6).
2. 82596 Test for LAN Port 1 Initializes and configures the 82596 chip for port 1. This item displays a menu called 82596 Test for LAN Port # (Figure 5-6).
3. 82596 Test for LAN Port 2 Initializes and configures the 82596 chip for port 2. This item displays a menu called 82596 Test for LAN Port # (Figure 5-6).
4. 82596 Test for LAN Port 3 Initializes and configures the 82596 chip for port 3. This item displays a menu called 82596 Test for LAN Port # (Figure 5-6).
5. 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. Setup Ethernet Parameters Displays the Setup Ethernet Parameters Menu.

Figure 5¯5 82596 Tests Group Menu

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Selftest Tests the contents of the 82596 chip such as the ROM contents, parallel registers, bus throttle timers, and the collision number counter.
2. Initialization Initializes the 82596 chip.
3. Configuration Configures theernet Parameters Menu.
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.
C. Setup Ethernet Parameters Displays the Setup Ethernet Parameters Menu.

Figure 5¯6 82596 Test for LAN Port # Menu

Interrupt Test Group

This group tests whether or not the Ethernet interface card interrupts the CPU at appropriate times. Figure 5-7 describes the Interrupt Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Interrupt Test for LAN
Port 0
Tests the interrupt logic between the quad Ethernet interface card and the host system on port 0.
2. Interrupt Test for LAN
Port 1
Tests the interrupt logic between the quad Ethernet interface card and the host system on port 1.
3. Interrupt Test for LAN
Port 2
Tests the interrupt logic between the quad Ethernet interface card and the host system on port 2.
4. Interrupt Test for LAN
Port 3
Tests the interrupt logic between the quad Ethernet interface card and the host system on port 3.
5. 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 Ethernet Parameters Displays the Setup Ethernet Parameters Menu.

Figure 5¯7 Interrupt Test Group Menu

DMA Tests Group

This group tests DMA capability between the quad Ethernet interface card and host buffer memory. Figure 5-8 describes the DMA Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. DMA Test for LAN Port 0 Checks DMA capability from the Ethernet interface card to and from host buffer memory on port 0.
This item displays the DMA Test for LAN Port # Menu (
Figure 5-9).
2. DMA Test for LAN Port 1 Checks DMA capability from the Ethernet interface card to and from host buffer memory on port 1.
This item displays the DMA Test for LAN Port # Menu (
Figure 5-9).
3. DMA Test for LAN Port 2 Checks DMA capability from the Ethernet interface card to and from host buffer memory on port 2.
This item displays the DMA Test for LAN Port # Menu (
Figure 5-9).
4. DMA Test for LAN Port 3 Checks DMA capability from the Ethernet interface card to and from host buffer memory on port 3.
This item displays the DMA Test for LAN Port # Menu (
Figure 5-9).
3. All of the Above Runs all of the tests listed above this menu item.
(continues)

Menu Item Function
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 Ethernet Parameters Displays the Setup Ethernet Parameters Menu.

Figure 5¯8 DMA Test Group Menu

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. DMA Write Only Test Checks DMA capability from the Ethernet interface card to host buffer memory.
2. DMA Read and Write Test Tests DMA capability to and from host buffer memory into the 82596 FIFO. This test runs if the DMA write test passes.
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 Ethernet Parameters Displays the Setup Ethernet Parameters Menu.

Figure 5¯9 DMA Test for LAN Port # Menu

Loopback Tests Group

This group tests the transmit and receive capability of the quad Ethernet interface card when it is not connected to a network. Figure 5-10 describes the Loopback Tests Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Loopback Test for LAN Port 0 Tests the 82596 chip when it is configured to internal and external loopback mode on port 0. This item displays the Loopback Test for LAN Port # Menu (Figure 5-11).
2. Loopback Test for LAN Port 1 Tests the 82596 chip when it is configured to internal and external loopback mode on port 1. This item displays the Loopback Test for LAN Port # Menu (Figure 5-111).
3. Loopback Test for LAN Port 2 Tests the 82596 chip when it is configured to internal and external loopback mode on port 2. This item displays the Loopback Test for LAN Port # Menu (Figure 5-11).
4. Loopback Test for LAN Port 3 Tests the 82596 chip when it is configured to internal and external loopback mode on port 3. This item displays the Loopback Test for LAN Port # Menu (Figure 5-11).
5. All of the Above Runs all of the tests listed above this menu item.
(continues)

Menu Item Function
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 Ethernet Parameters Displays the Setup Ethernet Parameters Menu.

Figure 5¯10 Loopback Test Group Menu

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. 82596 Internal Loopback Test Loops data back within the 82596 chip and places the data in the receive buffer. A packet is created in buffer memory. The test transmits the packet, sends it back into the receive buffer, and compares the data.
2. Serial Interface Internal Loopback Test Tests the transmit and receive circuits except for the transceiver cable output driver and input receiver.
3. All of the Above Runs all of the tests listed above this menu item.
4. Network Loopback Test Checks all logic beyond the serial adapter interface (SAI) chip to the network and then back to the SAI chip.
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 Ethernet Parameters Displays the Setup Ethernet Parameters Menu.

Figure 5¯11 Loopback Test for LAN Port # Menu

Bus Contention Test Group

This group generates bus contention between the two LAN ports by performing DMA reads, writes, and slave accesses. Figure 5-12 describes the Bus Contention Test Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. DMA LAN Port 0 - Slave Access CSR Performs DMA on port 0 and slave accesses on the CSR.
2. DMA LAN Port 1 - Slave Access CSR Performs DMA on port 1 and slave accesses on the CSR.
3. DMA LAN Port 2 - Slave Access CSR Performs DMA on port 2 and slave accesses on the CSR.
4. DMA LAN Port 3 - Slave Access CSR Performs DMA on port 3 and slave accesses on the CSR.
5. DMA LAN Ports 0,1,2,3 - Slave Access CSR Performs DMA read and writes on all ports simultaneously to create bus contention.
6. 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. Setup Ethernet Parameters Displays the Setup Ethernet Parameters Menu.

Figure 5¯12 Bus Contention Test Group Menu

Network Tests Group

This group tests the transmit, receive, and echoing functions of the quad Ethernet 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 ARP cache does not expire. At the operational node, enter set refresh-timer 0 after the ARP config> prompt. For information about the ARP prompt, refer to the Bridging Router Protocol Configuration Guide, Volume 1.
3. Boot the router that is running the diagnostics via the operational node. Chapter 1 provides the boot procedure.
4. From the router that is running diagnostics, display the Quad Ethernet Diagnostic Main Menu and select Network Test Group. Figure 5-13 describes the Network Test Group Menu and Table 5-1 provides step-by-step instructions to run the network tests.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. LAN Port 0 (not configured) Tests the transmit and receive capabilities of port 0. The text in parentheses indicates the current test configuration for port 0. If port 0 is not currently configured for a test, "not configured" appears in the parentheses. If port 0 is configured as, for example, the transmit only node, "transmit only" appears in the parentheses. This item displays the LAN Port # Menu (Figure 5-14).
2. LAN Port 1 (not configured) Tests the transmit and receive capabilities of port 1. The text in parentheses indicates the current test configuration for port 1. If port 1 is not currently configured for a test, "not configured" appears in the parentheses. If port 1 is configured as, for example, the receive only node, "receive only" appears in the parentheses. This item displays the LAN Port # Menu (Figure 5-14).
3. LAN Port 2 (not configured) Tests the transmit and receive capabilities of port 2. The text in parentheses indicates the current test configuration for port 2. If port 2 is not currently configured for a test, "not configured" appears in the parentheses. If port 2 is configured as, for example, the receive only node, "receive only" appears in the parentheses. This item displays the LAN Port # Menu (Figure 5-14).
(continues)

Menu Item Function
4. LAN Port 3 (not configured) Tests the transmit and receive capabilities of port 3. The text in parentheses indicates the current test configuration for port 3. If port 3 is not currently configured for a test, "not configured" appears in the parentheses. If port 3 is configured as, for example, the receive only node, "receive only" appears in the parentheses. This item displays the LAN Port # Menu (Figure 5-14).
5. Execute Test Executes the transmit, receive, and echo tests.
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 Ethernet Parameters Displays the Setup Ethernet Parameters Menu.
D. Show Network Test Statistics Provides statistics on the network tests. Figure 5-15 shows the Network Test Statistics Screen and Chapter 11 defines the statistics.
E. Clear Network Test Statistics Resets the network test statistics to zero.

Figure 5¯13 Network Tests Group Menu

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Transmit only Transmits IP packets to a receive only node.
2. Receive only Receives IP packets from a transmit only node.
3. Echo test master node Transmits IP packets to an echo slave node.
4. Echo test slave node Receives packets from the echo master node. Once it receives the packets, the test slave node swaps the packet source and destination addresses and transmits the packets back to the echo master node.
5. Not configured Indicates that the port is not configured to run the transmit, receive, or echo tests.
A. Toggle Diagnostic Flags Displays the Router Diagnostic Flow Control Flags Menu.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.

Figure 5¯14 LAN Port # Menu

Table 5-1 Network Test Procedure

Step Port/Node Activity Menu
1. Determine two unique source IP addresses.
2. A and B Enter a source IP address on both ports/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 port/node B. Menu: Router Diagnostic Parameters Setup Item: Set Destination Node IP Address
4. B Set the destination IP address to match the source IP address on port/node A. Menu: Router Diagnostic Parameters Setup Item: Set Destination Node IP Address
5. A Configure the various test parameters such as the number of packets and their size. Menu: Router Diagnostic Parameters Setup
6. A and B Set the source physical address on both ports/nodes. Menu: Setup Ethernet Parameters Item: Set Ethernet Source Address
7. A Set the destination physical address to match the source physical address on port/node B. Menu: Setup Ethernet Parameters Item: Set Ethernet Destination Address
8. B Set the destination physical address to match the source physical address on port/node A. Menu: Setup Ethernet Parameters Item: Set Ethernet Destination Address
9. A or B Specify the port that is to transmit the packets for the test. Menu: Network Tests Group Item: LAN Port # (Not configured) Menu: Network Tests LAN
Port #
Item: Transmit Only
10. A or B Specify the port that is to receive the packets for the test. Menu: Network Tests Group Item: LAN Port # (Not configured) Menu: Network Tests LAN
Port #
Item: Receive Only
11. A and B Execute the test. Menu: Network Tests Group Item: Execute Test
12. A Check the number of packets that were transmitted by viewing the "Number of Packets Transmitted without Errors" statistic. Figure 5-15 shows the Network Test Statistics Screen. Menu: Network Tests Group Item: Show Network Test Statistics
13. B Check the number of packets that were received by viewing the "Number of Packets Received without Errors" statistic. Figure 5-15 shows the Network Test Statistics Screen. Menu: Network Tests Group Item: Show Network Test Statistics
14. 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 customer service representative if significant discrepancies continue.
15. A and B Reset the network test statistics to zero. Menu: Network Tests Group Item: Clear Network Test Statistics
16. B Start the receive operation for the echo tests. Menu: Network Tests Group Item: LAN Port # (Not configured) Menu: Network Tests LAN
Port #
Item: Echo Test Slave Node
17. B At any time, press <s> to stop the receive echo operation.
18. 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: LAN Port # (Not configured) Menu: Network Tests LAN
Port #
Item: Echo Test Master Node
19. A Check the number of packets that were transmitted and received. Menu: Network Tests Group Item: Show Network Test Statistics
20. 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 customer service representative if significant discrepancies continue.

Figure 5¯15 Network Test Statistics Screen

Media Test Group

This group executes the time domain reflectometry test to detect open and short circuits on the link and their distance from the diagnosing node. Figure 5-16 shows the Media Test Group Menu.

When the test is done, the diagnostic program calculates the distance to the cable failure and reports an approximate value. If an error condition exists, you receive one of the following messages:

Figure 5¯16 Media Tests Group Menu



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

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