Guide · Network
What is port flapping? Causes and fixes
When a switch port keeps going down and up at short intervals, it is flapping. Each time, the device connected to the port loses the network for a few seconds or minutes. This guide explains what causes flapping, how it affects the network and how to find and fix it step by step.
What does port flapping mean?
A port is flapping when its link state switches between "up" and "down" again and again. Unplugging a computer once is not flapping; flapping is a link that drops and comes back many times within minutes or hours while nobody touches it.
Users know the symptoms: remote desktop sessions drop, file copies stop halfway, IP phones restart, camera feeds come and go. If the port is a link between two switches (an uplink), the impact is much larger: everyone behind that switch is affected at once, and every drop makes the network's loop protection and routing recalculate.
The most common causes
- Cable and connector: a loose RJ45 plug, a crushed cable, a wall socket or patch panel with a bad contact. When the cable moves, the link drops.
- Speed and duplex negotiation: if the two sides cannot agree on speed and duplex, the port keeps renegotiating. Setting one side by hand and leaving the other on auto is a common cause.
- Fiber and SFP modules: a dirty fiber end, a light level at the limit or a faulty SFP module drops the link.
- PoE and power: a camera or access point powered over PoE that does not get enough power restarts itself, and the port goes down and up with every restart.
- The device at the other end: computers going to sleep, the power-saving setting of the network adapter, a device stuck in a restart loop or a faulty network driver.
- Loops and configuration: a loop in the network, or protection features shutting a port and opening it again, can also look like flapping.
How to spot flapping
The switch log shows repeated "link down" and "link up" entries for the same port. Port statistics where the last state change is always very recent are another clue. Because the problem comes and goes, one check is rarely enough; you need a record of when the port went down over a period of time.
The times tell a story. If it starts at the same time every morning, think of a device starting up or waking from sleep; if it clusters at certain hours, think of power or load. If several ports drop at the same moment, the problem is probably not in the ports but in the switch or its power supply.
Step-by-step fix
- Find the device connected to the port. A user's computer, a camera, an access point or another switch? Uplinks always come first.
- Check the error counters. If CRC or alignment errors rise together with the flapping, the problem is most likely physical: cable, connector or SFP. The steps in the CRC errors guide help here too.
- Match speed and duplex. Set both sides to auto, or both to the same fixed value.
- Replace the patch cables and check the connectors. The easiest and cheapest test. On fiber, clean the ends and swap a suspect SFP module for a spare.
- Check the PoE budget. If the switch's total PoE power is not enough, some devices may switch off in turn. Look at how much power the device really draws.
- Look at the power settings of the device. On Windows, "Allow the computer to turn off this device to save power" and Energy-Efficient Ethernet settings on the network adapter can drop the link. Update the network driver.
- Move to another port. If the problem follows the device, it is in the cable or the device; if it stays with the port, it is the port.
Watch the port for a while after each change. Because flapping comes and goes, it can take a few hours to be sure the problem is really gone.
Monitoring flapping continuously
Flapping often happens when nobody is looking and stays unnoticed until users say "the network keeps dropping". Secura RMM monitors switch ports read-only over SNMP, lists the times a port went down and shows which device is connected to the port. By default, a port leading to another network device that goes down twice within an hour raises a critical alert, and a port to an end device that goes down six times within an hour raises a warning; the limits can be changed. See switch port errors and flapping monitoring for details.
Frequently asked questions
The port goes down when the computer shuts down. Is that flapping?
No. A port going down once when a device shuts down or sleeps is normal. Flapping means going down and up again and again at short intervals.
Does flapping damage the switch?
It does no lasting damage to the switch, but it makes the network recalculate and interrupts the traffic on that port. On an uplink it affects the whole switch.
Is shutting down the flapping port a fix?
It can be a temporary measure, but it does not remove the cause. When the port is opened again without fixing the cable, the setting or the device, the problem returns.
Related: CRC errors on a switch port · Switch port errors and flapping monitoring · Network device monitoring