This is a simple CU-UP load tester. It sets up a configurable number of UEs in the
CU-UP, then sends GTP traffic in downlink/uplink in the N3-F1/F1-N3
direction at the CU-UP. It then compares the sent and received data.
Additional parameters, such as amount of traffic, test length, packet
size, and IP addresses/ports are configurable.
To run:
mkdir build && cd build && cmake .. -GNinja && ninja nr-cuup nr-cuup-load-test params_libconfig
./tests/nr-cuup/nr-cuup-load-test
./nr-cuup -O ../tests/nr-cuup/load-test.conf
The tester should be able to detect lost and reordered packets.
Example lost: Receive order 2,3,5,6 (lost packet 4)
=> on packet 2, expected 2, next=expected+1=3
=> on packet 3, expected 3, next=expected+1=4
=> on packet 5, expected 4, diff=5-4=1 (lost 1), next=payload+1=6
=> on packet 6, expected 6
=> 1 lost
Example reordered: Receiver order 2,5,3,6 (lost packet 4)
=> on packet 2, expected 2, next=expected+1=3
=> on packet 5, expected 3, diff=5-3=2 (lost 2), next=payload+1=6
=> on packet 3, expected 6, (reduce lost by 1 to 1), next=expected=6
=> on packet 6, expected 6
=> 1 lost
Example reordered: Receiver order 2,5,3,4,6 (no losses)
59 lines
1.2 KiB
Plaintext
59 lines
1.2 KiB
Plaintext
Active_gNBs = ( "gNB-OAI");
|
|
# Asn1_verbosity, choice in: none, info, annoying
|
|
Asn1_verbosity = "none";
|
|
|
|
gNBs =
|
|
(
|
|
{
|
|
////////// Identification parameters:
|
|
gNB_ID = 0xe00;
|
|
gNB_CU_UP_ID = 0xe00;
|
|
|
|
# cell_type = "CELL_MACRO_GNB";
|
|
|
|
gNB_name = "gNB-OAI";
|
|
|
|
// Tracking area code, 0x0000 and 0xfffe are reserved values
|
|
tracking_area_code = 1;
|
|
plmn_list = ({ mcc = 222; mnc = 01; mnc_length = 2; snssaiList = ({ sst = 1, sd = 0xffffff }) });
|
|
|
|
|
|
tr_s_preference = "f1";
|
|
|
|
local_s_address = "127.0.0.6";
|
|
remote_s_address = "127.0.0.1";
|
|
local_s_portc = 501;
|
|
local_s_portd = 2153;
|
|
remote_s_portc = 500;
|
|
remote_s_portd = 2153;
|
|
|
|
# ------- SCTP definitions
|
|
SCTP :
|
|
{
|
|
# Number of streams to use in input/output
|
|
SCTP_INSTREAMS = 2;
|
|
SCTP_OUTSTREAMS = 2;
|
|
};
|
|
|
|
E1_INTERFACE =
|
|
(
|
|
{
|
|
type = "up";
|
|
ipv4_cucp = "127.0.0.1";
|
|
ipv4_cuup = "127.0.0.6";
|
|
}
|
|
)
|
|
|
|
NETWORK_INTERFACES :
|
|
{
|
|
GNB_IPV4_ADDRESS_FOR_NG_AMF = "172.21.16.109";
|
|
GNB_IPV4_ADDRESS_FOR_NGU = "127.0.0.7";
|
|
GNB_PORT_FOR_S1U = 2152; # Spec 2152
|
|
};
|
|
}
|
|
);
|
|
|
|
log_config: {
|
|
global_log_level = "info";
|
|
};
|