ClosedLoop Setup
Apart from the components mentioned in Manual Configurations, below components are needed to complete a closed loop.
1. VES Collector
VES collector receives the PM data from RAN simulator and posts it in message router.
Sample Fileready notification received from RAN-Simulator:
2. Datafile Collector
Datafile Collector reads the File Ready VES notifications from the message router. It fetches the PM file from the simulator using the FTP/SFTP location in the notification and places it in the data router. PM Mapper reads this PM file (xml format).
Refer DataFile Collector (5G Usecase) for the set up
3. PM Mapper
PM Mapper should be in running state.
This component reads the PM data file(xml) from the data router, generates PM events (json format) and posts the message at the topic org.onap.dmaap.mr.PERFORMANCE_MEASUREMENTS. This topic is created during the start up of PM-Mapper.
Slice Analysis MS reads the data from this topic and further does the analysis on it.
Refer PM-Mapper (5G Usecase) for PM Mapper set up.
4. Slice Analysis MS
Refer DCAE R7 Slice Analysis MS (Network Slicing Usecase) for Slice Analysis MS set up.
Policies for Slice Analysis MS:
Execute these curl requests from any of the running pods.
Policy Creation:
curl -k --silent --user 'healthcheck:zb!XztG34' -X POST "https://policy-api:6969/policy/api/v1/policytypes/onap.policies.controlloop.operational.common.Drools/versions/1.0.0/policies" -H "Accept: application/json" -H "Content-Type: application/json" -d @modifynssi.json
where modifynssi.json is,
SLA MS - Policy
|
To push the policy:
curl --silent -k --user 'healthcheck:zb!XztG34' -X POST "https://policy-pap:6969/policy/pap/v1/pdps/policies" -H "Accept: application/json" -H "Content-Type: application/json" -d @push_modifynssi.json
where push_modifynssi.json is,
SLA MS - Push the Policy
|
5. Sample Data
This data should be preloaded to test the closed loop part. The below data are not required to be fed, if the E2E Slice Instantiation is done before.
RAN Simulator:
Log into the RAN-sim DB and run the below sql file in ransim_db.
ransim-db-closed-loop-sample-data.sql
Config DB:
Run the script as below to preload the config DB data for closed loop. Correct the port in the script, if Config DB running in a different port.
./configdb_requests_script_closedloop.sh <IP of the host machine in which Config DB>
configdb_requests_script_closedloop.sh