An industrial gateway sends a small amount of data each second. In a continuous throughput test, the port is stable. On the production line, the first command after a long quiet period sometimes arrives late. The link light stays on and the driver logs show no disconnection, so attention turns to the board's 25 MHz crystal. Check the link configuration first. Did the ports negotiate Energy Efficient Ethernet, and did the physical layer enter Low Power Idle during the gap?
With Energy Efficient Ethernet, or EEE, a compatible pair of ports with the feature enabled can use a lower-power physical-layer state when traffic stops. The link is still considered connected. The transmitter wakes before the next transfer. A correctly implemented link can pass the first packet, with some extra preparation time compared with a continuous stream. That time belongs in the delay budget for applications that depend on the first packet. The direction of traffic, driver configurations at both ends, and measurement points affect where the delay becomes visible.
Separate wakeup from software queues and renegotiation
Suppose continuous traffic on a hypothetical gateway takes 80 µs from application handoff to the wire. A single packet after idling takes 100 µs. The extra 20 µs could be physical-layer processing, an operating-system wake, or queue scheduling. Keep the application, cable, temperature, supplies, and peer port unchanged and repeat at the same idle interval. Log EEE negotiation, link direction, when the kernel or NIC took the packet, and when it appeared on the wire. If the earlier part stays constant and only the later part lengthens with EEE enabled, there is evidence to narrow the investigation to the idle path.
Use three bench cases: a stream of identical small packets, repeated short pauses before one packet, and longer pauses before one packet. Toggle EEE using the equipment's normal administration and capture actual negotiation or vendor diagnostic registers at both ends. Compare latency percentiles as well as averages. A continuous traffic test may never give the port enough time to enter Low Power Idle, even if it runs all day. A quiet interval deserves its own acceptance test.
A delay of hundreds of milliseconds accompanied by link-down events, renegotiation, speed changes, or reconnection points to a different investigation. Check for PHY reset, rate changes, and peer errors. An application may also have been suspended and have to wait for scheduling, resolve a neighbor's address, or open a connection before sending. Retest with an established connection and fixed addresses so one-time initialization does not get counted against an already active port.
Where oscillator stability matters
The PHY's local reference and the line recovery logic have their own requirements. For a crystal substitution, identify the exact PHY, operating mode, and reference input, and compare tolerance, startup, loading, and phase noise to project limits. Errors during continuous traffic or an actual abnormal reference waveform after idle justify looking at the clock source. If the reference remains in spec and the behavior consistently follows the EEE setting, review the link state control and application delay budget.
Microchip's MAC documentation describes Low Power Idle, wakeup, and maintenance of link status. Its older application note also illustrates how support within a PHY family may differ by revision or interface and be subject to errata. Check the full suffix, silicon or board revision, and current vendor documentation. When comparing quotes, ask which PHY and interface are used, when the ports negotiate that mode, and how to tell whether it is active on the proposed device.
Keep separate measurements for steady-traffic latency, first-packet latency after idle, packet loss after idle, and whether the link remained up. Measure power at comparable throughput. The team can then decide whether to keep EEE or disable it on a latency-sensitive connection. A timeline with starting conditions remains useful after an equipment change, where a result of “communication OK” from a throughput test does not explain the first packet.
Keep a configuration record for each port role. Sensor reports may tolerate a late packet, while a control port can have tighter limits. Test changes in approved conditions and record the original and restored states. A supplier's energy-saving claim then has a corresponding operating condition and a way to verify the power benefit.
Swapping peer switches one at a time can help during repair. Record both ends' negotiated settings, traffic direction, and idle interval before drawing a conclusion when a different switch removes the delay.
