Troubleshooting
Why Windows IoT LTSC 2021 reads PLC data slower than 2019
Short answer
A different DLL build identifies a version difference, not a proven cause. Freeze the workload across both partitions, log monotonic timestamps around every read beside the PLC watchdog counter, capture traffic on each partition, and change one inventoried variable at a time: driver, link settings, power management, security software. The watchdog arithmetic decides whether the lost time sits between reads or inside single calls, and each outcome has its own next step.
On this page
A changed DLL build is a version difference, not a proven cause. When the same PLC reader executable on the same industrial PC takes more than twice as long per acquisition pass under Windows IoT Enterprise LTSC 2021 as it does under LTSC 2019, the lost time sits somewhere in the host stack: adapter driver, link negotiation, power management, Windows networking, security inspection or scheduling. Freeze the workload on both partitions, instrument every read with monotonic timestamps beside the PLC watchdog counter, capture the traffic on each partition, and change one inventoried variable at a time. The watchdog arithmetic below decides whether the lost time lies between reads or inside single calls, and each outcome leads to its own next step.
What the watchdog gap actually measures #
The watchdog is a counter in one PLC data block that advances once per PLC cycle, and the application reads it alongside the process values. The gap between two observed values includes everything that happened between those samples: application scheduling, request preparation, network transit, PLC communication servicing, response handling and the wait before the next read started. It is not a pure network latency figure, and because the watchdog travels inside a data block, its value marks the moment that block was sampled rather than the end of the acquisition pass — trend it next to your own pass timestamps instead of trusting it to time the whole sequence.
For a counter that neither wraps nor resets between two reads, the gap is the newest value minus the previous one, and the number of cycle values never observed is one less than that. Define acceptance in counts and say which kind: a gap limit and an unobserved-values limit differ by one, and the two are easy to confuse when a result gets reported as lost cycles. Convert counts to elapsed time only when the PLC cycle duration that applied over the interval is known.
Working the 5-cycle gap on the LTSC 2019 baseline #
Inputs. The watchdog counter, in PLC cycles, advances once per cycle and travels in a data block the application already polls (the reported setup). The baseline gap budget: the largest gap between two consecutive reads of that block on the LTSC 2019 partition is 5 counter steps (the reported symptom). The comparison case: the same executable, PLC program and block set on the LTSC 2021 partition takes more than twice as long per pass (the reported symptom). Working assumption from that setup: the application polls continuously, so the gap between two watchdog reads equals the pass period, and the PLC cycle time is unchanged because program and load are identical — the cycle time itself is not reported, and this comparison needs counts only.
Rule. Without wrap or reset, gap = newest value − previous value, and unobserved values = gap − 1. If the elapsed time between reads grows by a factor k while the cycle time stays constant, the gap grows by the same factor k.
Arithmetic. Unobserved values in the 2019 worst case: 5 − 1 = 4 cycles. With the 2021 slowdown treated as proportional host delay, k exceeds 2, so the expected gap is more than 2 × 5 = 10 counter steps, leaving more than 10 − 1 = 9 cycles unobserved.
Result. A 2021 partition that logs gaps of more than 10 counter steps on the frozen workload is showing exactly what a doubled pass period predicts: the watchdog is faithfully reporting host-side slowness.
Decision. Gaps beyond double the baseline budget mean the time is being lost between watchdog reads, spread across the pass — add per-call timestamps and localize it. Gaps still inside the 2019 budget while wall-clock time still doubles mean the delay sits inside individual calls or application processing, where the watchdog cannot see it — profile the call path instead of polling faster.
Signals that separate host delay from network delay #
Rank the signals below by how cleanly each one separates host-side time from network or PLC time.
| Signal | Source | What it separates |
|---|---|---|
| Watchdog gap between samples | Application log | Shows missed observations; cannot locate the delay |
| Per-block and per-pass duration | Monotonic application timestamps | One slow block points at a request-specific issue; uniformly slow blocks point at a shared path |
| Request-to-response intervals | Packet capture on the PC | Long inter-request gaps indicate host-side pacing; long request-to-response times shift attention to the network or PLC |
| Retransmissions and reconnects | Packet capture plus communication-library diagnostics | Transport trouble that can dominate acquisition time |
| PLC cycle duration and communication load | PLC diagnostics | A changed scan or load invalidates a direct gap comparison |
| CPU and adapter state | Performance monitoring and adapter diagnostics | Worker saturation, scheduling stalls or link errors slow reads without any PLC change |
A capture taken on the PC timestamps frames inside the host stack, which limits how finely it can split host time from wire time.
Why one DLL build is a clue, not a cause #
A single read crosses the application, the communication library, the Windows networking stack, the adapter driver, the physical link and the PLC communication service before the result lands back in your process. Two OS installations on one PC can differ in driver versions, link negotiation, power policy, security inspection, background services and runtime dependencies on identical hardware, and every one of those can add time somewhere along that path.
The reported file versions are IPHLPAPI.DLL at 10.0.17763.2989 on the LTSC 2019 partition and IPHLPAPI.DLL at 10.0.19041.3636 on the LTSC 2021 partition. That comparison identifies a difference; it does not show whether the slow path calls that library at all, how often, or how much of the pass those calls consume. IPHLPAPI.DLL is the Windows IP Helper library, which code uses to query adapters and network configuration — a plausible neighbor of the communication path, not a convicted cause. Profile the delayed interval to separate time spent inside the application or a library from time spent waiting for a response; those are different findings with different fixes.
Parallel readers do not rescue the comparison either: both the single-client and the per-block-client arrangements ran slower on the 2021 partition, so client count is not the explanation. Keep the single-client arrangement as the diagnostic baseline and test concurrency separately once the baseline matches between partitions.
Comparing the two partitions one variable at a time #
- Freeze the workload. Same executable, same communication-library files, same PLC program, block addresses, read lengths, block order, polling behavior, cable and switch port. Record the exact Windows edition and build on each partition.
- Inventory the host before changing anything: adapter driver versions, negotiated link speed and duplex, power settings, adapter advanced properties, installed security software and enabled background services. In Device Manager, the adapter's Power Management tab is where Windows is stopped from powering the NIC down to save energy; some adapters do not expose that tab, and the equivalent control then lives in the vendor's driver utility.
- Instrument the reads. Put monotonic timestamps around each communication call and around the complete pass, and log the returned status, the watchdog value, the read size and any connection event. Keep logging off the hot path so the measurement does not become the bottleneck.
- Capture matching traffic. Run the same acquisition test on each partition and compare transaction counts, request sizes, response times, inter-request gaps, retransmissions and reconnect frequency.
- Follow the delay. Responses that arrive promptly while the next request starts late point at worker scheduling, blocking calls, locks or logging; delays that appear after the request leaves the PC point at transport behavior, link diagnostics and PLC communication load.
- Change exactly one inventoried variable per test, drawn from approved driver packages and supported communication-library releases, repeat the identical measurement after each change, and keep a rollback path for every change.
- Run any test that relaxes security inspection inside a maintenance window under your change-control process, and restore full protection before the PC returns to production. If performance only improves while protection is off, that result is a cost to weigh, not a configuration to keep.
The decision for each case #
Work through these outcomes on the frozen workload; never mix two changes into one verdict.
- Gaps beyond double the 2019 budget on the 2021 partition: the host-side interval between reads has at least doubled. Localize with per-call timestamps before touching PLC or network settings.
- Gaps inside the 2019 budget while wall-clock time still doubles: a single-call or application delay. Profile the call path, starting with security inspection and logging.
- Retransmissions or reconnects only on the 2021 capture: transport or link trouble. Start from the error counters on the switch port and the adapter, then compare driver versions against the vendor's current package.
- Identical captures and identical gaps, with inspection the only live difference: schedule the controlled inspection test, decide from its numbers, and keep protection enabled in production either way.
- If both partitions slow down together, or symptoms spread beyond communication, question the PC itself: the monotonic-timestamp stress method in how to prove an IPC slowdown is hardware, not software settles that on its own.
- Whichever partition wins, its support lifetime decides how long it stays; when the hardware offers no Windows 11 LTSC path, no Windows 11 LTSC option for your industrial PC: what to do covers that planning.
Questions asked
How do I convert a watchdog gap into milliseconds?
Divide the gap by the PLC cycle time that applied over the interval. On a machine with a 20 ms cycle, a gap of 5 counter steps spans 100 ms, for example. Use the cycle time observed during that interval rather than a nameplate figure, because a loaded PLC can stretch its scan, and a stretched scan inflates elapsed time without any host-side change.
How do I split host time from wire time in a capture?
Capture from two vantage points and compare. A capture taken on the industrial PC timestamps frames inside the host stack, so it mixes driver and stack delay into every interval. Mirror the switch port the PC uses or fit a tap, rerun the identical acquisition test, and compare request-to-response intervals from both captures. Wire-side intervals that match the PC-side ones put the delay on the wire or in the PLC; wire-side intervals that come out shorter put the missing time inside the PC.
Do identical antivirus exclusions make the two partitions equal?
No. LTSC 2021 ships newer protection components than LTSC 2019, so the same exclusion list can still produce different inspection behavior on each socket call. A small per-call overhead multiplies into a large pass time once a pass issues thousands of calls. Compare the protection versions on both partitions, and test any inspection change under change control in a maintenance window, restoring full protection before the PC returns to production.
Should the machine simply stay on LTSC 2019?
Decide with both support lifetimes in hand. Microsoft's lifecycle documentation puts Windows 10 Enterprise LTSC 2019 support ending in January 2029 and LTSC 2021 in January 2032, and security updates matter on a PC that talks to a PLC. Fix the measured cause first; if LTSC 2021 matches 2019 after the driver, power or inspection fix, keep 2021 for its longer runway, and plan the eventual move around the hardware's Windows 11 options.
What if the network driver version is identical on both partitions?
Driver equality does not close the host comparison, because the same driver behaves differently under different power plans, different networking components and different inspection. Next check the negotiated link speed and duplex on each partition: a partition that came up at a lower speed or in half duplex produces exactly this symptom while every driver string matches. The adapter status page and the switch port counters show the negotiation immediately, with no test traffic needed.