Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

over the air setup - GNB is not pinging the UE #489

Closed
Mohammed24699 opened this issue Feb 22, 2024 · 30 comments
Closed

over the air setup - GNB is not pinging the UE #489

Mohammed24699 opened this issue Feb 22, 2024 · 30 comments

Comments

@Mohammed24699
Copy link

Issue Description

I am trying to connect the UE and GNB (over the air setup). The UE can ping the GNB (10.45.1.1), but, the GNB is not pinging the UE.

Setup Details

computer 1 (UE) - intel xeon(R) w-2255 cpu @ 3.70 GHZ * 20
computer 2 (gnb) - 11 th gen intel core -19 11900k @ 3.50 GHZ * 16

We installed the latest UE( 23_11 )in one system and GNB in another system and connected the USRP (b210) to each PC. USRP's are connected with SMA cables attaching 20 dB attenuators, and the experiment is conducted in a low-latency kernel.

Expected Behavior

According to the documentation (https://docs.srsran.com/projects/project/en/latest/tutorials/source/srsUE/source/index.html), after the UE gives the IP address (10.45.1.2), we need to ping the UE and GNB each other.

Actual Behaviour

There is no problem pinging GNB with UE. But GNB is not pinging the UE.

Steps to reproduce the problem

[Tell us how to reproduce this issue, e.g. RF setup, application config files]

Additional Information

I'm performing the kernel in a low-latency kernel with the official config files (I'm attaching them below); take a look at the UE and GNB log files too.

gnb.log.log

@pgawlowicz
Copy link
Collaborator

Hi, Did you configure the routing correctly?

@Mohammed24699
Copy link
Author

Screenshot from 2024-02-23 15-54-59
Screenshot from 2024-02-23 15-55-33
I got the same output as shown in the documentation. But the GNB is not able to ping UE.

@pgawlowicz
Copy link
Collaborator

what about the default route at ue?

@Mohammed24699
Copy link
Author

PXL_20240223_231219160

@pgawlowicz
Copy link
Collaborator

you need to add the default gw:

sudo ip route add default via 10.45.1.1 dev tun_srsue

@Mohammed24699
Copy link
Author

i ran this on UE, still GNB does not
ping GNB
tun_srsue
ping UE

@pgawlowicz
Copy link
Collaborator

the route on gnb is wrong, it should be

10.45.0.0       10.53.1.2       255.255.0.0     UG    0      0        0 br-....

and you have:

10.45.0.0       10.53.1.2       255.255.255.0     UG    0      0        0 br-....

so you do not have a route for address 10.45.1.2

@Mohammed24699
Copy link
Author

I'm sorry but i tried with is commend and it shows the same Genmask

sudo route change -net 10.45.0.0 netmask 255.255.0.0 dev br-6341da468396

@Mohammed24699
Copy link
Author

udo route change -net 10.45.0.0 netmask 255.255.0.0 dev br-6341da468396
Usage: route [-nNvee] [-FC] [] List kernel routing tables
route [-v] [-FC] {add|del|flush} ... Modify routing table for AF.

   route {-h|--help} [<AF>]              Detailed usage syntax for specified AF.
   route {-V|--version}                  Display version/author and exit.

    -v, --verbose            be verbose
    -n, --numeric            don't resolve names
    -e, --extend             display other/more information
    -F, --fib                display Forwarding Information Base (default)
    -C, --cache              display routing cache instead of FIB

=Use -4, -6, '-A ' or '--'; default: inet
List of possible address families (which support routing):
inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)
netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)
x25 (CCITT X.25)

@pgawlowicz
Copy link
Collaborator

you can add another route:

sudo ip ro add 10.45.1.0/24 via 10.53.1.2

@Mohammed24699
Copy link
Author

gnb
ue

Still, the downlink doesn't ping.

@pgawlowicz
Copy link
Collaborator

The default route at srsue goes over eno1 but should go over tun_srsue

@Mohammed24699
Copy link
Author

ue
changed it to default, still same problem

@pgawlowicz
Copy link
Collaborator

Does the ping from UE to core work? How do you ping from the core?

@Mohammed24699
Copy link
Author

Screenshot from 2024-02-25 17-30-23

Screenshot from 2024-02-25 17-30-38

  1. Ping from UE to core works
  2. I'm pinging UE from the docker container.

@pgawlowicz
Copy link
Collaborator

could you try to ping the UE from Open5GS docker container:

docker exec -it open5gs_5gc ping 10.45.1.2

@Mohammed24699
Copy link
Author

It works. Thank you so much for the quick responses.

@Mohammed24699
Copy link
Author

image

@Mohammed24699
Copy link
Author

Hello, do you have any idea how I can make my UE more stable? Sometimes it gives the IP address, sometimes it doesn't.
I'm using the official config files. Do I need to make any changes to TX and RX gains?
Screenshot from 2024-03-01 15-10-43
Screenshot from 2024-03-01 15-10-54

@Mohammed24699 Mohammed24699 reopened this Mar 1, 2024
@pgawlowicz
Copy link
Collaborator

Do you use external clock (or gpsdo clock) for your b210s?

@Mohammed24699
Copy link
Author

yes we use CDA 2990 octo clock

@pgawlowicz
Copy link
Collaborator

could you provide the console trace from both gnb and srsUE when the UE is connected and sending a ping? you need to press t in both consoles.

@Mohammed24699
Copy link
Author

gnb trace 1
gnb trace 2
ue trace 1
ue trace 2

@pgawlowicz
Copy link
Collaborator

did you try tuning rx/tx gains on both gnb and srsUE? I would start with reducing TX gain of gnb a (by 5-10db). Could you make a screenshort of the CPU load at srsUE host PC? eg. from htop

@pgawlowicz
Copy link
Collaborator

@Mohammed24699 did you solve the issue?

@Mohammed24699
Copy link
Author

As you suggested, we tried tuning the tx and rx gains in the config files of both gNB and UE. Now that the UE provides the IP, it's quite stable. We're currently conducting an iperf3 test at 10 m/s, and we've had the UE stable for about 23 min. Thanks for the help.

@pgawlowicz
Copy link
Collaborator

Great! thanks for your feedback!

@Mohammed24699
Copy link
Author

I am just wondering that can we connect 2 srs UEs to 1gNB(open 5gs) ?? over the air setup

@Mohammed24699
Copy link
Author

#327

currently i am looking into this, i guess it will help. if you have any information related to this please let me know.

@pgawlowicz
Copy link
Collaborator

sure, you can connect 2 srsUEs, just need to assign different USIM parameters to each and also add them to Open5GS database. You can take the configs from here https://docs.srsran.com/projects/project/en/latest/tutorials/source/srsUE/source/index.html#multi-ue-emulation and change the RF section to use USRP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants