自适应桥接:一种基于代理的解耦层,用于缓解ROS 2中的DDS背压
研究论文 · 2026/09/12
在基于ROS 2并使用DDS的系统中,RELIABLE主题上单个网络受损或限流的订阅者可能引发背压,导致所有其他订阅者(包括与发布者共享的安全关键订阅者)的吞吐量和延迟下降,因为发布者的DDS写入器无法再接受新样本。我们提出Adaptive Bridge,一种基于代理的层,通过主题拆分和动态速率控制将关键订阅者与降级或非关键订阅者解耦,从而隔离关键路径。该代理作为中间人,订阅原始主题并将消息重新发布到两个独立的DDS写入器:一个用于关键节点的RELIABLE写入器和一个用于非关键或降级节点的BEST EFFORT写入器,从而隔离降级节点并保护发布者和关键节点免受背压影响。基于探针的分类器通过带滞后的采样主动监控订阅者健康状态,并实时调整订阅者速率限制。我们在Gilbert-Elliott突发无线丢失模型下使用可复现的基于Docker的测试框架评估该系统。结果表明,在我们的评估框架中使用Adaptive Bridge,在所有损伤严重程度下,关键订阅者的尾部p95延迟从高达15秒降低到1.55毫秒,同时保持发布者配置的吞吐量。
该文章针对ROS 2中DDS背压这一实际且关键的问题,提出了一种有效的代理层解决方案,并通过可复现的实验验证了其显著降低关键订阅者延迟的效果,对机器人系统和实时分布式通信的可靠性提升具有重要参考价值。
In systems built on Robot Operating System 2 (ROS 2) and using Data Distribution Service (DDS), a single network-impaired or throttled subscriber on a RELIABLE topic can cause backpressure that degrades throughput and latency for all other subscribers, including safety-critical ones sharing the publisher, because the publisher's DDS writer can no longer accept new samples. We present Adaptive Bridge, a proxy-based layer that decouples critical subscribers from degraded or noncritical ones, thereby isolating the critical path through topic splitting and dynamic rate control. The proxy acts as a middleman and subscribes to the original topic and republishes the messages to two independent DDS writers: one RELIABLE writer for critical nodes and one BEST EFFORT writer for noncritical or degraded nodes, thus isolating the degraded nodes and safeguarding the publisher and critical nodes from backpressure. A probe-based classifier actively monitors subscriber health through sampling with hysteresis and adjusts subscriber rate limits in real time. We evaluate the system under a Gilbert-Elliott bursty wireless loss model using a reproducible Docker-based harness. The results show that using the Adaptive Bridge in our evaluation harness reduces the critical subscriber tail p95 latency from up to 15 s to 1.55 ms across all impairment severities while preserving the publisher's configured throughput.