Merge "Add description of turn off TLS"
[dcaegen2.git] / docs / sections / architecture.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. _architecture:
4
5
6 Architecture
7 ============
8
9 Data Collection Analytics and Events (DCAE) is the primary data collection and analysis system of ONAP. DCAE architecture comprises of DCAE Platform and 
10 DCAE Service components making DCAE flexible, elastic, and expansive enough for supporting the potentially infinite number of ways of constructing intelligent 
11 and automated control loops on distributed and heterogeneous infrastructure. 
12
13 DCAE Platform supports the functions to deploy, host and perform LCM applications of Service components. DCAE Platform components enable model driven deployment of 
14 service components and middleware infrastructures that service components depend upon, such as special storage and computation platforms.  When triggered by an 
15 invocation call (such as CLAMP or via DCAE Dashboard),  DCAE Platform follows the TOSCA model of the control loop that is specified by the triggering call, 
16 interacts with the underlying networking and computing infrastructure such as OpenSatck installations and Kubernetes clusters to deploy and configure the virtual 
17 apparatus (i.e. the collectors, the analytics, and auxiliary microservices) that are needed to form the control loop, at locations that requested.  
18 DCAE Platform also provisions DMaaP topics and manages the distribution scopes of the topics following the prescription of the control loop model by interacting 
19 with controlling function of DMaaP.
20
21 DCAE Service components are the  functional entities that realize the collection and analytics needs of ONAP control loops.  They include the collectors for various 
22 data collection needs, event processors for data standardization,  analytics that assess collected data, and various auxiliary microservices that assist data 
23 collection and analytics, and support other ONAP functions.  Service components and DMaaP buses form the "data plane" for DCAE, where DCAE collected data is 
24 transported among different DCAE service components.
25
26 DCAE use Consul's distributed K-V store service to manage component configurations where each key is based on the unique identity of a DCAE component (identified by ServiceComponentName), and the value is the configuration for the corresponding component. The K-V store for each service components is created during deployment. DCAE platform creates and updates the K-V pairs based on information provided as part of the control loop blueprint deployment, or through a notification/trigger received from other ONAP components such as Policy Framework and CLAMP.  Either through periodically polling or proactive pushing, the DCAE  components get the configuration updates in realtime and apply the configuration updates.  DCAE Platform also offers dynamic template resolution for configuration parameters that are dynamic and only known by the DCAE platform, such as dynamically provisioned DMaaP topics. This approach standardizes component deployment and configuration management for DCAE service components in multi-site deployment.
27
28
29 DCAE Components
30 ---------------
31
32 The following lists the components included in ONAP DCAE .  All DCAE components are offered as Docker containers.  Following ONAP level deployment methods, these components can be deployed as Kubernetes Deployments and Services.  
33
34 - DCAE Platform
35     - Core Platform
36         - Cloudify Manager: TOSCA model executor.  Materializes TOSCA models of control loop, or Blueprints, into properly configured and managed virtual DCAE functional components.
37         - Plugins (K8S, Dmaap, Policy, Clamp, Postgres)
38     - Extended Platform
39         - Configuration Binding Service: Agent for service component configuration fetching; providing configuration parameter resolution.
40         - Deployment Handler: API for triggering control loop deployment based on control loop's TOSCA model.
41         - Policy Handler: Handler for fetching policy updates from Policy engine; and updating the configuration policies of KV entries in Consul cluster KV store for DCAE components.
42         - Service Change Handler: Handler for interfacing with SDC; receiving new TOSCA models; and storing them in DCAE's own inventory.
43         - DCAE Inventory-API: API for DCAE's TOSCA model store.
44     - Platform services
45         - Consul: Distributed service discovery service and KV store.
46         - PNDA: Platform for Network Data Analytics.
47         - Postgres Database: DCAE's TOSCA model store.
48         - Redis Database: DCAE's transactional state store, used by TCA for supporting persistence and seamless scaling.
49
50 - DCAE Services
51     - Collectors
52         - Virtual Event Streaming (VES) collector
53         - SNMP Trap collector
54         - High-Volume VES collector (HV-VES)
55         - DataFile collector
56         - RESTConf collector
57     - Analytics
58         - Holmes correlation analytics
59         - CDAP based Threshold Crosssing Analytics application (tca)
60         - Docker based Threshold Crosssing Analytics
61         - Heartbeat Services
62         - SON-Handler Service
63     - Microservices
64         - PNF Registration Handler
65         - VES Mapper Service
66         - PM-Mapper Service
67         - BBS-EventProcessor Service
68         - PM Subcription Handler
69         
70
71 The figure below shows the DCAE architecture and how the components work with each other.  The components on the right constitute the Platform/controller components which are statically deployed. The components on the right represent the services which can be both deployed statically or dynamically (via CLAMP)
72
73 .. image:: images/R6_architecture_diagram.png
74  
75
76 Deployment Scenarios
77 --------------------
78
79 Because DCAE service components are deployed on-demand following the control loop needs for managing ONAP deployed services, DCAE must support dynamic and on-demand deployment of service components based on ONAP control loop demands.  This is why all other ONAP components are launched from the ONAP level method, DCAE only deploys a subset of its components during this ONAP deployment process and rest of DCAE components will be deployed on-demand based on usecase needs triggered by control loop request originated from CLAMP, or even by operator manually invoking DCAE's deployment API call.
80
81 ONAP supports deployment through OOM Helm Chart currently (Heat deployment support is discontinued since R3). Hence all DCAE Platform components are deployed via Helm charts - this includes Cloudify Manager, ConfigBinding service, ServiceChange Handler, Policy Handler, Dashboard and Inventory, each with corresponding Helm charts under OOM (https://git.onap.org/oom/tree/kubernetes/dcaegen2/components).   Once DCAE platform components are up and running, rest of DCAE service components required for ONAP  flow are deployed via bootstrap POD, which invokes Cloudify Manager API with Blueprints for various DCAE components that are needed for the built-in collections and control loops flow support.  
82
83 To keep the ONAP footprint minimal, only minimal set of MS (required for ONAP Integration usecases) are deployed via bootstrap pod. Rest of service blueprints are available for operator to deploy on-demand as required. 
84
85 The PNDA platform service is an optional component that can be installed when using the OOM Helm Chart installation method on Openstack based Kubernetes infrastructure.
86
87 More details of the DCAE deployment can be found under Installation section.
88
89
90 Usage Scenarios
91 ---------------
92
93 For ONAP  DCAE participates in the following use cases.
94
95 - vDNS:  VES collector, TCA analytics
96
97 - vFW:  VES collector, TCA analytics, PNDA based analytics
98
99 - vCPE:  VES collector, TCA analytics
100
101 - vVoLTE:  VES collector, Holmes analytics
102
103 - CCVPN :  RestConf Collector, Holmes
104
105 - BBS : VES Collector, PRH, BBS-Event Processor, VES-Mapper, RESTConf Collector
106
107 - 5g Bulk PM : DataFile Collector, PM-Mapper, HV-VES 
108  
109
110 In addition, DCAE supports on-demand deployment and configuration of service components via CLAMP.  In such case CLAMP invokes the deployment and configuration of additional TCA instances.
111