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
| Cause | How to recognize it | What confirms it | What rules it out |
|---|---|---|---|
| Waiting for IEDs that do not answer, one after another | The time grows with the number of absent devices | The log shows consecutive attempts and timeouts before publishing | All IEDs answer at the first attempt |
| Switch ports slow to forward traffic | The gateway is on but reaches nobody for tens of seconds | The spanning tree table shows end-device ports waiting | Ports are declared as edge ports and forward immediately |
| Slow boot of the unit itself | Nothing answers, not even the maintenance interface | The first message of the boot log comes late | The system is ready in seconds and the delay comes later |
| Memory or file system check after an abrupt power-off | A boot after an outage takes longer than an orderly restart | The log records verification or file recovery | Both kinds of start take the same time |
| Application waiting for valid time | The link comes up when the clock synchronizes | The synchronization event coincides with protocol startup | The application publishes with invalid time quality meanwhile |
| Control center retries at a long interval | The gateway is ready and the session opens much later | A capture shows the TCP connection arriving late from the center | The connection arrives seconds after the port starts listening |
| Wide area equipment starting last | The local network is fine and the remote one is not | Router, modem or radio come up after everything else | That 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.
- Align the sources. Test computer, gateway, switches and control center must share a time reference, or at least the offsets must be known.
- 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.
- Cause a controlled outage, authorized and away from switching work. Also do an orderly software restart for comparison.
- Leave a capture running on the port toward the control center, plus periodic pings to the gateway, one switch and two IEDs.
- Collect the logs of the gateway, the switches and the master, and build a single timeline.
- Subtract consecutive milestones. The longest stage is the first one to work on.
- 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.
Related guides
- Redundant gateway and dual links to the control center
- The gateway restarts by itself every few hours
- Gateway losing SCADA points after a restart
- IEC 104 t0 to t3 timers
- RSTP and MRP in substation networks
- Zero recovery redundancy with PRP and HSR
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.