After the IP address of a gateway is changed, the control center usually loses data because the old address is still written in the master, in the firewall or in the routing table. A capture on the gateway port shows within minutes whether the master is not calling, whether the call does not arrive, or whether it arrives and nobody answers. The fix is almost always a configuration one, not hardware.
Symptom
The substation gateway is still on, its relays respond locally and the local HMI screen shows values. But since its IP address was changed (because of a new addressing plan, a VLAN move or the replacement of the device), the control center shows the station offline, with the signals in invalid quality or frozen. Sometimes the change was made a few weeks after other work, and the outage is blamed on that work.
The key is that changing an IP is not a local change: the old address is written in several places that nobody touched. To understand what the gateway translates and why its link is the one that drops, see the mapping from IEC 61850 to IEC 104 and DNP3.
Likely causes, from most to least likely
| Cause | How to recognize it |
|---|---|
| The master keeps calling the old address | In a capture on the gateway port no connection-opening packet arrives; at the center, the communications equipment shows attempts toward the previous IP |
| Wrong mask or outgoing route on the gateway | The gateway answers on its subnet but not outside it; the configured default gateway lies outside the new subnet |
| Firewall or access control list with the old address | The opening packet reaches the gateway and there is no response, or the center firewall counts drops toward the new IP |
| ARP or routing table with expired data | The neighboring devices keep sending to the physical address associated with the previous IP; the problem appears and disappears when the table is cleared |
| The telecontrol process does not listen on the new interface | The connection opens and closes immediately, or the packet arrives and a rejection comes back; the service was bound to a specific address |
| Duplicate address | Another device uses the new IP: the link drops in bursts and the capture shows two physical addresses for the same IP |
| Certificates or peer lists tied to the IP | The secure link rejects the peer; the device log refers to identity or certificate |
| Relays that filter clients by address | The connection comes up, but the relays reject the gateway and the signals arrive invalid |
How to diagnose it
- Ask what exactly changed. Address, mask, default gateway, VLAN, switch port or the whole device. Each points to a different row of the table.
- Check the local side first. From a computer on the same subnet as the gateway, verify that it responds and that its mask and default gateway correspond to the new subnet. The default gateway must belong to that same subnet; otherwise the gateway can never answer outside it.
- Make a capture on the gateway port (mirror port or tap) while someone at the center asks for the connection to be restarted. With the telecontrol link over IEC 104, the master opens a TCP connection to the gateway port (the port assigned to the protocol; for its use, see port 2404 and IEC 104 TCP connections). Interpret what you see:
- No opening packet: the problem is before the gateway (master, route or firewall).
- The packet arrives and there is no response: a block on the device itself or in an intermediate filter.
- It arrives and is answered with a rejection: the service does not listen on that address or already has the maximum number of connections.
- The TCP connection comes up but no data flows: the problem is no longer in the network but in the application (startup order, common addresses, lists of authorized peers). To read the messages, the IEC 104 APDU decoder helps to see who is silent.
- Look at the center side. Ask whoever operates the master to confirm the address configured for the station, whether there is a list of permitted peers and whether there is a second channel with another address that must also change.
- Check the link layer of the neighborhood. Clear the ARP entry of the IP on the neighboring layer-3 router or switch and see whether the link recovers. If it does, there was expired data.
- Look for duplicates: compare the physical address of whoever answers to the IP with that of the gateway.
Illustrative example
A gateway goes from 10.20.1.10 with mask 255.255.255.0 to 10.20.5.10 with the same mask, as part of a new VLAN plan. Updating the default gateway was forgotten, and it is still 10.20.1.1. The gateway is now on network 10.20.5.0, which runs from 10.20.5.1 to 10.20.5.254. The default gateway 10.20.1.1 lies outside it, so the gateway cannot send anything to the outside. In the capture the master’s request is seen arriving and no response going out. After correcting the default gateway to 10.20.5.1 and registering the new address in the center firewall, the connection comes up. This is a generic example, with invented values to illustrate the arithmetic.
Field checklist
- Address, mask and default gateway of the gateway belong to the same new subnet.
- The gateway answers from another subnet (test from the center or from a link device).
- The master points to the new address, on all its channels.
- The firewall and access lists of the center and the station allow the new address and the protocol port.
- ARP was cleared on the neighboring layer-3 devices.
- No other device has the same IP.
- The VLAN and the switch port correspond to the new subnet.
- The relays that filter clients accept the new address.
- Certificates and peer lists were renewed if they were tied to the IP.
- After the connection, a general interrogation was made and the values at the center match those of the relay.
What to do
- Master or firewall with the old address: the person responsible for each one registers the new address; it is not fixed from the gateway side.
- Mask or route wrongly set: correct them on the gateway and verify again the response from outside the subnet.
- Expired ARP: clear the entry. If it comes back, there is a duplicate.
- Service bound to an interface: configure it to listen on the new address or on all, according to the station security policy.
- Duplicate: release the IP on the other device and record the change in the addressing plan (guide on IP and VLAN addressing plan).
- Rollback plan: if the link does not come up within the agreed window, return to the previous address and document what was missing, instead of improvising live changes.
What not to do
- Do not change the IP of a gateway in service without notifying the control center or setting a window; the station telecontrol is cut in the meantime.
- Do not open broad firewall rules “to test” and leave them: reduce them afterwards to the address and port strictly needed.
- Do not disable the firewall or the center filters to resolve the symptom.
- Do not restart the gateway repeatedly hoping it fixes itself: it does not correct expired data in the neighbors.
- Do not assume that, because ping answers, the telecontrol is healthy.
When to call us
If the link does not come up with the list above reviewed, if firewalls of the utility or the center that you do not control are involved, or if there are secure links with certificates tied to the address, we can review the gateway configuration and the signal map. We configure it remotely. Write to us.
Open it in Tiza Designer: IEC 104 APDU decoder.
Related guides
- IEC 61850 to IEC 104 and DNP3 mapping in the gateway
- DNP3 or IEC 104 link that drops: causes and diagnosis
- Gateway not translating relay data to the SCADA
- Two IEDs with the same IP address on the station network
- Gateway that intermittently loses the control center
- Industrial router and firewall
References
- IEC 60870-5-104, Telecontrol equipment and systems – Part 5-104: Transmission protocols – Network access for IEC 60870-5-101 using standard transport profiles.
- 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.
- IEC 62351-3, Power systems management and associated information exchange – Data and communications security – Part 3: Communication network and system security – Profiles including TCP/IP.
Frequently asked questions
Why does the control center not see the gateway if ping works?
Ping only tests the network layer. The telecontrol link uses a TCP connection to a specific port, and the firewall, the master's list of authorized devices or the gateway's telecontrol process can reject it even though ping answers. A capture shows whether the opening packet arrives and what response it receives.
Does anything need to change in the relays when the gateway IP changes?
Only if some relay limits which clients can associate by IP address, if the gateway is a client of the relays and they filter by source, or if some devices store the gateway address as the destination for reports. Check it relay by relay before considering the change finished.
How do you prevent an IP change from leaving the center without data?
With a window coordinated with the control center, the new address registered in the master, the firewall and the routes before the change, a connection test from the center afterwards, and a plan to return to the previous address if the link does not come up.