Open linouxis9 opened 1 year ago
Hi @linouxis9
Would you please help to provide more information? for example:
Hi @ianchen0119,
Thank you for your message! I was indeed using go-gtp5gnl to trigger the kernel panic, and not libgtp5gnl. I've used this script https://github.com/free5gc/libgtp5gnl/blob/master/script/ran.sh from libgtp5gnl, but by replacing inside the scripts the gtp5g-link/gtp5g-tunnel binaries from libgtp5gnl, with the gtp5g-link/gtp5g-tunnel go binaries from go-gtp5gnl here: https://github.com/free5gc/go-gtp5gnl/tree/main/cmd.
I had done my testing on gtp5g's commit 3f425930aa6e972f3f4c5f78b7bdaf0518574101.
Thanks a lot!
Hi all,
I'm having a kernel panic when running 10x this script in parallel (with 10 UEs, 10 different gNB IPs, 10 differents GTP-U interfaces): https://github.com/free5gc/libgtp5gnl/blob/master/script/ran.sh but using the go binaries from https://github.com/free5gc/go-gtp5gnl (with a tweak here: https://github.com/free5gc/go-gtp5gnl/blob/4f36b49ab7f7f90632b0981aa832121438e5a243/cmd/gogtp5g-link/main.go#L72 so an interface bind only to a single specified IP address instead of binding to all IP addresses).
Adding a small sleep of 20 ms before launching the 2nd, 3rd.. scripts workaround the issue.
According to the kernel panic, issue seems to lie inside gtp5g_genl_add_pdr, you'll find the Kernel panic logs at the end of this post. If I can be of any help, don't hesitate, thank you!! Also quick question, is it possible to have multiple gtp5g interface on the same IP address/port? Thanks!