当前位置:首页 > 报告详情

通过 XDP2 将 P4 与 eBPF 和 DPDK 统一起来.pdf

上传人: 明**** 编号:1011997 2025-12-21 12页 1.87MB

1、Unifying P4 with eBPF and DPDK via XDP2Tom Herbert Founder XDPnet Background in host data center networking Intel,Facebook,Google,Nvidia Inventor of several industry transforming technologies including eXpress DataPath(XDP)and a myriad of features in Linux networking My blog: Tom HerbertThe Grand Un

2、ificationXDP2 is the programming model for the datapath User writes their datapath in a language thats convenient for them Their code compiles into a variety of target Its a type of convergence layerXDP2XDP2Write once,run anywhere,run well!New flexibility,options,and extensibility for usersP4:fronte

3、nd and/or backend in XDP2state parse_tcp packet.extract(headers.tcp);local_metadata.l4_sport=headers.tcp.sport;local_metadata.l4_dport=headers.tcp.dport;transition accept;name:parse_tcp,min-hdr-length:20,metadata:ents:name:l4_sport,type:extract,md-off:82,hdr-src-off:0,length:2 ,name:l4_dport,type:ex

4、tract,md-off:4,hdr-src-off:2,length:2 Parser IRModified P4CXDP-2 compiler Kernel offloads are a major disappointment Only checksum offload,RSS,TSO are ubiquitous Problem:kernel doesnt trust NIC P4TC:valiant effort,but long shot from start 10K LOC,shunned eBPFOpportunity:Fixing kernel offloads User w

5、rite one program Compile to XDP/eBPF and P4 Run eBPF in kernel Run P4 in device Kernel and NIC running same code!Trust can be established Complex offloads are viable Effect:extend kernel to P4 HWSolution:“P4 in the kernel”XDP2 is on GitHub:xdp2-dev/xdp2 POC of P4C and backend compilers xdp2-dev/p4c:Early development Seeking collaborators for“P4 in the kernel”Couple 100 LOC in kernel Everything else compilers outside of kernelFuturesThank you!

word格式文档无特别注明外均可编辑修改,预览文件经过压缩,下载原文更清晰!
三个皮匠报告文库所有资源均是客户上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作商用。
根据《Unifying P4 with BPF and DPDK via XDP2》的内容,以下是全文关键点的概括: 1. **XDP2编程模型**:XDP2是一个数据路径编程模型,允许用户用他们喜欢的语言编写数据路径代码,编译成多种目标,实现一次编写,到处运行。 2. **P4与XDP2结合**:P4代码可以编译成XDP和BPF,使得内核和网卡运行相同的代码,增强信任,实现复杂卸载。 3. **P4C和后端编译器**:P4C和后端编译器正在GitHub上开发,支持P4代码编译到XDP和BPF。 4. **“P4 in the kernel”**:目标是让P4代码在内核中运行,通过用户编写一个程序,编译成XDP/eBPF和P4,实现内核和网卡运行相同代码。 5. **未来展望**:寻求合作者共同推进“P4 in the kernel”项目,实现更灵活、可扩展的网络编程。
P4与BPF的完美融合?" "P4在内核?探索XDP2的无限可能!" XDP2时代的革新者?"
客服
商务合作
小程序
服务号
折叠