Tiza Group

Home / Guides / Testing, commissioning and faults

IED Drops Its SCADA Connection for No Apparent Reason

IED that drops SCADA with no alarm: causes, what to capture, and how to tell network, firewall, session limit and device apart. We configure it remotely.

By Shadai García, CEO and protection engineer at Tiza Group.

Short answer

When an IED disconnects from SCADA for no apparent reason, the clue is in the pattern: at fixed intervals it points to an idle timer in a firewall or in the client; if random, to the physical layer or a network reconfiguration; if it affects only one IED, to its session limit or its load. It is solved by capturing who closes the TCP session and why, not by restarting the IED.

Symptom

SCADA shows the IED with communication lost: the bay points go to “invalid” or “not updated”, reports stop arriving and, after a while, the connection restores itself. There is no link-down alarm, ping from the station keeps answering and the IED continues to operate its protections. The phenomenon can be periodic, happen only at certain hours or be random. Sometimes it affects a single IED, sometimes a group hanging from the same switch.

To understand how the association between client and server is established, how reports work and what each layer uses, see the parent guide on the MMS and TCP communication stack. Here we only sort out the suspects, measure and decide.

Likely causes, from most to least likely

CauseHow to recognize it
Idle timer in a firewall or stateful device between SCADA and the IEDDrops occur at regular intervals, especially on low-traffic devices; the close shows up as a session reset sent by the intermediate device, or as a session that no longer exists in its table
Physical layer faults: cable, connector, attenuated fibre, speed or duplex negotiationFrame error counters on the switch port; the link goes up and down in the switch log
Network reconfiguration (RSTP or other redundancy topology changes)The switch log shows topology changes at the time of the drop; losses last from tenths of a second to seconds
IED simultaneous session limit exhaustedAnother client (an engineering tool, a second SCADA, a log collector) opened a connection; the IED rejects or closes the oldest one
IED overload from reports, general interrogations or aggressive pollingThe drop coincides with an event avalanche or with another client connecting; the IED is slow to respond
Duplicated IP address or conflict with another deviceThe drop appears when the other device powers up; the switch address table changes port
Client timers too strict for the real linkThe client closes the session for lack of response within its time, and in the capture the IED does respond, but late
Restart or lock-up of the IED communications stackThe IED log shows a restart of the card or communications module without a restart of the protection

How to diagnose it

  1. Look for the pattern. Record the time of each drop over several days. If it repeats at fixed intervals or after the same idle time, suspect an intermediate device’s timer. If it matches the time of day, look at loads and scheduled jobs. If it is random, look at the physical layer and topology.
  2. Define the scope. Compare which IEDs drop: only one (its configuration or its link), all on one switch (the switch or its trunk link), all in the substation (the link to SCADA or the server).
  3. Capture at the moment of the drop. Keep a continuous capture with circular storage on a mirror port on the IED side. After a drop, locate the session and look at how it ends: orderly close, reset or silence with no response.
  4. Identify who closed it. A reset with the IED’s address as the source points to the IED (session limit, stack restart). With the client’s address, it points to the client (timer). With an intermediate address or no clear source, it points to a firewall or another device that closes idle sessions.
  5. Read the port counters. Cyclic redundancy errors, short frames, collisions or speed changes on the IED port indicate a physical problem.
  6. Read the topology log. If the switch logs topology changes at the time of the drop, it is a network reconfiguration; see the guide on redundancy with RSTP and MRP.
  7. Check the session limit. Look in the IED documentation for how many clients it admits and how many were connected when it failed. Also count engineering tools, which hold sessions while they are open.
  8. Check addresses. A scan with the network device powered off should show a single response for the IED’s address.

