Difference between revisions of "SrsRAN untuk test 4G"

From OnnoWiki
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
Pada test ini dilakukan simulasi hubungan antara Core Network Open5GS dengan eNB dan srsRAN UE yang berada di komputer terpisah dengan Open5GS.
 +
Ada dua (2) komputer terpisah, dengan IP address berikut,
 +
 +
* 192.168.100.236 menjalankan Open5GS
 +
* 192.168.100.238 menjalankan srsenb (eNB) dan srsue (UE) di satu komputer bersamaan.
 +
 +
Hasil simulasi di perlihatkan di bawah ini.
 +
 +
 
==Screenshot Open5gs menerima sambungan dari srsRAN==
 
==Screenshot Open5gs menerima sambungan dari srsRAN==
  
Line 26: Line 35:
 
  10/12 04:14:26.224: [emm] INFO:    IMSI [510330000012344] (../src/mme/emm-handler.c:242)
 
  10/12 04:14:26.224: [emm] INFO:    IMSI [510330000012344] (../src/mme/emm-handler.c:242)
 
  10/12 04:14:26.224: [emm] INFO:    UTC [2022-10-12T04:14:26] Timezone [0]/DST[0] (../src/mme/emm-handler.c:248)
 
  10/12 04:14:26.224: [emm] INFO:    UTC [2022-10-12T04:14:26] Timezone [0]/DST[0] (../src/mme/emm-handler.c:248)
  10/12 04:14:26.224: [emm] INFO:    LOCAL [2022-10-12T04:14:26] Timezone [0]/DST [0] (../src/mme/emm-handler.c:252)  
+
  10/12 04:14:26.224: [emm] INFO:    LOCAL [2022-10-12T04:14:26] Timezone [0]/DST [0] (../src/mme/emm-handler.c:252)
 +
 
 +
Log di atas adalah hasil catatan yang kita lihat di Open5GS. Cerita yang dapat kita sari-kan dari log di atas, kira-kira sebagai berikut,'
 +
 
 +
* Dalam experimen eNB-S1 berupa srsRAN yang dijalankan pada Ettus B200 dengan IP address 192.168.100.238.
 +
* Pada jam 04:14:24.076 terlihat eNB-S1 yang berupa sebuah BTS (RAN) berhasil connect ke Open5GS. Hal ini terlihat dengan kata-kata "Number of eNB-UEs is now 1"
 +
* Pada jam 04:14:25.924 setelah eNB berhasil tersambung maka akan dibuka sesi di MME Open5GS. Hal ini terlihat dengan kata-kata "Number of MME-Sessions is now 1"
 +
* Setelah eNB connect dan sesi MME berhasil di tambahkan di Open5GS, selanjutnya eNB terbuka untuk menerima sambungan dari smartphone / HP.
 +
* Pada jam 04:14:25.924 terlihat ada request dari IMSI 510330000012344
 +
* Pada jam 04:14:26.224 terlihat dengan jelas bahwa handphone dengan IMSI 510330000012344 berhasil tersambung dengan baik.
 +
 
 +
Sebetulnya sebelum eNB-S1 berhasil connect, eNB-S1 gagal tersambung ke Open5GS. Hal ini terlihat pada jam 04:13:52.288 dan 04:13:52.289 dengan kayanya [Removed] "Number of MME-Sessions is now 0" dan "Number of eNB-UEs is now 0".
  
 
==Screenshot srsRAN ENB saat di jalankan==
 
==Screenshot srsRAN ENB saat di jalankan==
Line 62: Line 82:
 
  User Ox46 connected
 
  User Ox46 connected
  
Di akhir screenshot tampak ada satu user / HP no 0x46 connect.
+
Dalam bahasa yang lebih manusiawi cerita yang terjadi kira-kira sebagai berikut,
  
 +
* Software RAN srsenb di jalankan
 +
* device yang digunakan adalah simulator menggunakan Virtual Radio ZeroMQ
 +
* di akhir screenshot tampak ada satu user / HP no 0x46 connect.
  
 
==Screenshot saat srsRAN UE di jalankan==
 
==Screenshot saat srsRAN UE di jalankan==
Line 72: Line 95:
 
  Active RF plugins: libsrsran_rf_zmq.so Inactive RF plugins:
 
  Active RF plugins: libsrsran_rf_zmq.so Inactive RF plugins:
 
  Reading configuration file ue.conf...
 
  Reading configuration file ue.conf...
 +
 
  Built in Release mode using commit ce8a3cael on branch master.
 
  Built in Release mode using commit ce8a3cael on branch master.
  Opening 1 channels in RF device=zmq with args=tx_port=tcp://*:2001, rx_port=tcp://localhost:2000,id=ue, base_srate=23.0 4e6
