Solving Serial Connection Problems
Solving Serial Connection Problems
This chapter suggests ways to handle problems associated with serial connections
and is organized as follows:
• Using the show interfaces serial Command, page 7-2
• Using Extended ping Tests, page 7-18
• Using debug Commands, page 7-21
• Troubleshooting Clocking Problems, page 7-22
• Adjusting Buffers, page 7-26
• Using Loopback Tests, page 7-30
Syntax
The following is the syntax of the show interfaces serial command:
where:
• slot (optional) identifies the slot of a particular card in the Cisco ICS 7750
(legal slot values are 1 through 8).
• interface (optional) identifies a particular interface, such as serial 0.
• accounting (optional) displays the number of packets of each protocol type
that has been sent through the interface.
Table 7-1 Descriptions for the show interfaces serial Field (continued)
Output Drops
Output drops appear in the output of the show interfaces serial command when
the system is attempting to hand off a packet to a transmit buffer but no buffers
are available (see callout 2 in Example 7-1).
Action The following steps are suggested when you encounter this symptom:
Step 1 Minimize periodic broadcast traffic such as routing and Service Advertising
Protocol (SAP) updates by using access lists or by other means. For example, to
increase the delay between SAP updates, use the ipx sap-interval interface
configuration command.
Step 2 Increase the output hold queue size in small increments by using the hold-queue
out interface configuration command.
Step 3 On affected interfaces, turn off fast switching for heavily used protocols. For
example, to turn off IP fast switching, enter the no ip route-cache interface
configuration command. For the command syntax for other protocols, refer to the
Cisco IOS IP Configuration Guide, Release 12.2 and the Cisco IOS IP Command
Reference, Volume 2 of 3: Routing Protocols, Release 12.2.
Step 4 Implement priority queuing on slower serial links by configuring priority lists.
For information on configuring priority lists, refer to the “Congestion
Management” section in the Cisco IOS Quality of Service Solutions Configuration
Guide, Release 12.2 and the Cisco IOS Quality of Service Solutions Command
Reference, Release 12.2 publications.
Input Drops
Input drops appear in the output of the show interfaces serial command when too
many packets from that interface are still being processed in the system (see
callout 3 in Example 7-1).
Possible Cause Input rate exceeds the capacity of the MRP or input queues
exceed the size of output queues
Action The following steps are suggested when you encounter this symptom:
Step 1 Increase the output queue size on common destination interfaces for the interface
that is dropping packets. Use the hold-queue out interface configuration
command.
Step 2 Reduce the input queue size by using the hold-queue in interface configuration
command to force input drops to become output drops. Output drops have less
impact on the performance of the router than do input drops.
Note Input drop problems typically occur when heavy traffic is being routed
between Ethernet and serial interfaces. ASIs, MRPs, and routers may drop
packets during these congested periods.
Input Errors
Possible sources for input errors that appear in the show interfaces serial
command output (see callout 4 in Example 7-1) are as follows:
• CRC errors
• Framing errors
• Aborted transmission
The most likely sources are summarized in the list of possible problems that
follows and in Table 7-3.
Note Any input error value for CRC errors, framing errors, or aborts above
1 percent of the total interface traffic suggests a link problem that you should
isolate and repair.
Note Cisco strongly discourages the use of data converters when you
are connecting an ASI or MRP to a WAN or serial network.
Action The following steps are suggested when you encounter this symptom:
Step 1 Use a serial analyzer to isolate the source of the input errors. If you detect errors,
it is likely that there is a hardware problem or a clock mismatch in a device outside
the ASI or MRP.
Step 2 Use the loopback and ping tests to isolate the specific problem source. For more
information, see “Using Extended ping Tests” on page 7-18 and “Using Loopback
Tests” on page 7-30.
Step 3 Look for patterns. For example, if errors occur at a consistent interval, they could
be related to a periodic function such as the sending of routing updates.
Interface Resets
Interface resets that appear in the output of the show interfaces serial command
are the result of missed keepalive packets (see callout 5 in Example 7-1).
Action When interface resets are occurring, examine other fields of the show
interfaces serial command output to determine the source of the problem.
Assuming an increase in interface resets is being recorded, examine the
following fields:
Step 1 If there are a high number of output drops in the show interfaces serial output,
see the section “Output Drops” on page 7-10.
Step 2 Check the carrier transitions field in the show interfaces serial display. If carrier
transitions are numerous while interface resets are being registered, the problem
is probably a bad link or CSU/DSU. Contact your leased-line or carrier service
and swap faulty equipment as necessary.
Step 3 Examine the input errors field in the show interfaces serial display. If input errors
are numerous while interface resets are increasing, the problem is probably a bad
link or CSU/DSU. Contact your leased-line or other carrier service and swap
faulty equipment as necessary.
Carrier Transitions
Carrier transitions appear in the output of the show interfaces serial command
whenever there is an interruption in the carrier signal, such as an interface reset at
the remote end of a link (see callout 6 in Example 7-1).
Action The following steps are suggested when you encounter this symptom:
Step 1 Check hardware at both ends of the link by attaching a breakout box or a serial
analyzer and testing to determine source of problems. (See Chapter 4, “System
Troubleshooting Guidelines.”)
Step 2 If an analyzer or breakout box does not identify any external problems, check the
ASI or MRP hardware.
Step 3 Swap faulty equipment as necessary.
Example 7-3 and Example 7-4 illustrate two useful ping tests, an all-zeros
1500-byte ping and an all-ones 1500-byte ping, respectively.
Note The packet size in both examples (1500 bytes) is specified by the
Datagram size field. The data pattern (all zeroes in Example 7-3, all
ones in Example 7-4) is specified by a hexadecimal value in the Data
pattern field.
Step 3 Examine the show interfaces serial command output and determine whether
input errors have increased. (See “Input Errors” on page 7-12.) If input errors
have not increased, the local hardware (DSU, cable, ASI, and MRP card) is
probably in good condition. Assuming that this test sequence was prompted by the
appearance of a large number of CRC and framing errors, a clocking problem is
likely. Check the CSU/DSU for a timing problem. (See “Troubleshooting
Clocking Problems” on page 7-22.)
Step 4 If you determine that the clocking configuration is correct and is operating
properly, put the CSU/DSU into remote loopback mode.
Step 5 Repeat the ping test and look for changes in the input error statistics.
Step 6 If input errors increase, there is either a problem in the serial line or on the
CSU/DSU. Contact the WAN service provider and swap the CSU/DSU. If
problems persist, contact your technical support representative.
Caution Use debug commands with care. Enabling debugging can significantly disrupt
the operation of a heavily loaded router. When you finish using a debug
command, remember to disable it with its specific no debug command or with
the no debug all command.
Following are some debug commands that are useful when troubleshooting serial
and WAN problems. For more information about the function and output of each
of these commands, refer to the Cisco IOS Debug Command Reference
publication.
• debug serial interface verifies whether HDLC keepalive packets are
incrementing. If they are not, an ASI card, MRP card, or the network might
have a timing problem.
• debug arp indicates whether an ASI or MRP is sending information about or
learning about other cards s or routers (with ARP packets) on the other side
of the WAN. Use this command when some nodes on a TCP/IP network are
responding but others are not.
• debug ppp negotiation shows Point-to-Point Protocol (PPP) packets
transmitted during PPP startup, where PPP options are negotiated.
• debug ppp packet shows PPP packets being sent and received. This
command displays low-level packet dumps.
• debug ppp errors shows PPP errors (such as illegal or malformed frames)
associated with PPP connection negotiation and operation.
• debug ppp chap shows PPP Challenge Handshake Authentication Protocol
(CHAP) and Password Authentication Protocol (PAP) packet exchanges.
• debug serial packet shows SMDS packets being sent and received. This
display also prints out error messages to indicate why a packet was not sent
or was received erroneously. For SMDS, the command dumps the entire
SMDS header and some payload data when an SMDS packet is transmitted
or received.
Overview of Clocking
The CSU/DSU derives the data clock from the data that passes through it. To
recover the clock, the CSU/DSU hardware must receive at least one 1-bit value
for every 8 bits of data that pass through it (this is known as ones density.)
Maintaining ones density allows the hardware to recover the data clock reliably.
Newer T1 implementations commonly use Extended Superframe Format (ESF)
framing with Binary 8-Zero Substitution (B8ZS) coding. B8ZS provides a scheme
by which a special code is substituted whenever eight consecutive zeros are sent
through the serial link. This code is then interpreted at the remote end of the
connection. This technique guarantees ones density independent of the data
stream.
Older T1 implementations use D4 (also known as Superframe Format [SF])
framing and Alternate Mark Inversion (AMI) coding. AMI does not utilize a
coding scheme like B8ZS. This restricts the type of data that can be transmitted
because ones density is not maintained independent of the data stream.
Another important element in serial communications is serial clock transmit
external (SCTE) terminal timing. SCTE is the clock echoed back from the data
terminal equipment (DTE) device (such as an ASI or MRP) to the data
communications equipment (DCE) device (such as a modem or CSU/DSU).
When the DCE device uses SCTE instead of its internal clock to sample data from
the DTE, it is better able to sample the data without error even if there is a
phase-shift in the cable between the CSU/DSU and the router. Using SCTE is
highly recommended for serial transmissions faster than 64 kbps. If your
CSU/DSU does not support SCTE, see “Inverting the Transmit Clock” on
page 7-26.
Step 1 Use the show interfaces serial command on the ASI, MRPs, or routers at both
ends of the link.
Step 2 Examine the command output for CRC, framing errors, and aborts (see “Input
Errors” on page 7-12).
Step 3 If either of the preceding steps indicates errors exceeding an approximate range
of 0.5 to 2.0 percent of traffic on the interface, clocking problems are likely to
exist somewhere in the WAN.
Step 4 Isolate the source of the clocking conflicts as outlined in “Isolating Clocking
Problems” on page 7-24.
Step 5 Bypass or repair any faulty patch panels.
Step 1 Perform a series of ping tests and loopback tests (both local and remote), as
described in the sections “Using Extended ping Tests” on page 7-18 and “Using
Loopback Tests” on page 7-30.
Step 2 Determine which end of the connection is the source of the problem or if the
problem is in the line. In local loopback mode, use different patterns and sizes in
the ping tests (for example, use 1500-byte datagrams). Using a single pattern and
packet size may not force errors to materialize, particularly when a serial cable to
the ASI, MRP, or CSU/DSU is the problem.
Step 3 Use the show interfaces serial EXEC command and determine whether input
error counts are increasing and where they are accumulating.
If input errors are accumulating on both ends of the connection, clocking of the
CSU is the most likely problem.
If only one end is experiencing input errors, there is probably a DSU clocking or
cabling problem.
Aborts on one end suggest that the other end is sending bad information or that
there is a line problem.
Note Always refer to the show interfaces serial command output, and log any
changes in error counts or note that the error count does not change.
Possible
Problem Solution
Incorrect CSU configuration Step 1 Determine whether the CSUs at both ends agree on the
clock source (local or line).
Step 2 If the CSUs do not agree, configure them so that they
do. Usually the line is the source.
Step 3 Check the LBO1 setting on the CSU to ensure that the
impedance matches that of the physical line. For
information on configuring your CSU, consult your
CSU hardware documentation.
Incorrect DSU configuration Step 1 Determine whether the CSUs at both ends have SCTE
mode enabled.
Step 2 If SCTE is not enabled on both ends of the connection,
enable it.
For any interface that is connected to a line of 128 kbps
or faster, SCTE must be enabled. If your DSU does not
support SCTE, see “Inverting the Transmit Clock” on
page 7-26.
Step 3 Make sure that ones density is maintained—the DSU
must use the same framing and coding schemes (such as
ESF and B8ZS) used by the leased-line or other carrier
service.
Check with your leased-line provider for information
on their framing and coding schemes.
Possible
Problem Solution
Step 4 If your carrier service uses AMI coding, either invert
the transmit clock on both sides of the link or run the
DSU in bit-stuff mode. For information on configuring
your DSU, consult your DSU hardware documentation.
Cable to MRP out of Step 1 If the cable is longer than 50 ft (15.24 m), use a shorter
specification cable.
Step 2 If the cable is unshielded, replace it with shielded cable.
1. LBO = Line Build Out
Adjusting Buffers
Excessively high bandwidth utilization results in reduced overall performance
and can cause intermittent failures. However, increasing the bandwidth might not
be necessary or immediately practical. One way to resolve marginal serial-line
overutilization problems is to control how MRPs use data buffers.
Caution In general, do not adjust system buffers unless you are working closely with a
Cisco technical support representative. You can severely affect the
performance of your hardware and your network if you incorrectly adjust the
system buffers on MRPs or routers.
Use one of the following three options to control how buffers are used:
• Adjust parameters associated with system buffers
• Specify the number of packets held in input or output queues (hold queues)
• Prioritize how traffic is queued for transmission (priority output queuing)
The configuration commands associated with these options are described in Cisco
IOS configuration guide and command reference publications.
The following section focuses on identifying situations in which you are likely to
use these options to help resolve connectivity and performance problems in serial
and WAN interconnections.
The show buffers command output in Example 7-5 indicates large numbers in the
trims and created fields for large buffers. (See callout 1.) If this is the case, you
can increase your serial link performance by increasing the max-free value
configured for your system buffers.
Use the buffers max-free number global configuration command to increase the
number of free system buffers. The value you configure should be approximately
150 percent of the figure indicated in the total field of the show buffers command
output. (See callout 2.) Repeat this process until the show buffers output no
longer indicates trims and created buffers.
If the show buffers command output shows a large number of failures in the no
memory field (see callout 3), you must reduce the usage of the system buffers or
increase the amount of shared or main memory (physical RAM) on the ASI, MRP
or router (refer to Installing Memory, PVDM, and VPN Modules in ASI Cards,
MRP Cards, and SPE Cards in the Cisco ICS 7750).
Note When you increase the number specified for an output hold queue, you might
need to increase the number of system buffers. The value you should use
depends on the size of the packets associated with the traffic anticipated for
the network.
Note Priority queuing automatically creates four hold queues of varying sizes,
which override any hold queue specification included in your configuration.
Use priority queuing to prevent packets from being dropped and to improve serial
link performance under the following conditions:
• When the interface is slow, many types of traffic are being transmitted, and
you want to improve terminal traffic performance.
• If you have a serial link that is intermittently experiencing very heavy loads
(such as file transfers occurring at specific times), you can use priority lists
to select which types of traffic should be discarded during heavy traffic
periods.
In general, start with the default number of queues when implementing priority
queues. After enabling priority queuing, monitor output drops with the show
interfaces serial EXEC command. If you notice that output drops are occurring
in the traffic queue you have specified to be high priority, increase the number of
packets that can be queued (using the queue-limit keyword option of the
priority-list global configuration command).
Note To use these tests, the internetworking system must be attached to a CSU or
DSU, or to a multiplexer with built-in CSU/DSU functionality. Because there
is no concept of a loopback in X.25 or Frame Relay packet-switched network
(PSN) environments, loopback tests do not apply to X.25 and Frame Relay
networks.
Step 1 Place the CSU/DSU in local loop mode (refer to your vendor documentation). In
local loop mode, the use of the line clock (from the T1 service) is terminated, and
the DSU is forced to use the local clock.
Step 2 Use the show interfaces serial EXEC command (see “Interface and Line Protocol
Status” on page 7-5) to determine whether the line status changes from “line
protocol is down” to “line protocol is up (looped),” or if it remains down.
Step 3 If the line protocol comes up when the CSU or DSU is in local loopback mode, it
suggests that the problem is occurring on the remote end of the serial connection.
If the status line does not change state, there is a possible problem in the ASI,
MRP, router, connecting cable, or CSU/DSU.
Step 4 If the problem appears to be local, use the debug serial interface privileged
EXEC command. (See “Using debug Commands” on page 7-21.)
Step 5 Take the CSU/DSU out of local loop mode. When the line protocol is down, the
debug serial interface command output will indicate that keepalive counters are
not incrementing.
Step 6 Place the CSU/DSU in local loop mode again. This should cause the keepalive
packets to begin to increment. Specifically, the values for mineseen and yourseen
keepalives will increment every 10 seconds. This information will appear in the
debug serial interface output.
If the keepalives do not increment, there may be a timing problem on the MRP
card or on the network. For information on correcting timing problems, see
“Troubleshooting Clocking Problems” on page 7-22.
Step 7 Check the local router and CSU/DSU hardware and any attached cables. Ensure
that the cables are within the recommended lengths (no more than 50 ft [15.24 m],
or 25 ft [7.62 m] for a T1 link). Verify that the cables are attached to the proper
ports. Swap faulty equipment as necessary.
Example 7-6 shows the output from the debug serial interface command for an
HDLC serial connection, with missed keepalives (see callouts 1 through 4)
causing the line to go down (see callout 5) and the interface to reset.
Note This remote loopback test assumes that HDLC encapsulation is being used and
that the preceding local loop test was performed immediately before this test.
Step 1 Put the remote CSU or DSU into loopback mode (refer to the vendor
documentation).
Step 2 Using the show interfaces serial EXEC command, determine whether the line
protocol remains up with the status line indicating “Serial x is up, line protocol is
up (looped),” or if it goes down with the status line indicating “line protocol is
down.”
Step 3 If the line protocol remains up (looped), the problem is probably at the remote end
of the serial connection (between the remote CSU/DSU and the remote router).
Perform both local and remote tests at the remote end to isolate the problem
source.
Step 4 If the line status changes to “line protocol is down” when remote loopback mode
is activated, make certain that ones density is being properly maintained. The
CSU/DSU must be configured to use the same framing and coding schemes used
by the leased-line or other carrier service (such as ESF and B8ZS).
Step 5 If problems persist, contact your WAN network manager or the WAN service
organization.