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

Chapter 3

Ethernet (Dual) Diagnostic Program


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

General Description

Executing the Diagnostic Program

General Description

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

For information on error logging and error statistics, refer to Chapter 2, "Router Diagnostic Program."

Port Configuration

You can configure ports 0 and 1 differently for certain tests. If this is the case, the applicable port number appears above the prompt. When a port number does not appear above the prompt, your entry applies to both ports.

Figure 3¯1 Dual Ethernet Diagnostic Menu Flow

Executing the Diagnostic Program

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

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

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

I/O Base Address: # Slot Number: #

If the dual 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 3-2 summarizes the main menu items for the dual 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 dual Ethernet interface card.
2. 82596 Tests Group Initializes and configures the 82596 chip.
3. DMA Tests Group Checks the DMA function between the dual Ethernet interface card and host buffer memory
4. Loopback Tests Group Tests the transmit and receive capability of the dual Ethernet interface card when it is not connected to a network.
5. Bus Contention Tests Group Generates bus contention between the two LAN ports by performing DMA reads, writes, and slave accesses.
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 capabilites of the dual Ethernet interface card when it is connected to a network.
8. Media Tests 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
(continues)

Figure 3¯2 Dual 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 3-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 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 dual Ethernet interface card. The prompt is
Input Port Number Ethernet 
Source Addr[FF:FF:FF:FF:FF:FF]:.

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. Set APLIM Interface Enables or disables the APLIM interface. The
prompt is
Port #
Do you want to use APLI
interface:(y/n)[n]?

G. Set Ethernet Version Configures the Ethernet interface as version 1.0 or 2.0. The prompt is
Port #
Enter Ethernet version (1 <= version <=
2)[ ]:

H. Display Item C through G 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
Port # APLIM is Disabled/Enabled
Port # Ethernet Version is #

To return to the Setup Ethernet Parameters Menu, press <c>.
I. 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:.

J. Display 82596 Configuration Bytes Displays the current value for each byte number as follows:
Byte # Number = current value

Figure 3¯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 3-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 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 3¯4 Data Pattern Menu

System Bus Interface Test Group

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

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. System Bus Interface Test for LAN Port 0 Checks the system bus interface logic for port 0
using the diagnostic register and the BIA ROM contents. This item displays the System Bus Interface Test for LAN Port # Menu (
Figure 3-6).
2. System Bus Interface Test
for LAN Port 1
Checks the system bus interface logic for port 1
using the diagnostic register and the BIA ROM contents. This item displays the System Bus
Interface Test for LAN Port # Menu (
Figure 3-6).
3. Identification Register Test Reads the identification and eco registers and
displays the identification number and eco level.
4. All of the Above Runs all of the tests listed above this menu item.
5. Display APLIM Status
Register
Reads and displays the APLIM bit in the
configuration register.
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 3¯5 System Bus Interface Test Group Menu

Menu Item Function
0. Return to previous menu Displays the previous menu.
1. System Integrity Test Uses the diagnostic register to check the system
bus interface logic of the dual Ethernet interface
card. This item displays the Data Pattern Menu (
Figure 3-4).
2. Burn-in Address (BIA) Test Checks the BIA ROM contents. The test reads the BIA and ROM and calculates a checksum for each reading. If the checksums do not match, an error message appears.
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 3¯6 System Bus Interface Test for LAN Port # Menu

82596 Tests Group

This group initializes and configures the 82596 chip. Figure 3-7 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 3-8).
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 3-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.
C. Setup Ethernet
Parameters
Displays the Setup Ethernet Parameters Menu.

Figure 3¯7 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 the 82596 chip 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 3¯8 82596 Test for LAN Port # Menu

DMA Tests Group

This group tests DMA capability between the dual Ethernet interface card and host buffer memory. Figure 3-9 describes the DMA Tests 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 dual Ethernet interface card to and from host buffer memory on
port 0. This item displays the DMA Test for LAN
Port # Menu (
Figure 3-10).
2. DMA Test for LAN Port 1 Checks DMA capability from the dual Ethernet interface card to and from host buffer memory on
port 1. This item displays the DMA Test for LAN
Port # Menu (
Figure 3-10).
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 3¯9 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 dual 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 3¯10 DMA Test for LAN Port # Menu

Loopback Tests Group

This group tests the transmit and receive capability of the dual Ethernet interface card when it is not connected to a network. Figure 3-11 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 3-12).
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 3-12).
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 3¯11 Loopback Tests 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 3¯12 Loopback Test for LAN Port # Menu

Bus Contention Tests Group

This group generates bus contention between the two LAN ports by performing DMA reads, writes, and slave accesses. Figure 3-13 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 LAN Port 1 Performs DMA on port 0 and slave accesses on
port 1.
2. DMA LAN Port 1 Slave Access LAN Port 0 Performs DMA on port 1 and slave accesses on
port 0.
3. DMA LAN Port 1 DMA
LAN Port 0
Performs DMA read and writes on both ports simultaneously to create bus contention.
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 3¯13 Bus Contention Test Group Menu

Network Tests Group

This group tests the transmit, receive, and echoing functions of the dual 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 further information about configuring ARP, 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 Ethernet Diagnostic Main Menu and select Network Tests Group.
Figure 3-14 describes the Network Tests Group Menu and Table 3-1 lists the steps 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 Network Tests LAN Port # Menu (Figure 3-15).
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 Network Tests LAN Port # Menu (Figure 3-15).
3. Execute Test Executes the transmit, receive, and echo tests.
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.
(continues)

D. Show Network Test Statistics Provides statistics on the network tests for both ports.
Figure 3-16 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 3¯14 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 3¯15 Network Tests LAN Port # Menu

Table 3-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 ParametersSetup 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 ParametersSetup 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
(continues)

Table 3-1 Network Test Procedure (Continued)
Step Port/Node Activity Menu
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 3-16 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 3-16 shows the Network Test Statistics Screen.
Menu: Network Tests Group Item: Show Network
Test Statistics
(continues)

Table 3-1 Network Test Procedure (Continued)
Step Port/Node Activity Menu
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 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
(continues)

Table 3-1 Network Test Procedure (Continued)
Step Port/Node Activity Menu
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 representative if significant discrepancies continue.

Figure 3¯16 Network Test Statistics Screen

Media Tests Group

This group executes the time domain reflectometry test to detect open or short circuits on the link and their distance from the diagnosing node. Figure 3-17 shows the Media Tests 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, one of the following error messages appears on the screen:

Figure 3¯17 Media Tests Group Menu



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

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