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

Chapter 4

Ethernet (Single) Diagnostic Program


This chapter describes the diagnostic program for the single Ethernet 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 Ethernet interface card includes the following groups of tests:

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

Figure 4¯1 Single Ethernet Diagnostic Menu Flow

Executing the Diagnostic Program

To run the single Ethernet 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 Ethernet diagnostic program, follow this procedure:

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 Ethernet interface card has been added to the system configuration using the router diagnostic program, the Diagnostic Execution Menu lists the single Ethernet interface card as a menu item with a number in the parentheses. Enter the menu item number that lists the single Ethernet interface card. The console displays the following message followed by the main menu for the single Ethernet diagnostic program:
CNX Single Ethernet Stand alone Diagnostic Version #.#

------------------------------------------------------------

------------------------------------------------------------

I/O Base Address: # Slot Number: #

If the single Ethernet 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 4-2 summarizes the main menu items for the single Ethernet diagnostic program.

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 single Ethernet interface card.
2. 82596SX Test Group Initializes and configures the 82596SX chip.
3. Interrupt Logic Tests Group Checks the interrupt function of the single Ethernet interface card.
4. DMA Tests Group Checks the DMA function between the single Ethernet interface card and host buffer memory.
5. Loopback Tests Group Tests the transmit and receive capability of the single Ethernet interface card when it is not connected to the network.
6. All of the Above Runs all of the tests listed above this menu item.
7. Network Tests Group Tests the transmit, receive, and echoing capabilities of the single Ethernet interface card when it is connected to a 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 Ethernet Parameters Displays the Setup Ethernet Parameters Menu.

Figure 4¯2 Ethernet 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 Ethernet Parameters Menu.

Setting the Ethernet Parameters

You can set the parameters for some of the diagnostic tests. This option is available if the menu lists Setup Ethernet Parameters as an item. Figure 4-3 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 hexadecimal format. The prompt is
Enter a data pattern in HEX [FF00]:

D. Set Ethernet Source Address To enter an Ethernet source address. The default is the BIA of the single Ethernet interface card. The prompt is
Input Ethernet Source Address 			[FF:FF:FF:FF:FF:FF]:

