Git Product home page Git Product logo

Comments (10)

infinitydon avatar infinitydon commented on June 9, 2024 1

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.

s5uishida avatar s5uishida commented on June 9, 2024 1

Hi @linouxis9 @infinitydon

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.

yoursunny avatar yoursunny commented on June 9, 2024 1

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.

linouxis9 avatar linouxis9 commented on June 9, 2024

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.

infinitydon avatar infinitydon commented on June 9, 2024

@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 avatar linouxis9 commented on June 9, 2024

@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.

infinitydon avatar infinitydon commented on June 9, 2024

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.

linouxis9 avatar linouxis9 commented on June 9, 2024

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.

linouxis9 avatar linouxis9 commented on June 9, 2024

Glad that I could help! I'll update the installation guide and implement your suggestions.
Thanks :-)

from packetrusher.

linouxis9 avatar linouxis9 commented on June 9, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.