Tiza Group

Home / Guides / Testing, commissioning and faults

Gateway Taking Minutes to Return After a Power Outage

Split the gateway recovery delay after a power outage into stages: boot, network, IEDs, time and control center link. We configure it remotely.

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

Short answer

The delay after an outage rarely belongs to a single device: gateway boot, switch startup, IED response, time synchronization and the moment the control center retries the connection all add up. Solve it by time-stamping each milestone during a controlled restart, working on the longest stage and measuring again.

Symptom

The supply of the communications cabinet is lost, or its breaker is operated, and when power returns the substation stays invisible to the control center for several minutes. The relays are already on and protection works, but there are no states, measurements or remote commands. Sometimes some points return first and others later; sometimes the link goes up and down a couple of times before settling.

Keep it apart from two neighboring cases: if the unit switches off and on with no outage, that is the gateway that restarts by itself; if it comes back quickly but incomplete, that is points lost after a restart. For the backup architecture, see redundant gateway and dual links to the control center.

Likely causes, from most to least likely

CauseHow to recognize itWhat confirms itWhat rules it out
Waiting for IEDs that do not answer, one after anotherThe time grows with the number of absent devicesThe log shows consecutive attempts and timeouts before publishingAll IEDs answer at the first attempt
Switch ports slow to forward trafficThe gateway is on but reaches nobody for tens of secondsThe spanning tree table shows end-device ports waitingPorts are declared as edge ports and forward immediately
Slow boot of the unit itselfNothing answers, not even the maintenance interfaceThe first message of the boot log comes lateThe system is ready in seconds and the delay comes later
Memory or file system check after an abrupt power-offA boot after an outage takes longer than an orderly restartThe log records verification or file recoveryBoth kinds of start take the same time
Application waiting for valid timeThe link comes up when the clock synchronizesThe synchronization event coincides with protocol startupThe application publishes with invalid time quality meanwhile
Control center retries at a long intervalThe gateway is ready and the session opens much laterA capture shows the TCP connection arriving late from the centerThe connection arrives seconds after the port starts listening
Wide area equipment starting lastThe local network is fine and the remote one is notRouter, modem or radio come up after everything elseThat equipment has a backed-up supply and never switched off

How to diagnose it

There is one method: put a time on every milestone. Without it, timers get adjusted at random.

  1. Align the sources. Test computer, gateway, switches and control center must share a time reference, or at least the offsets must be known.
  2. Define the milestones. Power return; first system message; network port up; response of the first and the last IED; valid time; telecontrol port listening; connection opened by the center; first general interrogation completed.
  3. Cause a controlled outage, authorized and away from switching work. Also do an orderly software restart for comparison.
  4. Leave a capture running on the port toward the control center, plus periodic pings to the gateway, one switch and two IEDs.
  5. Collect the logs of the gateway, the switches and the master, and build a single timeline.
  6. Subtract consecutive milestones. The longest stage is the first one to work on.
  7. Review the connection timers. In IEC 60870-5-104 the t0 to t3 timeouts default to 30, 15, 10 and 20 s and may have been changed; each master also decides how often it retries. See IEC 104 timers and windows.

If there are serial ports, look at their polling cycle separately: a powered-off device on a serial bus consumes the timeout multiplied by the retries, and meanwhile the others on that bus wait their turn.

Illustrative example

Generic situation with assumed figures. Everything is measured from power return. The gateway system is ready at 90 s. The network port starts forwarding 30 s later, because the switch applies the two 15 s waiting states of classic spanning tree to a port that has only one end device: 120 s so far. The gateway then associates 24 IEDs in sequence; 18 answer almost at once and 6 belong to bays still without control power, each with a 20 s timeout: another 120 s, 240 s in total. The control center retries every 60 s and its next attempt arrives 45 s later: 285 s overall, that is 4 minutes 45 seconds.

The order of attack follows. Associating in parallel, or not making publication depend on absent IEDs, recovers almost 120 s; declaring the port as an edge port, 30 s; shortening the master retry, up to 45 s in this case. A faster gateway would only have acted on the first 90 s.

Field checklist

  • Supply of gateway, switches and wide area equipment identified: which circuit and which backup.
  • Common time reference noted.
  • Gateway boot log downloaded.
  • End-device ports checked on the switches.
  • List of IEDs that do not answer and of bays out of service.
  • Timeouts and retries of every channel toward the IEDs.
  • Master reconnection interval confirmed with the control center.
  • Controlled outage and orderly restart measured and compared.

What to do

  • Absent IEDs: remove the ones that no longer exist, let the rest be published without waiting for them and mark the missing points as invalid.
  • Spanning tree: declare as edge ports only those that connect an end device, and in the station network use the rapid protocol or a zero recovery time solution, according to the design. An edge port set toward another switch invites a loop.
  • Unit boot: update as the manufacturer indicates, remove unused services and check the memory health. If abrupt power-off is frequent, the remedy is in the supply.
  • Supply: feed gateway, switches and link equipment from the substation DC system or a backed-up source, so that an AC outage does not switch them off.
  • Time: check that the time source returns soon and that behavior without valid time is the one you want.
  • Center reconnection: agree the retry interval and ask for the session to finish with a general interrogation.

Measure again after each change, one at a time, and keep the timeline as a reference for the next extension.

What not to do

  • Do not cause test outages without authorization from the grid operator or with work or switching in progress.
  • Do not shorten every timeout at once: a timeout that is too short creates false disconnections on a slow channel.
  • Do not enable edge ports on links between switches.
  • Do not work on energized supply terminals to force the outage; use the intended switching device and qualified staff.
  • Do not close the case without defining which delay is acceptable.

When to call us

If the timeline shows stages you cannot explain, if gateway, switches and master need to be reviewed together, or if you need to set and prove a recovery time before handing over the substation, we review it with the configurations, logs and captures. We configure it remotely. Tell us your case.

References

  • IEC 60870-5-104, Telecontrol equipment and systems. Network access for IEC 60870-5-101 using standard transport profiles.
  • IEEE 802.1Q, Bridges and Bridged Networks (includes the rapid spanning tree protocol).
  • IEC 62439-3, Industrial communication networks. High availability automation networks: PRP and HSR.

Frequently asked questions

How long should a gateway take to come back after a power outage?

There is no single figure: it depends on the device, the number of IEDs, the serial ports and the network. Agree a target time with whoever operates the control center, measure the real one stage by stage and compare them.

Why does the gateway answer on the network long before it delivers data?

Answering on the network only shows that the operating system and the port are up. The protocol application, the connection to each IED, the initial point read and the session opened by the control center still have to follow.

Does a redundant gateway remove the delay?

It removes it for the failure of one unit, provided the standby has an independent supply. If the outage switches off both gateways and the switches, both start from zero and the delay is still that of a full startup.

WhatsApp