VNFRQTS Adding License info
[vnfrqts/requirements.git] / docs / Chapter4.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. Copyright 2017 AT&T Intellectual Property.  All rights reserved.
4
5
6 **4. VNF Development Requirements**
7 ====================================
8
9 a. VNF Design
10 ==============
11
12 Services are composed of VNFs and common components and are designed to
13 be agnostic of the location to leverage capacity where it exists in the
14 Network Cloud. VNFs can be instantiated in any location that meets the
15 performance and latency requirements of the service.
16
17 A key design principle for virtualizing services is decomposition of
18 network functions using NFV concepts into granular VNFs. This enables
19 instantiating and customizing only essential functions as needed for the
20 service, thereby making service delivery more nimble. It provides
21 flexibility of sizing and scaling and also provides flexibility with
22 packaging and deploying VNFs as needed for the service. It enables
23 grouping functions in a common cloud data center to minimize
24 inter-component latency. The VNFs should be designed with a goal of
25 being modular and reusable to enable using best-in-breed vendors.
26
27 Section 5.a VNF Design in *VNF Guidelines* describes
28 the overall guidelines for designing VNFs from VNF Components (VNFCs).
29 Below are more detailed requirements for composing VNFs.
30
31 VNF Design Requirements
32
33 * R-58421 The VNF **SHOULD** be decomposed into granular re-usable VNFCs.
34 * R-82223 The VNF **MUST** be decomposed if the functions have significantly different scaling characteristics (e.g., signaling versus media functions, control versus data plane functions).
35 * R-16496 The VNF **MUST** enable instantiating only the functionality that is needed for the decomposed VNF (e.g., if transcoding is not needed it should not be instantiated).
36 * R-02360 The VNFC **MUST** be designed as a standalone, executable process.
37 * R-34484 The VNF **SHOULD** create a single component VNF for VNFCs that can be used by other VNFs.
38 * R-23035 The VNF **MUST** be designed to scale horizontally (more instances of a VNF or VNFC) and not vertically (moving the existing instances to larger VMs or increasing the resources within a VM) to achieve effective utilization of cloud resources.
39 * R-30650 The VNF **MUST** utilize cloud provided infrastructure and VNFs (e.g., virtualized Local Load Balancer) as part of the VNF so that the cloud can manage and provide a consistent service resiliency and methods across all VNF's.
40 * R-12709 The VNFC **SHOULD** be independently deployed, configured, upgraded, scaled, monitored, and administered by ONAP.
41 * R-37692 The VNFC **MUST** provide API versioning to allow for independent upgrades of VNFC.
42 * R-86585 The VNFC **SHOULD** minimize the use of state within a VNFC to facilitate the movement of traffic from one instance to another.
43 * R-65134 The VNF **SHOULD** maintain state in a geographically redundant datastore that may, in fact, be its own VNFC.
44 * R-75850 The VNF **SHOULD** decouple persistent data from the VNFC and keep it in its own datastore that can be reached by all instances of the VNFC requiring the data.
45 * R-88199 The VNF **MUST** utilize a persistent datastore service that can meet the data performance/latency requirements. (For example: Datastore service could be a VNFC in VNF or a DBaaS in the Cloud execution environment)
46 * R-99656 The VNF **MUST** NOT terminate stable sessions if a VNFC instance fails.
47 * R-84473 The VNF **MUST** enable DPDK in the guest OS for VNF’s requiring high packets/sec performance.  High packet throughput is defined as greater than 500K packets/sec.
48 * R-54430 The VNF **MUST** use the NCSP’s supported library and compute flavor that supports DPDK to optimize network efficiency if using DPDK. [1]_
49 * R-18864 The VNF **MUST** NOT use technologies that bypass virtualization layers (such as SR-IOV) unless approved by the NCSP (e.g., if necessary to meet functional or performance requirements).
50 * R-64768 The VNF **MUST** limit the size of application data packets to no larger than 9000 bytes for SDN network-based tunneling when guest data packets are transported between tunnel endpoints that support guest logical networks.
51 * R-74481 The VNF **MUST** NOT require the use of a dynamic routing protocol unless necessary to meet functional requirements.
52
53 b. VNF Resiliency
54 =================
55
56 The VNF is responsible for meeting its resiliency goals and must factor
57 in expected availability of the targeted virtualization environment.
58 This is likely to be much lower than found in a traditional data center.
59 Resiliency is defined as the ability of the VNF to respond to error
60 conditions and continue to provide the service intended. A number of
61 software resiliency dimensions have been identified as areas that should
62 be addressed to increase resiliency. As VNFs are deployed into the
63 Network Cloud, resiliency must be designed into the VNF software to
64 provide high availability versus relying on the Network Cloud to achieve
65 that end.
66
67 Section 5.a Resiliency in *VNF Guidelines* describes
68 the overall guidelines for designing VNFs to meet resiliency goals.
69 Below are more detailed resiliency requirements for VNFs.
70
71 All Layer Redundancy
72 --------------------
73
74 Design the VNF to be resilient to the failures of the underlying
75 virtualized infrastructure (Network Cloud). VNF design considerations
76 would include techniques such as multiple vLANs, multiple local and
77 geographic instances, multiple local and geographic data replication,
78 and virtualized services such as Load Balancers.
79
80
81 All Layer Redundancy Requirements
82
83 * R-52499 The VNF **MUST** meet their own resiliency goals and not rely on the Network Cloud.
84 * R-42207 The VNF **MUST** design resiliency into a VNF such that the resiliency deployment model (e.g., active-active) can be chosen at run-time.
85 * R-03954 The VNF **MUST** survive any single points of failure within the Network Cloud (e.g., virtual NIC, VM, disk failure).
86 * R-89010 The VNF **MUST** survive any single points of software failure internal to the VNF (e.g., in memory structures, JMS message queues).
87 * R-67709 The VNF **MUST** be designed, built and packaged to enable deployment across multiple fault zones (e.g., VNFCs deployed in different servers, racks, OpenStack regions, geographies) so that in the event of a planned/unplanned downtime of a fault zone, the overall operation/throughput of the VNF is maintained.
88 * R-35291 The VNF **MUST** support the ability to failover a VNFC automatically to other geographically redundant sites if not deployed active-active to increase the overall resiliency of the VNF.
89 * R-36843 The VNF **MUST** support the ability of the VNFC to be deployable in multi-zoned cloud sites to allow for site support in the event of cloud zone failure or upgrades.
90
91 Minimize Cross Data-Center Traffic
92 ----------------------------------
93
94 Avoid performance-sapping data center-to-data center replication delay
95 by applying techniques such as caching and persistent transaction paths
96 - Eliminate replication delay impact between data centers by using a
97 concept of stickiness (i.e., once a client is routed to data center "A",
98 the client will stay with Data center “A” until the entire session is
99 completed).
100
101 Minimize Cross Data-Center Traffic Requirements
102
103 * R-92935 The VNF **SHOULD** minimize the propagation of state information across multiple data centers to avoid cross data center traffic.
104
105 Application Resilient Error Handling
106 ------------------------------------
107
108 Ensure an application communicating with a downstream peer is equipped
109 to intelligently handle all error conditions. Make sure code can handle
110 exceptions seamlessly - implement smart retry logic and implement
111 multi-point entry (multiple data centers) for back-end system
112 applications.
113
114 Application Resilient Error Handling Requirements
115
116 * R-26371 The VNF **MUST** detect connectivity failure for inter VNFC instance and intra/inter VNF and re-establish connectivity automatically to maintain the VNF without manual intervention to provide service continuity.
117 * R-18725 The VNF **MUST** handle the restart of a single VNFC instance without requiring all VNFC instances to be restarted.
118 * R-06668 The VNF **MUST** handle the start or restart of VNFC instances in any order with each VNFC instance establishing or re-establishing required connections or relationships with other VNFC instances and/or VNFs required to perform the VNF function/role without requiring VNFC instance(s) to be started/restarted in a particular order.
119 * R-80070 The VNF **MUST** handle errors and exceptions so that they do not interrupt processing of incoming VNF requests to maintain service continuity.
120 * R-32695 The VNF **MUST** provide the ability to modify the number of retries, the time between retries and the behavior/action taken after the retries have been exhausted for exception handling to allow the NCSP to control that behavior.
121 * R-48356 The VNF **MUST** fully exploit exception handling to the extent that resources (e.g., threads and memory) are released when no longer needed regardless of programming language.
122 * R-67918 The VNF **MUST** handle replication race conditions both locally and geo-located in the event of a data base instance failure to maintain service continuity.
123 * R-36792 The VNF **MUST** automatically retry/resubmit failed requests made by the software to its downstream system to increase the success rate.
124
125
126 System Resource Optimization
127 ----------------------------
128
129 Ensure an application is using appropriate system resources for the task
130 at hand; for example, do not use network or IO operations inside
131 critical sections, which could end up blocking other threads or
132 processes or eating memory if they are unable to complete. Critical
133 sections should only contain memory operation, and should not contain
134 any network or IO operation.
135
136
137 System Resource Optimization Requirements
138
139 * R-22059 The VNF **MUST NOT** execute long running tasks (e.g., IO, database, network operations, service calls) in a critical section of code, so as to minimize blocking of other operations and increase concurrent throughput.
140 * R-63473 The VNF **MUST** automatically advertise newly scaled components so there is no manual intervention required.
141 * R-74712 The VNF **MUST** utilize FQDNs (and not IP address) for both Service Chaining and scaling.
142 * R-41159 The VNF **MUST** deliver any and all functionality from any VNFC in the pool. The VNFC pool member should be transparent to the client. Upstream and downstream clients should only recognize the function being performed, not the member performing it.
143 * R-85959 The VNF **SHOULD** automatically enable/disable added/removed sub-components or component so there is no manual intervention required.
144 * R-06885 The VNF **SHOULD** support the ability to scale down a VNFC pool without jeopardizing active sessions. Ideally, an active session should not be tied to any particular VNFC instance.
145 * R-12538 The VNF **SHOULD** support load balancing and discovery mechanisms in resource pools containing VNFC instances.
146 * R-98989 The VNF **SHOULD** utilize resource pooling (threads, connections, etc.) within the VNF application so that resources are not being created and destroyed resulting in resource management overhead.
147 * R-55345 The VNF **SHOULD** use techniques such as “lazy loading” when initialization includes loading catalogues and/or lists which can grow over time, so that the VNF startup time does not grow at a rate proportional to that of the list.
148 * R-35532 The VNF **SHOULD** release and clear all shared assets (memory, database operations, connections, locks, etc.) as soon as possible, especially before long running sync and asynchronous operations, so as to not prevent use of these assets by other entities.
149
150
151 Application Configuration Management
152 ------------------------------------
153
154 Leverage configuration management audit capability to drive conformity
155 to develop gold configurations for technologies like Java, Python, etc.
156
157 Application Configuration Management Requirements
158
159 * R-77334 The VNF **MUST** allow configurations and configuration parameters to be managed under version control to ensure consistent configuration deployment, traceability and rollback.
160 * R-99766 The VNF **MUST** allow configurations and configuration parameters to be managed under version control to ensure the ability to rollback to a known valid configuration.
161 * R-73583 The VNF **MUST** allow changes of configuration parameters to be consumed by the VNF without requiring the VNF or its sub-components to be bounced so that the VNF availability is not effected.
162
163
164 Intelligent Transaction Distribution & Management
165 -------------------------------------------------
166
167 Leverage Intelligent Load Balancing and redundant components (hardware
168 and modules) for all transactions, such that at any point in the
169 transaction: front end, middleware, back end -- a failure in any one
170 component does not result in a failure of the application or system;
171 i.e., transactions will continue to flow, albeit at a possibly reduced
172 capacity until the failed component restores itself. Create redundancy
173 in all layers (software and hardware) at local and remote data centers;
174 minimizing interdependencies of components (i.e. data replication,
175 deploying non-related elements in the same container).
176
177 Intelligent Transaction Distribution & Management Requirements
178
179 * R-21558 The VNF **SHOULD** use intelligent routing by having knowledge of multiple downstream/upstream endpoints that are exposed to it, to ensure there is no dependency on external services (such as load balancers) to switch to alternate endpoints.
180 * R-08315 The VNF **SHOULD** use redundant connection pooling to connect to any backend data source that can be switched between pools in an automated/scripted fashion to ensure high availability of the connection to the data source.
181 * R-27995 The VNF **SHOULD** include control loop mechanisms to notify the consumer of the VNF of their exceeding SLA thresholds so the consumer is able to control its load against the VNF.
182
183 Deployment Optimization
184 -----------------------
185
186 Reduce opportunity for failure, by human or by machine, through smarter
187 deployment practices and automation. This can include rolling code
188 deployments, additional testing strategies, and smarter deployment
189 automation (remove the human from the mix).
190
191 Deployment Optimization Requirements
192
193 * R-73364 The VNF **MUST** support at least two major versions of the VNF software and/or sub-components to co-exist within production environments at any time so that upgrades can be applied across multiple systems in a staggered manner.
194 * R-02454 The VNF **MUST** support the existence of multiple major/minor versions of the VNF software and/or sub-components and interfaces that support both forward and backward compatibility to be transparent to the Service Provider usage.
195 * R-57855 The VNF **MUST** support hitless staggered/rolling deployments between its redundant instances to allow "soak-time/burn in/slow roll" which can enable the support of low traffic loads to validate the deployment prior to supporting full traffic loads.
196 * R-64445 The VNF **MUST** support the ability of a requestor of the service to determine the version (and therefore capabilities) of the service so that Network Cloud Service Provider can understand the capabilities of the service.
197 * R-56793 The VNF **MUST** test for adherence to the defined performance budgets at each layer, during each delivery cycle with delivered results, so that the performance budget is measured and the code is adjusted to meet performance budget.
198 * R-77667 The VNF **MUST** test for adherence to the defined performance budget at each layer, during each delivery cycle so that the performance budget is measured and feedback is provided where the performance budget is not met.
199 * R-49308 The VNF **SHOULD** test for adherence to the defined resiliency rating recommendation at each layer, during each delivery cycle with delivered results, so that the resiliency rating is measured and the code is adjusted to meet software resiliency requirements.
200 * R-16039 The VNF **SHOULD** test for adherence to the defined resiliency rating recommendation at each layer, during each delivery cycle so that the resiliency rating is measured and feedback is provided where software resiliency requirements are not met.
201
202 Monitoring & Dashboard
203 ----------------------
204
205 Promote dashboarding as a tool to monitor and support the general
206 operational health of a system. It is critical to the support of the
207 implementation of many resiliency patterns essential to the maintenance
208 of the system. It can help identify unusual conditions that might
209 indicate failure or the potential for failure. This would contribute to
210 improve Mean Time to Identify (MTTI), Mean Time to Repair (MTTR), and
211 post-incident diagnostics.
212
213 Monitoring & Dashboard Requirements
214
215 * R-34957 The VNF **MUST** provide a method of metrics gathering for each layer's performance to identify/document variances in the allocations so they can be addressed.
216 * R-49224 The VNF **MUST** provide unique traceability of a transaction through its life cycle to ensure quick and efficient troubleshooting.
217 * R-52870 The VNF **MUST** provide a method of metrics gathering and analysis to evaluate the resiliency of the software from both a granular as well as a holistic standpoint. This includes, but is not limited to thread utilization, errors, timeouts, and retries.
218 * R-92571 The VNF **MUST** provide operational instrumentation such as logging, so as to facilitate quick resolution of issues with the VNF to provide service continuity.
219 * R-48917 The VNF **MUST** monitor for and alert on (both sender and receiver) errant, running longer than expected and missing file transfers, so as to minimize the impact due to file transfer errors.
220 * R-28168 The VNF **SHOULD** use an appropriately configured logging level that can be changed dynamically, so as to not cause performance degradation of the VNF due to excessive logging.
221 * R-87352 The VNF **SHOULD** utilize Cloud health checks, when available from the Network Cloud, from inside the application through APIs to check the network connectivity, dropped packets rate, injection, and auto failover to alternate sites if needed.
222 * R-16560 The VNF **MUST** conduct a resiliency impact assessment for all inter/intra-connectivity points in the VNF to provide an overall resiliency rating for the VNF to be incorporated into the software design and development of the VNF.
223
224 c. VNF Security
225 ===============
226
227 The objective of this section is to provide the key security
228 requirements that need to be met by VNFs. The security requirements are
229 grouped into five areas as listed below. Other security areas will be
230 addressed in future updates. These security requirements are applicable
231 to all VNFs. Additional security requirements for specific types of VNFs
232 will be applicable and are outside the scope of these general
233 requirements.
234
235 Section 5.a Security in *VNF Guidelines* outlines
236 the five broad security areas for VNFs that are detailed in the
237 following sections:
238
239 -  **VNF General Security**: This section addresses general security
240    requirements for the VNFs that the VNF provider will need to address.
241
242 -  **VNF Identity and Access Management**: This section addresses
243    security requirements with respect to Identity and Access Management
244    as these pertain to generic VNFs.
245
246 -  **VNF API Security**: This section addresses the generic security
247    requirements associated with APIs. These requirements are applicable
248    to those VNFs that use standard APIs for communication and data
249    exchange.
250
251 -  **VNF Security Analytics**: This section addresses the security
252    requirements associated with analytics for VNFs that deal with
253    monitoring, data collection and analysis.
254
255 -  **VNF Data Protection**: This section addresses the security
256    requirements associated with data protection.
257
258 VNF General Security Requirements
259 ---------------------------------
260
261 This section provides details on the VNF general security requirements
262 on various security areas such as user access control, network security,
263 ACLs, infrastructure security, and vulnerability management. These
264 requirements cover topics associated with compliance, security patching,
265 logging/accounting, authentication, encryption, role-based access
266 control, least privilege access/authorization. The following security
267 requirements need to be met by the solution in a virtual environment:
268
269 General Security Requirements
270
271 Integration and operation within a robust security environment is necessary and expected. The security architecture will include one or more of the following: IDAM (Identity and Access Management) for all system and applications access, Code scanning, network vulnerability scans, OS, Database and application patching, malware detection and cleaning, DDOS prevention, network security gateways (internal and external) operating at various layers, host and application based tools for security compliance validation, aggressive security patch application, tightly controlled software distribution and change control processes and other state of the art security solutions. The VNF is expected to function reliably within such an environment and the developer is expected to understand and accommodate such controls and can expected to supply responsive interoperability support and testing throughout the product’s lifecycle.
272
273 * R-23740 The VNF **MUST** accommodate the security principle of “least privilege” during development, implementation and operation. The importance of “least privilege” cannot be overstated and must be observed in all aspects of VNF development and not limited to security. This is applicable to all sections of this document.
274 * R-61354 The VNF **MUST** implement access control list for OA&M services (e.g., restricting access to certain ports or applications).
275 * R-85633 The VNF **MUST** implement Data Storage Encryption (database/disk encryption) for Sensitive Personal Information (SPI) and other subscriber identifiable data. Note: subscriber’s SPI/data must be encrypted at rest, and other subscriber identifiable data should be encrypted at rest. Other data protection requirements exist and should be well understood by the developer.
276 * R-92207 The VNF **SHOULD** implement a mechanism for automated and frequent "system configuration (automated provisioning / closed loop)" auditing.
277 * R-23882 The VNF **SHOULD** be scanned using both network scanning and application scanning security tools on all code, including underlying OS and related configuration. Scan reports shall be provided. Remediation roadmaps shall be made available for any findings.
278 * R-46986 The VNF **SHOULD** have source code scanned using scanning tools (e.g., Fortify) and provide reports.
279 * R-55830 The VNF **MUST** distribute all production code from NCSP internal sources only. No production code, libraries, OS images, etc. shall be distributed from publically accessible depots.
280 * R-99771 The VNF **MUST** provide all code/configuration files in a "Locked down" or hardened state or with documented recommendations for such hardening. All unnecessary services will be disabled. VNF provider default credentials, community strings and other such artifacts will be removed or disclosed so that they can be modified or removed during provisioning.
281 * R-19768 The VNF **SHOULD** support L3 VPNs that enable segregation of traffic by application (dropping packets not belonging to the VPN) (i.e., AVPN, IPSec VPN for Internet routes).
282 * R-33981 The VNF **SHOULD** interoperate with various access control mechanisms for the Network Cloud execution environment (e.g., Hypervisors, containers).
283 * R-40813 The VNF **SHOULD** support the use of virtual trusted platform module, hypervisor security testing and standards scanning tools.
284 * R-56904 The VNF **MUST** interoperate with the ONAP (SDN) Controller so that it can dynamically modify the firewall rules, ACL rules, QoS rules, virtual routing and forwarding rules.
285 * R-26586 The VNF **SHOULD** support the ability to work with aliases (e.g., gateways, proxies) to protect and encapsulate resources.
286 * R-49956 The VNF **MUST** pass all access to applications (Bearer, signaling and OA&M) through various security tools and platforms from ACLs, stateful firewalls and application layer gateways depending on manner of deployment. The application is expected to function (and in some cases, interwork) with these security tools.
287 * R-69649 The VNF **MUST** have all vulnerabilities patched as soon as possible. Patching shall be controlled via change control process with vulnerabilities disclosed along with mitigation recommendations.
288 * R-78010 The VNF **MUST** use the NCSP’s IDAM API for Identification, authentication and access control of customer or VNF application users.
289 * R-42681 The VNF **MUST** use the NCSP’s IDAM API or comply with the requirements if not using the NCSP’s IDAM API, for identification, authentication and access control of OA&M and other system level functions.
290 * R-68589 The VNF **MUST**, if not using the NCSP’s IDAM API, support User-IDs and passwords to uniquely identify the user/application. VNF needs to have appropriate connectors to the Identity, Authentication and Authorization systems that enables access at OS, Database and Application levels as appropriate.
291 * R-52085 The VNF **MUST**, if not using the NCSP’s IDAM API, provide the ability to support Multi-Factor Authentication (e.g., 1st factor = Software token on device (RSA SecureID); 2nd factor = User Name+Password, etc.) for the users.
292 * R-98391 The VNF **MUST**, if not using the NCSP’s IDAM API, support Role-Based Access Control to permit/limit the user/application to performing specific activities.
293 * R-63217 The VNF **MUST**, if not using the NCSP’s IDAM API, support logging via ONAP for a historical view of “who did what and when”.
294 * R-62498 The VNF **MUST**, if not using the NCSP’s IDAM API, encrypt OA&M access (e.g., SSH, SFTP).
295 * R-79107 The VNF **MUST**, if not using the NCSP’s IDAM API, enforce a configurable maximum number of Login attempts policy for the users. VNF provider must comply with "terminate idle sessions" policy. Interactive sessions must be terminated, or a secure, locking screensaver must be activated requiring authentication, after a configurable period of inactivity. The system-based inactivity timeout for the enterprise identity and access management system must also be configurable.
296 * R-35144 The VNF **MUST**, if not using the NCSP’s IDAM API, comply with the NCSP’s credential management policy.
297 * R-75041 The VNF **MUST**, if not using the NCSP’s IDAM API, expire passwords at regular configurable intervals.
298 * R-46908 The VNF **MUST**, if not using the NCSP’s IDAM API, comply with "password complexity" policy. When passwords are used, they shall be complex and shall at least meet the following password construction requirements: (1) be a minimum configurable number of characters in length, (2) include 3 of the 4 following types of characters: upper-case alphabetic, lower-case alphabetic, numeric, and special, (3) not be the same as the UserID with which they are associated or other common strings as specified by the environment, (4) not contain repeating or sequential characters or numbers, (5) not to use special characters that may have command functions, and (6) new passwords must not contain sequences of three or more characters from the previous password.
299 * R-39342 The VNF **MUST**, if not using the NCSP’s IDAM API, comply with "password changes (includes default passwords)" policy. Products will support password aging, syntax and other credential management practices on a configurable basis.
300 * R-40521 The VNF **MUST**, if not using the NCSP’s IDAM API, support use of common third party authentication and authorization tools such as TACACS+, RADIUS.
301 * R-41994 The VNF **MUST**, if not using the NCSP’s IDAM API, comply with "No Self-Signed Certificates" policy. Self-signed certificates must be used for encryption only, using specified and approved encryption protocols such as TLS 1.2 or higher or equivalent security protocols such as IPSec, AES.
302 * R-23135 The VNF **MUST**, if not using the NCSP’s IDAM API, authenticate system to system communications where one system accesses the resources of another system, and must never conceal individual accountability.
303
304 VNF Identity and Access Management Requirements
305 -----------------------------------------------
306
307 The following security requirements for logging, identity, and access
308 management need to be met by the solution in a virtual environment:
309
310
311 Identity and Access Management Requirements
312
313 * R-95105 The VNF **MUST** host connectors for access to the application layer.
314 * R-45496 The VNF **MUST** host connectors for access to the OS (Operating System) layer.
315 * R-05470 The VNF **MUST** host connectors for access to the database layer.
316 * R-99174 The VNF **MUST** comply with Individual Accountability (each person must be assigned a unique ID) when persons or non-person entities access VNFs.
317 * R-42874 The VNF **MUST** comply with Least Privilege (no more privilege than required to perform job functions) when persons or non-person entities access VNFs.
318 * R-71787 The VNF **MUST** comply with Segregation of Duties (access to a single layer and no developer may access production without special oversight) when persons or non-person entities access VNFs.
319 * R-86261 The VNF **MUST NOT** allow VNF provider access to VNFs remotely.
320 * R-49945 The VNF **MUST** authorize VNF provider access through a client application API by the client application owner and the resource owner of the VNF before provisioning authorization through Role Based Access Control (RBAC), Attribute Based Access Control (ABAC), or other policy based mechanism.
321 * R-31751 The VNF **MUST** subject VNF provider access to privilege reconciliation tools to prevent access creep and ensure correct enforcement of access policies.
322 * R-34552 The VNF **MUST** provide or support the Identity and Access Management (IDAM) based threat detection data for OWASP Top 10.
323 * R-29301 The VNF **MUST** provide or support the Identity and Access Management (IDAM) based threat detection data for Password Attacks.
324 * R-72243 The VNF **MUST** provide or support the Identity and Access Management (IDAM) based threat detection data for Phishing / SMishing.
325 * R-58998 The VNF **MUST** provide or support the Identity and Access Management (IDAM) based threat detection data for Malware (Key Logger).
326 * R-14025 The VNF **MUST** provide or support the Identity and Access Management (IDAM) based threat detection data for Session Hijacking.
327 * R-31412 The VNF **MUST** provide or support the Identity and Access Management (IDAM) based threat detection data for XSS / CSRF.
328 * R-51883 The VNF **MUST** provide or support the Identity and Access Management (IDAM) based threat detection data for Replay.
329 * R-44032 The VNF **MUST** provide or support the Identity and Access Management (IDAM) based threat detection data for Man in the Middle (MITM).
330 * R-58977 The VNF **MUST** provide or support the Identity and Access Management (IDAM) based threat detection data for Eavesdropping.
331 * R-24825 The VNF **MUST** provide Context awareness data (device, location, time, etc.) and be able to integrate with threat detection system.
332 * R-59391 The VNF provider **MUST**, where a VNF provider requires the assumption of permissions, such as root or administrator, first log in under their individual user login ID then switch to the other higher level account; or where the individual user login is infeasible, must login with an account with admin privileges in a way that uniquely identifies the individual performing the function.
333 * R-85028 The VNF **MUST** authenticate system to system access and do not conceal a VNF provider user’s individual accountability for transactions.
334 * R-80335 The VNF **MUST** make visible a Warning Notice: A formal statement of resource intent, i.e., a warning notice, upon initial access to a VNF provider user who accesses private internal networks or Company computer resources, e.g., upon initial logon to an internal web site, system or application which requires authentication.
335 * R-73541 The VNF **MUST** use access controls for VNFs and their supporting computing systems at all times to restrict access to authorized personnel only, e.g., least privilege. These controls could include the use of system configuration or access control software.
336 * R-64503 The VNF **MUST** provide minimum privileges for initial and default settings for new user accounts.
337 * R-86835 The VNF **MUST** set the default settings for user access to sensitive commands and data to deny authorization.
338 * R-77157 The VNF **MUST** conform to approved request, workflow authorization, and authorization provisioning requirements when creating privileged users.
339 * R-81147 The VNF **MUST** have greater restrictions for access and execution, such as up to 3 factors of authentication and restricted authorization, for commands affecting network services, such as commands relating to VNFs.
340 * R-49109 The VNF **MUST** encrypt TCP/IP--HTTPS (e.g., TLS v1.2) transmission of data on internal and external networks.
341 * R-39562 The VNF **MUST** disable unnecessary or vulnerable cgi-bin programs.
342 * R-15671 The VNF **MUST NOT** provide public or unrestricted access to any data without the permission of the data owner. All data classification and access controls must be followed.
343 * R-89753 The VNF **MUST NOT** install or use systems, tools or utilities capable of capturing or logging data that was not created by them or sent specifically to them in production, without authorization of the VNF system owner.
344 * R-19082 The VNF **MUST NOT** run security testing tools and programs, e.g., password cracker, port scanners, hacking tools in production, without authorization of the VNF system owner.
345 * R-19790 The VNF **MUST NOT** include authentication credentials in security audit logs, even if encrypted.
346 * R-85419 The VNF **SHOULD** use REST APIs exposed to Client Applications for the implementation of OAuth 2.0 Authorization Code Grant and Client Credentials Grant, as the standard interface for a VNF.
347 * R-86455 The VNF **SHOULD** support hosting connectors for OS Level and Application Access.
348 * R-48080 The VNF **SHOULD** support SCEP (Simple Certificate Enrollment Protocol).
349
350
351 VNF API Security Requirements
352 -----------------------------
353
354 This section covers API security requirements when these are used by the
355 VNFs. Key security areas covered in API security are Access Control,
356 Authentication, Passwords, PKI Authentication Alarming, Anomaly
357 Detection, Lawful Intercept, Monitoring and Logging, Input Validation,
358 Cryptography, Business continuity, Biometric Authentication,
359 Identification, Confidentiality and Integrity, and Denial of Service.
360
361 The solution in a virtual environment needs to meet the following API
362 security requirements:
363
364
365 API Requirements
366
367 * R-37608 The VNF **MUST** provide a mechanism to restrict access based on the attributes of the VNF and the attributes of the subject.
368 * R-43884 The VNF **MUST** integrate with external authentication and authorization services (e.g., IDAM).
369 * R-25878 The VNF **MUST** use certificates issued from publicly recognized Certificate Authorities (CA) for the authentication process where PKI-based authentication is used.
370 * R-19804 The VNF **MUST** validate the CA signature on the certificate, ensure that the date is within the validity period of the certificate, check the Certificate Revocation List (CRL), and recognize the identity represented by the certificate where PKI-based authentication is used.
371 * R-47204 The VNF **MUST** protect the confidentiality and integrity of data at rest and in transit from unauthorized access and modification.
372 * R-33488 The VNF **MUST** protect against all denial of service attacks, both volumetric and non-volumetric, or integrate with external denial of service protection tools.
373 * R-21652 The VNF **MUST** implement the following input validation control: Check the size (length) of all input. Do not permit an amount of input so great that it would cause the VNF to fail. Where the input may be a file, the VNF API must enforce a size limit.
374 * R-54930 The VNF **MUST** implement the following input validation control: Do not permit input that contains content or characters inappropriate to the input expected by the design. Inappropriate input, such as SQL insertions, may cause the system to execute undesirable and unauthorized transactions against the database or allow other inappropriate access to the internal network.
375 * R-21210 The VNF **MUST** implement the following input validation control: Validate that any input file has a correct and valid Multipurpose Internet Mail Extensions (MIME) type. Input files should be tested for spoofed MIME types.
376 * R-23772 The VNF **MUST** validate input at all layers implementing VNF APIs.
377 * R-87135 The VNF **MUST** comply with NIST standards and industry best practices for all implementations of cryptography.
378 * R-02137 The VNF **MUST** implement all monitoring and logging as described in the Security Analytics section.
379 * R-15659 The VNF **MUST** restrict changing the criticality level of a system security alarm to administrator(s).
380 * R-19367 The VNF **MUST** monitor API invocation patterns to detect anomalous access patterns that may represent fraudulent access or other types of attacks, or integrate with tools that implement anomaly and abuse detection.
381 * R-78066 The VNF **MUST** support requests for information from law enforcement and government agencies.
382
383
384 VNF Security Analytics Requirements
385 -----------------------------------
386
387 This section covers VNF security analytics requirements that are mostly
388 applicable to security monitoring. The VNF Security Analytics cover the
389 collection and analysis of data following key areas of security
390 monitoring:
391
392 -  Anti-virus software
393
394 -  Logging
395
396 -  Data capture
397
398 -  Tasking
399
400 -  DPI
401
402 -  API based monitoring
403
404 -  Detection and notification
405
406 -  Resource exhaustion detection
407
408 -  Proactive and scalable monitoring
409
410 -  Mobility and guest VNF monitoring
411
412 -  Closed loop monitoring
413
414 -  Interfaces to management and orchestration
415
416 -  Malformed packet detections
417
418 -  Service chaining
419
420 -  Dynamic security control
421
422 -  Dynamic load balancing
423
424 -  Connection attempts to inactive ports (malicious port scanning)
425
426 The following requirements of security monitoring need to be met by the
427 solution in a virtual environment.
428
429 Security Analytics Requirements
430
431 * R-48470 The VNF **MUST** support Real-time detection and notification of security events.
432 * R-22286 The VNF **MUST** support Integration functionality via API/Syslog/SNMP to other functional modules in the network (e.g., PCRF, PCEF) that enable dynamic security control by blocking the malicious traffic or malicious end users
433 * R-32636 The VNF **MUST** support API-based monitoring to take care of the scenarios where the control interfaces are not exposed, or are optimized and proprietary in nature.
434 * R-61648 The VNF **MUST** support event logging, formats, and delivery tools to provide the required degree of event data to ONAP
435 * R-22367 The VNF **MUST** support detection of malformed packets due to software misconfiguration or software vulnerability.
436 * R-31961 The VNF **MUST** support integrated DPI/monitoring functionality as part of VNFs (e.g., PGW, MME).
437 * R-20912 The VNF **MUST** support alternative monitoring capabilities when VNFs do not expose data or control traffic or use proprietary and optimized protocols for inter VNF communication.
438 * R-73223 The VNF **MUST** support proactive monitoring to detect and report the attacks on resources so that the VNFs and associated VMs can be isolated, such as detection techniques for resource exhaustion, namely OS resource attacks, CPU attacks, consumption of kernel memory, local storage attacks.
439 * R-58370 The VNF **MUST** coexist and operate normally with commercial anti-virus software which shall produce alarms every time when there is a security incident.
440 * R-56920 The VNF **MUST** protect all security audit logs (including API, OS and application-generated logs), security audit software, data, and associated documentation from modification, or unauthorized viewing, by standard OS access control mechanisms, by sending to a remote system, or by encryption.
441 * R-54520 The VNF **MUST** log successful and unsuccessful login attempts.
442 * R-55478 The VNF **MUST** log logoffs.
443 * R-08598 The VNF **MUST** log successful and unsuccessful changes to a privilege level.
444 * R-13344 The VNF **MUST** log starting and stopping of security logging
445 * R-07617 The VNF **MUST** log creating, removing, or changing the inherent privilege level of users.
446 * R-94525 The VNF **MUST** log connections to a network listener of the resource.
447 * R-31614 The VNF **MUST** log the field “event type” in the security audit logs.
448 * R-97445 The VNF **MUST** log the field “date/time” in the security audit logs.
449 * R-25547 The VNF **MUST** log the field “protocol” in the security audit logs.
450 * R-06413 The VNF **MUST** log the field “service or program used for access” in the security audit logs.
451 * R-15325 The VNF **MUST** log the field “success/failure” in the security audit logs.
452 * R-89474 The VNF **MUST** log the field “Login ID” in the security audit logs.
453 * R-04982 The VNF **MUST NOT** include an authentication credential, e.g., password, in the security audit logs, even if encrypted.
454 * R-63330 The VNF **MUST** detect when the security audit log storage medium is approaching capacity (configurable) and issue an alarm via SMS or equivalent as to allow time for proper actions to be taken to pre-empt loss of audit data.
455 * R-41252 The VNF **MUST** support the capability of online storage of security audit logs.
456 * R-41825 The VNF **MUST** activate security alarms automatically when the following event is detected: configurable number of consecutive unsuccessful login attempts
457 * R-43332 The VNF **MUST** activate security alarms automatically when the following event is detected: successful modification of critical system or application files
458 * R-74958 The VNF **MUST** activate security alarms automatically when the following event is detected: unsuccessful attempts to gain permissions or assume the identity of another user
459 * R-15884 The VNF **MUST** include the field “date” in the Security alarms (where applicable and technically feasible).
460 * R-23957 The VNF **MUST** include the field “time” in the Security alarms (where applicable and technically feasible).
461 * R-71842 The VNF **MUST** include the field “service or program used for access” in the Security alarms (where applicable and technically feasible).
462 * R-57617 The VNF **MUST** include the field “success/failure” in the Security alarms (where applicable and technically feasible).
463 * R-99730 The VNF **MUST** include the field “Login ID” in the Security alarms (where applicable and technically feasible).
464 * R-29705 The VNF **MUST** restrict changing the criticality level of a system security alarm to administrator(s).
465 * R-13627 The VNF **MUST** monitor API invocation patterns to detect anomalous access patterns that may represent fraudulent access or other types of attacks, or integrate with tools that implement anomaly and abuse detection.
466 * R-21819 The VNF **MUST** support requests for information from law enforcement and government agencies.
467 * R-56786 The VNF **MUST** implement “Closed Loop” automatic implementation (without human intervention) for Known Threats with detection rate in low false positives.
468 * R-25094 The VNF **MUST** perform data capture for security functions.
469 * R-04492 The VNF **MUST** generate security audit logs that must be sent to Security Analytics Tools for analysis.
470 * R-19219 The VNF **MUST** provide audit logs that include user ID, dates, times for log-on and log-off, and terminal location at minimum.
471 * R-30932 The VNF **MUST** provide security audit logs including records of successful and rejected system access data and other resource access attempts.
472 * R-54816 The VNF **MUST** support the storage of security audit logs for agreed period of time for forensic analysis.
473 * R-57271 The VNF **MUST** provide the capability of generating security audit logs by interacting with the operating system (OS) as appropriate.
474 * R-84160 The VNF **MUST** have security logging for VNFs and their OSs be active from initialization. Audit logging includes automatic routines to maintain activity records and cleanup programs to ensure the integrity of the audit/logging systems.
475
476 VNF Data Protection Requirements
477 --------------------------------
478
479 This section covers VNF data protection requirements that are mostly
480 applicable to security monitoring.
481
482
483 Data Protection Requirements
484
485 * R-58964 The VNF **MUST** provide the capability to restrict read and write access to data.
486 * R-99112 The VNF **MUST** provide the capability to restrict access to data to specific users.
487 * R-83227 The VNF **MUST** Provide the capability to encrypt data in transit on a physical or virtual network.
488 * R-32641 The VNF **MUST** provide the capability to encrypt data on non-volatile memory.
489 * R-13151 The VNF **SHOULD** disable the paging of the data requiring encryption, if possible, where the encryption of non-transient data is required on a device for which the operating system performs paging to virtual memory. If not possible to disable the paging of the data requiring encryption, the virtual memory should be encrypted.
490 * R-93860 The VNF **MUST** provide the capability to integrate with an external encryption service.
491 * R-73067 The VNF **MUST** use industry standard cryptographic algorithms and standard modes of operations when implementing cryptography.
492 * R-22645 The VNF **SHOULD** use commercial algorithms only when there are no applicable governmental standards for specific cryptographic functions, e.g., public key cryptography, message digests.
493 * R-12467 The VNF **MUST NOT** use the SHA, DSS, MD5, SHA-1 and Skipjack algorithms or other compromised encryption.
494 * R-02170 The VNF **MUST** use, whenever possible, standard implementations of security applications, protocols, and format, e.g., S/MIME, TLS, SSH, IPSec, X.509 digital certificates for cryptographic implementations. These implementations must be purchased from reputable vendors and must not be developed in-house.
495 * R-70933 The VNF **MUST** provide the ability to migrate to newer versions of cryptographic algorithms and protocols with no impact.
496 * R-44723 The VNF **MUST** use symmetric keys of at least 112 bits in length.
497 * R-25401 The VNF **MUST** use asymmetric keys of at least 2048 bits in length.
498 * R-95864 The VNF **MUST** use commercial tools that comply with X.509 standards and produce x.509 compliant keys for public/private key generation.
499 * R-12110 The VNF **MUST NOT** use keys generated or derived from predictable functions or values, e.g., values considered predictable include user identity information, time of day, stored/transmitted data.
500 * R-52060 The VNF **MUST** provide the capability to configure encryption algorithms or devices so that they comply with the laws of the jurisdiction in which there are plans to use data encryption.
501 * R-69610 The VNF **MUST** provide the capability of using certificates issued from a Certificate Authority not provided by the VNF provider.
502 * R-83500 The VNF **MUST** provide the capability of allowing certificate renewal and revocation.
503 * R-29977 The VNF **MUST** provide the capability of testing the validity of a digital certificate by validating the CA signature on the certificate.
504 * R-24359 The VNF **MUST** provide the capability of testing the validity of a digital certificate by validating the date the certificate is being used is within the validity period for the certificate.
505 * R-39604 The VNF **MUST** provide the capability of testing the validity of a digital certificate by checking the Certificate Revocation List (CRL) for the certificates of that type to ensure that the certificate has not been revoked.
506 * R-75343 The VNF **MUST** provide the capability of testing the validity of a digital certificate by recognizing the identity represented by the certificate — the "distinguished name".
507
508 d. VNF Modularity
509 =================
510
511 ONAP Heat Orchestration Templates: Overview
512 -------------------------------------------
513
514 ONAP supports a modular Heat Orchestration Template design pattern,
515 referred to as *VNF Modularity.*
516
517 ONAP VNF Modularity Overview
518 ----------------------------
519
520 With VNF Modularity, a single VNF may be composed from one or more Heat
521 Orchestration Templates, each of which represents a subset of the
522 overall VNF. These component parts are referred to as “\ *VNF
523 Modules*\ ”. During orchestration, these modules are deployed
524 incrementally to create the complete VNF.
525
526 A modular Heat Orchestration Template can be either one of the following
527 types:
528
529 1. Base Module
530
531 2. Incremental Module
532
533 3. Cinder Volume Module
534
535 * R-37028 The VNF **MUST** be composed of one “base” module.
536 * R-41215 The VNF **MAY** have zero to many “incremental” modules.
537 * R-20974 The VNF **MUST** deploy the base module first, prior to the incremental modules.
538
539 ONAP also supports the concept of an optional, independently deployed
540 Cinder volume via a separate Heat Orchestration Templates, referred to
541 as a Cinder Volume Module. This allows the volume to persist after a
542 Virtual Machine (VM) (i.e., OS::Nova::Server) is deleted, allowing the
543 volume to be reused on another instance (e.g., during a failover
544 activity).
545
546 * R-11200 The VNF **MUST** keep the scope of a Cinder volume module, when it exists, to be 1:1 with the VNF Base Module or Incremental Module.
547
548 * R-38474 The VNF **MUST** have a corresponding environment file for a Base Module.
549 * R-81725 The VNF **MUST** have a corresponding environment file for an Incremental Module.
550 * R-53433 The VNF **MUST** have a corresponding environment file for a Cinder Volume Module.
551
552 These concepts will be described in more detail throughout the document.
553 This overview is provided to set the stage and help clarify the concepts
554 that will be introduced.
555
556
557 ONAP VNF Modularity
558 -------------------
559
560 ONAP supports a modular Heat Orchestration Template design pattern,
561 referred to as *VNF Modularity.* With this approach, a single VNF may be
562 composed from one or more Heat Orchestration Templates, each of which
563 represents a subset of the overall VNF. These component parts are
564 referred to as “\ *VNF Modules*\ ”. During orchestration, these modules
565 are deployed incrementally to create the complete VNF.
566
567 A modular Heat Orchestration Template can be either one of the following
568 types:
569
570 1. Base Module
571
572 2. Incremental Module
573
574 3. Cinder Volume Module
575
576 A VNF must be composed of one “base” module and may be composed of zero
577 to many “incremental” modules. The base module must be deployed first,
578 prior to the incremental modules.
579
580 ONAP also supports the concept of an optional, independently deployed
581 Cinder volume via a separate Heat Orchestration Templates, referred to
582 as a Cinder Volume Module. This allows the volume to persist after a VM
583 (i.e., OS::Nova::Server) is deleted, allowing the volume to be reused on
584 another instance (e.g., during a failover activity).
585
586 The scope of a Cinder volume module, when it exists, must be 1:1 with a
587 Base module or Incremental Module.
588
589 A Base Module must have a corresponding environment file.
590
591 An Incremental Module must have a corresponding environment file.
592
593 A Cinder Volume Module must have a corresponding environment file.
594
595 A VNF module (base, incremental, cinder) may support nested templates.
596
597 A shared Heat Orchestration Template resource must be defined in the
598 base module. A shared resource is a resource that that will be
599 referenced by another resource that is defined in the Base Module and/or
600 one or more incremental modules.
601
602 When the shared resource needs to be referenced by a resource in an
603 incremental module, the UUID of the shared resource must be exposed by
604 declaring an ONAP Base Module Output Parameter.
605
606 Note that a Cinder volume is *not* a shared resource. A volume template
607 must correspond 1:1 with a base module or incremental module.
608
609 An example of a shared resource is the resource
610 OS::Neutron::SecurityGroup. Security groups are sets of IP filter rules
611 that are applied to a VNF’s networking. The resource OS::Neutron::Port
612 has a property security\_groups which provides the security groups
613 associated with port. The value of parameter(s) associated with this
614 property must be the UUIDs of the resource(s)
615 OS::Neutron::SecurityGroup.
616
617 *Note:* A Cinder volume is *not* considered a shared resource. A volume
618 template must correspond 1:1 with a base template or add-on module
619 template.
620
621 Suggested Patterns for Modular VNFs
622 -----------------------------------
623
624 There are numerous variations of VNF modularity. Below are two suggested
625 usage patterns.
626
627 **Option 1: Modules per VNFC type**
628
629 a. Base module contains only the shared resources.
630
631 b. Group all VMs (e.g., VNFCs) of a given type (i.e. {vm-type}) into its
632    own incremental module. That is, the VNF has an incremental module
633    for each {vm-type}.
634
635 c. For a given {vm-type} incremental module, the VNF may have
636
637    i.  One incremental module used for both initial turn up and re-used
638        for scaling. This approach is used when the number of VMs
639        instantiated will be the same for initial deployment and scaling.
640
641    ii. Two incremental modules, where one is used for initial turn up
642        and one is used for scaling. This approach is used when the
643        number of VMs instantiated will be different for initial
644        deployment and scaling.
645
646 **Option 2: Base VNF with Incremental Growth Modules**
647
648 a. Base module contains a complete initial VNF instance
649
650 b. Incremental modules for incremental scaling units
651
652    i.  May contain VMs of multiple types in logical scaling combinations
653
654    ii. May be separated by VM type for multi-dimensional scaling
655
656 With no growth units, Option 2 is equivalent to the “One Heat Template
657 per VNF” model.
658
659 Note that modularization of VNFs is not required. A single Heat
660 Orchestration Template (a base module) may still define a complete VNF,
661 which might be appropriate for smaller VNFs that do not have any scaling
662 options.
663
664 Modularity Rules
665 ----------------
666
667 There are some rules to follow when building modular VNF templates:
668
669 1. All VNFs must have one Base VNF Module (template) that must be the
670    first one deployed. The base template:
671
672    a. Must include all shared resources (e.g., private networks, server
673       groups, security groups)
674
675    b. Must expose all shared resources (by UUID) as “outputs” in its
676       associated Heat template (i.e., ONAP Base Module Output
677       Parameters)
678
679    c. May include initial set of VMs
680
681    d. May be operational as a stand-alone “minimum” configuration of the
682       VNF
683
684 2. VNFs may have one or more incremental modules which:
685
686    a. Defines additional resources that can be added to an existing VNF
687
688    b. Must be complete Heat templates
689
690       i. i.e. not snippets to be incorporated into some larger template
691
692    c. Should define logical growth-units or sub-components of an overall
693       VNF
694
695    d. On creation, receives appropriate Base Module outputs as
696       parameters
697
698       i.  Provides access to all shared resources (by UUID)
699
700       ii. must not be dependent on other Add-On VNF Modules
701
702    e. Multiple instances of an incremental Module may be added to the
703       same VNF (e.g., incrementally grow a VNF by a fixed “add-on”
704       growth units)
705
706 3. Each VNF Module (base or incremental) may have (optional) an
707    associated Cinder Volume Module (see Cinder Volume Templates)
708
709    a. Volume modules must correspond 1:1 with a base module or
710       incremental module
711
712    b. A Cinder volume may be embedded within the base module or
713       incremental module if persistence is not required
714
715 4. Shared resource UUIDs are passed between the base module and
716    incremental modules via Heat Outputs Parameters (i.e., Base Module
717    Output Parameters)
718
719    a. The output parameter name in the base must match the parameter
720       name in the add-on module
721
722 VNF Modularity Examples
723 -----------------------
724
725 *Example: Base Module creates SecurityGroup*
726
727 A VNF has a base module, named base.yaml, that defines a
728 OS::Neutron::SecurityGroup. The security group will be referenced by an
729 OS::Neutron::Port resource in an incremental module, named
730 INCREMENTAL\_MODULE.yaml. The base module defines a parameter in the out
731 section named dns\_sec\_grp\_id. dns\_sec\_grp\_id is defined as a
732 parameter in the incremental module. ONAP captures the UUID value of
733 dns\_sec\_grp\_id from the base module output statement and provides the
734 value to the incremental module.
735
736 Note that the example below is not a complete Heat Orchestration
737 Template. The {network-role} has been defined as oam to represent an oam
738 network and the {vm-type} has been defined as dns.
739
740 base\_MODULE.yaml
741
742 .. code-block:: yaml
743
744  parameters:
745    . . .
746
747  resources:
748    DNS_SECURITY_GROUP:
749      type: OS::Neutron::SecurityGroup
750      properties:
751        description: vDNS security group
752        name:
753          str_replace:
754            template: VNF_NAME_sec_grp_DNS
755            params:
756              VMF_NAME: {get_param: vnf_name}
757        rules: [. . . . .
758
759    . . .
760
761  outputs:
762    dns_sec_grp_id:
763      description: UUID of DNS Resource SecurityGroup
764      value: { get_resource: DNS_SECURITY_GROUP }
765
766
767 INCREMENTAL\_MODULE.yaml
768
769 .. code-block:: yaml
770
771  parameters:
772    dns_sec_grp_id:
773      type: string
774      description: security group UUID
775    . . .
776
777  resources:
778    dns_oam_0_port:
779      type: OS::Neutron::Port
780      properties:
781        name:
782          str_replace:
783            template: VNF_NAME_dns_oam_port
784            params:
785              VNF_NAME: {get_param: vnf_name}
786        network: { get_param: oam_net_name }
787        fixed_ips: [{ "ip_address": { get_param: dns_oam_ip_0 }}]
788        security_groups: [{ get_param: dns_sec_grp_id }]
789
790
791 *Examples: Base Module creates an internal network*
792
793 A VNF has a base module, named base\_module.yaml, that creates an
794 internal network. An incremental module, named incremental\_module.yaml,
795 will create a VM that will connect to the internal network. The base
796 module defines a parameter in the out section named int\_oam\_net\_id.
797 int\_oam\_net\_id is defined as a parameter in the incremental module.
798 ONAP captures the UUID value of int\_oam\_net\_id from the base module
799 output statement and provides the value to the incremental module.
800
801 Note that the example below is not a complete Heat Orchestration
802 Template. The {network-role} has been defined as oam to represent an oam
803 network and the {vm-type} has been defined as lb for load balancer.
804
805 base.yaml
806
807 .. code-block:: yaml
808
809  heat_template_version: 2013-05-23
810
811  resources:
812     int_oam_network:
813        type: OS::Neutron::Network
814        properties:
815           name: {… }
816           . . .
817  outputs:
818     int_oam_net_id:
819        value: {get_resource: int_oam_network }
820
821
822 incremental.yaml
823
824 .. code-block:: yaml
825
826  heat_template_version: 2013-05-23
827
828  parameters:
829     int_oam_net_id:
830        type: string
831        description: ID of shared private network from Base template
832     lb_name_0:
833        type: string
834        description: name for the add-on VM instance
835
836  Resources:
837     lb_server:
838        type: OS::Nova::Server
839        properties:
840           name: {get_param: lb_name_0}
841           networks:
842              - port: { get_resource: lb_port }
843           . . .
844
845     lb_port:
846        type: OS::Neutron::Port
847        properties:
848           network_id: { get_param: int_oam_net_id }
849  ...
850
851 e. VNF Devops
852 =============
853
854 This section includes guidelines for VNF providers to ensure that a Network
855 Cloud Service Provider’s operations personnel have a common and
856 consistent way to support VNFs and VNFCs.
857
858 NCSPs may elect to support standard images to enable compliance with
859 security, audit, regulatory and other needs. As part of the overall VNF
860 software bundle, VNF suppliers using standard images would typically
861 provide the NCSP with an install package consistent with the default OS
862 package manager (e.g. aptitude for Ubuntu, yum for Redhat/CentOS).
863
864 Section 5.a DevOps in *VNF Guidelines* describes
865 the DevOps guidelines for VNFs.
866
867 DevOps Requirements
868
869 * R-46960 NCSPs **MAY** operate a limited set of Guest OS and CPU architectures and families, virtual machines, etc.
870 * R-23475 VNFCs **SHOULD** be agnostic to the details of the Network Cloud (such as hardware, host OS, Hypervisor or container technology) and must run on the Network Cloud with acknowledgement to the paradigm that the Network Cloud will continue to rapidly evolve and the underlying components of the platform will change regularly.
871 * R-33846 The VNF **MUST** install the NCSP required software on Guest OS images when not using the NCSP provided Guest OS images. [1]_
872 * R-09467 The VNF **MUST**  utilize only NCSP standard compute flavors. [1]_
873 * R-02997 The VNF **MUST** preserve their persistent data. Running VMs will not be backed up in the Network Cloud infrastructure.
874 * R-29760 The VNFC **MUST** be installed on non-root file systems, unless software is specifically included with the operating system distribution of the guest image.
875 * R-20860 The VNF **MUST** be agnostic to the underlying infrastructure (such as hardware, host OS, Hypervisor), any requirements should be provided as specification to be fulfilled by any hardware.
876 * R-89800 The VNF **MUST NOT** require Hypervisor-level customization from the cloud provider.
877 * R-86758 The VNF **SHOULD** provide an automated test suite to validate every new version of the software on the target environment(s). The tests should be of sufficient granularity to independently test various representative VNF use cases throughout its lifecycle. Operations might choose to invoke these tests either on a scheduled basis or on demand to support various operations functions including test, turn-up and troubleshooting.
878 * R-39650 The VNF **SHOULD** provide the ability to test incremental growth of the VNF.
879 * R-14853 The VNF **MUST** respond to a "move traffic" [2]_ command against a specific VNFC, moving all existing session elsewhere with minimal disruption if a VNF provides a load balancing function across multiple instances of its VNFCs. Note: Individual VNF performance aspects (e.g., move duration or disruption scope) may require further constraints.
880 * R-06327 The VNF **MUST** respond to a "drain VNFC" [2]_ command against a specific VNFC, preventing new session from reaching the targeted VNFC, with no disruption to active sessions on the impacted VNFC, if a VNF provides a load balancing function across multiple instances of its VNFCs. This is used to support scenarios such as proactive maintenance with no user impact.
881 * R-64713 The VNF **SHOULD** support a software promotion methodology from dev/test -> pre-prod -> production in software, development & testing and operations.
882
883 f. VNF Develop Steps
884 =======================
885
886 Aid to help the VNF provider to fasten the integration with the GVNFM, the
887 ONAP provides the VNF SDK tools, and the documents. In this charter,
888 the develop steps for VNF providers will be introduced.
889
890 First, using the VNF SDK tools to design the VNF with TOSCA model and
891 output the VNF TOSCA package. The VNF package can be validated, and
892 tested.
893
894 Second, the VNF provider should provide the VNF Rest API to integrate with
895 the GVNFM if needed. The VNF Rest API is aligned to the ETSI IFA
896 document.
897
898 Third, the TOSCA model supports the EPA feature.
899
900 Note:
901
902 1. The scripts to extend capacity to satisfy some special requirements.
903    In the R2, the scripts is not implemented fully, and will be provided
904    in the next release.
905
906 2. The monitoring and scale policy also be provide the next release.
907
908
909 .. [1]
910    Refer to NCSP’s Network Cloud specification
911
912 .. [2]
913    Not currently supported in ONAP release 1