blob: 49d498955e18c502fcf645b4425306b9b4c320dd [file] [log] [blame]
Ron Shachame7dfeb82020-04-24 14:46:48 -04001
2==================================================================================
Ron Shachame7dfeb82020-04-24 14:46:48 -04003 Copyright (c) 2020 AT&T Intellectual Property.
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16==================================================================================
17
E. Scott Danielsf7b69b82020-04-28 14:17:08 -040018Traffic Steering
Ron Shacham394029b2020-06-02 13:48:42 -040019================
Ron Shachame7dfeb82020-04-24 14:46:48 -040020
E. Scott Danielsf7b69b82020-04-28 14:17:08 -040021This repository contains the source for the RIC traffic steering application.
Ron Shacham394029b2020-06-02 13:48:42 -040022
Alexandre Huffb86721b2021-05-28 13:32:02 -030023This xApp can be onboarded through the xApp Onboarder. The xapp descriptor
Ron Shacham394029b2020-06-02 13:48:42 -040024is under the xapp-descriptor/ directory.
25
26Then the xapp can be deployed through the App Manager.
27
28In order for Traffic Steering xApp to carry out the Traffic Steering Use Case,
29the following needs to be done:
30* QP xApp needs to be onboarded and deployed (see xapp descriptor in that repo)
31* QP Driver xApp needs to be onboarded and deployed (see xapp descriptor in that repo)
Alexandre Huffb86721b2021-05-28 13:32:02 -030032* SDL must contain network data which required by the QP Driver xApp
Ron Shacham394029b2020-06-02 13:48:42 -040033
34Mock network data
35=================
36
Alexandre Huffb86721b2021-05-28 13:32:02 -030037KPIMON xApp is in charge of collecting RAN metrics and write to SDL.
Ron Shacham394029b2020-06-02 13:48:42 -040038
Alexandre Huffb86721b2021-05-28 13:32:02 -030039However, the Traffic Steering Use Case can be run with mock data. Everything needed to write this
Ron Shacham394029b2020-06-02 13:48:42 -040040mock data is included in this repo. Directions are as follows:
41
42cd test/populatedb
43
44chmod a+x populate_db.sh
45
46./populate_db.sh
47
48This script will build a docker image locally and also install a helm chart in the kubernetes cluster to run the image.
49
50The code that is run will write the necessary data to SDL
51
Alexandre Huffb86721b2021-05-28 13:32:02 -030052Mock applications (Release D)
53=============================
54
55There are sample applications in the test/app/ directory that demonstrate a dummy message exchange
56among AD, QP Driver, QP, and TS xApps. Currently, there is no Dockerfile to run those mock applications,
57but they can be built according to the following:
58
591. Build the TS xApp
602. $cd test/app/
613. $cmake -S . -B build
624. $cd build/
635. $make
64
65Run xApps in the following order:
661. TS xApp
672. qp_xapp
683. ad_xapp
69
70There is an additional application that mocks a Rest server to demonstrate all control messages
71issued by the TS xApp. It is implemented in Python and echoes all messages it receives. This
72application is located at the test/app directory.