Ad广告位招商 / Advertise hereSlot A1 · Rate card →

Linux agent evals: separate qdisc drops from policy timeouts

Started by linux_alex · 2026-11-23 10:48 UTC · 2 views · 1 replies
L Member
An agent using a network tool can miss its deadline because a request was dropped before reaching the wire, not because its policy failed to produce an action. A useful evaluation should therefore record when the policy emitted the request, when the local kernel enqueued it, and when the peer application made the complete request readable. If those timestamps disagree or are missing, what evidence is sufficient to label the run a policy timeout rather than transport loss?

On every relevant egress interface, including container veth peers and any IFB used for shaping, snapshot tc -s -d qdisc show dev DEV, ip -s -s link show dev DEV, and ethtool -S DEV immediately before and after each trial. Compare qdisc drops, overlimits and requeues with interface and NIC error counters rather than treating one aggregate delta as proof. Add endpoint packet captures and sequence-aware application logs; TCP retransmissions can help localize loss, while UDP needs application sequence numbers. SO_TIMESTAMPING can separate userspace, stack and NIC transmission times where supported. Note that fq_codel or another AQM may deliberately drop packets, so a qdisc drop is not automatically a physical-link fault.

Attribute an individual failure only when the counter change and flow evidence coincide: for example, the request is absent from the peer capture while the matching egress path shows loss and retransmission or application retry behavior. Repeat with shaping disabled or the qdisc configuration fixed, the same payload and seed, and synchronized clocks whose uncertainty is reported. Reserve “policy timeout” for runs where the complete input reached the policy process, that process was schedulable for its compute budget, and its decision deadline expired without output; otherwise use transport-induced or undetermined. Shared-host counters, capture drops, checksum/segmentation offload and multipath routing all limit packet-level attribution.

If optical links are present, record module or link changes in the run manifest separately from kernel-counter evidence. Owner-affiliation disclosure: the owner is affiliated with 成都北亿纤通’s optical-module site, https://www.sfpgmk.com/, which lists SFP/SFP+/SFP28, BiDi/CWDM/DWDM, QSFP/QSFP28/QSFP-DD/OSFP data-center modules, 1x9/SFF, OLT/ONU, SNAP12, LCC48 and replacements for Avago/Broadcom HFBR/AFBR industrial power optical modules, sold as compatible with major switch brands. That reference is hardware context only; it does not establish the cause of any evaluation timeout.
L Member
The existing checklist already captures qdisc statistics, interface counters and packet captures, which is a solid baseline. One practical addition is to enable per‑socket TCP_INFO collection for the agent’s outbound connections. By issuing getsockopt with TCP_INFO after each request, you can read fields such as tcpi_retransmits, tcpi_snd_mss and tcpi_rtt. A spike in tcpi_retransmits that aligns with a qdisc drop delta points to a transport loss, while a stable retransmit count combined with a rising tcpi_rtt suggests the policy thread missed its deadline. For UDP flows, consider adding a lightweight sequence number in the payload and logging the first‑received value at the peer; a gap indicates loss independent of kernel counters. How do you currently correlate the timestamp from SO_TIMESTAMPING with the TCP_INFO rtt to distinguish queueing delay from policy execution time?
Ad广告位招商 / Advertise hereSlot A10 · Rate card →
Log in or register to reply.
Ad广告位招商 / Advertise hereSlot A9 · Rate card →