srsran / srsRAN_Project

Open source O-RAN 5G CU/DU solution from Software Radio Systems (SRS) https://docs.srsran.com/projects/project
https://www.srsran.com
GNU Affero General Public License v3.0
476 stars 163 forks source link

Ping from Core to UE doesn't work #317

Closed raul-parada closed 10 months ago

raul-parada commented 10 months ago

I'm following this tutorial https://docs.srsran.com/projects/project/en/latest/tutorials/source/flexric/source/index.html

I follow this steps:

1-Execute in a terminal `docker-compose up --build 5gc `from srsRAN_Project/docker
2-Execute in another terminal .`/flexric/build/examples/ric/nearRT-RIC `    
3-Execute in another terminal `sudo ./gnb -c gnb_zmq.yaml` on /srsRAN_Project/build/apps/gnb 
4-Execute UE `sudo ip netns add ue1` and `sudo ./srsue ue_zmq.conf `on srsRAN_4G/build/srsue/src 

I can ping from the UE by sudo ip netns exec ue1 ping -i 0.1 10.45.1.1

However, I cannot ping from core to UE using the following command:

ping -i 0.1 10.45.1.2

The route is established correctly: ``` sudo ip ro add 10.45.0.0/16 via 10.53.1.2 RTNETLINK answers: File exists

I do have access to internet ping directly. 

I add the tmp log of the UE
[ue_log_20231116.txt](https://github.com/srsran/srsRAN_Project/files/13378282/ue_log_20231116.txt)

From gnb part there are no traces:

==== gNodeB started === Type to view trace

chelimi commented 4 months ago

sorry for inconvenience sir.. please let me know the what container should i remove i didn't get you sir.. please me know the what i should i change

pgawlowicz commented 4 months ago
# list docker containers:
docker container list -a
# remove the open5gs container using its ID
docker container rm CONTAINER_ID

# same with image
docker image list
# remove the open5gs image using its ID
docker image rm IMAGE_ID
chelimi commented 4 months ago

waxwing@waxwing:~/srsran/srsRAN_Project/docker$ sudo docker container list -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 48819c4ef3f3 srsran/gnb "gnb -c /gnb_config.…" 5 hours ago Created srsran_gnb 560ba178d2c9 docker-5gc "./open5gs_entrypoin…" 6 hours ago Exited (255) 8 minutes ago 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp open5gs_5gc waxwing@waxwing:~/srsran/srsRAN_Project/docker$ sudo docker container rm CONTAINER ID Error response from daemon: No such container: CONTAINER Error response from daemon: No such container: ID waxwing@waxwing:~/srsran/srsRAN_Project/docker$ sudo docker container rm CONTAINER_ID Error response from daemon: No such container: CONTAINER_ID WE are getting this error sir

pgawlowicz commented 4 months ago

sudo docker container rm 48819c4ef3f3

chelimi commented 4 months ago

waxwing@waxwing:~/srsran/srsRAN_Project/docker$ sudo docker compose up --build 5gc [+] Building 2.4s (16/16) FINISHED docker:default => [5gc internal] load build definition from Dockerfile 0.3s => => transferring dockerfile: 3.11kB 0.0s => [5gc internal] load .dockerignore 0.2s => => transferring context: 2B 0.0s => [5gc internal] load metadata for docker.io/library/ubuntu:22.04 1.0s => [5gc internal] load build context 0.2s => => transferring context: 142B 0.0s => [5gc base 1/8] FROM docker.io/library/ubuntu:22.04@sha256:a6d2b38300ce017add71440577d5b0a90460d0e57fd7aec21dd0d1b0761bbfb2 0.0s => CACHED [5gc base 2/8] RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt install -y software-properties-common && rm -rf /var/lib/apt/lists/ 0.0s => CACHED [5gc base 3/8] RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y python3-pip python3-setuptools python3-wheel ninja-build build-essential 0.0s => CACHED [5gc base 4/8] RUN DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends wget gnupg && wget -qO - https://www.mongodb.org/static/pgp/server-6.0. 0.0s => CACHED [5gc base 5/8] RUN echo v2.6.1 > ./open5gsversion 0.0s => CACHED [5gc base 6/8] RUN git clone --depth 1 --branch $(cat ./open5gsversion) https://github.com/open5gs/open5gs open5gs && cd open5gs && meson build --prefix=pwd/install && ninja 0.0s => CACHED [5gc base 7/8] RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs && cd open5gs/webui && npm ci --no-optional 0.0s => CACHED [5gc base 8/8] RUN python3 -m pip install pymongo click pyroute2 ipaddress python-iptables 0.0s => CACHED [5gc open5gs 1/3] WORKDIR /open5gs 0.0s => CACHED [5gc open5gs 2/3] COPY open5gs-5gc.yml open5gs-5gc.yml.in 0.0s => CACHED [5gc open5gs 3/3] COPY open5gs_entrypoint.sh add_users.py setup_tun.py subscriber_db.cs[v] ./ 0.0s => [5gc] exporting to image 0.1s => => exporting layers 0.0s => => writing image sha256:812e7c17097e3b1db38fac053b4be0c2e4fc8f82d1495e9483fb36a1ff3c158c 0.0s => => naming to docker.io/library/docker-5gc 0.0s [+] Running 1/0 ✔ Container open5gs_5gc Created 0.0s Attaching to open5gs_5gc open5gs_5gc | nc: connect to 127.0.0.1 port 27017 (tcp) failed: Connection refused open5gs_5gc | waiting for mongodb open5gs_5gc | {"t":{"$date":"2024-05-16T12:35:54.277Z"},"s":"I", "c":"CONTROL", "id":20697, "ctx":"-","msg":"Renamed existing log file","attr":{"oldLogPath":"/tmp/mongodb.log","newLogPath":"/tmp/mongodb.log.2024-05-16T12-35-54"}} open5gs_5gc | open5gs_5gc | > open5gs@2.6.1 dev open5gs_5gc | > node server/index.js open5gs_5gc | open5gs_5gc | open5gs_5gc | > Using external babel configuration open5gs_5gc | > Location: "/open5gs/webui/.babelrc" open5gs_5gc | nc: connect to 127.0.0.1 port 27017 (tcp) failed: Connection refused open5gs_5gc | waiting for mongodb open5gs_5gc | DONE Compiled successfully in 989ms12:35:56 PM open5gs_5gc | open5gs_5gc | open5gs_5gc | Connection to 127.0.0.1 27017 port [tcp/] succeeded! open5gs_5gc | Mongoose: accounts.count({}, {}) open5gs_5gc | > Ready on http://560ba178d2c9:3000 open5gs_5gc | Mongoose: subscribers.createIndex({ imsi: 1 }, { unique: true, background: true }) open5gs_5gc | Mongoose: accounts.createIndex({ username: 1 }, { unique: true, background: true }) open5gs_5gc | SUBSCRIBER_DB=001010123456780,00112233445566778899aabbccddeeff,opc,63bfa50ee6523365ff14c1f45f88737d,8000,9,10.45.1.2 open5gs_5gc | Reading subscriber data from cmd. open5gs_5gc | UE (IMSI=001010123456780) already exists, updating it. open5gs_5gc | Attempting to update IMSI 001010123456780 open5gs_5gc | UpdateResult({'n': 1, 'nModified': 0, 'ok': 1.0, 'updatedExisting': True}, acknowledged=True) open5gs_5gc | True open5gs_5gc | Open5GS daemon v2.6.1 open5gs_5gc | open5gs_5gc | 05/16 12:35:58.490: [app] INFO: Configuration: 'open5gs-5gc.yml' (../lib/app/ogs-init.c:126) open5gs_5gc | open5gs_5gc | Open5GS daemon v2.6.1 open5gs_5gc | open5gs_5gc | 05/16 12:35:58.497: [app] INFO: Configuration: 'open5gs-5gc.yml' (../lib/app/ogs-init.c:126) open5gs_5gc | open5gs_5gc | 05/16 12:35:58.499: [sbi] INFO: nghttp2_server() [http://127.0.0.10]:7777 (../lib/sbi/nghttp2-server.c:395) open5gs_5gc | 05/16 12:35:58.499: [app] INFO: NRF initialize...done (../src/nrf/app.c:31) open5gs_5gc | Open5GS daemon v2.6.1 open5gs_5gc | open5gs_5gc | 05/16 12:35:58.547: [app] INFO: Configuration: 'open5gs-5gc.yml' (../lib/app/ogs-init.c:126) open5gs_5gc | open5gs_5gc | 05/16 12:35:58.550: [sbi] INFO: nghttp2_server() [http://127.0.1.10]:7777 (../lib/sbi/nghttp2-server.c:395) open5gs_5gc | 05/16 12:35:58.550: [app] INFO: SCP initialize...done (../src/scp/app.c:31) open5gs_5gc | 05/16 12:35:58.551: [nrf] INFO: [d8c7fcc4-1380-41ef-ae18-6381aced672f] NF registered [Heartbeat:10s] (../src/nrf/nf-sm.c:190) open5gs_5gc | 05/16 12:35:58.551: [sbi] INFO: [d8c7fcc4-1380-41ef-ae18-6381aced672f] NF registered [Heartbeat:10s] (../lib/sbi/nf-sm.c:214) open5gs_5gc | Open5GS daemon v2.6.1 open5gs_5gc | open5gs_5gc | 05/16 12:35:58.599: [app] INFO: Configuration: 'open5gs-5gc.yml' (../lib/app/ogs-init.c:126) open5gs_5gc | open5gs_5gc | 05/16 12:35:58.608: [pfcp] INFO: pfcp_server() [127.0.0.7]:8805 (../lib/pfcp/path.c:30) open5gs_5gc | 05/16 12:35:58.608: [pfcp] INFO: ogs_pfcp_connect() [127.0.0.4]:8805 (../lib/pfcp/path.c:61) open5gs_5gc | 05/16 12:35:58.608: [gtp] INFO: gtp_server() [10.53.1.2]:2152 (../lib/gtp/path.c:30) open5gs_5gc | 05/16 12:35:58.608: [app] INFO: UPF initialize...done (../src/upf/app.c:31) open5gs_5gc | Open5GS daemon v2.6.1 open5gs_5gc | open5gs_5gc | 05/16 12:35:58.656: [app] INFO: Configuration: 'open5gs-5gc.yml' (../lib/app/ogs-init.c:126) open5gs_5gc | open5gs_5gc | 05/16 12:35:58.697: [gtp] INFO: gtp_server() [127.0.0.4]:2123 (../lib/gtp/path.c:30) open5gs_5gc | 05/16 12:35:58.697: [gtp] INFO: gtp_server() [127.0.0.4]:2152 (../lib/gtp/path.c:30) open5gs_5gc | 05/16 12:35:58.697: [pfcp] INFO: pfcp_server() [127.0.0.4]:8805 (../lib/pfcp/path.c:30) open5gs_5gc | 05/16 12:35:58.697: [pfcp] INFO: ogs_pfcp_connect() [127.0.0.7]:8805 (../lib/pfcp/path.c:61) open5gs_5gc | 05/16 12:35:58.697: [sbi] INFO: NF Service [nsmf-pdusession] (../lib/sbi/context.c:1436) open5gs_5gc | 05/16 12:35:58.697: [upf] INFO: PFCP associated [127.0.0.4]:8805 (../src/upf/pfcp-sm.c:173) open5gs_5gc | 05/16 12:35:58.697: [sbi] INFO: nghttp2_server() [http://127.0.0.4]:7777 (../lib/sbi/nghttp2-server.c:395) open5gs_5gc | 05/16 12:35:58.697: [app] INFO: SMF initialize...done (../src/smf/app.c:31) open5gs_5gc | 05/16 12:35:58.698: [smf] INFO: PFCP associated [127.0.0.7]:8805 (../src/smf/pfcp-sm.c:174) open5gs_5gc | 05/16 12:35:58.698: [nrf] INFO: [d8d9c224-1380-41ef-aa17-b5479ecb152c] NF registered [Heartbeat:10s] (../src/nrf/nf-sm.c:190) open5gs_5gc | 05/16 12:35:58.698: [sbi] INFO: [d8d9c224-1380-41ef-aa17-b5479ecb152c] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:58.698: [sbi] INFO: [d8d9c224-1380-41ef-aa17-b5479ecb152c] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | 05/16 12:35:58.699: [sbi] INFO: [d8d9c224-1380-41ef-aa17-b5479ecb152c] NF registered [Heartbeat:10s] (../lib/sbi/nf-sm.c:214) open5gs_5gc | Open5GS daemon v2.6.1 open5gs_5gc | open5gs_5gc | 05/16 12:35:58.706: [app] INFO: Configuration: 'open5gs-5gc.yml' (../lib/app/ogs-init.c:126) open5gs_5gc | open5gs_5gc | 05/16 12:35:58.715: [sbi] INFO: NF Service [namf-comm] (../lib/sbi/context.c:1436) open5gs_5gc | 05/16 12:35:58.716: [sbi] INFO: nghttp2_server() [http://127.0.0.5]:7777 (../lib/sbi/nghttp2-server.c:395) open5gs_5gc | 05/16 12:35:58.716: [amf] INFO: ngap_server() [10.53.1.2]:38412 (../src/amf/ngap-sctp.c:61) open5gs_5gc | 05/16 12:35:58.716: [sctp] INFO: AMF initialize...done (../src/amf/app.c:33) open5gs_5gc | 05/16 12:35:58.717: [nrf] INFO: [d8e04496-1380-41ef-8fb1-138b2b79f259] NF registered [Heartbeat:10s] (../src/nrf/nf-sm.c:190) open5gs_5gc | 05/16 12:35:58.717: [sbi] INFO: [d8e04496-1380-41ef-8fb1-138b2b79f259] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:58.717: [sbi] INFO: [d8e04496-1380-41ef-8fb1-138b2b79f259] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | 05/16 12:35:58.717: [sbi] INFO: [d8e04496-1380-41ef-8fb1-138b2b79f259] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:58.718: [sbi] INFO: [d8e04496-1380-41ef-8fb1-138b2b79f259] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | 05/16 12:35:58.718: [sbi] INFO: [d8e04496-1380-41ef-8fb1-138b2b79f259] NF registered [Heartbeat:10s] (../lib/sbi/nf-sm.c:214) open5gs_5gc | Open5GS daemon v2.6.1 open5gs_5gc | open5gs_5gc | 05/16 12:35:58.749: [app] INFO: Configuration: 'open5gs-5gc.yml' (../lib/app/ogs-init.c:126) open5gs_5gc | open5gs_5gc | 05/16 12:35:58.752: [sbi] INFO: NF Service [nausf-auth] (../lib/sbi/context.c:1436) open5gs_5gc | 05/16 12:35:58.752: [sbi] INFO: nghttp2_server() [http://127.0.0.11]:7777 (../lib/sbi/nghttp2-server.c:395) open5gs_5gc | 05/16 12:35:58.752: [app] INFO: AUSF initialize...done (../src/ausf/app.c:31) open5gs_5gc | 05/16 12:35:58.753: [nrf] INFO: [d8e6c6e0-1380-41ef-b835-673c82fc598d] NF registered [Heartbeat:10s] (../src/nrf/nf-sm.c:190) open5gs_5gc | 05/16 12:35:58.753: [sbi] INFO: [d8e6c6e0-1380-41ef-b835-673c82fc598d] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:58.753: [sbi] INFO: [d8e6c6e0-1380-41ef-b835-673c82fc598d] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | 05/16 12:35:58.753: [sbi] INFO: [d8e6c6e0-1380-41ef-b835-673c82fc598d] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:58.753: [sbi] INFO: [d8e6c6e0-1380-41ef-b835-673c82fc598d] NF registered [Heartbeat:10s] (../lib/sbi/nf-sm.c:214) open5gs_5gc | 05/16 12:35:58.753: [sbi] INFO: [d8e6c6e0-1380-41ef-b835-673c82fc598d] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | Open5GS daemon v2.6.1 open5gs_5gc | open5gs_5gc | 05/16 12:35:58.799: [app] INFO: Configuration: 'open5gs-5gc.yml' (../lib/app/ogs-init.c:126) open5gs_5gc | open5gs_5gc | 05/16 12:35:58.802: [sbi] INFO: NF Service [nudm-ueau] (../lib/sbi/context.c:1436) open5gs_5gc | 05/16 12:35:58.802: [sbi] INFO: NF Service [nudm-uecm] (../lib/sbi/context.c:1436) open5gs_5gc | 05/16 12:35:58.802: [sbi] INFO: NF Service [nudm-sdm] (../lib/sbi/context.c:1436) open5gs_5gc | 05/16 12:35:58.802: [sbi] INFO: nghttp2_server() [http://127.0.0.12]:7777 (../lib/sbi/nghttp2-server.c:395) open5gs_5gc | 05/16 12:35:58.802: [app] INFO: UDM initialize...done (../src/udm/app.c:31) open5gs_5gc | 05/16 12:35:58.803: [nrf] INFO: [d8ee68d2-1380-41ef-9c26-471aeb5a5387] NF registered [Heartbeat:10s] (../src/nrf/nf-sm.c:190) open5gs_5gc | 05/16 12:35:58.803: [sbi] INFO: [d8ee68d2-1380-41ef-9c26-471aeb5a5387] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:58.803: [sbi] INFO: [d8ee68d2-1380-41ef-9c26-471aeb5a5387] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | 05/16 12:35:58.804: [sbi] INFO: [d8ee68d2-1380-41ef-9c26-471aeb5a5387] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:58.804: [sbi] INFO: [d8ee68d2-1380-41ef-9c26-471aeb5a5387] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | 05/16 12:35:58.804: [sbi] INFO: [d8ee68d2-1380-41ef-9c26-471aeb5a5387] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:58.804: [sbi] INFO: [d8ee68d2-1380-41ef-9c26-471aeb5a5387] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | 05/16 12:35:58.804: [sbi] INFO: [d8ee68d2-1380-41ef-9c26-471aeb5a5387] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:58.804: [sbi] INFO: [d8ee68d2-1380-41ef-9c26-471aeb5a5387] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | 05/16 12:35:58.804: [sbi] WARNING: [d8ee68d2-1380-41ef-9c26-471aeb5a5387] (NRF-notify) NF has already been added (../lib/sbi/nnrf-handler.c:636) open5gs_5gc | 05/16 12:35:58.804: [sbi] INFO: [d8ee68d2-1380-41ef-9c26-471aeb5a5387] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | 05/16 12:35:58.804: [sbi] WARNING: NF EndPoint updated [127.0.0.12:80] (../lib/sbi/context.c:1618) open5gs_5gc | 05/16 12:35:58.804: [sbi] WARNING: NF EndPoint updated [127.0.0.12:7777] (../lib/sbi/context.c:1527) open5gs_5gc | 05/16 12:35:58.805: [sbi] INFO: [d8ee68d2-1380-41ef-9c26-471aeb5a5387] NF registered [Heartbeat:10s] (../lib/sbi/nf-sm.c:214) open5gs_5gc | Open5GS daemon v2.6.1 open5gs_5gc | open5gs_5gc | 05/16 12:35:58.856: [app] INFO: Configuration: 'open5gs-5gc.yml' (../lib/app/ogs-init.c:126) open5gs_5gc | open5gs_5gc | 05/16 12:35:58.860: [dbi] INFO: MongoDB URI: 'mongodb://127.0.0.1/open5gs' (../lib/dbi/ogs-mongoc.c:130) open5gs_5gc | 05/16 12:35:58.860: [sbi] INFO: NF Service [npcf-am-policy-control] (../lib/sbi/context.c:1436) open5gs_5gc | 05/16 12:35:58.860: [sbi] INFO: NF Service [npcf-smpolicycontrol] (../lib/sbi/context.c:1436) open5gs_5gc | 05/16 12:35:58.860: [sbi] INFO: NF Service [npcf-policyauthorization] (../lib/sbi/context.c:1436) open5gs_5gc | 05/16 12:35:58.860: [sbi] INFO: nghttp2_server() [http://127.0.0.13]:7777 (../lib/sbi/nghttp2-server.c:395) open5gs_5gc | 05/16 12:35:58.860: [app] INFO: PCF initialize...done (../src/pcf/app.c:31) open5gs_5gc | 05/16 12:35:58.861: [nrf] INFO: [d8f71c8e-1380-41ef-9db3-f54742826984] NF registered [Heartbeat:10s] (../src/nrf/nf-sm.c:190) open5gs_5gc | 05/16 12:35:58.861: [sbi] INFO: [d8f71c8e-1380-41ef-9db3-f54742826984] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:58.861: [sbi] INFO: [d8f71c8e-1380-41ef-9db3-f54742826984] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | 05/16 12:35:58.861: [sbi] INFO: [d8f71c8e-1380-41ef-9db3-f54742826984] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:58.861: [sbi] INFO: [d8f71c8e-1380-41ef-9db3-f54742826984] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | 05/16 12:35:58.861: [sbi] INFO: [d8f71c8e-1380-41ef-9db3-f54742826984] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:58.861: [sbi] INFO: [d8f71c8e-1380-41ef-9db3-f54742826984] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | 05/16 12:35:58.862: [sbi] INFO: [d8f71c8e-1380-41ef-9db3-f54742826984] NF registered [Heartbeat:10s] (../lib/sbi/nf-sm.c:214) open5gs_5gc | Open5GS daemon v2.6.1 open5gs_5gc | open5gs_5gc | 05/16 12:35:58.900: [app] INFO: Configuration: 'open5gs-5gc.yml' (../lib/app/ogs-init.c:126) open5gs_5gc | open5gs_5gc | 05/16 12:35:58.903: [sbi] INFO: NF Service [nnssf-nsselection] (../lib/sbi/context.c:1436) open5gs_5gc | 05/16 12:35:58.903: [sbi] INFO: nghttp2_server() [http://127.0.0.14]:7777 (../lib/sbi/nghttp2-server.c:395) open5gs_5gc | 05/16 12:35:58.903: [app] INFO: NSSF initialize...done (../src/nssf/app.c:31) open5gs_5gc | 05/16 12:35:58.903: [nrf] INFO: [d8fdcf20-1380-41ef-94ef-4b4439cafc3f] NF registered [Heartbeat:10s] (../src/nrf/nf-sm.c:190) open5gs_5gc | 05/16 12:35:58.904: [sbi] INFO: [d8fdcf20-1380-41ef-94ef-4b4439cafc3f] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:58.904: [sbi] INFO: [d8fdcf20-1380-41ef-94ef-4b4439cafc3f] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | 05/16 12:35:58.904: [sbi] INFO: [d8fdcf20-1380-41ef-94ef-4b4439cafc3f] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:58.904: [sbi] INFO: [d8fdcf20-1380-41ef-94ef-4b4439cafc3f] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | 05/16 12:35:58.904: [sbi] INFO: [d8fdcf20-1380-41ef-94ef-4b4439cafc3f] NF registered [Heartbeat:10s] (../lib/sbi/nf-sm.c:214) open5gs_5gc | Open5GS daemon v2.6.1 open5gs_5gc | open5gs_5gc | 05/16 12:35:58.950: [app] INFO: Configuration: 'open5gs-5gc.yml' (../lib/app/ogs-init.c:126) open5gs_5gc | open5gs_5gc | 05/16 12:35:58.953: [sbi] INFO: NF Service [nbsf-management] (../lib/sbi/context.c:1436) open5gs_5gc | 05/16 12:35:58.953: [sbi] INFO: nghttp2_server() [http://127.0.0.15]:7777 (../lib/sbi/nghttp2-server.c:395) open5gs_5gc | 05/16 12:35:58.953: [app] INFO: BSF initialize...done (../src/bsf/app.c:31) open5gs_5gc | 05/16 12:35:58.954: [nrf] INFO: [d9056fa0-1380-41ef-9941-bb059ccc79fe] NF registered [Heartbeat:10s] (../src/nrf/nf-sm.c:190) open5gs_5gc | 05/16 12:35:58.954: [sbi] INFO: [d9056fa0-1380-41ef-9941-bb059ccc79fe] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:58.954: [sbi] INFO: [d9056fa0-1380-41ef-9941-bb059ccc79fe] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | 05/16 12:35:58.954: [sbi] INFO: [d9056fa0-1380-41ef-9941-bb059ccc79fe] NF registered [Heartbeat:10s] (../lib/sbi/nf-sm.c:214) open5gs_5gc | 05/16 12:35:58.954: [sbi] INFO: [d9056fa0-1380-41ef-9941-bb059ccc79fe] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:58.954: [sbi] INFO: [d9056fa0-1380-41ef-9941-bb059ccc79fe] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | Open5GS daemon v2.6.1 open5gs_5gc | open5gs_5gc | 05/16 12:35:59.007: [app] INFO: Configuration: 'open5gs-5gc.yml' (../lib/app/ogs-init.c:126) open5gs_5gc | open5gs_5gc | 05/16 12:35:59.010: [dbi] INFO: MongoDB URI: 'mongodb://127.0.0.1/open5gs' (../lib/dbi/ogs-mongoc.c:130) open5gs_5gc | 05/16 12:35:59.010: [sbi] INFO: NF Service [nudr-dr] (../lib/sbi/context.c:1436) open5gs_5gc | 05/16 12:35:59.010: [sbi] INFO: nghttp2_server() [http://127.0.0.20]:7777 (../lib/sbi/nghttp2-server.c:395) open5gs_5gc | 05/16 12:35:59.011: [app] INFO: UDR initialize...done (../src/udr/app.c:31) open5gs_5gc | 05/16 12:35:59.011: [nrf] INFO: [d90e1a9c-1380-41ef-a91f-d3af74137705] NF registered [Heartbeat:10s] (../src/nrf/nf-sm.c:190) open5gs_5gc | 05/16 12:35:59.012: [sbi] INFO: [d90e1a9c-1380-41ef-a91f-d3af74137705] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:59.012: [sbi] INFO: [d90e1a9c-1380-41ef-a91f-d3af74137705] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | 05/16 12:35:59.012: [sbi] INFO: [d90e1a9c-1380-41ef-a91f-d3af74137705] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:59.013: [sbi] INFO: [d90e1a9c-1380-41ef-a91f-d3af74137705] (NRF-notify) NF registered (../lib/sbi/nnrf-handler.c:632) open5gs_5gc | 05/16 12:35:59.013: [sbi] INFO: [d90e1a9c-1380-41ef-a91f-d3af74137705] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | 05/16 12:35:59.013: [sbi] INFO: [d90e1a9c-1380-41ef-a91f-d3af74137705] NF registered [Heartbeat:10s] (../lib/sbi/nf-sm.c:214) open5gs_5gc | 05/16 12:35:59.013: [sbi] INFO: [d90e1a9c-1380-41ef-a91f-d3af74137705] (NRF-notify) NF Profile updated (../lib/sbi/nnrf-handler.c:642) open5gs_5gc | 05/16 12:36:01.109: [smf] WARNING: PFCP[REQ] has already been associated [127.0.0.7]:8805 (../src/smf/pfcp-sm.c:217) open5gs_5gc | 05/16 12:36:01.109: [upf] WARNING: PFCP[RSP] has already been associated [127.0.0.4]:8805 (../src/upf/pfcp-sm.c:213)

we got the connection reufused is successed but aslo we are getting same error in gnb

pgawlowicz commented 4 months ago

could you share your gnb config?

chelimi commented 4 months ago

This configuration file example shows how to configure the srsRAN Project gNB to allow srsUE to connect to it.

This specific example uses ZMQ in place of a USRP for the RF-frontend, and creates an FDD cell with 10 MHz bandwidth.

To run the srsRAN Project gNB with this config, use the following command:

sudo ./gnb -c gnb_zmq.yaml

amf: addr: 127.0.0.5 # The address or hostname of the AMF. bind_addr: 127.0.0.5 # A local IP that the gNB binds to for traffic from the AMF.

ru_sdr: device_driver: zmq # The RF driver name. device_args: tx_port=tcp://127.0.0.1:2000,rx_port=tcp://127.0.0.1:2001,base_srate=23.04e6 # Optionally pass arguments to the selected RF driver. srate: 23.04 # RF sample rate might need to be adjusted according to selected bandwidth. tx_gain: 75 # Transmit gain of the RF might need to adjusted to the given situation. rx_gain: 75 # Receive gain of the RF might need to adjusted to the given situation.

cell_cfg: dl_arfcn: 368500 # ARFCN of the downlink carrier (center frequency). band: 3 # The NR band. channel_bandwidth_MHz: 20 # Bandwith in MHz. Number of PRBs will be automatically derived. common_scs: 15 # Subcarrier spacing in kHz used for data. plmn: "00101" # PLMN broadcasted by the gNB. tac: 7 # Tracking area code (needs to match the core configuration). pdcch: common: ss0_index: 0 # Set search space zero index to match srsUE capabilities coreset0_index: 12 # Set search CORESET Zero index to match srsUE capabilities dedicated: ss2_type: common # Search Space type, has to be set to common dci_format_0_1_and_1_1: false # Set correct DCI format (fallback) prach: prach_config_index: 1 # Sets PRACH config to match what is expected by srsUE

log: filename: /tmp/gnb.log # Path of the log file. all_level: info # Logging level applied to all layers. hex_max_size: 0

pcap: mac_enable: false # Set to true to enable MAC-layer PCAPs. mac_filename: /tmp/gnb_mac.pcap # Path where the MAC PCAP is stored. ngap_enable: false # Set to true to enable NGAP PCAPs. ngap_filename: /tmp/gnb_ngap.pcap # Path where the NGAP PCAP is stored.

pgawlowicz commented 4 months ago
amf:
  addr: 127.0.0.5 # The address or hostname of the AMF.
  bind_addr: 127.0.0.5 # A local IP that the gNB binds to for traffic from the AMF.

the dockerized version of open5gs runs at 10.53.1.2, so this config section should be:

amf:
  addr: 10.53.1.2                  # The address or hostname of the AMF.
  bind_addr: 10.53.1.1             # A local IP that the gNB binds to for traffic from the AMF.

Please followin this tutorial: https://docs.srsran.com/projects/project/en/latest/tutorials/source/srsUE/source/index.html#zeromq-based-setup

chelimi commented 4 months ago

After changing also im getting error

axwing@waxwing:~/srsran/srsRAN_Project/build/apps/gnb$ sudo gnb -c gnb_zmq.yaml [sudo] password for waxwing:

The PRACH detector will not meet the performance requirements with the configuration {Format 0, ZCZ 0, SCS 1.25kHz, Rx ports 1}. Lower PHY in executor blocking mode.

--== srsRAN gNB (commit 0b2702cca) ==--

Connecting to AMF on 10.53.1.2:38412 Available radio types: uhd. Factory for radio type zmq not found. Make sure to select a valid type. srsGNB ERROR: Unable to create radio session.

pgawlowicz commented 4 months ago

Please follow the shared tutorial. You have to install zmq and compile the project with ZMQ support.

chelimi commented 4 months ago

i had already install zmq and also completed 4g connection sir