srsran / oran-sc-ric

Simplified ORAN SC RIC with improved usability and xApp examples
GNU Affero General Public License v3.0
16 stars 2 forks source link

The "simple_xapp.py" has no effect on the dl_throughput of the UE #21

Open Amjed468 opened 4 days ago

Amjed468 commented 4 days ago

Dear community, I have been able to test the srsRAN project with the oran-sc-ric. The KPM xApps work fine. I am trying to check the functionality of the control xApps likes simple_xApp.py. This xApp work fine also but I haven't notice any change in the Dl throughput as this xApp suppose to adjusts the number of DL PRBs available for allocation to a UE.

labadmin@labadmin:~/oran-sc-ric$ docker compose exec python_xapp_runner ./simple_xapp.py WARN[0000] /home/labadmin/oran-sc-ric/docker-compose.yml: version is obsolete 1719845965563 253/RMR [INFO] ric message routing library on SI95 p=4560 mv=3 flg=00 id=a (f447e29 4.9.4 built: Dec 13 2023) Subscribe to E2 node ID: gnb_001_001_00019b, RAN func: e2sm_kpm, Report Style: 4, metrics: ['DRB.RlcSduTransmittedVolumeDL'] Successfully subscribed with Subscription ID: 2ieLCEmJAMSu4VwwqkjmDakmRjX Received Subscription ID to E2EventInstanceId mapping: 2ieLCEmJAMSu4VwwqkjmDakmRjX -> 13 {'response': 'OK', 'status': 200, 'payload': '{}', 'ctype': 'application/json', 'attachment': None, 'mode': 'plain'} 10.0.2.13 - - [01/Jul/2024 14:59:26] "POST /ric/v1/subscriptions/response HTTP/1.1" 200 - Data Monitoring: E2SM_KPM RIC Indication Content: -ColletStartTime: 2024-07-01 14:59:27 -Measurements Data: --UE_id: 0 ---granulPeriod: 1000 ---Metric: DRB.RlcSduTransmittedVolumeDL, Value: 3.6 [MB]

Control Logic: Tx Data Stats: UE ID: 0, Max PRB Ratio: n/a, TXed Data [MB]: 3.6

Best Regards

pgawlowicz commented 4 days ago

Did you start any DL traffic?

Amjed468 commented 4 days ago

Yes, I did: Metric: DRB.RlcSduTransmittedVolumeDL, Value: 3.6 [MB]

On Mon, Jul 1, 2024 at 4:05 PM Piotr @.***> wrote:

Did you start any DL traffic?

— Reply to this email directly, view it on GitHub https://github.com/srsran/oran-sc-ric/issues/21#issuecomment-2200411599, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7YSYF2YKSTDU5BGHAQEJCTZKFV5JAVCNFSM6AAAAABKFYROXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBQGQYTCNJZHE . You are receiving this because you authored the thread.Message ID: @.***>

-- Best Regards...

Amjed H. J. MohammedPhD Candidate / University of Glasgow / UK

pgawlowicz commented 4 days ago

could you post the output of the gnb console trace?

pgawlowicz commented 4 days ago

simple_xapp.py changes the PRB number every time the UE receives 20MB of data in DL.

To start DL traffic once the UE is connected:

sudo ip ro add 10.45.0.0/16 via 10.53.1.2
iperf -c 10.45.1.2 -i 1 -t 1000 -u -b 30M

then start the xapp:

docker compose exec python_xapp_runner ./simple_xapp.py

