Symptom
A port on a managed switch shows input errors, check errors, collisions, discards, or link transitions that keep growing; devices on that port show intermittent communication faults, slow polls, or retries; a network monitor raises an error-rate alarm.
The short answer
Switch Port Errors Incrementing
A managed switch counts every frame that arrives damaged, every collision, every frame it could not forward, and every time a link goes down, and those counters are the best diagnostic on a plant network because they name the link and the type of fault without a site visit. Cyclic redundancy check and alignment errors mean frames were damaged on the wire, which is a cable, connector, port, or noise problem; late collisions mean a duplex mismatch; runts and giants usually mean a failing transceiver or a device sending malformed frames; discards mean the port had more traffic than it could carry; and link transitions mean a marginal physical connection. Clear the counters, trend them over a period, and treat any port whose error counters grow as a fault to fix, because errors mean retries and retries become timeouts.
Key points
- Every error counter maps to a class of fault; read which counter grows before deciding what to do.
- Check and alignment errors are physical; late collisions are a duplex mismatch; discards are congestion.
- Clear the counters and trend them; a count is meaningless without a time base.
- One growing port on a switch is that link; many growing ports on one switch is the switch, its power, or a storm.
- Copper cable tests, fiber power readings, and a substitute cable settle the physical cases quickly.
Possible causes and what to check
| Possible cause | What to check |
|---|---|
| Damaged, poor-quality, or over-length copper cable | Check errors growing on one port; a cable pinched, kinked, badly terminated, or longer than 100 meters. Cable test and replace. |
| Noise coupled into the cable | Check errors that follow motor starts or drive operation; a cable in a tray with power conductors or passing a drive. Reroute or use shielded cable bonded at the switch end. |
| Duplex mismatch | Late collisions and check errors rising with traffic; one end forced full duplex, the other negotiating to half. Set both ends alike. |
| Failing transceiver or port | Runts, giants, and check errors on a fiber port with normal light; errors that stay after the cable is replaced. Substitute the module, then the port. |
| Congested port | Output discards during bursts on a link shared with a historian, a camera, or a backup. Separate or prioritize the traffic. |
| Broadcast or multicast overload | Input discards and high processor load across many ports; a loop or a storm. Find the source. |
| Marginal fiber link | Check errors and link flaps with receive power near the floor. Clean and measure the fiber. |
| Device sending bad frames | Runts or oversized frames from one device; a failing network interface or a driver fault. Replace the interface or update the device. |
| Grounding difference between ends | Check errors on a shielded copper link between buildings or between panels on different grounds; current on the shield. Use fiber between grounds. |
| Switch power or hardware | Errors on several unrelated ports on one switch, a switch that reboots, or a supply near its limit. Check the supply and the switch log. |
What the counters mean
| Counter | What happened | Usual cause | Fix |
|---|---|---|---|
| CRC or FCS errors | Frame arrived with a bad check sequence | Bad cable or connector, noise, marginal fiber, bad port | Cable test, reroute, clean fiber, substitute |
| Alignment errors | Frame length not a whole number of bytes | Same physical causes; also a duplex mismatch | As above; check duplex |
| Late collisions | Collision after the first 64 bytes | Duplex mismatch; a cable far too long | Match speed and duplex at both ends |
| Collisions (not late) | Normal on half duplex only | A half-duplex link; if unexpected, a mismatch | Move to full duplex |
| Runts | Frames shorter than 64 bytes | Collision fragments, a bad transceiver, a faulty device | Check duplex; substitute |
| Giants or jabber | Frames longer than the maximum | A faulty interface, a jumbo frame mismatch | Fix the device; match frame size |
| Input discards | Switch dropped a good frame on receipt | Overload, a storm, a filter | Find the traffic source |
| Output discards | Port could not transmit fast enough | Congestion on this link | Separate or prioritize traffic; faster link |
| Link transitions | Port went down and came back | Marginal cable, connector, fiber, or a device rebooting | The intermittent link articles |
| Symbol errors | Invalid signaling on a gigabit link | Cable quality, a bad transceiver | Cable test; substitute |
Reading them properly
- 1
Clear
Clear the counters on the suspect port, or on the whole switch, and note the time. A count accumulated since the last reboot years ago says nothing.
- 2
Trend
Read again after an hour, a shift, and a day; a network monitor that polls the counters and graphs the rate is better. The rate, and when it rises, is the diagnosis.
- 3
Compare
Other ports on the same switch, and the port at the far end of the same link. Errors at both ends of a link point at the media; errors at one end point at that port or the receive direction.
- 4
Correlate
The error rate against motor starts, drive speed, weather, backups, and shift changes. Errors that follow an event name the mechanism.
- 5
Test the media
A cable certifier on copper; an optical power meter on fiber; a substitute cable of known quality as the fastest test of all.
- 6
Substitute the ends
A different port on the same switch, then a different transceiver or device interface, to separate the media from the hardware.
Copper on a plant floor
Most check errors on copper links at a water plant have the same story: the cable runs in a tray beside power conductors, or crosses a drive output cable, or was pulled through a conduit with the motor leads, and the switching noise from the drive couples into it. The errors follow the drive. The fixes are distance and separation, a shielded cable bonded at the switch end, or fiber, which is immune and is the right answer between panels and between buildings. A copper link between two panels on different ground references carries current on its shield and errors with it; fiber is the cure there as well.
When to worry
A healthy wired link accumulates no errors at all. Any error rate that grows on a wired plant link is a fault to be found, because every damaged frame is a retry, every retry is delay, and a burst of them during a transient is a communication timeout on a controller that then goes to its fail state. The threshold for action on a control network is not a percentage; it is any sustained growth.
Frequently asked questions
- The errors are tiny compared with the traffic. Does it matter?
- On a wired control link, yes, because the rate is not zero and it will not stay tiny; the cable is degrading, or the noise event that causes it will come at the wrong moment. Find it while it is small.
- Errors appear only at one end of the link.
- Input errors count damaged frames received, so the end that counts them is receiving the damage: the transmit side at the other end, or the cable pair carrying that direction. Swap the cable first, then the far transceiver or interface.
- Can I just replace the switch?
- If the errors are on many ports and follow the switch after everything else is ruled out, yes. If they are on one port, the switch is the least likely part; the cable, the connectors, the far device, and the environment come first.
- Why do late collisions matter on a modern network?
- Because they only occur on a half-duplex link, and a half-duplex link on a modern network is a duplex mismatch, which loses frames under load. The counter is the proof of the mismatch and the fix is a matched setting at both ends.
Related topics
- Intermittent Packet LossPolls that occasionally fail, tags that flicker bad, a ping that drops one in fifty: a bad cable or port, a duplex mismatch, a saturated link, a buffer overrun, a marginal radio or fiber hop, a slow device, or a loop. Finding which hop loses packets and why.
- Ethernet Device Drops OfflineAn industrial Ethernet device that disappears and comes back. Duplex mismatch, cabling, spanning tree, and the switch counters that identify it in minutes.
- How to Troubleshoot an Ethernet ConnectionWork an Ethernet problem one layer at a time: link light and cable, then speed, duplex, and VLAN on the switch port, then address, mask, and gateway, then the application port through the firewall. Each layer has a one-minute test that rules it in or out.
- High Optical LossA link that is up but running near the receiver floor: the loss budget from transmitter to receiver and what ate it. Dirty connectors, bad splices, tight bends, a run too long for the module, or a wrong fiber type. Measuring the loss and getting margin back.
- Cable Routing ProblemsNoise that comes from where a cable runs: signal cables sharing a conduit, tray, or wireway with power or drive cables, long parallel runs, and shallow crossings. How coupling works, the separations that prevent it, and how to find the shared path.
- Floating Reference Between PanelsSignals between two panels that misbehave because the panels do not share a DC reference: inputs that never turn on or half turn on, strange voltages to ground, and noise that comes and goes. How DC commons should be bonded and how to cross a panel boundary.
Direct contact
Have a controls question?
Reach Eric Sullivan directly about anything on this site, a controls or automation topic, or one of his personal projects.