Tiza Group

Home / Guides / Testing, commissioning and faults

Control center receives every value twice

Every change arrives twice over IEC 104: use a capture to tell resending from two types or two paths and fix it at the source. Remote configuration.

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

Short answer

A value entering the center twice over IEC 104 may come from a point configured twice in the gateway, sending with and without timestamp, two sources reporting the same thing, two active connections or resending after a reconnection. A capture comparing type, cause of transmission, address, time and originating connection separates the cases.

Symptom

In the control center history every state change appears twice: same signal, same value, sometimes with the same millisecond and sometimes with one of them stamped at arrival time. Measurements come in pairs and link traffic is higher than expected. In other cases the doubles only show up after an outage or a switchover.

The effects are practical: inflated operation counters, wrong availability reports, hard-to-read event sequences and longer floods during a fault. How each frame is numbered and acknowledged is covered in the APDU structure and the I, S and U formats. Here the task is to find who produces the second copy.

Probable causes, from most to least likely

CauseHow it shows in the captureWhat rules it out
Point loaded twice in the gatewayTwo object addresses with the same value and timeA single address in the list and in the frame
Sending with and without timestampSame address, two type identifiers, for example single-point type 1 and type 30A single type for that address
Two sources for the same signalClose but not equal times: relay and hardwired input, or two devicesThe signal is born in one device only
Two connections transferring at onceSame objects in two TCP sessions to the centerOnly one connection has data transfer started
Two active gatewaysTwo source IP addresses with the same objectsA single IP originates the data
Resending after reconnection or switchoverObjects timestamped before the outage, right after transfer startsDoubles happen with a stable link
Interrogation or cyclic data read as eventSecond copy with interrogated, periodic or background causeBoth copies with spontaneous cause
Duplicate created in the centerOne object on the wire and two records on screenThe capture already shows two objects

How to diagnose it

  1. Pick a signal you can change without risk, or wait for a frequent natural change. Agree the test with operations.
  2. Capture on the center side. If the link is encrypted, capture before encryption or enable tracing on the front end.
  3. Compare both copies field by field: source IP and port, common address, object address, type identifier, cause of transmission, value, quality and timestamp.
  4. Read the cause of transmission. Spontaneous (3) is a change; periodic (1), cyclic sending; interrogated by station (20), an answer to general interrogation. The others are explained in causes of transmission.
  5. Count the copies on the wire. If there is only one object and SCADA shows two, check the center database: the same point tied to two definitions, two front ends writing or a repeated alarm rule.
  6. Count the connections. List the TCP sessions open to the server port and determine on which ones the start data transfer order was sent. Within a redundancy group only one should be active; two different groups pointing to the same center each get their own copy.
  7. Check the time. Two identical timestamps point to a single event copied. Two separate ones point to two sources or two real transitions, such as a bouncing contact.
  8. Trigger a controlled reconnection and watch what is sent again. Many implementations keep events queued until acknowledged; if the session drops first, they may repeat them in the next one. A late acknowledgment from the center increases the amount. To tune it see timers and the k and w windows.

Sequence numbers help: each connection keeps its own count, so two numbering series advancing together with the same objects reveal two sessions.

What to do

  • Repeated point: keep a single entry in the gateway list and remove the other from the center database too.
  • Two types: choose with the center whether each signal travels with or without timestamp. Both interoperability lists must say the same; see what the interoperability list agrees.
  • Two sources: choose the main one. If you want to keep the backup, give it its own labeled point.
  • Two connections or two active gateways: configure redundancy so only one path transfers and test the switchover; the arrangement is described in redundant gateways and links.
  • Resending after an outage: review acknowledgments, windows and queue emptying. Ask the center to recognize events already received by object, value and origin timestamp, never by value alone.
  • Interrogation or cyclic data: the center should update the state without creating an event; adjust interrogation and cyclic frequency.
  • Duplicate in the center: clean up the point database and alarm rules.

Illustrative example

Generic situation with invented figures. A substation reports 200 changes in a shift and the center history records 400. The capture shows, for each state, the same object address in two frames: one of type 1, without time, and one of type 30, with time. The gateway had double sending enabled and the center recorded both. Only the timestamped type is kept, the general interrogation response is confirmed to still deliver the states and the history of the next shift matches: one record per change.

Field checklist

  • One test signal agreed with operations.
  • Capture showing both copies, or proving there is only one.
  • Type, cause, addresses and timestamp compared.
  • Active TCP connections and their transfer state noted.
  • Gateway point list with no addresses repeating the same source.
  • Center list without double definitions.
  • Outage and switchover test after fixing.
  • General interrogation checked with no false events.

What not to do

  • Do not disable general interrogation to remove copies: you lose state synchronization after an outage.
  • Do not delete gateway points without checking who else uses them, such as logic, another master station or a calculation.
  • Do not test with commands on power equipment to generate events.
  • Do not remove cables in a substation in service without authorization and without knowing what other functions travel on them.
  • Do not raise or lower k and w blindly: a change without criteria can bring the link down.

When to call us

If the capture shows several causes at once, if redundant gateways or several centers take part, or if the point list must be cleaned without interrupting operation, we analyze the frames, adjust the gateway and verify with a controlled switchover. We configure it remotely. Write to us.

Open it in Tiza Designer: IEC 104 APDU decoder.

References

  • IEC 60870-5-104, Network access for IEC 60870-5-101 using standard transport profiles.
  • IEC 60870-5-101, Companion standard for basic telecontrol tasks.

Frequently asked questions

Does TCP not prevent repeated data?

TCP prevents duplicated bytes within one connection, and the IEC 104 sequence numbers control the I frames of that session. None of that stops the gateway from generating the same object twice, from sending it over two connections or from sending again, in a new session, events it never saw acknowledged.

Does general interrogation produce duplicates?

It delivers the current value of the points again, with a cause of transmission showing that it answers an interrogation. That is normal. The problem appears if the center records that response as a new event or interrogates too often. The cause of transmission settles the doubt.

Can I solve it by discarding repeats in SCADA?

Not as a permanent measure: a filter on equal values within a short time can erase a real sequence, such as a fast open and close. First locate where the copy is born and fix it there; use filters only if you know exactly what they discard.

WhatsApp