When PacketRusher is started with GTP-U tunnel enabled and runs deregistration-reregistration sequence in a loop, the process crashes when the second registration succeeds.
To Reproduce
Extract the archive: 3.tgz
# in first console at the extracted directory
docker compose build
docker compose create
# in second console
dumpcap -i br-n2 -w 3.pcapng
# in first console
docker compose up -d
docker logs -f gnb0
# wait approximately 80 seconds until PacketRusher crashes
Actual behavior
PacketRusher completes registration and PDU session establishment for the second time, and then crashes.
Note: after the crash, before you can test again, it's necessary to unload and re-load the gtp5g kernel module:
sudo sh -c 'rmmod gtp5g; modprobe gtp5g'
Expected behavior
PacketRusher establishes PDU session successfully for the second time and allows user traffic through the network device.
Architecture
- OS: Ubuntu 24.04
- Platform: amd64
- Version: PacketRusher 542ddc6
- Kernel: 6.8.0-55-lowlatency
- Docker: 28.0.2
- gtp5g: v0.9.12
Logs
PacketRusher logs:
time="2025-03-26T19:54:40Z" level=info msg="Loaded config at: /config.gnb0.001017005551000.yml"
time="2025-03-26T19:54:40Z" level=info msg="PacketRusher version 1.0.1"
time="2025-03-26T19:54:40Z" level=info msg=---------------------------------------
time="2025-03-26T19:54:40Z" level=info msg="[TESTER] Starting test function: Testing registration of multiple UEs"
time="2025-03-26T19:54:40Z" level=info msg="[TESTER][UE] Number of UEs: 1"
time="2025-03-26T19:54:40Z" level=info msg="[TESTER][GNB] gNodeB control interface IP/Port: 172.25.198.18/9487~"
time="2025-03-26T19:54:40Z" level=info msg="[TESTER][GNB] gNodeB data interface IP/Port: 172.25.195.18/2152"
time="2025-03-26T19:54:40Z" level=info msg="[TESTER][AMF] AMF IP/Port: 172.25.198.16/38412"
time="2025-03-26T19:54:40Z" level=info msg=---------------------------------------
time="2025-03-26T19:54:40Z" level=info msg="Selecting 172.25.198.16 for host 172.25.198.16 as AMF's IP address"
time="2025-03-26T19:54:40Z" level=info msg="Selecting 172.25.195.18 for host 172.25.195.18 as gNodeB's N3/Data IP address"
time="2025-03-26T19:54:40Z" level=info msg="Selecting 172.25.198.18 for host 172.25.198.18 as gNodeB's N2/Control IP address"
time="2025-03-26T19:54:40Z" level=info msg="[GNB] SCTP/NGAP service is running"
time="2025-03-26T19:54:40Z" level=info msg="[GNB] Initiating NG Setup Request"
time="2025-03-26T19:54:40Z" level=info msg="[GNB][SCTP] Receive message in 0 stream\n"
time="2025-03-26T19:54:40Z" level=info msg="[GNB][NGAP] Receive NG Setup Response"
time="2025-03-26T19:54:40Z" level=info msg="[GNB][AMF] AMF Name: amf"
time="2025-03-26T19:54:40Z" level=info msg="[GNB][AMF] State of AMF: Active"
time="2025-03-26T19:54:40Z" level=info msg="[GNB][AMF] Capacity of AMF: 255"
time="2025-03-26T19:54:40Z" level=info msg="[GNB][AMF] PLMNs Identities Supported by AMF -- mcc: 001 mnc:01"
time="2025-03-26T19:54:40Z" level=info msg="[GNB][AMF] List of AMF slices Supported by AMF -- sst:01 sd:000000"
time="2025-03-26T19:54:40Z" level=info msg="[GNB][AMF] List of AMF slices Supported by AMF -- sst:04 sd:000000"
time="2025-03-26T19:54:41Z" level=info msg="[TESTER] TESTING REGISTRATION USING IMSI 7005551000 UE"
time="2025-03-26T19:54:41Z" level=info msg="[GNB] Received incoming connection from new UE"
time="2025-03-26T19:54:41Z" level=info msg="[UE] Initiating Registration"
time="2025-03-26T19:54:41Z" level=info msg="[UE] Switched from state 0 to state 1"
time="2025-03-26T19:54:41Z" level=info msg="[GNB][SCTP] Receive message in 0 stream\n"
time="2025-03-26T19:54:41Z" level=info msg="[GNB][NGAP] Receive Downlink NAS Transport"
time="2025-03-26T19:54:41Z" level=info msg="[UE][NAS] Message without security header"
time="2025-03-26T19:54:41Z" level=info msg="[UE][NAS] Receive Authentication Request"
time="2025-03-26T19:54:41Z" level=info msg="[UE][NAS][MAC] Authenticity of the authentication request message: OK"
time="2025-03-26T19:54:41Z" level=info msg="[UE][NAS][SQN] SQN of the authentication request message: VALID"
time="2025-03-26T19:54:41Z" level=info msg="[UE][NAS] Send authentication response"
time="2025-03-26T19:54:41Z" level=info msg="[UE] Switched from state 1 to state 2"
time="2025-03-26T19:54:41Z" level=info msg="[GNB][SCTP] Receive message in 0 stream\n"
time="2025-03-26T19:54:41Z" level=info msg="[GNB][NGAP] Receive Downlink NAS Transport"
time="2025-03-26T19:54:41Z" level=info msg="[UE][NAS] Message with security header"
time="2025-03-26T19:54:41Z" level=info msg="[UE][NAS] Message with integrity and with NEW 5G NAS SECURITY CONTEXT"
time="2025-03-26T19:54:41Z" level=info msg="[UE][NAS] successful NAS MAC verification"
time="2025-03-26T19:54:41Z" level=info msg="[UE][NAS] Receive Security Mode Command"
time="2025-03-26T19:54:41Z" level=info msg="[UE][NAS] Type of ciphering algorithm is 5G-EA0"
time="2025-03-26T19:54:41Z" level=info msg="[UE][NAS] Type of integrity protection algorithm is 128-5G-IA2"
time="2025-03-26T19:54:41Z" level=info msg="[GNB][SCTP] Receive message in 0 stream\n"
time="2025-03-26T19:54:41Z" level=info msg="[GNB][NGAP] Receive Initial Context Setup Request"
time="2025-03-26T19:54:41Z" level=info msg="[GNB][UE] UE Context was created with successful"
time="2025-03-26T19:54:41Z" level=info msg="[GNB][UE] UE RAN ID 1"
time="2025-03-26T19:54:41Z" level=info msg="[GNB][UE] UE AMF ID 1"
time="2025-03-26T19:54:41Z" level=info msg="[GNB][UE] UE Mobility Restrict --Plmn-- Mcc: 001 Mnc: 01"
time="2025-03-26T19:54:41Z" level=info msg="[GNB][UE] UE Masked Imeisv: 1110000000ffff00"
time="2025-03-26T19:54:41Z" level=info msg="[GNB][UE] Allowed Nssai-- Sst: [01] Sd: [000000]"
time="2025-03-26T19:54:41Z" level=info msg="[GNB][NGAP][AMF] Send Initial Context Setup Response."
time="2025-03-26T19:54:41Z" level=info msg="[GNB] Initiating Initial Context Setup Response"
time="2025-03-26T19:54:41Z" level=info msg="[GNB][NGAP] No PDU Session to set up in InitialContextSetupResponse."
time="2025-03-26T19:54:41Z" level=info msg="[UE][NAS] Message with security header"
time="2025-03-26T19:54:41Z" level=info msg="[UE][NAS] Message with integrity and ciphered"
time="2025-03-26T19:54:41Z" level=info msg="[UE][NAS] successful NAS CIPHERING"
time="2025-03-26T19:54:41Z" level=info msg="[UE][NAS] successful NAS MAC verification"
time="2025-03-26T19:54:41Z" level=info msg="[UE][NAS] Receive Registration Accept"
time="2025-03-26T19:54:41Z" level=info msg="[UE][NAS] UE 5G GUTI: &{119 11 [242 0 241 16 1 0 0 0 0 0 1]}"
time="2025-03-26T19:54:41Z" level=info msg="[UE] Switched from state 2 to state 3"
time="2025-03-26T19:54:41Z" level=info msg="[UE] Initiating New PDU Session"
time="2025-03-26T19:54:42Z" level=info msg="[GNB][SCTP] Receive message in 0 stream\n"
time="2025-03-26T19:54:42Z" level=info msg="[GNB][NGAP] Receive Downlink NAS Transport"
time="2025-03-26T19:54:42Z" level=info msg="[UE][NAS] Message with security header"
time="2025-03-26T19:54:42Z" level=info msg="[UE][NAS] Message with integrity and ciphered"
time="2025-03-26T19:54:42Z" level=info msg="[UE][NAS] successful NAS CIPHERING"
time="2025-03-26T19:54:42Z" level=info msg="[UE][NAS] successful NAS MAC verification"
time="2025-03-26T19:54:42Z" level=info msg="[UE][NAS] Receive Configuration Update Command"
time="2025-03-26T19:54:42Z" level=info msg="[UE] Initiating Configuration Update Complete"
time="2025-03-26T19:54:42Z" level=info msg="[GNB][SCTP] Receive message in 0 stream\n"
time="2025-03-26T19:54:42Z" level=info msg="[GNB][NGAP] Receive PDU Session Resource Setup Request"
time="2025-03-26T19:54:42Z" level=info msg="[GNB][NGAP][UE] PDU Session was created with successful."
time="2025-03-26T19:54:42Z" level=info msg="[GNB][NGAP][UE] PDU Session Id: 1"
time="2025-03-26T19:54:42Z" level=info msg="[GNB][NGAP][UE] NSSAI Selected --- sst: NSSAI was not selected sd: NSSAI was not selected"
time="2025-03-26T19:54:42Z" level=info msg="[GNB][NGAP][UE] PDU Session Type: ipv4"
time="2025-03-26T19:54:42Z" level=info msg="[GNB][NGAP][UE] QOS Flow Identifier: 1"
time="2025-03-26T19:54:42Z" level=info msg="[GNB][NGAP][UE] Uplink Teid: 2"
time="2025-03-26T19:54:42Z" level=info msg="[GNB][NGAP][UE] Downlink Teid: 1"
time="2025-03-26T19:54:42Z" level=info msg="[GNB][NGAP][UE] Non-Dynamic-5QI: 9"
time="2025-03-26T19:54:42Z" level=info msg="[GNB][NGAP][UE] Priority Level ARP: 8"
time="2025-03-26T19:54:42Z" level=info msg="[GNB][NGAP][UE] UPF Address: 172.25.195.5 :2152"
time="2025-03-26T19:54:42Z" level=info msg="[GNB] Initiating PDU Session Resource Setup Response"
time="2025-03-26T19:54:42Z" level=info msg="[UE][NAS] Message with security header"
time="2025-03-26T19:54:42Z" level=info msg="[UE][NAS] Message with integrity and ciphered"
time="2025-03-26T19:54:42Z" level=info msg="[UE][NAS] successful NAS CIPHERING"
time="2025-03-26T19:54:42Z" level=info msg="[UE][NAS] successful NAS MAC verification"
time="2025-03-26T19:54:42Z" level=info msg="[UE][NAS] Receive DL NAS Transport"
time="2025-03-26T19:54:42Z" level=info msg="[UE][NAS] Receiving PDU Session Establishment Accept"
time="2025-03-26T19:54:42Z" level=info msg="[UE][NAS] PDU session QoS RULES: [1 0 6 49 49 1 1 255 1]"
time="2025-03-26T19:54:42Z" level=info msg="[UE][NAS] PDU session DNN: internet"
time="2025-03-26T19:54:42Z" level=info msg="[UE][NAS] PDU session NSSAI -- sst: 1 sd: 000"
time="2025-03-26T19:54:42Z" level=info msg="[UE][NAS] PDU address received: 10.1.0.1"
time="2025-03-26T19:54:43Z" level=info msg="[UE][GTP] Interface val7005551000 has successfully been configured for UE 10.1.0.1"
time="2025-03-26T19:54:43Z" level=info msg="[UE][GTP] You can do traffic for this UE by binding to IP 10.1.0.1, eg:"
time="2025-03-26T19:54:43Z" level=info msg="[UE][GTP] iperf3 -B 10.1.0.1 -c IPERF_SERVER -p PORT -t 9000"
time="2025-03-26T19:55:01Z" level=info msg="[UE] Terminating UE as requested"
time="2025-03-26T19:55:01Z" level=info msg="[UE] Initiating Release of PDU Session 1"
time="2025-03-26T19:55:01Z" level=info msg="[GNB][SCTP] Receive message in 0 stream\n"
time="2025-03-26T19:55:01Z" level=info msg="[GNB][NGAP] Receive PDU Session Release Command"
time="2025-03-26T19:55:01Z" level=info msg="[GNB][NGAP] Successfully deleted PDU Session 1 from UE Context"
time="2025-03-26T19:55:01Z" level=info msg="[GNB] Initiating PDU Session Release Response"
time="2025-03-26T19:55:02Z" level=info msg="[UE] Initiating Deregistration"
time="2025-03-26T19:55:02Z" level=info msg="[UE] Switched from state 3 to state 1"
time="2025-03-26T19:55:02Z" level=info msg="[GNB][SCTP] Receive message in 0 stream\n"
time="2025-03-26T19:55:02Z" level=info msg="[GNB][NGAP] Receive UE Context Release Command"
time="2025-03-26T19:55:02Z" level=info msg="[GNB] Initiating UE Context Complete"
time="2025-03-26T19:55:02Z" level=info msg="[GNB][NGAP] Releasing UE Context, cause: nas: Deregister"
time="2025-03-26T19:55:02Z" level=info msg="[UE] UE Terminated"
time="2025-03-26T19:55:02Z" level=info msg="[UE] Switched from state 1 to state 0"
time="2025-03-26T19:55:12Z" level=info msg="[GNB] Received incoming connection from new UE"
time="2025-03-26T19:55:12Z" level=info msg="[UE] Initiating Registration"
time="2025-03-26T19:55:12Z" level=info msg="[UE] Switched from state 0 to state 1"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][SCTP] Receive message in 0 stream\n"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][NGAP] Receive Downlink NAS Transport"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] Message without security header"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] Receive Authentication Request"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS][MAC] Authenticity of the authentication request message: OK"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS][SQN] SQN of the authentication request message: VALID"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] Send authentication response"
time="2025-03-26T19:55:12Z" level=info msg="[UE] Switched from state 1 to state 2"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][SCTP] Receive message in 0 stream\n"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][NGAP] Receive Downlink NAS Transport"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] Message with security header"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] Message with integrity and with NEW 5G NAS SECURITY CONTEXT"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] successful NAS MAC verification"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] Receive Security Mode Command"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] Type of ciphering algorithm is 5G-EA0"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] Type of integrity protection algorithm is 128-5G-IA2"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][SCTP] Receive message in 0 stream\n"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][NGAP] Receive Initial Context Setup Request"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][UE] UE Context was created with successful"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][UE] UE RAN ID 2"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][UE] UE AMF ID 2"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][UE] UE Mobility Restrict --Plmn-- Mcc: 001 Mnc: 01"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][UE] UE Masked Imeisv: 1110000000ffff00"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][UE] Allowed Nssai-- Sst: [01] Sd: [000000]"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][NGAP][AMF] Send Initial Context Setup Response."
time="2025-03-26T19:55:12Z" level=info msg="[GNB] Initiating Initial Context Setup Response"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][NGAP] No PDU Session to set up in InitialContextSetupResponse."
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] Message with security header"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] Message with integrity and ciphered"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] successful NAS CIPHERING"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] successful NAS MAC verification"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] Receive Registration Accept"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] UE 5G GUTI: &{119 11 [242 0 241 16 1 0 0 0 0 0 2]}"
time="2025-03-26T19:55:12Z" level=info msg="[UE] Switched from state 2 to state 3"
time="2025-03-26T19:55:12Z" level=info msg="[UE] Initiating New PDU Session"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][SCTP] Receive message in 0 stream\n"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][NGAP] Receive Downlink NAS Transport"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] Message with security header"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] Message with integrity and ciphered"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] successful NAS CIPHERING"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] successful NAS MAC verification"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] Receive Configuration Update Command"
time="2025-03-26T19:55:12Z" level=info msg="[UE] Initiating Configuration Update Complete"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][SCTP] Receive message in 0 stream\n"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][NGAP] Receive PDU Session Resource Setup Request"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][NGAP][UE] PDU Session was created with successful."
time="2025-03-26T19:55:12Z" level=info msg="[GNB][NGAP][UE] PDU Session Id: 1"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][NGAP][UE] NSSAI Selected --- sst: NSSAI was not selected sd: NSSAI was not selected"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][NGAP][UE] PDU Session Type: ipv4"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][NGAP][UE] QOS Flow Identifier: 1"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][NGAP][UE] Uplink Teid: 4"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][NGAP][UE] Downlink Teid: 2"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][NGAP][UE] Non-Dynamic-5QI: 9"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][NGAP][UE] Priority Level ARP: 8"
time="2025-03-26T19:55:12Z" level=info msg="[GNB][NGAP][UE] UPF Address: 172.25.195.5 :2152"
time="2025-03-26T19:55:12Z" level=info msg="[GNB] Initiating PDU Session Resource Setup Response"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] Message with security header"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] Message with integrity and ciphered"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] successful NAS CIPHERING"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] successful NAS MAC verification"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] Receive DL NAS Transport"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] Receiving PDU Session Establishment Accept"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] PDU session QoS RULES: [1 0 6 49 49 1 1 255 1]"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] PDU session DNN: internet"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] PDU session NSSAI -- sst: 1 sd: 000"
time="2025-03-26T19:55:12Z" level=info msg="[UE][NAS] PDU address received: 10.1.0.2"
time="2025-03-26T19:55:12Z" level=fatal msg="[GNB][GTP] Unable to create Kernel GTP interface: listen udp 172.25.195.18:2152: bind: address already in use7005551000val7005551000"
gtp5g logs:
Mar 26 19:54:18 N0 kernel: [gtp5g] proc_qos_write: qos enable:0
Mar 26 19:54:19 N0 kernel: [gtp5g] proc_seq_write: seq enable:1
Mar 26 19:54:20 N0 kernel: [gtp5g] gtp5g_encap_enable: enable gtp5g for the fd(11) type(5)
Mar 26 19:54:20 N0 kernel: upfgtp:[gtp5g] gtp5g_newlink: Registered a new 5G GTP interface
Mar 26 19:54:20 N0 kernel: [gtp5g] gtp5g_encap_enable: enable gtp5g for the fd(11) type(5)
Mar 26 19:54:20 N0 kernel: upfgtp:[gtp5g] gtp5g_newlink: Registered a new 5G GTP interface
Mar 26 19:54:42 N0 kernel: [gtp5g] qer_fill: QER Gate Status (0)
Mar 26 19:54:42 N0 kernel: [gtp5g] qer_fill: QER Gate Status (0)
Mar 26 19:54:42 N0 kernel: [gtp5g] gtp5g_encap_enable: enable gtp5g for the fd(11) type(5)
Mar 26 19:54:42 N0 kernel: val7005551000:[gtp5g] gtp5g_newlink: Registered a new 5G GTP interface
Mar 26 19:55:02 N0 kernel: val7005551000:[gtp5g] gtp5g_dellink: De-registered 5G GTP interface
Mar 26 19:55:12 N0 kernel: [gtp5g] qer_fill: QER Gate Status (0)
Mar 26 19:55:12 N0 kernel: [gtp5g] qer_fill: QER Gate Status (0)
gtp5g log level was increased with echo 4 | sudo tee /proc/gtp5g/dbg command.
The logs were obtained with sudo journalctl --dmesg --grep gtp5g --follow command.
Pcap
3.pcapng.gz
Additional context
PacketRusher config:
amfif:
- ip: 172.25.198.16
port: 38412
gnodeb:
controlif:
ip: 172.25.198.18
port: 9487
dataif:
ip: 172.25.195.18
port: 2152
plmnlist:
gnbid: "000001"
mcc: "001"
mnc: "01"
tac: "000005"
slicesupportlist:
sd: "000000"
sst: "01"
logs:
level: 4
ue:
amf: "8000"
ciphering:
nea0: true
nea1: false
nea2: true
nea3: false
dnn: internet
homeNetworkPublicKey: 5a8d38864820197c3394b92613b20b91633cbd897119273bf8e4a6f4eec0a650
homeNetworkPublicKeyID: 1
hplmn:
mcc: "001"
mnc: "01"
integrity:
nia0: false
nia1: false
nia2: true
nia3: false
key: 838e5ef3eed29e64a8df8ad1b39a47f0
msin: "7005551000"
opc: c62ab1aaada8b7c5fd5aefaac5180957
protectionScheme: 0
routingindicator: "0000"
snssai:
sd: "000000"
sst: 1
sqn: "00000000"
PacketRusher invocation command line:
packetrusher --config=/config.gnb0.001017005551000.yml multi-ue -n=1 -d -t --tunnel-vrf=false --loop --timeBeforeDeregistration=20000 --timeBeforeReregistration=10000
When PacketRusher is started with GTP-U tunnel enabled and runs deregistration-reregistration sequence in a loop, the process crashes when the second registration succeeds.
To Reproduce
Extract the archive: 3.tgz
Actual behavior
PacketRusher completes registration and PDU session establishment for the second time, and then crashes.
Note: after the crash, before you can test again, it's necessary to unload and re-load the gtp5g kernel module:
sudo sh -c 'rmmod gtp5g; modprobe gtp5g'Expected behavior
PacketRusher establishes PDU session successfully for the second time and allows user traffic through the network device.
Architecture
Logs
PacketRusher logs:
gtp5g logs:
gtp5g log level was increased with
echo 4 | sudo tee /proc/gtp5g/dbgcommand.The logs were obtained with
sudo journalctl --dmesg --grep gtp5g --followcommand.Pcap
3.pcapng.gz
Additional context
PacketRusher config:
PacketRusher invocation command line: