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
Failed to setup/configure GW interface #296
Comments
hmm..I think you setting the following in
|
Hm, I was trying to relate this back to the srsRAN_Project. But ultimately I want to just generate data with different parameters e.g. channel bandwidth, SNR, modulation schemes, subcarrier spacing - is this something that's do-able with with the srsRAN UE GNB setup? |
Generating traffic with different channel bandwidth, SNR, modulation schemes is possible but not different subcarrier spacing because srsRAN UE does not support anything other than 15Khz SCS. |
would you happen to know or can recommend any tutorials on that generating IQ traffic with those parameters using srsRAN? Sorry a bit off-topic but I am fairly new to the space. |
Well, you can use typically iperf tool to generate traffic end-to-end i.e. run iperf server/client at UE and viceversa in UPF iperf client/server. For changes in parameters you can change in the configuration file which are present in respective folders in this repo |
That works for the network traffic - but my bad, I meant recording the spectrum IQ data transmitted. I've used in the past gnuradio to visualize and record this. But not sure if this would work over docker.
Is there a way to expose this so that gnuradio can access them? |
Hmm, its possible. IP and ports you give in the ue_5g_zmq.conf and gnb_zmq.conf should be the ZMQ ports opened in Gnuradio and ensure connection is complete. I havent experimented what mentioned above but I have used Gnuradio to test SINR ramping of srsRAN_Project gNB with Amarisoft UE using a Gnuradio to vary SINR etc |
If I understand it right I have to change from
Sorry, google gives me conflicting answers e.g. sctp ports are not handled by docker. How would one configure the ports in AMF, GNB and UE? My understanding is that AMF should open |
If you are running srsgnb_zmq and open5gs in same machine then dont publish the SCTP ports and UDP ports i.e. expose only the ports you want for gnuradio
Here is the laymen terms explanation of using expose or ports. You use expose if you want those ports to be use by another service running on the same machine and you use ports when you want another service running on another machine to see those ports. So just exposing of SCTP and UDP ports between gNB and AMF/UPF is just fine since you are running both in same machine. If you plan to run gnuradio also in same machine then expose is just fine no need to use ports for those ZMQ ports |
Hey,
Here are the configurations I used to have ZMQ in between gNB and UE At gNB
At UE
And, in GNURadio python script I had the following lines to interconnect them
Then, while testing the sequence of bring up is as follows: (this sequence is very important)
|
So I made those changes to the yaml, and changed to expose:
But now it just gets stuck (without even running gnuradio)
|
hmm.. it could be a NATing issue of docker network. Please try the following At gNB
At UE
And, in GNURadio python script I had the following lines to interconnect them
|
Cant run the gnuradio with this. Should Rx or Tx be |
gnuradio does run when I make TX
But gets stuck at attaching again:
|
sorry, my understanding was wrong. I tested it on my end with the below diff and UE attached with GNUradio in between them
And, in Gnuradio the following
|
Oh, you made changes in |
|
Ok - I got hopeful because I thought my error was not updating I am sure you must be extremely busy but is it possible to jump on a quick call and see what I am doing wrong? |
hmm, here is the python function to initialize gnuradio flowgraph
sorry, I dont do calls |
Thanks for that but the problem occurs even without
|
The above diff does not require rebuilding of images. Just re-running gNB and UE should be fine
This is normal. UE wont connect to gNB without the gnuradio since there is no link. gnuradio is the connecting entity which completes the RF, in turn allowing UE to connect gNB |
Great point. So gnuradio is needed to broker UE to gNB and vice versa - Yeah I have followed all diffs, and ran the python above as you have, still stuck attaching. I have no more ideas why this is not working. Is it possible I need to add ip route to 172.22.0.1 or something? Alternatively, is it possible to run gnuradio within the docker and capture that way? If so, I assume gnuradio should run in both gnb and ue containers? |
Here you go, I have corrected your gnuradio script. I was running the script on the host machine (not inside docker) |
hmm, doesnt make any sense. I tried it on my own machine with that diff applied and python script running on host machine and it worked
just do
If you want to use your own version of open5gs, srsgnb and srsue just change the git commit hash in the Dockerfile in respective folder and re-compile. Its as easy as that :)
Its wrong. It should be set as OP and NOT OPc in the webui |
well, was hoping setting OP would've solved it but it didnt. Not giving up yet, please bear with me. I went down the route of manually compiling open5gs according to the tutorial with srsRAN_Project and srsRAN_4G also compiled locally - out of the box, got RRC configured with traces on both gnb and ue, and ping also works.
I didnt change IPs in all the open5gs parts, just the plmn, tac according to the
Now I updated the
Ran the gnuradio, then core, updated the subscriber in webui according to srsran config, then gnb then ue:
But it's still stuck at UE .. how would this setup go if everything is on localhost? |
what IPs did you pass when you ran it? I would suggest the following in gNB config file
in ue config file
then in the gnuradio script hardcode both |
@herlesupreeth sorry for the delay. the changes actually worked! Thank you so much for your help! But I was hoping to recreate gnu-test.py with the gnuradio GUI (for visualization purposes) but it failed and not sure why. I guess I'll capture the IQ data and visualize it separately. Before I close this issue - any recommendations on how to best capture data / visualization? |
No idea. Sorry cant be of much help. :) |
Awhile back you helped me setup 5GC gnb and ue on a single host machine:
That works and I can ping both in from the srsGNB to srsue containers and vice versa
However, I noticed the GW interface failing:
in the
ue_5g_zmq.conf
, I set the GW as so:My end goal is to experiment configuring single/multi UE (with gnuradio), and collecting IQ data - and I assume I need the GW interface for this.
The text was updated successfully, but these errors were encountered: