HewlettPackard / PacketRusher

High performance 5G UE/gNB Simulator and CP/UP load tester.
Apache License 2.0
106 stars 22 forks source link

Multi UEs with traffic with a single PacketRusher process #14

Closed linouxis9 closed 9 months ago

Paola-Jimenez commented 3 months ago

Hello,

Is it possible to generate certain amount of traffic per UE? I would like to execute a performance testing, so I am looking to configure 1000 UEs, each one of them generating traffic to de 5GCore.

Thanks in advance!

linouxis9 commented 3 months ago

Hi @Paola-Jimenez! Thanks for being interested in PacketRusher!! Yes it is possible! However, due to a limitation in PacketRusher, you'll need 1000 gNodeB being simulated by PacketRusher if you want to do traffic on 1000 UEs in parallel. To do that, simply you need to have a network interface (or multiple network interfaces) with 1000 continous IPs on N2/N3: https://github.com/HewlettPackard/PacketRusher/discussions/83 and 1000 UEs provisioned in your 5GC with the same key/opc and all 1000 continous MSIN/IMSI. Then you can run 1000 iperf3 instances on your N6 network, and run a single iperf3 instance per UE VRF.

If you do not have 1000 contiguous IPs or IMSI, you can split in smaller groups: eg. first PacketRusher instance has 192.128.1.0/24 IPs for its gNodeB and MSIN 0000000001 - 0000000250, a second PacketRusher instance with IPs to be used for gNodeB 172.16.1.0/24 and MSIN 0000000250 - 0000000500...)

I would advise you to try first with two UEs to better understand how it work firstly :-) To be noted, is that PacketRusher's UEs are much faster than true UEs, they can reach up to 5 GB/s, so you may need considerably less to stress test your 5GC.