What to do

  • Intermediate idle timer: configure a session keep-alive mechanism in the client (TCP keepalive or the client’s application mechanism) with an interval shorter than the stateful device’s timer, or raise that timer for this session. Both adjustments belong to the client or the firewall.
  • Physical fault: replace the cable or connector, clean and measure the fibre, and fix the speed and duplex or confirm the negotiation at both ends.
  • Network reconfiguration: correct the source of the topology changes (unstable links, loops, undeclared edge ports) and review the root bridge priorities.
  • Session limit: close the sessions that are not needed, assign an account for engineering tools with planned windows and confirm that the client reconnects without piling up ghost sessions.
  • Overload: lower the polling rate, adjust the report control blocks (deadband, integrity period) and avoid repeated general interrogations. See the guide on MMS reports and controls.
  • Duplicated address: remove or reassign the conflicting device and document the addressing.
  • Client timers: align the timeout with the real delay measured in the capture, with margin, without making it so long that it hides real faults.
  • IED stack restart: save the log, consult the manufacturer and check the power supply status and the firmware version.

Setting changes in the client and the firewall can be made by communications staff in coordination with operations. Changes to the substation network, the IED or its firmware require a specialist and a maintenance window.

Field checklist

  • The time of each drop was recorded over several days and a pattern was looked for.
  • It was identified which IEDs drop and which do not.
  • There is a capture at the moment of the drop, showing who closed the session.
  • Error counters and port up and down events were read.
  • The switch topology change log was read.
  • Open sessions were counted against the IED’s limit.
  • A duplicated IP address was ruled out.
  • The event and communications logs were saved before any restart.

Illustrative example

A generic situation with assumed figures. An IED in a low-traffic bay loses communication with SCADA every exactly 30 minutes, and returns within a few seconds. Ping never fails. The capture shows that, right at half an hour after the last activity, an intermediate device sends a session reset; the client detects the close, opens a new session and recovers the reports. The intermediate device is a firewall with an idle session timer of 30 minutes. The fix is to enable a session keep-alive in the client every 10 minutes, so the session is never idle for longer than that. The drops disappear without touching the IED.

What not to do

  • Do not restart the IED as a first measure: you lose the evidence and leave the bay without protection while it boots.
  • Do not disable the firewall “to see if that’s it”: it can open a risk and confirms nothing a capture would not confirm.
  • Do not raise the client’s timeouts to huge values: it hides real faults and delays alarms.
  • Do not leave engineering tools connected and open: they hold IED sessions.
  • Do not change an IED’s IP address without updating the client and the documentation.
  • Do not work on substation switches or trunk links without coordinating with operations.

When to call us

If the drops follow no clear pattern, affect several IEDs or require reviewing the addressing, segmentation and timers of the whole chain between SCADA and the devices, we analyze the captures and logs and leave the settings documented. We configure it remotely. Write to us.

References

  • IEC 61850-8-1, Communication networks and systems for power utility automation – Part 8-1: Specific communication service mapping (SCSM) – Mappings to MMS (ISO 9506-1 and ISO 9506-2) and to ISO/IEC 8802-3.
  • RFC 1006, ISO Transport Service on top of the TCP (TCP port 102 reserved for this service).
  • RFC 1122, Requirements for Internet Hosts – Communication Layers (TCP keepalive).
  • Conformance documents (PICS and PIXIT) of the IED and the client: session limit and timers.

Frequently asked questions

Why does the IED disconnect if ping does not fail?

Because the SCADA connection is a TCP session with an application association on top, and it can close for reasons other than a link failure: a firewall idle timer, an IED client limit, a restart of the communications stack or a client supervision timer. Ping only proves that the layer 3 link responds.

How do I know who closed the connection?

With a traffic capture at the moment of the drop. If you see a reset or close frame for the session, look at who sent it: the IED, the client or an intermediate device. If there is none and the session simply stops getting responses, the problem is frame loss or delay on the path.

Does restarting the IED fix the problem?

It only hides it for a while and destroys the evidence. Before restarting, save the event log, the communications status and a capture. A restart without diagnosis also leaves the bay without protection while the device boots.

WhatsApp