Comments (10)
The following command fixed the VRF module:
sudo apt-get install linux-modules-extra-$(uname -r)
I already used the above command before seeing your comment, not sure if the command you suggested will fix it.
PDU session is now okay..
INFO[0001] [UE][NAS] imsi-999700000000001 was succesfully registered
INFO[0001] [GNB][SCTP] Receive message in 1 stream
INFO[0001] [GNB][NGAP] Receive PDU Session Resource Setup Request
INFO[0001] [GNB][NGAP][UE] PDU Session was created with successful.
INFO[0001] [GNB][NGAP][UE] PDU Session Id: 1
INFO[0001] [GNB][NGAP][UE] NSSAI Selected --- sst: NSSAI was not selected sd: NSSAI was not selected
INFO[0001] [GNB][NGAP][UE] PDU Session Type: ipv4
INFO[0001] [GNB][NGAP][UE] QOS Flow Identifier: 1
INFO[0001] [GNB][NGAP][UE] Uplink Teid: 14980
INFO[0001] [GNB][NGAP][UE] Downlink Teid: 1
INFO[0001] [GNB][NGAP][UE] Non-Dynamic-5QI: 9
INFO[0001] [GNB][NGAP][UE] Priority Level ARP: 8
INFO[0001] [GNB][NGAP][UE] UPF Address: 192.168.200.1 :2152
INFO[0001] [GNB] Initiating PDU Session Resource Setup Response
INFO[0001] [UE][NAS] Message with security header
INFO[0001] [UE][NAS] Message with integrity and ciphered
INFO[0001] [UE][NAS] successful NAS MAC verification
INFO[0001] [UE][NAS] successful NAS CIPHERING
INFO[0001] [UE][NAS] Receive DL NAS Transport
INFO[0001] [UE][NAS] Receiving PDU Session Establishment Accept
INFO[0002] [UE][GTP] Interface val0000000001 has successfully been configured for UE 10.45.0.108
INFO[0002] [UE][GTP] You can do traffic for this UE using VRF vrf0000000001, eg:
INFO[0002] [UE][GTP] sudo ip vrf exec vrf0000000001 iperf3 -c IPERF_SERVER -p PORT -t 9000
ubuntu@packetRusher:~$ ip a
...
...
4: val0000000001: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1464 qdisc noqueue master vrf0000000001 state UNKNOWN group default qlen 1000
link/none
inet 10.45.0.108/32 scope global val0000000001
valid_lft forever preferred_lft forever
inet6 fe80::245c:d6b5:9cb9:19c/64 scope link stable-privacy
valid_lft forever preferred_lft forever
5: vrf0000000001: <NOARP,MASTER,UP,LOWER_UP> mtu 65575 qdisc noqueue state UP group default
link/ether 92:fe:f9:59:ef:64 brd ff:ff:ff:ff:ff:ff
ubuntu@packetRusher:~$ sudo ip vrf exec vrf0000000001 ping 10.45.0.1 -c 3
PING 10.45.0.1 (10.45.0.1) 56(84) bytes of data.
64 bytes from 10.45.0.1: icmp_seq=1 ttl=64 time=0.635 ms
64 bytes from 10.45.0.1: icmp_seq=2 ttl=64 time=0.724 ms
64 bytes from 10.45.0.1: icmp_seq=3 ttl=64 time=0.766 ms
Thanks for your support, much appreciated!
from packetrusher.
The following was not required when installing PacketRusher on Ubuntu 22.04.
apt-get install linux-modules-extra-$(uname -r)
My OS is as follows. gtp5g kernel module also worked.
Linux pr10 5.15.0-89-lowlatency #99-Ubuntu SMP PREEMPT Thu Nov 2 15:27:06 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
FYI.
from packetrusher.
I do seem to have issues with gtp5g when using an even more recent kernel (6.5.0 for example).
Ubuntu 22.04 GA kernel is 5.15.
gtp5g is working so far.
Ubuntu 22.04 HWE kernel is 6.2.
gtp5g does not support 6.2 kernel.
https://forum.free5gc.org/t/upf-est-createfar-error-invalid-argument/2111/2?u=yoursunny
Thus, we must resist the urge of installing HWE kernel.
from packetrusher.
Hi @infinitydon!
Thank for your report once again :-) I can reproduce your issue, but I think this time, the issue might be on open5gs' side not yet handling well slices when doing roaming, or an open5gs' configuration issue, rather than a PacketRusher's issue.
I was able to make it work by not using ssd in the open5gs's amf configuration:
plmn_support:
- plmn_id:
mcc: 001
mnc: 01
s_nssai:
- sst: 1
and setting inside PacketRusher:
gnodeb:
...
slicesupportlist:
sst: "01"
sd: "ffffff"
...
ue:
...
snssai:
sst: 01
sd: "ffffff"
sd being set as ffffff equals to no sd, I'll improve configuration that if sd is not set then "ffffff" will be automatically set.
Could you confirm that it work in your environment when not using Slice Differentiator?
Also the number of retries from pack-rusher seems to be too much, it practically flooded the logs of the Open5gs core components when it encountered this issue, I think this should be reduced to a few seconds retry mechanism.
I completely agree, will work on that, thanks!
Also I think the Discussion feature of your github repo should be enable so as to deal with other issues that are not related to bugs or feature (this is just a suggestion)
Will do as well :-)
Thanks a lot for using PacketRusher!
from packetrusher.
@linouxis9 - I just tried that but now getting the following error in packet-rusher:
INFO[0001] [UE][NAS] Receive DL NAS Transport
INFO[0001] [UE][NAS] Receiving PDU Session Establishment Accept
FATA[0002] [UE][DATA] Unable to create VRF for UEoperation not supported
from packetrusher.
@linouxis9 - I just tried that but now getting the following error in packet-rusher:
INFO[0001] [UE][NAS] Receive DL NAS Transport INFO[0001] [UE][NAS] Receiving PDU Session Establishment Accept FATA[0002] [UE][DATA] Unable to create VRF for UEoperation not supported
sudo modprobe vrf
And then re-try again. Make sure your kernel supports vrf as well (on Ubuntu, you should use the generic kernel).
Will add to the installation guide, thanks!
from packetrusher.
Looks like VRF is not included in my kernel
ubuntu@packetRusher:~/rusher-raoming-1$ sudo modprobe vrf
modprobe: FATAL: Module vrf not found in directory /lib/modules/5.4.0-167-generic
ubuntu@packetRusher:~/rusher-raoming-1$
ubuntu@packetRusher:~/rusher-raoming-1$ uname -r
5.4.0-167-generic
Which kernel version are you using with Ubuntu 20.04
from packetrusher.
Looks like VRF is not included in my kernel
ubuntu@packetRusher:~/rusher-raoming-1$ sudo modprobe vrf modprobe: FATAL: Module vrf not found in directory /lib/modules/5.4.0-167-generic ubuntu@packetRusher:~/rusher-raoming-1$ ubuntu@packetRusher:~/rusher-raoming-1$ uname -r 5.4.0-167-generic
Which kernel version are you using with Ubuntu 20.04
Can you try to install HWE kernel?
sudo apt install --install-recommends linux-generic-hwe-20.04
from packetrusher.
Glad that I could help! I'll update the installation guide and implement your suggestions.
Thanks :-)
from packetrusher.
Hi @s5uishida,
Thanks for the information! PacketRusher seems indeed to work on Ubuntu 22.04. However, I do seem to have issues with gtp5g when using an even more recent kernel (6.5.0 for example).
from packetrusher.
Related Issues (20)
- [BUG] PacketRusher does not always handle received messages in order
- [BUG] Cannot use leading 0 in UE HPLMN MNC HOT 5
- [BUG] PacketRusher crashes during UE processing if you use a gNodeB id with a hex digit HOT 1
- [FEATURE] Only one tunnel per UE is supported for now HOT 3
- [FEATURE] Add a Rate function to Register UE in specified Rate HOT 6
- Why not to use string instead of int? HOT 1
- DNS configuration HOT 3
- [BUG] Error sending NG Setup Request HOT 2
- [BUG] Authentication failure with MAC failure HOT 7
- [FEATURE] Access to gNB and UE (like in UERANSIM repo) HOT 6
- [FEATURE] Using FQDN/device name for the interface configuration HOT 1
- [FEATURE] Add PacketRusher version as tags HOT 5
- [BUG] Xn and Ng Handover command
- [FEATURE] UEs and gNB attached & Xnh targeting a gNB
- eBPF: Test XDP attach natively and try to make it work to improve performance
- [BUG] Three-digit MNCs are encoded incorrectly HOT 1
- [BUG] Unable to create tunnel for UE with multi-ue option HOT 6
- [BUG] CLI Error if --tunnel is used before --dedicatedGnb
- [BUG] Fix interactions between Idling and other procedures
- [BUG] PacketRusher crashes when UE has an MNC with 3 digits HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packetrusher.