aligungr / UERANSIM

Open source 5G UE and RAN (gNodeB) implementation.
GNU General Public License v3.0
760 stars 315 forks source link

Issue with uesimtun interface bringing up for 2nd nr-ue call #402

Open bjeyabalan opened 2 years ago

bjeyabalan commented 2 years ago

Hi @aligungr ,

When i tried to establish 2nd UE call through same nr-gnb in same machine, the 5G-Call seems to be connected with PDU-Session-Established but i am getting following error when nr-ue tries to bring up uesimtun interface. Can you please let me know if there is any limitation around this area or its my mis-configuration? This happens only from the 2nd call onwards. The 1st UE call bring-up does not report this error.


[2021-09-22 07:18:04.239] [nas] [info] PDU Session establishment is successful PSI[1] RTNETLINK answers: File exists [2021-09-22 07:18:04.252] [app] [error] TUN configuration failure [Command execution failed. The command was: ip route add default dev uesimtun1 table rt_uesimtun1. The output is: 'Command execution failure]

Note: I am running nr-ue and nr-gnb inside separate docker containers in HOST network-mode.

Please clarify.

Thanks, ...Balaji.J

aligungr commented 2 years ago

@bjeyabalan I'm currently on holiday and will check this week.

aligungr commented 2 years ago

@bjeyabalan

You can start the UE with nr-ue --no-route-config if this error persists. But tge nr-binder cannot be used in this way.

bjeyabalan commented 2 years ago

Thanks @aligungr . Yes the issue is still there. Sure will try with this flag.

Ideally we should be able to simulate multiple UEs by running many nr-ue in same machine(vm) , correct? Do you think the following error is related to the os im using ? in my case its ubuntu 20.04 based. "RTNETLINK answers: File exists [2021-09-22 07:18:04.252] [app] [error] TUN configuration failure [Command execution failed. The command was: ip route add default dev uesimtun1 table rt_uesimtun1. The output is: 'Command execution failure]"

aligungr commented 2 years ago

@bjeyabalan Yes I think it's related to your OS or the machine in general.

bjeyabalan commented 2 years ago

Thanks @aligungr . May i know how to gracefully stop UE? Currently im doing ctrl+c to stop nr-ue. But i see the call is still in connected state in core. Is there any way to make nr-ue gracefully disconnect the call by sending pdusess-disconnect to core?

aligungr commented 2 years ago

@bjeyabalan You can use nr-cli to trigger a PDU session release or De-registration procedure before killing the UE. (And normally it's not required. For usual cases, you can directly kill the process.)

harminderharrysingh commented 2 years ago

Hi @aligungr,

I also faced the same issue and utilized the workaround provided (to include --no-route-config) above and it worked fine. But after above change i'm facing issue with 'wget' command execution, which was working earlier with route added.

Could you please provide a solution to get 'wget' working without '--no-route-config' parameter?

Regards