+
 +
  Opening 1 channels in RF device=zmq with args=tx_port=tcp://*:2001, rx_port=tcp://localhost:2000,id=ue, base_srate=23.04e6
 
  Supported RF device list: zmq file
 
  Supported RF device list: zmq file
 
  CHx base srate=23.04e6
 
  CHx base srate=23.04e6
 
  CHx id=ue
 
  CHx id=ue
  Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation) CHO rx_port=tcp://localhost:2000
+
  Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
 +
CHO rx_port=tcp://localhost:2000
 
  CHO tx_port=tcp://*:2001
 
  CHO tx_port=tcp://*:2001
 
  Waiting PHY to initialize... done!
 
  Waiting PHY to initialize... done!
 
  Attaching UE...
 
  Attaching UE...
  Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation) Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
+
  Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
  Found Cell: Mode=FDD, PCI-1, PRB=50, Ports=1, CP=Normal, CFO=-0.2 KHz Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation) Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)  
+
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
 +
  Found Cell: Mode=FDD, PCI-1, PRB=50, Ports=1, CP=Normal, CFO=-0.2 KHz
 +
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)
 +
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)  
 
  Found PLMN: Id=51033, TAC=1
 
  Found PLMN: Id=51033, TAC=1
 
  Random Access Transmission: seq=20, tti=341, ra-rnti=0x2
 
  Random Access Transmission: seq=20, tti=341, ra-rnti=0x2
 
  RRC Connected
 
  RRC Connected
  Random Access Complete.
+
  Random Access Complete.     c-rnti=0x46, ta=0
 
  Network attach successful. IP: 10.45.0.8
 
  Network attach successful. IP: 10.45.0.8
nTp) 12/10/2022 4:14:26 TZ:0
+
  nTp) 12/10/2022 4:14:26 TZ:0
c-rnti=0x46, ta=0
+
 
 +
Dalam bahasa yang lebih manusiawi, dapat diceritakan sebagai berikut,
 +
 
 +
* UE srsue dijalankan
 +
* UE beroperasi menggunakan virtual radio ZeroMQ
 +
* UE tersambung ke jaringan celular dengan PLMN 51033
  
 
==Ping Test==
 
==Ping Test==
Line 111: Line 145:
 
  64 bytes from sa-in-f113.1e100.net (74.125.200.113): icmp_seq=15 ttl=52 time=37.5 ms
 
  64 bytes from sa-in-f113.1e100.net (74.125.200.113): icmp_seq=15 ttl=52 time=37.5 ms
 
  64 bytes from sa-in-f113.1e100.net (74.125.200.113): icmp_seq=16 ttl=52 time=42.6 ms
 
  64 bytes from sa-in-f113.1e100.net (74.125.200.113): icmp_seq=16 ttl=52 time=42.6 ms
 +
 +
 +
==Pranala Menarik==
 +
 +
* [[5G]]

Latest revision as of 11:16, 28 December 2022

Pada test ini dilakukan simulasi hubungan antara Core Network Open5GS dengan eNB dan srsRAN UE yang berada di komputer terpisah dengan Open5GS. Ada dua (2) komputer terpisah, dengan IP address berikut,

  • 192.168.100.236 menjalankan Open5GS
  • 192.168.100.238 menjalankan srsenb (eNB) dan srsue (UE) di satu komputer bersamaan.

Hasil simulasi di perlihatkan di bawah ini.


Screenshot Open5gs menerima sambungan dari srsRAN

