Wireblast:使用 AF_XDP 在 Go 中实现的 100 Gbps 数据包生成器
摘要
Andree Toonk 发布了 Wireblast,这是一个使用 AF_XDP 编写的 Go 语言数据包生成器,可实现线速数据包传输。
暂无内容
查看缓存全文
缓存时间: 2026/08/08 20:21
# Andree 的随想
来源:https://toonk.io/index.html
Andree 的随想 (https://toonk.io/index.html)
- 首页 (https://toonk.io/index.html)
- 联系 (https://toonk.io/contact/index.html)
- 关于 (https://toonk.io/about/index.html)
### Toonk\.io
*来自基础设施工程领域的思考、故事和大胆想法。*
Wireblast:使用 Go 和 AF_XDP 构建的 100Gbs 数据包生成器 (https://toonk.io/wireblast-building-a-line-rate-packet-generator-in-go-with-af_xdp/index.html)Go (https://toonk.io/tag/go/index.html)## Wireblast:使用 Go 和 AF\_XDP 构建的 100Gbs 数据包生成器 (https://toonk.io/wireblast-building-a-line-rate-packet-generator-in-go-with-af_xdp/index.html)
如果你关注我的博客有一段时间了,你就会知道我喜欢摆弄数据包,并让它们在软件中飞速运行。今天我要发布一个新工具,名为 (https://toonk.io/wireblast-building-a-line-rate-packet-generator-in-go-with-af_xdp/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2026年8月5日·6 分钟阅读
使用 Go 和 AF_XDP 进行线速数据包处理 (https://toonk.io/line-rate-packet-processing-in-go-with-af_xdp/index.html)Go (https://toonk.io/tag/go/index.html)## 使用 Go 和 AF\_XDP 进行线速数据包处理 (https://toonk.io/line-rate-packet-processing-in-go-with-af_xdp/index.html)
如果你一直在关注我的博客,你就会知道我对让数据包在软件中飞速运行情有独钟。我骨子里是个网络工程师,在 (https://toonk.io/line-rate-packet-processing-in-go-with-af_xdp/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2026年7月7日·7 分钟阅读
应对基础设施故障:经验教训与战斗伤痕 (https://toonk.io/navigating-infrastructure-outages-battle-scars-and-lessons-learned/index.html)networking (https://toonk.io/tag/networking/index.html)## 应对基础设施故障:经验教训与战斗伤痕 (https://toonk.io/navigating-infrastructure-outages-battle-scars-and-lessons-learned/index.html)
我处理过许多故障,每一次都让我学到了宝贵的经验。受到 Rogers 最近故障报告的启发,我写下了一些我学到的教训。 (https://toonk.io/navigating-infrastructure-outages-battle-scars-and-lessons-learned/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2024年7月8日·8 分钟阅读
Go 中的高速数据包发送:从 net.Dial 到 AF_XDP (https://toonk.io/sending-network-packets-in-go/index.html)Go (https://toonk.io/tag/go/index.html)## Go 中的高速数据包发送:从 net\.Dial 到 AF\_XDP (https://toonk.io/sending-network-packets-in-go/index.html)
在 Go 中突破极限:从 net.Dial 到系统调用、AF_PACKET 以及闪电般的 AF_XDP。对数据包发送性能进行基准测试... (https://toonk.io/sending-network-packets-in-go/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2024年3月11日·10 分钟阅读
AWS IPv4 资产现已价值 45 亿美元 (https://toonk.io/aws-ipv4-estate-now-worth-4-5-billion/index.html)ipv4 (https://toonk.io/tag/ipv4/index.html)## AWS IPv4 资产现已价值 45 亿美元 (https://toonk.io/aws-ipv4-estate-now-worth-4-5-billion/index.html)
AWS 的 IPv4 资产新增了 2700 万个 IP 地址,目前拥有 1.28 亿个 IPv4 地址。按每个 IPv4 地址 35 美元的价值计算,AWS 的 IPv4 资产总值约为 45 亿美元。增加了 20 亿美元 (https://toonk.io/aws-ipv4-estate-now-worth-4-5-billion/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2023年9月17日·5 分钟阅读
深入探索 AI:嵌入与向量数据库的探索 (https://toonk.io/diving-into-ai-an-exploration-of-embeddings-and-vector-databases/index.html)ai (https://toonk.io/tag/ai/index.html)## 深入探索 AI:嵌入与向量数据库的探索 (https://toonk.io/diving-into-ai-an-exploration-of-embeddings-and-vector-databases/index.html)
和我一起踏上 AI 之旅,学习嵌入、向量和向量数据库 (https://toonk.io/diving-into-ai-an-exploration-of-embeddings-and-vector-databases/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2023年5月1日·6 分钟阅读
IPv4 出售 - WIDE 和 APNIC 正在出售 43.0.0.0/8 (https://toonk.io/ipv4-sale-wide-and-apnic-selling-43-8/index.html)ipv4 (https://toonk.io/tag/ipv4/index.html)## IPv4 出售 \- WIDE 和 APNIC 正在出售 43\.0\.0\.0/8 (https://toonk.io/ipv4-sale-wide-and-apnic-selling-43-8/index.html)
在本文中,我们将研究亚太互联网发展信托(APIDT)最近出售 IPv4 地址段 43.0.0.0/8 的交易。我们来看看谁买了什么,花了多少钱? (https://toonk.io/ipv4-sale-wide-and-apnic-selling-43-8/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2021年10月13日·5 分钟阅读
放大的路由环路的风险与危害。 (https://toonk.io/the-risks-and-dangers-of-amplified-routing-loops/index.html)ddos (https://toonk.io/tag/ddos/index.html)## 放大的路由环路的风险与危害。 (https://toonk.io/the-risks-and-dangers-of-amplified-routing-loops/index.html)
在本文中,我们将仔细研究网络环路,以及它们如何被滥用于 DDoS 攻击。 (https://toonk.io/the-risks-and-dangers-of-amplified-routing-loops/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2021年4月13日·7 分钟阅读
推出 SSH 零信任、感知身份的 TCP 套接字 (https://toonk.io/introducing-ssh-zero-trust-identity-aware-tcp-sockets/index.html)mysocket (https://toonk.io/tag/mysocket/index.html)## 推出 SSH 零信任、感知身份的 TCP 套接字 (https://toonk.io/introducing-ssh-zero-trust-identity-aware-tcp-sockets/index.html)
在本文中,我们将了解 Mysocket 的零信任、云交付的认证防火墙。它允许你用受信任的身份替换受信任的 IP 范围。上个月我们推出了我们的第一个 (https://toonk.io/introducing-ssh-zero-trust-identity-aware-tcp-sockets/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2021年2月16日·9 分钟阅读
推出感知身份的套接字:为你的私有服务实现零信任访问 (https://toonk.io/introducing-identity-aware-sockets-enabling-zero-trust-access-for-your-private-services/index.html)mysocket (https://toonk.io/tag/mysocket/index.html)## 推出感知身份的套接字:为你的私有服务实现零信任访问 (https://toonk.io/introducing-identity-aware-sockets-enabling-zero-trust-access-for-your-private-services/index.html)
在这篇博文中,我们将介绍一个激动人心的新功能,借助 Mysocket,你可以部署自己的 Beyond Corp 设置。什么是零信任 (https://toonk.io/introducing-identity-aware-sockets-enabling-zero-trust-access-for-your-private-services/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2021年1月14日·5 分钟阅读
使用 Kubernetes 和 Mysocket.io 进行全局负载均衡 (https://toonk.io/global-load-balancing-with-kubernetes/index.html)mysocket (https://toonk.io/tag/mysocket/index.html)## 使用 Kubernetes 和 Mysocket\.io 进行全局负载均衡 (https://toonk.io/global-load-balancing-with-kubernetes/index.html)
如果你身处云基础设施领域,那么你一定听说过 Kubernetes。你们中的一些人已经是专家了,而另一些人则刚刚开始学习或入门 (https://toonk.io/global-load-balancing-with-kubernetes/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2020年12月22日·5 分钟阅读
使用 Mysocket.io 轻松实现多区域负载均衡 (https://toonk.io/easy-multi-region-load-balancing-with-mysocket/index.html)mysocket (https://toonk.io/tag/mysocket/index.html)## 使用 Mysocket\.io 轻松实现多区域负载均衡 (https://toonk.io/easy-multi-region-load-balancing-with-mysocket/index.html)
上周,AWS 的 US-EAST1 区域发生了一次重大故障,持续了几乎一整天,而且就在黑色星期五大型促销之前!此类事件是一个很好的 (https://toonk.io/easy-multi-region-load-balancing-with-mysocket/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2020年12月7日·5 分钟阅读
为你的 mysocket.io 服务提供静态 DNS 名称(以及一个新的 GIF 服务) (https://toonk.io/static-dns-names-for-your-sockets-and-a-new-gif-service/index.html)mysocket (https://toonk.io/tag/mysocket/index.html)## 为你的 mysocket\.io 服务提供静态 DNS 名称(以及一个新的 GIF 服务) (https://toonk.io/static-dns-names-for-your-sockets-and-a-new-gif-service/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2020年12月1日·5 分钟阅读
推出 Mysocket.io (https://toonk.io/introducing-mysocket-io/index.html)mysocket (https://toonk.io/tag/mysocket/index.html)## 推出 Mysocket\.io (https://toonk.io/introducing-mysocket-io/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2020年11月23日·4 分钟阅读
AWS 及其数十亿的 IPv4 地址 (https://toonk.io/aws-and-their-billions-in-ipv4-addresses/index.html)ipv4 (https://toonk.io/tag/ipv4/index.html)## AWS 及其数十亿的 IPv4 地址 (https://toonk.io/aws-and-their-billions-in-ipv4-addresses/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2020年10月20日·4 分钟阅读
AWS 中的 100G 网络:网络性能深度剖析 (https://toonk.io/aws-network-performance-deep-dive/index.html)aws (https://toonk.io/tag/aws/index.html)## AWS 中的 100G 网络:网络性能深度剖析 (https://toonk.io/aws-network-performance-deep-dive/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2020年10月15日·9 分钟阅读
在一分钟内构建全球 anycast 服务 (https://toonk.io/building-a-global-anycast-service-in-under-a-minute/index.html)terraform (https://toonk.io/tag/terraform/index.html)## 在一分钟内构建全球 anycast 服务 (https://toonk.io/building-a-global-anycast-service-in-under-a-minute/index.html)
这个周末,我决定再次研究 Stackpath 及其工作负载边缘计算功能。这是一个相对较新的功能,事实上,我在二月份写过关于它的文章 (https://toonk.io/building-a-global-anycast-service-in-under-a-minute/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2020年6月21日·4 分钟阅读
构建基于 XDP(eXpress Data Path)的 BGP 对等路由器 (https://toonk.io/building-an-xdp-express-data-path-based-bgp-peering-router/index.html)networking (https://toonk.io/tag/networking/index.html)## 构建基于 XDP(eXpress Data Path)的 BGP 对等路由器 (https://toonk.io/building-an-xdp-express-data-path-based-bgp-peering-router/index.html)
在过去的几年里,我们看到了越来越多的项目计划旨在加速 Linux 中的网络功能。因为 Linux 内核在处理 (https://toonk.io/building-an-xdp-express-data-path-based-bgp-peering-router/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2020年4月19日·9 分钟阅读
使用 FD.io 和 VPP 实现内核旁路网络。 (https://toonk.io/kernel-bypass-networking-with-fd-io-and-vpp/index.html)networking (https://toonk.io/tag/networking/index.html)## 使用 FD\.io 和 VPP 实现内核旁路网络。 (https://toonk.io/kernel-bypass-networking-with-fd-io-and-vpp/index.html)
在这篇博客中,我们将了解 VPP,一个快速、灵活、开源的网络转发平面。我想你会被它的性能数据所震撼。 (https://toonk.io/kernel-bypass-networking-with-fd-io-and-vpp/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2020年4月5日·6 分钟阅读
Linux 内核与网络吞吐量测量。 (https://toonk.io/linux-kernel-and-measuring-network-throughput/index.html)networking (https://toonk.io/tag/networking/index.html)## Linux 内核与网络吞吐量测量。 (https://toonk.io/linux-kernel-and-measuring-network-throughput/index.html)
Linux 能否在两个网络接口之间以线速路由?这就是我们接下来几分钟要回答的问题。 (https://toonk.io/linux-kernel-and-measuring-network-throughput/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2020年3月29日·6 分钟阅读
使用 DPDK 构建高性能的基于 Linux 的流量生成器 (https://toonk.io/building-a-high-performance-linux-based-traffic-generator-with-dpdk/index.html)networking (https://toonk.io/tag/networking/index.html)## 使用 DPDK 构建高性能的基于 Linux 的流量生成器 (https://toonk.io/building-a-high-performance-linux-based-traffic-generator-with-dpdk/index.html)
在我至今 20 年的网络职业生涯中,我经常需要做某种形式的网络性能测试。用例各不相同,从排查客户问题到测试新的网络硬件, (https://toonk.io/building-a-high-performance-linux-based-traffic-generator-with-dpdk/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2020年3月18日·10 分钟阅读
TCP BBR - 探索 TCP 拥塞控制 (https://toonk.io/tcp-bbr-exploring-tcp-congestion-control/index.html)networking (https://toonk.io/tag/networking/index.html)## TCP BBR \- 探索 TCP 拥塞控制 (https://toonk.io/tcp-bbr-exploring-tcp-congestion-control/index.html)
TCP 是最古老的协议之一,也可能是当今互联网上使用最多的协议。你很可能发送和接收成千上万甚至超过一百万 (https://toonk.io/tcp-bbr-exploring-tcp-congestion-control/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree Toonk (https://toonk.io/author/andree/index.html)
2020年2月15日·7 分钟阅读
构建更智能的 AWS Global Accelerator (https://toonk.io/building-a-smarter-aws-global-accelerator/index.html)aws (https://toonk.io/tag/aws/index.html)## 构建更智能的 AWS Global Accelerator (https://toonk.io/building-a-smarter-aws-global-accelerator/index.html)
在这篇博文中,我们将探讨如何构建我们自己的全局加速器。我一直在思考 Global Accelerator,虽然它提供了强大的数据平面,但我认为它可以从更智能的控制平面中受益。 (https://toonk.io/building-a-smarter-aws-global-accelerator/index.html)
- 前往 Andree Toonk 的个人资料 (https://toonk.io/author/andree/index.html)
Andree T
相似文章
使用 Go/WASM 在浏览器中模拟 TCP 丢包与拥塞
本文介绍了一种工具,该工具使用编译为 WebAssembly 的 Go 在浏览器中模拟 TCP 数据包丢失和拥塞控制,从而实现对 Web 应用程序的网络韧性测试。
@TheAhmadOsman:顺便说一下,RTX PRO 6000 = 1.8TB/s,DGX Spark = 273GB/s。如果你的目标是本地AI代理和代理集群,应该追求更高的带宽……
一条推文强调了RTX PRO 6000(1.8TB/s)和DGX Spark(273GB/s)之间的巨大带宽差异,认为对于本地AI代理和代理集群来说,更高的带宽至关重要。
@TheAhmadOsman:我是如何连接 DGX Spark 集群 > Mikrotik CRS804-4DDQ 1.6Tbps 交换机 > (4) 400G QSFP-DD 拆分为 2x 200G QSFP56 的…
Ahmad 分享了如何通过 Mikrotik CRS804-4DDQ 1.6Tbps 交换机,将 4 条 400G QSFP-DD 拆分为 2x200G QSFP56,连接 8 台配备 ConnectX-7 的 DGX Spark,实现 1.6Tbps 全速互联的集群方案。
从AFSK到Goertzel
本文解释了Goertzel算法,用于在小型嵌入式系统上高效检测Bell 202 AFSK音调(1200/2200 Hz),以实现分组无线电解码,并提供了可视化和背景说明。
Qwen3.8-Flash-Next NVFP4 在双DGX Spark上的配置:解码速度50t/s,预填充速度2,900t/s
用户分享了在双DGX Spark硬件上部署Qwen3.8-Flash-Next模型的优化配置,通过技术补丁和设置细节,实现了高达50t/s的解码速度和2,900t/s的预填充速度。