百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
P

PacketRusher

> 测试质量
开源

高性能 5G UE/gNB 模拟器和 CP/UP 负载测试仪。

189 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

高性能 5G UE/gNB 模拟器和 CP/UP 负载测试仪。

PacketRusher


Description

Now with SUCI Concealing/Deconcealment (Null-Scheme, Profile A (X25519), Profile B (P-256))!

PacketRusher is a tool dedicated to the performance testing and automatic validation of 5G Core Networks using simulated UE (user equipment) and gNodeB (5G base station).

If you have questions or comments, feel free to open an issue after a careful review of existing closed issues.

PacketRusher borrows libraries and data structures from the free5gc project.

Features

  • Simulate multiple UEs and gNodeB from a single tool
    • We tested up to 10k UEs!
  • Supports both N2 (NGAP) and N1 (NAS) interfaces for stress testing
  • --pcap parameter to capture pcap of N1/N2 traffic
  • Implements main control plane procedures:
    • SUCI Concealing/Deconcealment (Null-Scheme, Profile A (X25519), Profile B (P-256))
    • UE attach/detach (registration/identity request/authentification/security mode) procedures
    • Create/Delete PDU Sessions, up to 15 PDU Sessions per UE
    • Xn handover: UE handover between simulated gNodeB (PathSwitchRequest)
    • N2 handover: UE handover between simulated gNodeB (HandoverRequired)
    • UE Enter/Exit CM-IDLE procedures (Service Request)
    • GUTI Re-registration
    • Supports 5G roaming: Tested with new https://github.com/open5gs/open5gs/issues/2194 Roaming feature
  • Implements high-performant N3 (GTP-U) interface
    • Generic tunnel supporting all kind of traffic (TCP, UDP, Video…)
      • We tested iperf3 traffic, and Youtube traffic through PacketRusher
      • We roughly reach 5 GB/s per UE, which is more than what a real UE can achieve.
  • Integrated all-in-one mocked 5GC/AMF for PacketRusher's integration testing

Installation

Quick start guide

The following is a quick start guide, for more details on the installation, configuration or usage, you may refer to the wiki.

Requirements

  • Ubuntu 20.04-24.04
    • All Linux distibutions with kernel >= 5.4 should work, but untested.
    • There might be issues with frankenstein kernel from RHEL/CentOS/Rocky, feel free to open a bug if you encounter one!
  • Windows is not supported (Windows does not support SCTP)
  • Go 1.23.0 or more recent
  • Root privilege
  • Secure boot disabled (for custom kernel module)

PacketRusher is not yet supported on Docker.

Dependencies

bash
$ sudo apt install build-essential linux-headers-generic make git wget tar linux-modules-extra-$(uname -r)
# Warning this command will remove your existing local Go installation if you have one:
$ wget https://go.dev/dl/go1.24.1.linux-amd64.tar.gz && sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.24.1.linux-amd64.tar.gz
# Add go binary to the executable PATH variable:
$ echo 'export PATH=$PATH:/usr/local/go/bin' >> $HOME/.profile

Download PacketRusher source code

bash
$ git clone https://github.com/HewlettPackard/PacketRusher # or download the ZIP from https://github.com/HewlettPackard/PacketRusher/archive/refs/heads/master.zip and upload it to your Linux server
$ cd PacketRusher && echo "export PACKETRUSHER=$PWD" >> $HOME/.profile
$ source $HOME/.profile

Build free5gc's gtp5g kernel module

bash
$ cd $PACKETRUSHER/lib/gtp5g
$ make clean && make && sudo make install
# Make sure you have Secure boot disabled if you are unable to install the custom Kernel module

Build PacketRusher CLI

bash
$ cd $PACKETRUSHER
$ go mod download
$ go build cmd/packetrusher.go
$ ./packetrusher --help

You can edit the configuration in $PACKETRUSHER/config/config.yml as specified here, and then run a basic scenario using sudo ./packetrusher ue while in the $PACKETRUSHER folder.
More complex scenarios are possible using sudo ./packetrusher multi-ue, see ./packetrusher multi-ue --help for more details.
For more details on the installation, configuration or usage, you may refer to the wiki.

Contributing

We're thrilled that you'd like to contribute to this project. Your help is essential for keeping it great!
You can review our contributing guide.

Developer's Certificate of Origin

All contributions must include acceptance of the DCO.

Sign your work

To accept the DCO, simply add this line to each commit message with your name and email address (git commit -s will do this for you):

Signed-off-by: Jane Example 

For legal reasons, no anonymous or pseudonymous contributions are accepted.

Citation

If you use this software, you may cite it as below:

latex
@software{PacketRusher,
  author = {D'Emmanuele, Valentin and Raguideau, Akiya},
  doi = {10.5281/zenodo.10446651},
  month = nov,
  title = {{PacketRusher: High performance 5G UE/gNB Simulator and CP/UP load tester}},
  url = {https://github.com/HewlettPackard/PacketRusher},
  version = {1.0.0},
  year = {2023}
}

License

© Copyright 2023 Hewlett Packard Enterprise Development LP

© Copyright 2024-2025 Valentin D'Emmanuele

This project is under the Apache 2.0 License license.

By contributing here, you agree to license your contribution under the terms of the Apache 2.0 License. All files are released with the Apache License 2.0.

PacketRusher borrows libraries and data structures from the free5gc project, and is originally based upon my5G-RANTester.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Go5g5g-simulation5gcgnb

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类测试质量
定价开源

> 相关工具

J
Jest
JavaScript 测试框架
P
Playwright
现代端到端测试框架
E
eslint-plugin-test-selectors
Enforces that data-test-id attributes are added to interactive DOM elements (JSX) to help with UI testing. JSX only.