Screenshot saat EPC Open5gs
10/12 04:13:52.284: [mme] INFO:     ENB_UE_S1AP_ID [2] MME_UE_S1AP_ID [35] TAC [1] CellID [0x17b01] (../src/mme/slap-handler.c:363)
10/12 04:13:52.284: [emm] INFO: [510330000012344] Detach request (../src/mme/emm-sm.c:523)
10/12 04:13:52.288: [mme] INFO: [Removed] Number of MME-Sessions is now 0 (../src/mme/mme-context.c:3558)
10/12 04:13:52.289: [mme] INFO: UE Context Release [Action:2] (../src/mme/slap-handler.c:1453)
10/12 04:13:52.289: [mme] INFO:     ENB_UE_S1AP_ID[2] MME_UE_S1AP_ID[35] (../src/mme/slap-handler.c:1454)
10/12 04:13:52.289: [mme] INFO:     IMSI: [510330000012344] (../src/mme/slap-handler.c:1457)
10/12 04:13:52.289: [mme] INFO: [Removed] Number of eNB-UEs is now 0 (../src/mme/mme-context.c:3544)
10/12 04:14:02.453: [mme] INFO: eNB-S1 [192.168.100.238] connection refused!!! (../src/mme/mme-sm.c:164)
10/12 04:14:02.453: [mme] INFO: [Removed] Number of eNBs is now 0 (../src/mme/mme-context.c:1875)
10/12 04:14:24.076: [mme] INFO: eNB-S1 accepted [192.168.100.238]: 33804 in sl_path module (../src/mme/slap-sctp.c:114)
10/12 04:14:24.076: [mme] INFO: eNB-51 accepted [192.168.100.238] in master_sm module (../src/mme/mme-sm.c:106) 
10/12 04:14:24.076: [mme] INFO: [Added] Number of eNBs is now 1 (../src/mme/mme-context.c:1841)
10/12 04:14:24.077: [mme] INFO: eNB-S1 [192.168.100.238] max_num_of_ostreams : 30 (../src/mme/mme-sm.c:148)
10/12 04:14:25.924: [mme] INFO: InitialUEMessage (../src/mme/slap-handler.c:223)
10/12 04:14:25.924: [mme] INFO: [Added] Number of eNB-UEs is now 1 (../src/mme/mme-context.c:3537)
10/12 04:14:25.924: [mme] INFO:     S_TMSI [G:2,C:1,M_TMSI: 0xef00798b] IMSI: [510330000012344] (../src/mme/slap-handler.c:287)
10/12 04:14:25.924: [mme] INFO:     ENB_UE_S1AP_ID[1] MME_UE_S1AP_ID[36] TAC [1] CellID [0x17b01] (../src/mme/slap-handler.c:363)
10/12 04:14:25.924: [emm] INFO: [510330000012344] Attach request (../src/mme/emm-sm.c:203)
10/12 04:14:25.924: [emm] INFO:     GUTI [G:2,C:1,M_TMSI: 0xef00798b] IMSI [510330000012344] (../src/mme/emm-handler.c:204)
10/12 04:14:25.924: [mme] INFO: [Added] Number of MME-Sessions is now 1 (../src/mme/mme-context.c:3551)
10/12 04:14:26.224: [emm] INFO: [510330000012344] Attach complete (../src/mme/emm-sm.c:1039)
10/12 04:14:26.224: [emm] INFO:     IMSI [510330000012344] (../src/mme/emm-handler.c:242)
10/12 04:14:26.224: [emm] INFO:     UTC [2022-10-12T04:14:26] Timezone [0]/DST[0] (../src/mme/emm-handler.c:248)
10/12 04:14:26.224: [emm] INFO:     LOCAL [2022-10-12T04:14:26] Timezone [0]/DST [0] (../src/mme/emm-handler.c:252)

Log di atas adalah hasil catatan yang kita lihat di Open5GS. Cerita yang dapat kita sari-kan dari log di atas, kira-kira sebagai berikut,'

  • Dalam experimen eNB-S1 berupa srsRAN yang dijalankan pada Ettus B200 dengan IP address 192.168.100.238.
  • Pada jam 04:14:24.076 terlihat eNB-S1 yang berupa sebuah BTS (RAN) berhasil connect ke Open5GS. Hal ini terlihat dengan kata-kata "Number of eNB-UEs is now 1"
  • Pada jam 04:14:25.924 setelah eNB berhasil tersambung maka akan dibuka sesi di MME Open5GS. Hal ini terlihat dengan kata-kata "Number of MME-Sessions is now 1"
  • Setelah eNB connect dan sesi MME berhasil di tambahkan di Open5GS, selanjutnya eNB terbuka untuk menerima sambungan dari smartphone / HP.
  • Pada jam 04:14:25.924 terlihat ada request dari IMSI 510330000012344
  • Pada jam 04:14:26.224 terlihat dengan jelas bahwa handphone dengan IMSI 510330000012344 berhasil tersambung dengan baik.

Sebetulnya sebelum eNB-S1 berhasil connect, eNB-S1 gagal tersambung ke Open5GS. Hal ini terlihat pada jam 04:13:52.288 dan 04:13:52.289 dengan kayanya [Removed] "Number of MME-Sessions is now 0" dan "Number of eNB-UEs is now 0".

Screenshot srsRAN ENB saat di jalankan

srsRAN ENB
CStopping ..
Couldn't stop after 5s. Forcing exit.
Killed

root@srsran:/usr/local/src/srsRAN/srsenb# ../build/srsenb/src/srsenb enb.conf
Active RF plugins: libsrsran_rf_zmq.so
Inactive RF plugins:
--- Software Radio Systems LTE eNodeB ---

Reading configuration file enb.conf...

Built in Release mode using commit ce8a3cael on branch master.
Opening i channels in RF device=zmq with args=fail on disconnect=true, tx port=tcp://*:2000, rx port=tcp://localhost:20 01, id=enb, base_srate=23.046
Supported RF device list: zmg file
CHx base_srate=23.046
CHx id=enb
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
CH0 rx_port=tcp://localhost:2001
CH0 từ port=tcp://*:2000
CH0 fail_on_disconnect=true

==== eNodeB started ===
Type <t> to view trace
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)
Setting frequency: 
DL=1845.0 Mhz, UL=1750.0 MHz for cc_idx=0 nof_prb=50
RACH: tti=341, cc=0, pci-i, preamble=20, offset=0, temp_crnti=0x46
User Ox46 connected

Dalam bahasa yang lebih manusiawi cerita yang terjadi kira-kira sebagai berikut,

  • Software RAN srsenb di jalankan
  • device yang digunakan adalah simulator menggunakan Virtual Radio ZeroMQ
  • di akhir screenshot tampak ada satu user / HP no 0x46 connect.

Screenshot saat srsRAN UE di jalankan

srsRAN UE
root@srsran:/usr/local/src/srsRAN/srsue# ../build/srsue/src/srsue ue.conf
Active RF plugins: libsrsran_rf_zmq.so Inactive RF plugins:
Reading configuration file ue.conf...

Built in Release mode using commit ce8a3cael on branch master.

Opening 1 channels in RF device=zmq with args=tx_port=tcp://*:2001, rx_port=tcp://localhost:2000,id=ue, base_srate=23.04e6
Supported RF device list: zmq file
CHx base srate=23.04e6
CHx id=ue
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
CHO rx_port=tcp://localhost:2000
CHO tx_port=tcp://*:2001
Waiting PHY to initialize... done!
Attaching UE...
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
Current sample rate is 1.92 MHz with a base rate of 23.04 MHz (x12 decimation)
Found Cell: Mode=FDD, PCI-1, PRB=50, Ports=1, CP=Normal, CFO=-0.2 KHz
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation)
Current sample rate is 11.52 MHz with a base rate of 23.04 MHz (x2 decimation) 
Found PLMN: Id=51033, TAC=1
Random Access Transmission: seq=20, tti=341, ra-rnti=0x2
RRC Connected
Random Access Complete.     c-rnti=0x46, ta=0
Network attach successful. IP: 10.45.0.8
  nTp) 12/10/2022 4:14:26 TZ:0

Dalam bahasa yang lebih manusiawi, dapat diceritakan sebagai berikut,

  • UE srsue dijalankan
  • UE beroperasi menggunakan virtual radio ZeroMQ
  • UE tersambung ke jaringan celular dengan PLMN 51033

Ping Test

Ping test dari srsRAN ke Google

srsRAN Ping
root@srsran:/usr/local/src/srsRAN/srsue# ping google.com
64 bytes from sa-in-fl13.1e100.net (74.125.200.113): icmp_seq=4 ttl=52 time=56.0 ms
64 bytes from sa-in-f113.1e100.net (74.125.200.113): icmp_seq=5 ttl=52 time=42.8 ms
64 bytes from sa-in-f113.1e100.net (74.125.200.113): icmp_seq=6 ttl=52 time=49.5 ms
64 bytes from sa-in-f113.1e100.net (74.125.200.113): icmp_seq=1 ttl=52 time=48.2 ms
64 bytes from sa-in-f113.1e100.net (74.125.200.113): icmp_seq=8 ttl=52 time=48.6 ms
64 bytes from sa-in-f113.1e100.net (74.125.200.113): icmp_seq=9 ttl=52 time=45.3 ms
64 bytes from sa-in-f113.1e100.net (74.125.200.113): icmp_seq=10 ttl=52 time=41.8 ms
64 bytes from sa-in-f113.1e100.net (74.125.200.113): icmp_seq=11 ttl=52 time=56.9 ms
64 bytes from sa-in-f113.1e100.net (74.125.200.113): icmp_seq=12 ttl=52 time=40.0 ms
64 bytes from sa-in-f113.1e100.net (74.125.200.113): icmp_seq=13 ttl=52 time=45.1 ms
64 bytes from sa-in-f113.1e100.net (74.125.200.113): icmp_seq=14 ttl=52 time=45.9 ms
64 bytes from sa-in-f113.1e100.net (74.125.200.113): icmp_seq=15 ttl=52 time=37.5 ms
64 bytes from sa-in-f113.1e100.net (74.125.200.113): icmp_seq=16 ttl=52 time=42.6 ms


Pranala Menarik