Out-of-order EtherCAT frames with identical timestamps
asked Nov 19 '25
updated Nov 19 '25
I am using Wireshark on a Windows 11 PC, capturing OP cyclic frames from a TwinCAT PLC program acting as the EtherCAT master. The network has only two devices, this Master and one additional slave. Wireshark is running on the same Windows 11 PC.
The issue is random frames logged out of order and with identical timestamps Here is a snippet from a log showing this. Notice frames 5616 through 5619:
----------------------------------------
Frame | Time | Source
----------------------------------------
5609 | 2.793484 | 10GtekTransc_22:21:a3 <--Good: Transmitted from Master
5610 | 2.793493 | BeckhoffAuto_01:00:00 <--Good: Paired with frame 5609 returned to Master
5612 | 2.794567 | 10GtekTransc_22:21:a3 <--Good: Transmitted from Master
5613 | 2.794576 | BeckhoffAuto_01:00:00 <--Good: Paired with frame 5612 returned to Master
5614 | 2.795562 | 10GtekTransc_22:21:a3 <--Good: Transmitted from Master
5615 | 2.795570 | BeckhoffAuto_01:00:00 <--Good: Paired with frame 5614 returned to Master
5616 | 2.796880 | 10GtekTransc_22:21:a3 <--Issue: From Master, has same Timestamp as #5617
5617 | 2.796880 | 10GtekTransc_22:21:a3 <--Issue: From Master, has same Timestamp as #5616
5618 | 2.796891 | BeckhoffAuto_01:00:00 <--Issue: To Master, same Timestamp as #5619
5619 | 2.796891 | BeckhoffAuto_01:00:00 <--Issue: To Master, same Timestamp as #5618
5620 | 2.797946 | 10GtekTransc_22:21:a3 <--Good: Transmitted from Master
5621 | 2.797953 | BeckhoffAuto_01:00:00 <--Good: Paired with frame 5620 returned to Master
Frames 5616 and 5618 are a matching TX/RX pair. Frames 5617 and 5619 are also paired frames. All the frames have unique payloads, so the frames can be easily matched. This example is repeated throughout the log with these anomalies occurring ~0.91% of the time (about 3,808 times out of over 150,000 frames captured).
I have read some other posts here, but none specifically like this, especially with EtherCAT where frames can only be in specific orders and period timing.
What are possible explanations for these out-of-order frames and the identical timestamps?

Wireshark and presumably npcap versions?
How is the log generated?
Hi! Wireshark: Version 4.6.0 (v4.6.0-0-gcdfb6721e77c). Npcap 1.83, libpcap 1.10.5
The log is a standard Wireshark log that I exported as CVS into Excel for the post.
So Wireshark isn't flagging them as out of order, it's just that the log is not showing the tick tock of alternating rx and tx packet?
The Network Capture Playbook Part 1 – Ethernet Basics
(The Network Packet Capture Playbook)
😔 They are not flagged as out of order unfortunately, but "appear" as correct in the log. In the EtherCAT log as a whole, frames are logged in correct order >99% of the time and with expected timestamps.
But periodically, there will be four frames out of order. Instead of receiving the expected order of...
.
and so on. The above is what is expected, but periodically the log will show... .
. ...and the two 'from Master' frames will have identical timestamps and the two 'to Master' frames will have identical timestamps. After these four frames, the order and timestamps return to the expected order until it will eventually be logged again.
.
BONUS: Another odd thing is that these occurrences of the four frames all seem to calculate to be within the same 1ms period. The TwinCAT PLC program is set to begin broadcasting out the frames every 1ms, so each pairing of "From Master" and "To Master" frames should be logged within its own ~1ms period/timeframe. In my system, the Master is connected directly to the EtherCAT slave with a single CAT5/6 cable, no other devices on the network.
But these four out-of-order frames occurrences, besides having the matching timestamps, also calculate to be within a near 1ms period. If I look at the delta of the "From Master" frames prior to the anomalies, many times the ~1ms period seem to extend in these prior frames, sometimes as much as 1.2ms from the typical ~1.05. This is not always the case, but when seen, the anomaly will certainly happen afterwards. Possibly the system begins lagging in the capture and the anomaly happens as it corrects itself? Just guessing.