E. Set Ethernet Destination Address To enter an Ethernet destination address. The prompt is
Input Ethernet Destination Address 			[##.##.##.##.##.##]:

(continues)

Menu Item Function
F. Set Simple/Advance Mode Sets simple or advance mode. In advance mode, the 82596 links commands to expedite command transmission. The prompt is
Do you want to use Advance Command
Processing (y/n)[n]?.

G. Set Number of Packets in Advance Mode Displays the prompt
Please input number of packets
(1-20) per command [20]:.

H. Set Source Address Insertion by 82596 The 82596 chip inserts a source address. The prompt is
Do you want 82596 to insert the 
source address: (y/n) [y]?.

I. Set Thin Ethernet to Use For thinnet cabling, enter y. The prompt is
Do you want to use thin Ethernet
network: (y/n) [n]?.

J. Set Ethernet Version 802.3 To use the 802.3 version of Ethernet, enter y. The prompt is
Do you want to use 802.3 Ethernet
version: (y/n) [y]?

K. Display Item C through J Settings Displays the settings for menu items C through J.
L. 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:.

M. Display 82596 Configuration Bytes Displays the current value for each byte number as follows:

Byte # Number = current value

Figure 4¯3 Setup Ethernet Parameters Menu

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 4-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.
(continues)

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

Figure 4¯4 Data Pattern Menu

System Bus Interface Test Group

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

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. System Bus Integrity Test Checks the system bus interface logic of the single Ethernet interface card using the diagnostic register. This item displays the Data Pattern Menu
(
Figure 4-4).
2. Identification Register Test Reads the identification and eco registers and displays the identification number and eco level.
3. 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.
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 4¯5 System Bus Interface Test Group Menu

82596SX Tests Group

This group initializes and configures the 82596 chip. Figure 4-6 describes the 82596SX 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 82596SX chip.
3. Configuration Configures the single Ethernet interface card using the values specified in the Setup Ethernet 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 4¯6 82596SX Tests Group Menu

Interrupt Logic Test Group

This group tests whether or not the single Ethernet interface card interrupts the CPU at appropriate times. Figure 4-7 describes the Interrupt Logic Tests Group Menu.

Menu Item Function
0. Return to previous
menu
Displays the previous menu.
1. MASKINT Bit Enable
Test
Checks the interrupt masking logic of the single Ethernet interface card.
2. Diagnostic Interrupt Bit Enable Test Enables the interrupt bit in the configuration register and tests the interrupt function between the single Ethernet interface card and the CPU.
3. 82596SX Interrupt Bit Enable Test Checks whether the 82596SX chip interrupts the CPU at appropriate times.
4. 82596SX Interrupt Bit Disable Test Tests whether the 82596SX chip does not interrupt the CPU at appropriate times.
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 4¯7 Interrupt Logic Tests Group Menu

DMA Tests Group

This group tests DMA capability between the single Ethernet interface card and host buffer memory. Figure 4-8 describes the DMA Tests Group Menu.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. DMA Write Only Test Checks DMA capability from the single Ethernet interface card to host buffer memory.
2. DMA Read and Write Test Checks DMA capability between the single Ethernet interface card and host buffer 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.
B. Setup Diagnostic Parameters Displays the Router Diagnostic Parameters Setup Menu.
C. Setup Ethernet Parameters Displays the Setup Ethernet Parameters Menu.

Figure 4¯8 DMA Tests Group Menu

Loopback Tests Group

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

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. 82596SX Internal Loopback Test Loops data back within the 82596SX 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 Loops data back from the serial chip before going out to the network. This test sets the 82596SX in full-duplex mode and sends out and receives the packet on the network at the same time. After receiving the packet, the data is checked.
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 4¯9 Loopback Tests Group Menu

Network Tests Group

This group uses IP packets to test the transmit, receive, and echoing functions of the single 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 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 Ethernet Diagnostic Main Menu and select Network Tests Group. Figure 4-10 describes the Network Test Group Menu and Table 4-1 lists the steps to run the network tests. The section following the table describes the collision logic tests.

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. Transmit Only Test Transmits IP packets to a receive only node.
2. Receive Only Test 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 echo slave node swaps the packet source and destination addresses and transmits the packet back to the echo master node.
5. Time Domain Reflectometry Test Activates a mechanism to detect open or short circuits on the link and their distance from the diagnosing node.

Upon completion of this test, the diagnostic checks the status information. If an error condition exists, one of the following error messages appears on the screen: ¯ Short or open on the
transceiver cable

¯ Short on the Ethernet cable

¯ Open on the Ethernet cable

The diagnostic calculates the distance to the cable failure and reports an approximate value.

6. Collision Logic Test Checks the collision logic of the single Ethernet interface card. Table 4-2 lists the steps to run the collision logic 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 4-11 shows the Network Test Statistics Screen and Chapter 10 defines the statistics.
E. Clear Network Test Statistics Resets the network test statistics to zero.

Figure 4¯10 Network Tests Group Menu

Table 4-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 physical address on both nodes. Menu: Setup Ethernet
Parameters
Item: Set Ethernet Source Address
7. A Set the destination physical address to match the source physical address on 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 node A. Menu: Setup Ethernet
Parameters
Item: Set Ethernet Destination Address
9. B Start the receive operation. Menu: Network Tests Group Item: Receive Only Test
10. B At any time, press <s> to stop the receive operation.
11. A Start the transmit operation. Menu: Network Tests Group Item: Transmit Only Test
12. A At any time, press <s> to stop the transmit operation.
13. A Check the number of packets that were transmitted by viewing the "Number of Packets Transmitted without Errors" statistic from the Network Test Statistics Screen (Figure 4-11). Menu: Network Tests Group Item: Show Network Test Statistics
14. B Check the number of packets that were received by viewing the "Number of Packets Received without Errors" statistic from the Network Test Statistics Screen (Figure 4-11). Menu: Network Tests Group Item: Show Network Test Statistics
15. 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 Reset the network test statistics to zero. Menu: Network Tests Group Item: Clear Network Test Statistics
17. B Start the receive operation for the echo tests. Menu: Network Tests Group Item: Echo Test Slave
Node
18. B At any time, press <s> to stop the receive echo operation.
19. 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
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 representative if a significant discrepancy continues.

Collision Logic Test Group

Table 4-2 shows the Collision Logic Test Group Menu and lists the steps to run the collision logic tests.

Table 4-2 Collision Logic Test Procedure

Step Node(s) Activity Menu
1. Determine two unique source IP addresses.
2. B and C Enter a source IP address on both nodes. Menu: Collision Logic Test Group Item: Setup Diagnostic Parameters Menu: Router Diagnostic Parameters Setup Item: Set Node IP Address
3. B Set the destination IP address to match the source IP address of node C. Menu: Router Diagnostic Parameters Setup Item: Set Destination Node IP Address
4. C Set the source physical address. Menu: Setup Ethernet Parameters Item: Set Ethernet Source Address
5. B Set the destination physical address to match the source physical address of node C. Menu: Setup Ethernet Parameters Item: Set Ethernet Destination Address
6. C Start the receive operation. Menu: Collision Logic Test Group Item: Receive/Reporting Node
7. C At any time, press <s> to stop the receive operation.
8. A Start the transmit operation on node A. Menu: Collision Logic Test Group
Item: Transmit Node 1
9. B Start the transmit operation on node B.
Transmission is done when the console displays the Collision Logic Test Group Menu on nodes A and B.
Menu: Collision Logic Test Group Item: Transmit Node 2
11. C Check the "Collision Detected" statistic from the Network Test Statistics Screen (Figure 4-11). Menu: Network Tests Group Menu Item: Show Network Test Statistics
12. The number of collisions that occurred on nodes A and B should match or be comparably close to the number of collisions detected on node C. If a discrepancy exists, view the other network statistics on nodes A and 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 4¯11 Network Test Statistics Screen



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

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