Changes between Version 1 and Version 2 of Tutorials/4G5G/srslte


Ignore:
Timestamp:
Apr 4, 2025, 9:32:33 PM (28 hours ago)
Author:
prasanthi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/4G5G/srslte

    v1 v2  
    4848
    4949=== Tutorial Execution ===
     50==== Check the USRP ====
     51* Upon logging into srv1-lg1, run the shell script eth_config.sh that sets up appropriate IP addresses for the Ethernet interfaces and network buffer sizes on the server.
     52{{{#!shell
     53root@srv1-lg1:~# ./eth_config.sh
     54net.core.rmem_max = 62500000
     55net.core.wmem_max = 62500000
     56root@srv1-lg1:~# ifconfig -a
     57eno1np0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
     58        inet 10.38.1.1  netmask 255.255.0.0  broadcast 10.38.255.255
     59        inet6 fe80::1e34:daff:fe42:c3c  prefixlen 64  scopeid 0x20<link>
     60        ether 1c:34:da:42:0c:3c  txqueuelen 1000  (Ethernet)
     61        RX packets 909  bytes 80670 (80.6 KB)
     62        RX errors 0  dropped 561  overruns 0  frame 0
     63        TX packets 193  bytes 16622 (16.6 KB)
     64        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
     65
     66eno2np1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
     67        inet 10.39.1.1  netmask 255.255.0.0  broadcast 10.39.255.255
     68        inet6 fe80::1e34:daff:fe42:c3d  prefixlen 64  scopeid 0x20<link>
     69        ether 1c:34:da:42:0c:3d  txqueuelen 1000  (Ethernet)
     70        RX packets 827  bytes 82338 (82.3 KB)
     71        RX errors 0  dropped 562  overruns 0  frame 0
     72        TX packets 291  bytes 23782 (23.7 KB)
     73        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
     74
     75}}}
     76* With the interfaces configured as above, the server should be able to access the SDRs in the domain. Test with
     77{{{#!shell
     78root@srv1-lg1:~# uhd_find_devices --args="addr=10.38.2.1"
     79[INFO] [UHD] linux; GNU C++ version 11.4.0; Boost_107400; UHD_4.4.0.HEAD-0-g3cf9529f
     80--------------------------------------------------
     81-- UHD Device 0
     82--------------------------------------------------
     83Device Address:
     84    serial: 3176DF5
     85    claimed: False
     86    fpga: XG
     87    mgmt_addr: 10.38.2.1
     88    name: ni-n3xx-3176DF5
     89    product: n310
     90    type: n3xx
     91
     92}}}
     93==== Setup 5G Core ====
     94* For this tutorial, we use [https://open5gs.org/ Open5GS] Core. All the components of the core are setup to run as systemd services. To reconfigure the services, please refer this [https://open5gs.org/open5gs/docs/guide/01-quickstart/ guide].
     95* Follow the AMF log
     96{{{#!shell
     97root@srv1-lg1:~# tail -f /var/log/open5gs/amf.log
     98}}}
     99{{{#!shell
     100Open5GS daemon v2.7.1
     101
     10204/04 20:47:27.874: [app] INFO: Configuration: '/etc/open5gs/amf.yaml' (../lib/app/ogs-init.c:133)
     10304/04 20:47:27.874: [app] INFO: File Logging: '/var/log/open5gs/amf.log' (../lib/app/ogs-init.c:136)
     10404/04 20:47:27.877: [metrics] INFO: metrics_server() [http://127.0.0.5]:9090 (../lib/metrics/prometheus/context.c:299)
     10504/04 20:47:27.877: [sbi] INFO: NF Service [namf-comm] (../lib/sbi/context.c:1841)
     10604/04 20:47:27.877: [sbi] INFO: nghttp2_server() [http://127.0.0.5]:7777 (../lib/sbi/nghttp2-server.c:414)
     10704/04 20:47:27.908: [amf] INFO: ngap_server() [127.0.0.5]:38412 (../src/amf/ngap-sctp.c:61)
     10804/04 20:47:27.908: [sctp] INFO: AMF initialize...done (../src/amf/app.c:33)
     109
     110}}}
    50111==== Run the srsran gNB ====
    51 * Upon logging into srv1-lg1, run uhd_find_devices to check the USRP.
    52 {{{#!shell
    53 
    54 
    55 }}}
    56 * Tail open5Gs AMF logs
    57 {{{#!shell
    58 
    59 
    60 
    61 
    62 }}}
    63 
     112* Run the gnb application in band n41 at 20MHz with 1T1R.
     113{{{#!shell
     114root@srv1-lg1:~# gnb -c ~/srsRAN_Project/configs/gnb_rf_n310_tdd_n41_20mhz.yml
     115
     116--== srsRAN gNB (commit 40b17b429) ==--
     117
     118
     119The PRACH detector will not meet the performance requirements with the configuration {Format B4, ZCZ 0, SCS 30kHz, Rx ports 1}.
     120Lower PHY in quad executor mode.
     121N2: Connection to AMF on 127.0.0.5:38412 completed
     122Cell pci=1, bw=20 MHz, 1T1R, dl_arfcn=518670 (n41), dl_freq=2593.35 MHz, dl_ssb_arfcn=517710, ul_freq=2593.35 MHz
     123
     124Available radio types: uhd and zmq.
     125[INFO] [UHD] linux; GNU C++ version 11.4.0; Boost_107400; UHD_4.4.0.HEAD-0-g3cf9529f
     126[INFO] [LOGGING] Fastpath logging disabled at runtime.
     127Making USRP object with args 'type=n3xx,addr=10.39.3.1,master_clock_rate=122.88e6,send_frame_size=8000,recv_frame_size=8000'
     128[INFO] [MPMD] Initializing 1 device(s) in parallel with args: mgmt_addr=10.39.3.1,type=n3xx,product=n310,serial=3196937,name=ni-n3xx-3196937,fpga=XG,claimed=False,addr=10.39.3.1,master_clock_rate=122.88e6,send_frame_size=8000,recv_frame_size=8000
     129[INFO] [MPM.PeriphManager] init() called with device args `fpga=XG,master_clock_rate=122.88e6,mgmt_addr=10.39.3.1,name=ni-n3xx-3196937,product=n310,recv_frame_size=8000,send_frame_size=8000,clock_source=internal,time_source=internal'.
     130[WARNING] [0/Radio#0] Attempting to set tick rate to 0. Skipping.
     131==== gNB started ===
     132Type <h> to view help
     133
     134}}}
     135
     136* In the AMF log, you should see the gNB connected to the core
     137{{{#!shell
     13804/04 21:22:32.078: [amf] INFO: gNB-N2 accepted[127.0.0.1]:52741 in ng-path module (../src/amf/ngap-sctp.c:113)
     13904/04 21:22:32.079: [amf] INFO: gNB-N2 accepted[127.0.0.1] in master_sm module (../src/amf/amf-sm.c:757)
     14004/04 21:22:32.090: [amf] INFO: [Added] Number of gNBs is now 1 (../src/amf/context.c:1236)
     141
     142}}}
    64143
    65144==== UEs ====