Cisco IOS
Cable Diagnostics (TDR)
Generate Cisco TDR cable test commands, parse show cable-diagnostics tdr output, and troubleshoot copper & fiber cable faults
What is TDR Cable Diagnostics?
Many Catalyst switches include a built-in Time Domain Reflectometer (TDR) in
their DSP/PHY. The test cable-diagnostics tdr command sends an electrical pulse down
each of the four copper pairs on an RJ-45 port and measures the reflection to determine pair status
and, when there's a fault or a remote link partner, the approximate distance to it — all without
unplugging a single cable.
How It Works
- The PHY injects a test pulse onto each pair (A, B, C, D).
- The pulse travels down the cable and reflects back when it hits an impedance change — an open end, a short, a bad connector, or a properly terminated link partner.
- The switch measures the round-trip time of the reflection and converts it to a distance using the cable's nominal velocity of propagation.
- Results are reported per pair: status (Open / Short / Terminated / Pair up) and distance to the fault or termination point.
Requirements & Limitations
- Copper RJ-45 ports only — not supported on SFP/fiber interfaces.
- Running the test on an active link briefly interrupts traffic (link flap of roughly 1–2 seconds) — schedule it during a maintenance window on production ports.
- Distance readings are estimates, typically accurate to ± 10 meters, and become unreliable on very short cable runs (under ~15 m / 50 ft).
- Not all platforms/linecards support it — older fixed-config switches and most router WAN ports do not implement TDR.
-
The interface should be administratively up (
no shutdown) before testing; an admin-down port typically returns Not Completed.
Platform Support
| Platform | Command | Notes |
|---|---|---|
| Catalyst 2960/3560/3750 (classic IOS) | test cable-diagnostics tdr | Original implementation — the reference syntax used throughout this tool |
| Catalyst 9200/9300/9400/9500 (IOS-XE) | test cable-diagnostics tdr | Same syntax, carried forward into IOS-XE |
| Catalyst 4500 / 6500 | test cable-diagnostics tdr | Support varies by supervisor/linecard — verify with show cable-diagnostics tdr help |
| ISR/ASR routers | n/a | TDR is a switch-port PHY feature; generally not available on router copper WAN interfaces |
| SFP / fiber ports | n/a | Use show interfaces transceiver (DOM) instead — see Fiber / Optical tab |
TDR Test Command Builder
! === CABLE DIAGNOSTICS (TDR): GigabitEthernet0/1 ===
test cable-diagnostics tdr interface GigabitEthernet0/1
! wait ~5 seconds for the DSP test to complete
show cable-diagnostics tdr interface GigabitEthernet0/1
Paste TDR Results
Paste the output of show cable-diagnostics tdr interface <intf> below and this
will parse each pair's status, distance, and give you a plain-English verdict.
Pair Status Legend
| Status | Meaning |
|---|---|
| Terminated | A link partner or proper termination is present at the reported distance — the normal, healthy state for a connected pair. |
| Pair up / Pair is working correctly | The pair is actively passing a link — healthy. |
| Open | The pair is broken, disconnected, or nothing is plugged in on the far end — reflection comes from an unterminated open circuit. |
| Short | The pair is shorted to another pair or to ground at the reported distance — usually physical damage, a pinched cable, or a wiring fault. |
| Impedance Mismatched | An impedance discontinuity was detected (bad connector, kink, staple, or wrong cable category) at the reported distance. |
| Not Completed | The test didn't finish — interface may be admin-down, unsupported, or link state prevented the test from running. |
Fiber Doesn't Use TDR
TDR relies on electrical reflections and only works on copper pairs. For fiber links, the equivalent diagnostic is Digital Optical Monitoring (DOM), built into most SFP/SFP+ transceivers — it reports real-time optical power, temperature, voltage, and bias current.
Optical Diagnostic Commands
| Command | Purpose |
|---|---|
| show interfaces transceiver | Quick summary of Tx/Rx optical power for all installed transceivers |
| show interfaces transceiver detail | Full readout per interface — power, temperature, voltage, bias current, and threshold alarms |
| show interfaces <intf> status | Link state, speed/duplex, and the transceiver type installed |
| show inventory | Confirm the exact SFP model and part number installed in each slot |
| show interfaces <intf> counters errors | CRC, input, and runt/giant error counters — rising counts point to a marginal optical link |
Typical DOM Thresholds
Exact thresholds vary by transceiver model — always check show interfaces transceiver detail for the specific high/low alarm and warning values programmed into that SFP.
| Parameter | Healthy Range (typical 1G/10G SFP) | If out of range |
|---|---|---|
| Rx Power | -1 to -18 dBm (varies by optic) | Low Rx — dirty/bad connector, excess fiber loss, bad transceiver, or exceeded distance |
| Tx Power | -1 to -9 dBm (varies by optic) | Low Tx — failing laser diode; replace the transceiver |
| Temperature | 0–70°C | High temp — check airflow/cooling; can cause intermittent errors |
| Voltage | ~3.3V ± 5% | Out of range — failing transceiver or power supply issue |
| Bias Current | Manufacturer spec, usually 2–60 mA | Rising bias current over time — laser is aging/degrading |
Copper Cable Fault Checklist
- Check the obvious first — reseat both ends of the cable and confirm it's fully clicked into the jack before running TDR.
-
Confirm the interface is up —
show interfaces <intf> status. An admin-down port will report Not Completed. -
Run the test —
test cable-diagnostics tdr interface <intf>, then wait a few seconds. -
Read the results —
show cable-diagnostics tdr interface <intf>, or paste them into the Result Interpreter tab above. - Open/Short at a short distance (a few meters) usually means damage near the connector — check for a bad crimp or a damaged jack.
- Open/Short at a longer distance points to physical damage mid-run — a staple through the cable, a chewed section, or a kink/crush point.
- Only some pairs bad? Only 2 of the 4 pairs are used at 100 Mbps (Fast Ethernet); a fault on an unused pair won't affect a 100 Mb link but will block Gigabit, which needs all four.
- Check pinout compliance — mixed T568A/T568B ends on the same run cause split pairs. See the Ethernet Cable Standards tool for pinout reference.
- Verify against cable category limits — runs beyond 100 m (328 ft) for copper Ethernet will show marginal or failing links regardless of TDR results.
- Still inconclusive? — swap in a known-good patch cable to isolate whether the fault is in the fixed cable run or a patch cord.
Common Errors
| Message / Symptom | Cause | Fix |
|---|---|---|
| % Cable diagnostics is not supported on this interface | Interface is fiber/SFP, or the platform doesn't support TDR on that port type | Use the Fiber / Optical tab (DOM) for optical links instead |
| Result is always Not Completed | Interface admin-down, or test run while the port was already actively linked at a speed that blocks TDR on some platforms | shutdown / no shutdown the interface, then rerun the test |
| Link flaps briefly after running the test | Expected behavior — the DSP pulse temporarily interrupts the electrical link | No action needed; schedule tests during maintenance windows on production ports |
| Distance reads as 0m with status Open | Nothing connected on the far end, or the cable is shorter than the tool's minimum reliable measurement distance | Confirm a cable is actually plugged in; treat sub-15m readings as approximate |