then check the trace in gnb, it should look similar to the one below:

          |--------------------DL---------------------|-------------------------UL------------------------------
 pci rnti | cqi  ri  mcs  brate   ok  nok  (%)  dl_bs | pusch  rsrp  mcs  brate   ok  nok  (%)    bsr     ta  phr
   1 4601 |  15 1.0   28   6.8M  994    0   0%  6.15M |  65.5   ovl   27   233k   98    0   0%      0      0  n/a
   1 4601 |  15 1.0   28   6.8M  993    0   0%  6.15M |  65.5   ovl   27   246k  100    0   0%      0      0  n/a
   1 4601 |  15 1.0   28   6.8M  994    0   0%  6.15M |  65.5   ovl   27   231k  105    0   0%     10      0  n/a
   1 4601 |  15 1.0   28   6.8M  994    0   0%  6.15M |  65.5   ovl   27   245k   99    0   0%      0      0  n/a
   1 4601 |  15 1.0   28   6.8M  994    0   0%  6.15M |  65.5   ovl   27   231k  100    0   0%      0      0  n/a
   1 4601 |  15 1.0   28   6.8M  993    0   0%  6.15M |  65.5   ovl   27   227k  100    0   0%      0      0  n/a
   1 4601 |  15 1.0   28   6.8M  994    0   0%  6.15M |  65.5   ovl   27   238k   99    0   0%      0      0  n/a
   1 4601 |  15 1.0   28    22M  994    0   0%  6.12M |  65.5   ovl   27   235k  100    0   0%     10      0  n/a
   1 4601 |  15 1.0   28    29M  994    0   0%  6.12M |  65.5   ovl   27   229k   98    0   0%      0      0  n/a
   1 4601 |  15 1.0   28    29M  993    0   0%  6.12M |  65.5   ovl   27   230k   98    0   0%      0      0  n/a
   1 4601 |  15 1.0   28    29M  994    0   0%  6.12M |  65.4   ovl   27   227k  100    0   0%      0      0  n/a
Amjed468 commented 4 days ago

Dear Sir, Thanks for your swift reply. The attachment contains the gNB trace, the brate value stuck up with 29 M even when the xApp is running.

Best Regards

On Tue, Jul 2, 2024 at 9:42 AM Piotr @.***> wrote:

simple_xapp.py changes the PRB number every time the UE receives 20MB of data in DL.

To start DL traffic once the UE is connected:

sudo ip ro add 10.45.0.0/16 via 10.53.1.2 iperf -c 10.45.1.2 -i 1 -t 1000 -u -b 30M

then start the xapp:

docker compose exec python_xapp_runner ./simple_xapp.py

then check the trace in gnb, it should look similar to the one below:

      |--------------------DL---------------------|-------------------------UL------------------------------

pci rnti | cqi ri mcs brate ok nok (%) dl_bs | pusch rsrp mcs brate ok nok (%) bsr ta phr 1 4601 | 15 1.0 28 6.8M 994 0 0% 6.15M | 65.5 ovl 27 233k 98 0 0% 0 0 n/a 1 4601 | 15 1.0 28 6.8M 993 0 0% 6.15M | 65.5 ovl 27 246k 100 0 0% 0 0 n/a 1 4601 | 15 1.0 28 6.8M 994 0 0% 6.15M | 65.5 ovl 27 231k 105 0 0% 10 0 n/a 1 4601 | 15 1.0 28 6.8M 994 0 0% 6.15M | 65.5 ovl 27 245k 99 0 0% 0 0 n/a 1 4601 | 15 1.0 28 6.8M 994 0 0% 6.15M | 65.5 ovl 27 231k 100 0 0% 0 0 n/a 1 4601 | 15 1.0 28 6.8M 993 0 0% 6.15M | 65.5 ovl 27 227k 100 0 0% 0 0 n/a 1 4601 | 15 1.0 28 6.8M 994 0 0% 6.15M | 65.5 ovl 27 238k 99 0 0% 0 0 n/a 1 4601 | 15 1.0 28 22M 994 0 0% 6.12M | 65.5 ovl 27 235k 100 0 0% 10 0 n/a 1 4601 | 15 1.0 28 29M 994 0 0% 6.12M | 65.5 ovl 27 229k 98 0 0% 0 0 n/a 1 4601 | 15 1.0 28 29M 993 0 0% 6.12M | 65.5 ovl 27 230k 98 0 0% 0 0 n/a 1 4601 | 15 1.0 28 29M 994 0 0% 6.12M | 65.4 ovl 27 227k 100 0 0% 0 0 n/a

— Reply to this email directly, view it on GitHub https://github.com/srsran/oran-sc-ric/issues/21#issuecomment-2202334884, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7YSYFZYDEGQYPJMTZ2RALLZKJRVZAVCNFSM6AAAAABKFYROXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBSGMZTIOBYGQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Best Regards...

Amjed H. J. MohammedPhD Candidate / University of Glasgow / UK

pengnist commented 3 days ago

Hi @pgawlowicz, thank you for redirecting me to this post.

I was following the direction but still was not able to get the DL throughput controlled. Same as @Amjed468 , the DL data rate stayed at 29M at gNB tracer, and I can also observe the same result on grafana. This result is repeated when trying both simple_xapp and simple_rc_xapp.

pgawlowicz commented 3 days ago

hmm, strange, do you use the newest version of srsgnb and of this repository?

