缓解Linux内核中IPv6轻量级隧道封装的双重重分配问题
Mitigating the Double-Reallocation Issue for IPv6 Lightweight Tunnel Encapsulations in the Linux Kernel
AI总结:
本研究针对Linux内核中IPv6轻量级隧道的套接字缓冲区双重重分配性能问题,分析其与CPU、NIC架构相关的根本原因,提出内核补丁以单次高效重分配替代双重重分配,最高可将受影响协议的转发速率提升28.8%。
摘要:
Linux内核中的轻量级隧道(Lightweight Tunnels, LWTs)可实现高效的逐路由隧道化,被原位操作、管理与维护(In Situ Operations, Administration, and Maintenance, IOAM)、IPv6段路由(Segment Routing over IPv6, SRv6)以及低功耗有损网络路由协议(Routing Protocol for Low-Power and Lossy Networks, RPL)等协议广泛使用。然而,其实现中存在一个性能问题:特定条件下会发生套接字缓冲区的双重重分配,导致吞吐量显著下降。本文研究了该问题的根本原因,发现其与中央处理器(Central Processing Unit, CPU)和网络接口卡(Network Interface Card, NIC)的架构有关。我们提出了一个Linux内核补丁来修复此问题,将双重重分配替换为单次高效的重分配。性能评估表明,该补丁消除了低效问题,将受影响协议的转发速率最高提升了28.8%。
英文摘要:
Lightweight Tunnels (LWTs) in the Linux kernel enable efficient per-route tunneling and are widely used by protocols such as In Situ Operations, Administration, and Maintenance (IOAM), Segment Routing over IPv6 (SRv6), and Routing Protocol for Low-Power and Lossy Networks (RPL). However, a performance issue was detected in their implementations, where a double-reallocation of socket buffers occurs under specific conditions, leading to significant throughput degradation. This paper investigates the root cause of the issue, which depends on the architecture of the Central Processing Unit (CPU) and the Network Interface Card (NIC). We propose a patch for the Linux kernel to fix this problem, replacing the double-reallocation with a single, efficient one. Performance evaluation demonstrates that the patch eliminates the inefficiency, improving forwarding rates by up to 28.8% for affected protocols.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。