s5uishida / free5gc_ueransim_ulcl_sample_config

free5GC 5GC & UERANSIM UE / RAN Sample Configuration - ULCL(Uplink Classifier)
4 stars 0 forks source link

SMF Crash while run UERANSIM UE module #2

Open ghost opened 2 years ago

ghost commented 2 years ago

Hi @s5uishida,

first of all your GitHub repository is very informative and i want to achieve this scenario with ULCL.

I have separate virtual machines for UERANSIM, I-UPF, PSAUPF1 and Free5gc.

I start I-UPF, PSAUPF1, Free5gc and last I ran Gnb and UE device.

once I start UE, first session established and later SMF crashed on free5gc machine. could you please help me to solve this error.

image

ghost commented 2 years ago

Hi I am using latest version of free5gc and UERANSIM on every machine and to resolve this issue, i also flush mongo database and restart all network functions but no luck :-(

s5uishida commented 2 years ago

Hi @ishanshahnio

I updated my environment with latest free5GC and tried it, and I was able to ping as expected without SMF crashing. In addition, as I wrote in the repository, I changed from v3.2.1 to the main branch and built it.

Also, nrfcfg.yaml required the following changes:

nrfcfg.yaml:  version: 1.0.1 --> 1.0.2

According to the error log, SMF seems to be accessing an illegal memory address, but I don't know why.

ghost commented 2 years ago

Hi @s5uishida

Thanks for Reply. I will check and let you know.

Just for curiosity, did you get a chance to work on multiUPF that total 3 UPF (Anchor UPF, UPF-1 and UPF-2) that default path is Anchor UPF -> UPF1 and traffic influence (Npcf) divert data path from UPF1 to UPF2 and final path will be Anchor UPF -> UPF2.

ghost commented 2 years ago

Hi @s5uishida, Issue resolved.

Issue was SBA interface binding in UPF. I used localhost IP Addresses scheme in UPF, so SMF not create N4 pfcp session binding.

ghost commented 2 years ago

Hi @s5uishida,

Your GitHub repository is very informative, useful and learning for implementation of 5G core.

I want to achieve one scenario that 2 UPF are connected to branching UPF. Scenario is as below:

  1. default user session data path is UE -> gnb -> IUPF -> UPF1 -> DN.
  2. When request comes from user that to connect some gaming application server which is connected to UPF2.
  3. Npcf_policyauthorization_request is create traffic influence service.
  4. Post data path of the user session be like is UE -> gnb -> IUPF -> UPF2 -> Application server DN.

I much appreciate if you achieved above scenario in your lab using free5gc or any other freeware and opensource 5GC.

s5uishida commented 1 year ago

Hi @ishanshahnio

I wrote another ULCL configuration example as follows.

https://github.com/s5uishida/free5gc_ueransim_ulcl_2_sample_config

Also, I'm not using Npcf_policyauthorization.

ghost commented 1 year ago

Thanks @s5uishida, let me try this scenario in my local lab and will update you on this soon.