pengnist commented 3 days ago

, do you use the

Yes, I updated both yesterday.

The only change I made was I changed the RLC mode from am to um in srs gnb. I doubt this may not make a difference in the DL control as @Amjed468 is also having the same issue.

Amjed468 commented 3 days ago

I followed the instructions in this document to install the gNB

On Tue, Jul 2, 2024 at 2:58 PM Piotr @.***> wrote:

hmm, strange, do you use the newest version of srsgnb and of this repository?

— Reply to this email directly, view it on GitHub https://github.com/srsran/oran-sc-ric/issues/21#issuecomment-2203267243, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7YSYF4NEIX27QVYSEJB6DDZKKWYFAVCNFSM6AAAAABKFYROXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBTGI3DOMRUGM . You are receiving this because you were mentioned.Message ID: @.***>

-- Best Regards...

Amjed H. J. MohammedPhD Candidate / University of Glasgow / UK

Amjed468 commented 3 days ago

sorry, this link: https://docs.srsran.com/projects/project/en/latest/tutorials/source/near-rt-ric/source/index.html

On Tue, Jul 2, 2024 at 3:05 PM amjed mohammed @.***> wrote:

I followed the instructions in this document to install the gNB

On Tue, Jul 2, 2024 at 2:58 PM Piotr @.***> wrote:

hmm, strange, do you use the newest version of srsgnb and of this repository?

— Reply to this email directly, view it on GitHub https://github.com/srsran/oran-sc-ric/issues/21#issuecomment-2203267243, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7YSYF4NEIX27QVYSEJB6DDZKKWYFAVCNFSM6AAAAABKFYROXSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBTGI3DOMRUGM . You are receiving this because you were mentioned.Message ID: @.***>

-- Best Regards...

Amjed H. J. MohammedPhD Candidate / University of Glasgow / UK

-- Best Regards...

Amjed H. J. MohammedPhD Candidate / University of Glasgow / UK

pengnist commented 3 days ago

I didn't realize there is an instruction in this repo. Same as @Amjed468, I installed everything following the tutorial on the srsRAN website, and all the components are disaggregated on different servers.

pgawlowicz commented 3 days ago

Please use the gnb config from this repository, or enable e2sm_rc module in your gnb config file:

e2:
...
  e2sm_rc_enabled: true             # Enable KPM service module
pengnist commented 3 days ago

Please use the gnb config from this repository, or enable e2sm_rc module in your gnb config file:

e2:
...
  e2sm_rc_enabled: true             # Enable KPM service module

I had it enabled

Amjed468 commented 3 days ago

Thanks, Pengnist,

I already made "e2sm_rc_enabled= true" , I have noticed that by enabled it the xApp log shows the notification of receiving its control message "Received RIC_CONTROL_ACK". But the bit rate in the gNB trace still doesn't change.

Data Monitoring: E2SM_KPM RIC Indication Content: -ColletStartTime: 2024-07-02 14:37:59 -Measurements Data: --UE_id: 0 ---granulPeriod: 1000 ---Metric: DRB.RlcSduTransmittedVolumeDL, Value: 3.6 [MB]

Control Logic: Tx Data Stats: UE ID: 0, Max PRB Ratio: 10, Total TXed Data [MB]: 10.8 10.8 MB of data transmitted to UE --> Switch Max PRB limit --->Send RIC Control Request to E2 node ID: gnb_001_001_00019b for UE ID: 0, PRB_min: 1, PRB_max: 5

Received RIC_CONTROL_ACK Data Monitoring: E2SM_KPM RIC Indication Content: -ColletStartTime: 2024-07-02 14:38:00 -Measurements Data: --UE_id: 0 ---granulPeriod: 1000 ---Metric: DRB.RlcSduTransmittedVolumeDL, Value: 3.6 [MB]

Control Logic: Tx Data Stats: UE ID: 0, Max PRB Ratio: 5, Total TXed Data [MB]: 3.6

pgawlowicz commented 3 days ago

Ok, the stuff is not working correctly in the current release. It will be fixed in the next release.

pengnist commented 3 days ago

Ok, the stuff is not working correctly in the current release. It will be fixed in the next release.

Can I ask which versions/commits of the other components were you using with the working RC xapp?

pgawlowicz commented 3 days ago

our development version of the srsRAN_Project and the oran-sc-ric available here.

pengnist commented 3 days ago

I see. I will wait for the release of the new srsran then.

Thank you for your help!