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


Ignore:
Timestamp:
Apr 4, 2025, 9:59:00 PM (14 hours ago)
Author:
prasanthi
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/4G5G/srslte

    v2 v3  
    109109
    110110}}}
    111 ==== Run the srsran gNB ====
     111==== Run srsran gNB ====
    112112* Run the gnb application in band n41 at 20MHz with 1T1R.
    113113{{{#!shell
     
    143143
    144144==== UEs ====
    145 * As the base station runs,SIM8200 modem on srv1-in1 communicates with the base station and registers to the network. You can see eNodeb trace similar to the one below.
     145* As the base station runs, the modems can be seen registering at the AMF
    146146{{{#!shell
    147 (enb) t
    148 Press [return] to stop the trace
    149 PRACH: cell=01 seq=20 ta=11 snr=16.0 dB
    150                ----DL----------------------- --UL------------------------------------------------
    151 UE_ID  CL RNTI C cqi ri  mcs retx txok brate  snr puc1  mcs rxko rxok brate     #its phr  pl   ta
    152     1 001 003d 1   7  1  6.8    0    5   708 16.1 -1.0 10.0   12    7 2.55k  1/4.5/6   0  24 -0.3
    153     1 001 003d 1   9  1 13.8    1   23 6.46k 11.7  2.9 17.2   19   21 18.7k  1/4.1/6   5  24 -0.2
    154     1 001 003d 1   7  1 15.4    0    5   960 11.4 14.7  9.0    0    1   628  1/1.0/1   2  25 -0.4
    155     1 001 003d 1   7  1 11.0    0    4   312  7.2 -8.9 16.0    0    1   612  2/2.0/2   5  24 -0.1
    156     1 001 003d 1   7  1 11.8    0    4   336  9.2 11.4    -    0    0     0        -   5  24 -1.0
    157     1 001 003d 1   5  1 11.8    0    4   336 12.5 18.2 11.0    0    1   516  1/1.0/1   3  24 -0.4
    158     1 001 003d 1   8  1 11.8    0    4   372  4.3 16.8    -    0    0     0        -   3  24 -0.4
     14704/04 21:31:17.641: [gmm] INFO: [imsi-310014000000011] Registration complete (../src/amf/gmm-sm.c:2313)
     14804/04 21:31:17.641: [amf] INFO: [imsi-310014000000011] Configuration update command (../src/amf/nas-path.c:591)
    159149
     150
     15104/04 21:31:18.189: [gmm] INFO: [imsi-310014000000013] Registration complete (../src/amf/gmm-sm.c:2313)
     15204/04 21:31:18.189: [amf] INFO: [imsi-310014000000013] Configuration update command (../src/amf/nas-path.c:591)
    160153}}}
    161 * In the MME session you can check the eNodeb/gNodeb and registered ue. The modem has a SIM card with IMSI 310014000000017 as shown in the MME log below. IP address 192.168.2.2 has been allocated to the modem. In the trace below you can see the CN listed as EPC for LTE or 5GC for 5GNR SA network.
     154* Run connection manager scripts on sdr2-md1 for the modems to establish PDU sessions
    162155{{{#!shell
    163 (mme) enb
    164   PLMN    eNB_ID                        IP:Port #UEctx   TACs
    165 310014   0x1a2d0                127.0.1.1:47633      0    0x1
    166 (mme) ue
    167             SUPI           IMEISV  CN M-TMSI/5G-TMSI REG           TAC #BEARER IP_ADDR
    168  310014000000017 8642840402500300 EPC     0xa592c726   Y 310014.   0x1       2 192.168.2.2 192.168.4.2 2001:468:3000:1::
    169 (mme)
    170 
    171156}}}
    172157{{{#!shell
    173 (mme) gnb
    174   PLMN     RAN_ID                        IP:Port #UEctx     TACs
    175 310014    0x12345                127.0.1.1:38071      0     0x64
    176 (mme) ue
    177             SUPI           IMEISV  CN M-TMSI/5G-TMSI REG           TAC #BEARER IP_ADDR
    178  310014000000017 8642840402500300 5GC     0x525b2ca7   Y 310014.  0x64       2 192.168.4.2 2001:468:3000:1:: 192.168.2.2
    179 (mme)
    180 
    181158}}}
    182 
    183 * On srv1-in1, you can see that the modem shows up as a wwan interface wwp0s20u3i5.
    184 {{{#!shell
    185 root@srv1-in1:~# ifconfig -a
    186 CTRL: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
    187         inet 10.44.1.5  netmask 255.255.0.0  broadcast 10.44.255.255
    188         inet6 fe80::da50:e6ff:fed4:f80e  prefixlen 64  scopeid 0x20<link>
    189         ether d8:50:e6:d4:f8:0e  txqueuelen 1000  (Ethernet)
    190         RX packets 53  bytes 7687 (7.6 KB)
    191         RX errors 0  dropped 7  overruns 0  frame 0
    192         TX packets 39  bytes 5910 (5.9 KB)
    193         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    194         device interrupt 20  memory 0xf7d00000-f7d20000
    195 
    196 DATA1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
    197         inet6 fe80::da50:e6ff:fed4:f60a  prefixlen 64  scopeid 0x20<link>
    198         ether d8:50:e6:d4:f6:0a  txqueuelen 1000  (Ethernet)
    199         RX packets 5  bytes 300 (300.0 B)
    200         RX errors 0  dropped 5  overruns 0  frame 0
    201         TX packets 11  bytes 1874 (1.8 KB)
    202         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    203 
    204 lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
    205         inet 127.0.0.1  netmask 255.0.0.0
    206         inet6 ::1  prefixlen 128  scopeid 0x10<host>
    207         loop  txqueuelen 1000  (Local Loopback)
    208         RX packets 148  bytes 10311 (10.3 KB)
    209         RX errors 0  dropped 0  overruns 0  frame 0
    210         TX packets 148  bytes 10311 (10.3 KB)
    211         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    212 
    213 wwp0s20u3i5: flags=4291<UP,BROADCAST,RUNNING,NOARP,MULTICAST>  mtu 1500
    214         inet6 fe80::7cab:29ff:fe84:1b18  prefixlen 64  scopeid 0x20<link>
    215         ether 7e:ab:29:84:1b:18  txqueuelen 1000  (Ethernet)
    216         RX packets 0  bytes 0 (0.0 B)
    217         RX errors 0  dropped 0  overruns 0  frame 0
    218         TX packets 0  bytes 0 (0.0 B)
    219         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
    220 
    221 }}}
    222 
    223 * Set the IP address of the wwan interface to the once allocated by the MME (192.168.2.2 in this case)
    224 {{{#!shell
    225 root@srv1-in1:~# ifconfig wwp0s20u3i5 192.168.2.2
    226 }}}
     159*
    227160
    228161
    229 ==== Test ====
    230 * You can now communicate with the base station over the air. The data connection can be tested with ping or iperf as below.
    231 {{{#!shell
    232 root@srv1-in1:~# ifconfig wwp0s20u3i5 192.168.2.2
    233 root@srv1-in1:~# ping 192.168.2.1
    234 PING 192.168.2.1 (192.168.2.1) 56(84) bytes of data.
    235 64 bytes from 192.168.2.1: icmp_seq=1 ttl=64 time=146 ms
    236 64 bytes from 192.168.2.1: icmp_seq=2 ttl=64 time=25.0 ms
    237 64 bytes from 192.168.2.1: icmp_seq=3 ttl=64 time=23.9 ms
    238 64 bytes from 192.168.2.1: icmp_seq=4 ttl=64 time=21.9 ms
    239 64 bytes from 192.168.2.1: icmp_seq=5 ttl=64 time=39.9 ms
    240 64 bytes from 192.168.2.1: icmp_seq=6 ttl=64 time=37.9 ms
    241 64 bytes from 192.168.2.1: icmp_seq=7 ttl=64 time=35.9 ms
    242 ^C
    243 --- 192.168.2.1 ping statistics ---
    244 7 packets transmitted, 7 received, 0% packet loss, time 6010ms
    245 rtt min/avg/max/mdev = 21.920/47.296/146.430/41.032 ms
    246 
    247 }}}
    248 
    249 * iperf testing
    250 {{{#!shell
    251 root@sdr2-s1-lg1:~# iperf3 -s -i 1
    252 -----------------------------------------------------------
    253 Server listening on 5201
    254 -----------------------------------------------------------
    255 
    256 }}}
    257 {{{#!shell
    258 root@srv1-in1:~# iperf3 -c 192.168.2.1 -b 10M -i 1 -t 60
    259 Connecting to host 192.168.2.1, port 5201
    260 [  4] local 192.168.2.2 port 34278 connected to 192.168.2.1 port 5201
    261 [ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
    262 [  4]   0.00-1.00   sec   451 KBytes  3.70 Mbits/sec    0   45.2 KBytes
    263 [  4]   1.00-2.00   sec   469 KBytes  3.85 Mbits/sec    0   63.6 KBytes
    264 [  4]   2.00-3.00   sec   708 KBytes  5.80 Mbits/sec    0   84.8 KBytes
    265 [  4]   3.00-4.00   sec   635 KBytes  5.20 Mbits/sec    0    109 KBytes
    266 [  4]   4.00-5.00   sec   638 KBytes  5.22 Mbits/sec    0    129 KBytes
    267 [  4]   5.00-6.00   sec   798 KBytes  6.53 Mbits/sec    0    158 KBytes
    268 [  4]   6.00-7.00   sec   667 KBytes  5.47 Mbits/sec    0    198 KBytes
    269 [  4]   7.00-8.00   sec   643 KBytes  5.27 Mbits/sec    0    260 KBytes
    270 [  4]   8.00-9.00   sec   590 KBytes  4.83 Mbits/sec    0    315 KBytes
    271 [  4]   9.00-10.00  sec   761 KBytes  6.23 Mbits/sec    0    427 KBytes
    272 [  4]  10.00-11.00  sec   908 KBytes  7.44 Mbits/sec    0    581 KBytes
    273 
    274 }}}
     162==== Throughput test ====
    275163
    276164