Tiza Group

Home / Guides / Testing, commissioning and faults

The Time Server Stops Responding on the Network

What to check when relays and stations get no NTP or SNTP reply: service, address, UDP port 123, VLAN, firewall and reference. We configure it remotely.

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

Short answer

A time server that does not respond may be off, unreachable over the network, rejecting the client or answering that it is not synchronized, and the device shows the same thing in all four cases. A test query from the client's own network and a capture on UDP port 123 separate them: whether the request arrives, whether there is a reply and what its fields say.

Symptom

Relays, controllers, gateway or stations raise a “not synchronized” or “time server unavailable” alarm. The SCADA console reports the server as unreachable, or devices keep the last time and start drifting apart. Sometimes only one network segment fails; sometimes everything recovers by itself and fails again hours later. Devices fed by wired IRIG-B may stay normal while those depending on the network fail, and that difference is already a clue.

The exchange of four timestamps that NTP and SNTP use to compute time is described in IRIG-B, 1PPS and SNTP relay time synchronization. Here the only subject is what to do when the client request stops getting a useful reply.

Likely causes, from most to least likely

CauseHow to recognize itWhat confirms or rules it out
Service stopped or server rebooted without starting itThe address may answer ping, but no time query gets a replyService status; capture on the server with unanswered requests
Server running but not synchronizedIt replies and clients ignore itLeap indicator 3 or stratum 16 (or 0) in the reply
Firewall or access list filtering UDP 123Failed after a network change; works from the same VLAN and not from anotherRequest visible on one side of the filter and not the other; deny counter
Wrong route, gateway or VLANThe request arrives and the reply does not returnSimultaneous capture at client and server
Server address changed or duplicatedFails after a replacement; intermittent repliesAddress configured on the client and ARP table
Server rate limiting or refusing the clientOnly some clients, or after very frequent queriesRefusal packet with code RATE, DENY or RSTR
Allowed-client list or authenticationNew devices do not synchronize and old ones doRestriction and key settings at both ends
Physical link or switch portThe server disappears from the network altogetherLink light, error counters and switch log

How to diagnose it

  1. Bound who fails. List clients with their VLAN and status. All of them: server, its port or its reference. One segment: filter, route or VLAN. One device: its configuration.
  2. Query from where the problem is. From an authorized computer on the client’s own network, send an NTP query to the server. Ping does not replace this test.
  3. Capture UDP 123 at both ends. Four possible results: the request does not leave the client (configuration); it leaves and does not arrive (network or filter); it arrives and there is no reply (service or restriction); there is a reply that does not get back (return route or filter).
  4. Read the reply if there is one. Under RFC 5905, a leap indicator of 3 means clock not synchronized; stratum 16 means the same, and stratum 0 in a packet is unspecified or invalid. A stratum 0 packet may carry a refusal code in the reference identifier field.
  5. Interpret the refusal code. RATE asks for less frequent queries. DENY and RSTR mean the server will not serve that client: review the restrictions, do not keep trying.
  6. Look at the client’s reachability register, if it offers one. NTP keeps eight bits, one per recent poll; many tools show it in octal. A value of 377 means eight replies in a row; 0, none; values in between, intermittent losses.
  7. Check the server’s reference. Status of its GNSS receiver or upstream source, holdover alarm and date of the last lock.

Illustrative example

Generic case. Twelve relays lose synchronization on a Tuesday; the gateway does not. The relays are on the protection VLAN and the gateway shares a VLAN with the server. A query from a laptop on the protection VLAN gets no reply; from the server VLAN it does. The capture shows that the request does not cross the device routing between them, where an access list loaded the day before allowed MMS (TCP 102) and denied everything else.

A relay client polls every 64 s. Its reachability register holds the last eight polls, about 8.5 minutes of history: right after the change it starts filling with zeros and, after eight unanswered polls, it reads 0. A rule is added allowing UDP 123 from the protection VLAN to the server address and its reply, and the register is confirmed to climb poll by poll back to 377.

What to do

  • Service stopped: start it, verify it is set to start automatically and find out why it stopped.
  • Not synchronized: recover antenna, cable or upstream source. Do not force it to advertise itself as valid; if the date is wrong, follow the case of a server delivering a date ahead.
  • Filter: minimal rule on UDP 123 between clients and defined servers, recorded in the communication matrix.
  • Route or VLAN: fix gateway, mask or tagging, and test from each segment.
  • Rate refusal: lengthen the client poll interval; NTP expresses the interval as a power of two in seconds and RFC 5905 sets the minimum at 16 s.
  • Address changed: restore the intended one or update every client with the list in hand.
  • No redundancy: configure a second server where the device allows it and check the changeover by disconnecting the first in an authorized window. If everything hangs on one clock, review the single time source risk.
  • Alarm: supervise from SCADA both the availability of the service and its synchronization status.

Field checklist

  • I know which clients fail and on which network they are.
  • The server has power and link on its port.
  • The time service is running.
  • The server reports that it is synchronized.
  • A query from the affected network gets a reply.
  • I captured at both ends and know where the packet is lost.
  • There are no refusal codes or duplicate addresses.
  • Clients recovered synchronization and the time matches.
  • I noted the interval without time for event analysis.

What not to do

  • Do not set the time by hand on relays or servers as a fix: it leaves data that looks valid and is not.
  • Do not open all traffic between VLANs to test; use a temporary, specific rule.
  • Do not reboot in-service protection devices to force synchronization.
  • Do not open internet egress from the protection network to use public servers.
  • Do not ignore the unsynchronized interval: records from that period may not be comparable between devices.
  • Do not handle antennas or cabinets without qualified staff and the applicable work-at-height and electrical precautions.

When to call us

When captures do not explain the loss, when there are several VLANs and firewalls between clients and server, or when the distribution should be redesigned with backup and alarms. We review the server, the rules and the clients, and leave the changeover tested. We configure it remotely: ask for help with your time server.

Open it in Tiza Designer

Review the time distribution with the time synchronisation tool.

References

  • IETF RFC 5905, Network Time Protocol Version 4: Protocol and Algorithms Specification.
  • IETF RFC 8915, Network Time Security for the Network Time Protocol.
  • IEC 61850-8-1, Communication networks and systems for power utility automation: Mappings to MMS and to ISO/IEC 8802-3.
  • Mills, Computer Network Time Synchronization: The Network Time Protocol.

Frequently asked questions

If the server answers ping, is the time service fine?

No. Ping only shows that the address answers. The time service may be stopped, filtered on UDP 123 or replying that it is not synchronized. An NTP query is needed.

Do relays lose the time as soon as the server goes down?

They keep counting on their internal clock, which drifts little by little. How long they take to declare the loss and what they do then depends on the device and its settings; check the manual and the synchronization alarm.

Can I point devices to a public internet server in the meantime?

In a substation network it is not advisable: it requires internet egress from protection and control devices. Use a second internal server or the backup clock foreseen in the design.

WhatsApp