• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学 ›› 2024, Vol. 46 ›› Issue (05): 818-825.

• 计算机网络与信息安全 • 上一篇    下一篇

SRv4:面向IPv4的段路由数据面协议设计及实现

原玉磊,赵宝康,吕高锋   

  1. (国防科技大学计算机学院,湖南 长沙 410073)

  • 收稿日期:2023-12-19 修回日期:2024-01-25 接受日期:2024-05-25 出版日期:2024-05-25 发布日期:2024-05-30
  • 基金资助:
    国家重点研发计划(2022YFB2901204)

SRv4: Design and implementation of segment routing data plane for IPv4

YUAN Yu-lei,ZHAO Bao-kang,Lv Gao-feng#br#

#br#
  

  1. (College of Computer Science and Technology,National University of Defense Technology,Changsha 410073,China)
  • Received:2023-12-19 Revised:2024-01-25 Accepted:2024-05-25 Online:2024-05-25 Published:2024-05-30

摘要: 针对SRv6技术报文头过长导致的承载效率低且无法在IPv4网络中部署的缺点,提出一种面向IPv4网络的段路由技术SRv4。设计了SRv4的报文头格式以及在IPv4网络中的报文封装格式;设计了SRv4的报文处理指令和报文转发流程;SRv4兼容IPv4协议和现有IPv4网络设备,可在IPv4网络中增量部署;与SRv6相比,SRv4的SID长度减小了75%,承载效率更高。利用XDP技术在Linux内核中开发了SRv4模块,以验证SRv4设计的可行性,利用服务器搭建网络环境对SRv4模块的功能、性能和稳定性进行测试。测试结果表明,SRv4模块段路由功能正常,可稳定运行。

关键词: 段路由, SRv6, SRv4, XDP, IPv4

Abstract: Aiming to address the drawbacks in SRv6 technology, such as low network carrying efficiency caused by long packet header and inability to deploy in IPv4 networks, a segment routing technology SRv4 for IPv4 networks is proposed. The format of packets header in SRv4, the format of packet encapsulation of SRv4 in IPv4, the processing instructions and the forwarding process of SRv4 packets are designed. SRv4 is compatible with the IPv4 protocol and existing IPv4 network devices, and can be incrementally deployed in IPv4 networks. Compared to SRv6, SRv4 reduces the SID length by 75%, resulting in higher network carrying efficiency. The SRv4 module is developed in the Linux kernel using XDP technology to verify the feasibility of the SRv4. The function, performance and stability of the SRv4 module were tested using a network environment built in a server computer. The results show that the SRv4 module has the correct segment routing function and can run stably. 

Key words: segment routing, SRv6, SRv4, XDP, IPv4