srsRAN_Project icon indicating copy to clipboard operation
srsRAN_Project copied to clipboard

UE Fales to attach to the 5G Network

Open Moussa-Guemdani opened this issue 1 year ago • 14 comments

Issue Description

Hello, I have built the End-To-End 5G Network following the tutorial ""https://docs.srsran.com/projects/project/en/latest/tutorials/source/cotsUE/source/index.html"", but I'm still unable to attach the UE.

Setup Details

Hardware: - RF:USRPx310.

                - Ubuntu 24.04.04.
                - Computer: Dell i7 OptiPlex 7060.
                - UE: OnePlus8Pro (supports n78 SA).
                - sysmoISIM-SJA2

Configs:

                - amf:
                    - addr: 127.0.0.5                                             
                    - bind_addr: 127.0.0.1                                    

                - ru_sdr:
                    - device_driver: uhd                                            
                    - device_args: type=x300                                        
                    - clock: internal                                           
                    - sync: default                                                       
                    - srate: 23.04
                    - tx_gain: 23
                    - rx_gain: 20
                - cell_cfg:
                    - dl_arfcn: 627340
                    - #627340
                    - band: 78
                    - channel_bandwidth_MHz: 20
                    - common_scs: 30
                    - plmn: "20870"
                    - tac: 1
                    - pci: 1 
  • 5G core: open5Gs

Actual Behaviour

image image

Moussa-Guemdani avatar May 10 '24 16:05 Moussa-Guemdani

did you run this script on the gnb PC? https://github.com/srsran/srsRAN_Project/blob/main/scripts/srsran_performance

Also, could you share the details of the PC? (cpu, ram?)

pgawlowicz avatar May 13 '24 08:05 pgawlowicz

Hello, I have ran the script, but stil the same issue,

12 x CPU: - cpu family : 6 - model : 158 - model name : Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz - stepping : 10 - microcode : 0xf4 - cpu MHz : 800.039 - cache size : 12288 KB - physical id : 0 - siblings : 12

RAM(MB): total used free shared buff/cache available Mem: 15Gi 5,1Gi 6,6Gi 269Mi 3,7Gi 9,7Gi Swap: 2,0Gi 0B 2,0Gi

Moussa-Guemdani avatar May 13 '24 09:05 Moussa-Guemdani

could you share the configs you use?

pgawlowicz avatar May 13 '24 09:05 pgawlowicz

Here you are: image

Moussa-Guemdani avatar May 13 '24 09:05 Moussa-Guemdani

could you check whether this works? https://docs.srsran.com/projects/project/en/latest/tutorials/source/srsUE/source/index.html#usrp-x300-x310

pgawlowicz avatar May 13 '24 09:05 pgawlowicz

These are the results after the changes image

Configs: image

Moussa-Guemdani avatar May 13 '24 09:05 Moussa-Guemdani

how is the x310 connected to the gnb PC?

pgawlowicz avatar May 13 '24 09:05 pgawlowicz

It is connected using the 10 Gigabit Ethernet via SFP cable image

Moussa-Guemdani avatar May 13 '24 09:05 Moussa-Guemdani

hmm, could you put addr=X.X.X.X, in the device_args? alternatively, could you try a different uhd version, eg. 4.3?

pgawlowicz avatar May 13 '24 10:05 pgawlowicz

Hello, When I Try the use another version of uhd, and run the gnb, I asks me to download another version of uhd that is compatible with srsRAN_Project, Then when I do this and follow the steps, still have the same issue

image image

Moussa-Guemdani avatar May 14 '24 18:05 Moussa-Guemdani

ok, could you show the cpu load (htop) while running the srsgnb?

pgawlowicz avatar May 15 '24 07:05 pgawlowicz

image

Moussa-Guemdani avatar May 15 '24 09:05 Moussa-Guemdani

If you use commercial UE, program the USIM with PLMN 00101, due to carrier policy UE may not work with other PLMN. You could try PLMN 00101 both side, UE and core

s21sm avatar May 16 '24 05:05 s21sm

Could you try uhd-4.3 or higher?

pgawlowicz avatar May 16 '24 10:05 pgawlowicz

Hello, I have changed the version to the last version of UHD, and I used PLMN: 00101, It works very fine now

I would like to point out that when I have changed the UHD version on the host computer, when build the gNB again, it shows that the the variables were not used by the project. Screenshot from 2024-05-21 16-47-42

Also, even though I have a successful atatch, I still see the Late: 0; Underflow: 1; Overflow: 0; issue image

I would like to thank you very much for your help and assistance. @s21sm Thank you very much.

Moussa-Guemdani avatar May 21 '24 14:05 Moussa-Guemdani

Hello, after successfully using the project for several days, now the Ue Connects normally, but there is an exclamation mark on the network, and there is no internet access!

I have checked the nat and forwarding rules,

image

Moussa-Guemdani avatar May 28 '24 10:05 Moussa-Guemdani

You may try these


sudo sysctl -w net.ipv4.ip_forward=1
sudo iptables -t nat -A POSTROUTING -s 10.45.0.0/16 ! -o ogstun -j MASQUERADE
sudo iptables -I INPUT -i ogstun -j ACCEPT
sudo ip ro add 10.45.0.0/16 via 10.53.1.2

s21sm avatar May 28 '24 10:05 s21sm

You may try these


sudo sysctl -w net.ipv4.ip_forward=1
sudo iptables -t nat -A POSTROUTING -s 10.45.0.0/16 ! -o ogstun -j MASQUERADE
sudo iptables -I INPUT -i ogstun -j ACCEPT
sudo ip ro add 10.45.0.0/16 via 10.53.1.2

HEllo,

I have tried, but the issue is not solved

Moussa-Guemdani avatar May 28 '24 10:05 Moussa-Guemdani

@Moussa-Guemdani do you run open5gs in docker or manually installed?

pgawlowicz avatar May 29 '24 10:05 pgawlowicz

@pgawlowicz I am running open5gsmanually installed

Moussa-Guemdani avatar May 29 '24 13:05 Moussa-Guemdani

did you follow this tutorial? https://docs.srsran.com/projects/project/en/latest/tutorials/source/cotsUE/source/index.html

Did you configure APN in your phone? Please check the troubleshooting section.

pgawlowicz avatar May 29 '24 14:05 pgawlowicz

Yes, i did, also with the Access Point.

It worked for some time, after re-build, then Same issue.

I am running the Hannover deployment.

Moussa-Guemdani avatar May 30 '24 21:05 Moussa-Guemdani

could you try this one:

sudo sysctl -w net.ipv4.ip_forward=1
sudo sysctl -w net.ipv4.conf.all.forwarding=1
sudo sysctl -w net.ipv6.conf.all.forwarding=1
sudo iptables -t nat -A POSTROUTING -o IFNAME_CONNECTED_TO_INTERNET -j MASQUERADE
sudo iptables -t nat -A POSTROUTING -s 10.45.0.0/16 ! -o ogstun -j MASQUERADE
sudo iptables -P FORWARD ACCEPT
sudo ip ro add 10.45.0.0/16 via 10.53.1.2

pgawlowicz avatar Jun 05 '24 08:06 pgawlowicz

@Moussa-Guemdani any update on this issue?

pgawlowicz avatar Jun 20 '24 16:06 pgawlowicz

Hello, It works very fine fine Thank you for your help.

Moussa-Guemdani avatar Jun 20 '24 16:06 Moussa-Guemdani