Policy management method and device
Through the combination of policy parameter templates and monitoring modules, action availability is dynamically monitored, which solves the problems of policy execution failure and resource waste in the existing technology, and achieves high efficiency of policy execution and optimal utilization of resources.
Patent Information
- Application Number
- CN202110005344.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-01-05
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-01-05
AI Technical Summary
Existing policy management systems cannot dynamically monitor action availability when resources dynamically change, resulting in policy execution failure, resource waste, and business process blocking.
Through policy parameter template design, static conflict verification and policy group allocation, data is obtained according to policy monitoring templates, operation availability is analyzed, and policy availability is executed or marked according to priority order to avoid multiple checks and waste of resources.
It improves policy execution efficiency, avoids resource waste and long service waiting times, and ensures full utilization of resources and services.
Smart Images

Figure CN114721788B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of policy management, and in particular to a policy management method and device. Background Art
[0002] Currently, the only use case for the end-to-end process that requires the use of policies is the management of automatic scaling policies. Specific functions include: create policy, query policy, update policy, activate policy, deactivate policy, and delete policy.
[0003] The current enterprise standards have limited use of policy functions, and the proposed policy management is relatively simple, only implementing the most basic policy lifecycle management, lacking detection and analysis of policy availability. At the same time, at the implementation level, the various components in management and orchestration (MANO) cannot be decoupled, and it is impossible to analyze and detect policies issued by operators from different manufacturers.
[0004] Currently, there are two main methods for managing and implementing policies. One is that the manufacturer embeds the policy in the VNF (virtualized network function) description (VNFD) and transmits and uses it in the MANO component of the same manufacturer; the other is that the operator sends the policy to the NFV (network function virtualization) orchestrator (NFVO), which transparently transmits the policy to the VNFM (VNF management component). It is worth noting that NFVO cannot parse the policy content and monitor the execution of the policy.
[0005] The architecture of Policy Administration Point (PAP) and Policy Function (PF) is proposed in ETSI (European Telecommunications Standards Institute) NFV. PAP is responsible for defining MANO policies, and PF is responsible for making policy decisions, such as evaluating whether policy conditions are met; defining what actions to perform when the policy is met. The locations of PAP and PF are as follows: Figure 1 As shown in the figure, PAP and PF appear in a team, one PAP corresponds to one PF, and the same fill pattern in the figure represents the same PAP / PF pair. Among them, OSS is the operation support system, BSS is the business support system, EM is the network element manager, VM is the virtual machine, Hypervisor is the virtual machine monitor, Hardware is the hardware, and VIM is the virtualization infrastructure manager.
[0006] Another option is to have only 1 PAP in the architecture and 3 PFs, such as Figure 2 shown.
[0007] A commonly accepted general form of imperative policies is the Event-Condition-Action (ECA) policy. The ECA approach to describing policies is a type of imperative approach to describing policies. Imperative policies follow the imperative programming paradigm, which focuses on describing how a program runs. In this paradigm, policies are structured in such a way that they explicitly control the transition from one state to another. In this approach, only one target state is allowed to be selected. This is achieved by defining the order in which actions occur using programming constructs that explicitly control that order.
[0008] Event (E): An event is any significant occurrence when a managed system and / or a managed system's environment changes. Events include time and user actions.
[0009] Condition (C): A condition is defined as a set of attributes, characteristics, and / or values that are compared to a known set of attributes, characteristics, and / or values to determine whether a set of actions (commands) in a policy rule can be executed. Examples of conditions include matching attributes of a packet or flow, determining whether sufficient resources exist to run a service, and checking the context associated with the current state against context in a past state.
[0010] Actions (A): Describes the actions used to control and monitor the system or component to which the policy rule is applied when the event and condition clauses are met. The order in which the actions are performed and how failures are handled are determined by the metadata. Examples of actions include providing intrusion detection and / or protection, changing access control lists (ACLs) to grant or deny access privileges, and redirecting traffic to alternate circuits (for example, in the event of congestion).
[0011] Currently, the expression of policies in management architecture generally follows the ECA-style policy in the imperative policy.
[0012] The current policy description usually adopts the ECA form, and each policy contains unique E, C and A. The execution component monitors the corresponding parameters according to the E and C defined in each policy, and executes the corresponding A when the set threshold is met. Users need to design ECA-style policies in the design state and deploy the designed policies to the running environment to trigger corresponding events and execute the actions defined in the policies. However, this ECA-style policy only considers the design according to the policy definition description for specific services, and only considers whether the corresponding E and C meet the conditions for judgment and analysis, but cannot judge whether the A to be executed can be executed or whether it can be executed correctly during the actual operation process: for example, in the running state, it is impossible to predict or prevent the situation where the actions and / or resources required by the policy cannot be met, and it is impossible to issue an alarm in advance. Another situation is that the policy is still executed when the conditions cannot be met. If it fails, it may continue to try, resulting in a waste of network resources and may cause the overall business process to be blocked. Taking the scaling strategy as an example, when NFV-MANO cannot meet the resources required by the scaling strategy, the traditional MANO architecture must first make multiple attempts to execute the expansion (action content) and then feedback the execution failure information, which results in slow policy execution, long policy response time, and delays in service operation. Summary of the invention
[0013] The technical problem to be solved by the present invention is to provide a policy management method and device that can dynamically monitor the availability of content required for an action, so as to solve the problem that the policy cannot be actually executed due to dynamic changes in resources in the actual operating environment, so that resources and services can be fully utilized, and insufficient available resources caused by excessive use of resources and services can be avoided.
[0014] To solve the above technical problems, the embodiments of the present invention provide the following technical solutions:
[0015] In one aspect, a policy management method is provided, comprising:
[0016] Obtain the policy designed according to the policy parameter template, perform static conflict verification on the policy, and if it passes, assign the policy to the corresponding policy group, where the policies in the same policy group have the same events and conditions;
[0017] Sending a data acquisition request to the network function entity according to the priority order of the policies in the policy group and the content of the policy monitoring template, requesting the data required by the policy;
[0018] Analyze the data to obtain the availability of the operation defined by the policy. If the environment where the policy is located meets the policy execution condition, modify the availability attribute of the policy to available, and stop detecting other low-priority policies in the same policy group; otherwise, modify the availability attribute of the policy to unavailable, and continue to detect the availability of operations defined by other low-priority policies;
[0019] The operations defined by the policy are executed according to the availability attribute of the policy.
[0020] In some embodiments, the required data includes but is not limited to at least one of the following:
[0021] Whether the resources required by the strategy in the current environment can be met;
[0022] The preemption of the same resource by strategies belonging to different strategy groups during operation;
[0023] Availability of data compression actions;
[0024] Availability of protocol acceleration actions;
[0025] Whether it conflicts with the current environment;
[0026] Availability of VNF migration.
[0027] In some embodiments, the event template in the policy parameter template includes an event description, including at least one of the following:
[0028] Event ID;
[0029] Strategy ID;
[0030] Strategy type;
[0031] Event indicator value;
[0032] Start time;
[0033] End time;
[0034] cycle;
[0035] Other descriptions:
[0036] Other properties.
[0037] In some embodiments, the condition and action template in the policy parameter template includes a policy description, a condition description, and a group description, and the policy description includes at least one of the following:
[0038] Strategy ID;
[0039] Designers;
[0040] Strategy type;
[0041] Version;
[0042] describe;
[0043] The condition description includes at least one of the following:
[0044] Conditional relationship is the coexistence relationship between various conditions;
[0045] Conditional judgment indicators;
[0046] Operators;
[0047] Thresholds that trigger actions;
[0048] describe;
[0049] Other attributes:
[0050] The group description includes at least one of the following:
[0051] Strategy ID;
[0052] Group ID;
[0053] The operation list includes at least one operation description, wherein the operation description includes at least one of the following: operation ID, priority, availability, executor, execution method, execution target, parameter list, description, and other parameters.
[0054] In some embodiments, the policy monitoring template includes at least one of the following:
[0055] Monitoring description;
[0056] Monitoring ID;
[0057] Strategy ID;
[0058] Monitoring data collection description, including at least one of the following: monitored component, specific object in the monitored component, monitoring method, monitoring content, and feedback data;
[0059] A description of the monitoring data judgment, including at least one of the following: the component responsible for the analysis, the data received, the judgment method, and the availability results;
[0060] Cooling cycle;
[0061] Other description.
[0062] The embodiment of the present invention further provides a policy management device, including:
[0063] A design module, used to obtain a strategy designed according to a strategy parameter template;
[0064] A verification module, used for performing static conflict verification on the policy, and if the verification passes, assigning the policy to a corresponding policy group, where the policies in the same policy group have the same events and conditions;
[0065] The storage module is used to store policies that have passed verification;
[0066] A policy monitoring module is used to send a data acquisition request to a network function entity according to the priority order of the policies in the policy group and the content of the policy monitoring template to request the data required by the policy; analyze the data to obtain the availability of the operation defined by the policy, and if the environment where the policy is located meets the policy execution conditions, modify the availability attribute of the policy to available, and stop detecting other low-priority policies in the same policy group; otherwise, modify the availability attribute of the policy to unavailable, and continue to detect the availability of operations defined by other low-priority policies;
[0067] The decision module is used to execute the operation defined by the policy according to the availability attribute of the policy.
[0068] In some embodiments, the required data includes but is not limited to at least one of the following:
[0069] Whether the resources required by the strategy in the current environment can be met;
[0070] The preemption of the same resource by strategies belonging to different strategy groups during operation;
[0071] Availability of data compression actions;
[0072] Availability of protocol acceleration actions;
[0073] Whether it conflicts with the current environment;
[0074] Availability of VNF migration.
[0075] In some embodiments, the event template in the policy parameter template includes an event description, including at least one of the following:
[0076] Event ID;
[0077] Strategy ID;
[0078] Strategy type;
[0079] Event indicator value;
[0080] Start time;
[0081] End time;
[0082] cycle;
[0083] Other descriptions:
[0084] Other properties.
[0085] In some embodiments, the condition and action template in the policy parameter template includes a policy description, a condition description, and a group description, and the policy description includes at least one of the following:
[0086] Strategy ID;
[0087] Designers;
[0088] Strategy type;
[0089] Version;
[0090] describe;
[0091] The condition description includes at least one of the following:
[0092] Conditional relationship is the coexistence relationship between various conditions;
[0093] Conditional judgment indicators;
[0094] Operators;
[0095] Thresholds that trigger actions;
[0096] describe;
[0097] Other attributes:
[0098] The group description includes at least one of the following:
[0099] Strategy ID;
[0100] Group ID;
[0101] The operation list includes at least one operation description, wherein the operation description includes at least one of the following: operation ID, priority, availability, executor, execution method, execution target, parameter list, description, and other parameters.
[0102] In some embodiments, the policy monitoring template includes at least one of the following:
[0103] Monitoring description;
[0104] Monitoring ID;
[0105] Strategy ID;
[0106] Monitoring data collection description, including at least one of the following: monitored component, specific object in the monitored component, monitoring method, monitoring content, and feedback data;
[0107] A description of the monitoring data judgment, including at least one of the following: the component responsible for the analysis, the data received, the judgment method, and the availability results;
[0108] Cooling cycle;
[0109] Other description.
[0110] An embodiment of the present invention further provides a policy management device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor; when the processor executes the program, the policy management method described above is implemented.
[0111] The processor is specifically used to obtain a policy designed according to a policy parameter template, perform static conflict verification on the policy, and if passed, assign the policy to a corresponding policy group, where the policies in the same policy group have the same events and conditions; send a data acquisition request to a network function entity according to the priority order of the policies in the policy group and the content of the policy monitoring template to request the data required by the policy; analyze the data to obtain the availability of the operation defined by the policy, and if the environment where the policy is located meets the policy execution conditions, modify the availability attribute of the policy to available, and stop detecting other low-priority policies in the same policy group; otherwise, modify the availability attribute of the policy to unavailable, and continue to detect the availability of operations defined by other low-priority policies; and execute the operations defined by the policy according to the availability attribute of the policy.
[0112] In some embodiments, the required data includes but is not limited to at least one of the following:
[0113] Whether the resources required by the strategy in the current environment can be met;
[0114] The preemption of the same resource by strategies belonging to different strategy groups during operation;
[0115] Availability of data compression actions;
[0116] Availability of protocol acceleration actions;
[0117] Whether it conflicts with the current environment;
[0118] Availability of VNF migration.
[0119] In some embodiments, the event template in the policy parameter template includes an event description, including at least one of the following:
[0120] Event ID;
[0121] Strategy ID;
[0122] Strategy type;
[0123] Event indicator value;
[0124] Start time;
[0125] End time;
[0126] cycle;
[0127] Other descriptions:
[0128] Other properties.
[0129] In some embodiments, the condition and action template in the policy parameter template includes a policy description, a condition description, and a group description, and the policy description includes at least one of the following:
[0130] Strategy ID;
[0131] Designers;
[0132] Strategy type;
[0133] Version;
[0134] describe;
[0135] The condition description includes at least one of the following:
[0136] Conditional relationship is the coexistence relationship between various conditions;
[0137] Conditional judgment indicators;
[0138] Operators;
[0139] Thresholds that trigger actions;
[0140] describe;
[0141] Other attributes:
[0142] The group description includes at least one of the following:
[0143] Strategy ID;
[0144] Group ID;
[0145] The operation list includes at least one operation description, wherein the operation description includes at least one of the following: operation ID, priority, availability, executor, execution method, execution target, parameter list, description, and other parameters.
[0146] In some embodiments, the policy monitoring template includes at least one of the following:
[0147] Monitoring description;
[0148] Monitoring ID;
[0149] Strategy ID;
[0150] Monitoring data collection description, including at least one of the following: monitored component, specific object in the monitored component, monitoring method, monitoring content, and feedback data;
[0151] A description of the monitoring data judgment, including at least one of the following: the component responsible for the analysis, the data received, the judgment method, and the availability results;
[0152] Cooling cycle;
[0153] Other description.
[0154] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the policy management method described above are implemented.
[0155] The embodiments of the present invention have the following beneficial effects:
[0156] In the above scheme, the availability of the actions defined by the policies in a policy group is detected from high to low priority. When the availability of the action of a high-priority policy is available, there is no need to check the subsequent actions of low-priority policies. The availability of the low-priority policy can be directly marked as unavailable, avoiding the need to check resources multiple times and wasting computing power; when the action of a high-priority policy is unavailable, the availability of the action of the high-priority policy is marked as unavailable, and the action is no longer executed, avoiding long service waiting time and waste of resources used for interaction caused by multiple requests for related resources when resources are insufficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0157] Figure 1 and Figure 2 It is a schematic diagram of the architecture of policy management points and policy functions;
[0158] Figure 3 A schematic diagram of a process flow of a policy management method according to an embodiment of the present invention;
[0159] Figure 4 A schematic diagram of a policy parameter template according to an embodiment of the present invention;
[0160] Figure 5 A schematic diagram of the structure of a policy management device according to an embodiment of the present invention;
[0161] Figure 6 It is a schematic diagram of the composition of the policy management device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0162] In order to make the technical problems, technical solutions and advantages to be solved by the embodiments of the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0163] The embodiment of the present application provides a policy management method and device, which can dynamically monitor the availability of content required for an action, so as to solve the problem that the policy cannot be actually executed due to the dynamic change of resources in the actual operating environment, so that resources and services can be fully utilized. The content of monitoring will be determined according to the action of the policy, including but not limited to the resources required for the scaling policy, the data compression or protocol acceleration required for service acceleration, the component migration permissions required for load balancing, etc.
[0164] The present application embodiment provides a policy management method, such as Figure 3 As shown, including:
[0165] Step 101: Obtain a policy designed according to a policy parameter template, perform static conflict verification on the policy, and if it passes, assign the policy to a corresponding policy group. The policies in the same policy group have the same events and conditions.
[0166] Step 102: sending a data acquisition request to the network function entity according to the priority order of the policies in the policy group and the content of the policy monitoring template, requesting the data required by the policy;
[0167] Step 103: Analyze the data to obtain the availability of the operation defined by the policy. If the environment where the policy is located meets the policy execution condition, modify the availability attribute of the policy to available, and stop detecting other low-priority policies in the same policy group; otherwise, modify the availability attribute of the policy to unavailable, and continue to detect the availability of operations defined by other low-priority policies;
[0168] Step 104: Execute the operation defined by the policy according to the availability attribute of the policy.
[0169] In this embodiment, the availability of the operations defined by the policies in a policy group is detected from high to low priority. When the availability of the action of a high-priority policy is available, there is no need to check the subsequent actions of low-priority policies. The availability of the low-priority policy can be directly marked as unavailable, thereby avoiding the need to check resources multiple times and wasting computing power. When the action of a high-priority policy is unavailable, the availability of the action of the high-priority policy is marked as unavailable, and the action is no longer executed, thereby avoiding long service waiting time and waste of resources used for interaction caused by multiple requests for related resources when resources are insufficient.
[0170] In some embodiments, the required data includes but is not limited to at least one of the following:
[0171] Whether the resources required by the strategy in the current environment can be met;
[0172] The preemption of the same resource by strategies belonging to different strategy groups during operation;
[0173] Availability of data compression actions;
[0174] Availability of protocol acceleration actions;
[0175] Whether it conflicts with the current environment;
[0176] Availability of VNF migration.
[0177] In some embodiments, the event template in the policy parameter template includes an event description, including at least one of the following:
[0178] Event ID;
[0179] Strategy ID;
[0180] Strategy type;
[0181] Event indicator value;
[0182] Start time;
[0183] End time;
[0184] cycle;
[0185] Other descriptions:
[0186] Other properties.
[0187] In some embodiments, the condition and action template in the policy parameter template includes a policy description, a condition description, and a group description, and the policy description includes at least one of the following:
[0188] Strategy ID;
[0189] Designers;
[0190] Strategy type;
[0191] Version;
[0192] describe;
[0193] The condition description includes at least one of the following:
[0194] Conditional relationship is the coexistence relationship between various conditions;
[0195] Conditional judgment indicators;
[0196] Operators;
[0197] Thresholds that trigger actions;
[0198] describe;
[0199] Other attributes:
[0200] The group description includes at least one of the following:
[0201] Strategy ID;
[0202] Group ID;
[0203] The operation list includes at least one operation description, wherein the operation description includes at least one of the following: operation ID, priority, availability, executor, execution method, execution target, parameter list, description, and other parameters.
[0204] In some embodiments, the policy monitoring template includes at least one of the following:
[0205] Monitoring description;
[0206] Monitoring ID;
[0207] Strategy ID;
[0208] Monitoring data collection description, including at least one of the following: monitored component, specific object in the monitored component, monitoring method, monitoring content, and feedback data;
[0209] A description of the monitoring data judgment, including at least one of the following: the component responsible for the analysis, the data received, the judgment method, and the availability results;
[0210] Cooling cycle;
[0211] Other description.
[0212] The embodiment of the present invention also provides a policy management device, such as Figure 5 As shown, including:
[0213] A design module, used to obtain a strategy designed according to a strategy parameter template;
[0214] A verification module, used for performing static conflict verification on the policy, and if the verification passes, assigning the policy to a corresponding policy group, where the policies in the same policy group have the same events and conditions;
[0215] The storage module is used to store policies that have passed verification;
[0216] A policy monitoring module is used to send a data acquisition request to a network function entity according to the priority order of the policies in the policy group and the content of the policy monitoring template to request the data required by the policy; analyze the data to obtain the availability of the operation defined by the policy, and if the environment where the policy is located meets the policy execution conditions, modify the availability attribute of the policy to available, and stop detecting other low-priority policies in the same policy group; otherwise, modify the availability attribute of the policy to unavailable, and continue to detect the availability of operations defined by other low-priority policies;
[0217] The decision module is used to execute the operation defined by the policy according to the availability attribute of the policy.
[0218] In this embodiment, the availability of the operations defined by the policies in a policy group is detected from high to low priority. When the availability of the action of a high-priority policy is available, there is no need to check the subsequent actions of low-priority policies. The availability of the low-priority policy can be directly marked as unavailable, thereby avoiding the need to check resources multiple times and wasting computing power. When the action of a high-priority policy is unavailable, the availability of the action of the high-priority policy is marked as unavailable, and the action is no longer executed, thereby avoiding long service waiting time and waste of resources used for interaction caused by multiple requests for related resources when resources are insufficient.
[0219] In some embodiments, the required data includes but is not limited to at least one of the following:
[0220] Whether the resources required by the strategy in the current environment can be met;
[0221] The preemption of the same resource by strategies belonging to different strategy groups during operation;
[0222] Availability of data compression actions;
[0223] Availability of protocol acceleration actions;
[0224] Whether it conflicts with the current environment;
[0225] Availability of VNF migration.
[0226] In some embodiments, the event template in the policy parameter template includes an event description, including at least one of the following:
[0227] Event ID;
[0228] Strategy ID;
[0229] Strategy type;
[0230] Event indicator value;
[0231] Start time;
[0232] End time;
[0233] cycle;
[0234] Other descriptions:
[0235] Other properties.
[0236] In some embodiments, the condition and action template in the policy parameter template includes a policy description, a condition description, and a group description, and the policy description includes at least one of the following:
[0237] Strategy ID;
[0238] Designers;
[0239] Strategy type;
[0240] Version;
[0241] describe;
[0242] The condition description includes at least one of the following:
[0243] Conditional relationship is the coexistence relationship between various conditions;
[0244] Conditional judgment indicators;
[0245] Operators;
[0246] Thresholds that trigger actions;
[0247] describe;
[0248] Other attributes:
[0249] The group description includes at least one of the following:
[0250] Strategy ID;
[0251] Group ID;
[0252] The operation list includes at least one operation description, wherein the operation description includes at least one of the following: operation ID, priority, availability, executor, execution method, execution target, parameter list, description, and other parameters.
[0253] In some embodiments, the policy monitoring template includes at least one of the following:
[0254] Monitoring description;
[0255] Monitoring ID;
[0256] Strategy ID;
[0257] Monitoring data collection description, including at least one of the following: monitored component, specific object in the monitored component, monitoring method, monitoring content, and feedback data;
[0258] A description of the monitoring data judgment, including at least one of the following: the component responsible for the analysis, the data received, the judgment method, and the availability results;
[0259] Cooling cycle;
[0260] Other description.
[0261] The embodiment of the present application is improved based on the ECA-style policy, and the content of policy execution availability monitoring is added. At the same time, according to this policy description method, a new policy monitoring template and a matching policy monitoring module are designed. This embodiment can ensure the scalability, flexibility and dynamic adaptability of the policy; the content that needs to be monitored by the policy can be dynamically designed; the policy monitoring module uses this improved policy description method to perform policy life cycle management, policy implementation condition availability monitoring, and policy dynamic monitoring alarm.
[0262] This embodiment designs a new policy parameter template, such as Figure 5 As shown in the figure, based on the traditional ECA policy description method, the action (A) list is grouped according to the group ID, and two new attributes, priority and usability, are added to the action (A). At the same time, a policy monitoring module is added on the basis of ECA to monitor the policy availability, which can fill in parameters and corresponding values, generate and issue them.
[0263] Among them, Group (strategy group) is essentially a variation of Action. Taking action list (actionList) as a data type of Group can meet the situation where there are different actions for the same event, that is, it allows designers to design other alternatives (action) in advance for situations where action cannot meet the requirements. This also allows strategy designers and / or operators to more conveniently design the content of strategy execution in advance according to different situations of actual strategy operation, and put it into a group to meet user needs more flexibly. Among them, the strategy group id (group id) is used as the identifier of the strategy group.
[0264] Priority is the basic premise for different actions to coexist. It provides a basis for selecting different actions and gives policy designers and operators more flexibility and choices in policy design. During implementation, the availability of actions in a group is checked from high to low according to the priority value. When the availability of a high-priority action is True, there is no need to check subsequent actions and it can be directly marked as false, avoiding the situation where the system needs to check resources multiple times and waste computing power.
[0265] For usability, the policy monitoring module checks the availability of resources for the actions corresponding to the policy. If the current resources do not meet the requirements, this attribute is marked as False, and an alarm is sent to the policy issuer or operator, and the action is no longer executed. This function avoids long service waiting time and waste of interactive resources caused by multiple requests for related resources when resources are insufficient.
[0266] The policy management method of this embodiment specifically includes the following steps:
[0267] Step 1: The strategy designer designs the strategy according to the ECAM parameter template;
[0268] Step 2: The verification module analyzes and initially verifies the strategy designed in step 1, i.e. static conflict verification. If it passes, the strategy is assigned to a corresponding strategy group, where strategies of the same EC belong to the same strategy group.
[0269] Step 3: If the verification passes and the policy group is assigned successfully, the policy is stored in the storage module;
[0270] Step 4: The policy monitoring module sends data acquisition requests to NFs (network functions) in real time or regularly for the data required by policies with different actions according to the content of monitor_data_collect in the policy monitoring template, and receives relevant data. Next, analyze these data according to the content of monitor_judge. By analyzing the relevant information and data obtained (such as PM / FM information), the availability of the policy action (that is, the result in the template) is analyzed. If the resource meets the conditions for policy execution, a notification is sent to the storage module, the usability attribute in this policy is modified to True, and the detection of other low-priority policies is stopped; otherwise, the usability attribute in this policy is modified to False, that is, it is unavailable, and the availability of actions of other low-priority policies is continued to be checked, and corresponding alarms are issued to the corresponding entities or operators.
[0271] The content monitored by the policy monitoring module includes but is not limited to whether the resources required by the policy in the current environment can be met, and also includes other content related to policy execution, such as the preemption of the same resource by policies belonging to different groups during operation; in addition to resources, it also includes the availability of actions such as data compression and protocol acceleration, whether they conflict with the current environment, and the availability of VNF migration (for example, the price of migration, the security of migration, etc.). For example, if the action is data compression, this will inevitably bring about the problem of decompression, thereby causing certain data restoration distortion problems. If the system has high requirements for the accuracy of the data content, this policy action still needs to be set to false.
[0272] Step 5: During the running state, the decision module analyzes the received events, determines the policy status based on the policy availability information obtained from the storage module, and determines whether to call other components to execute the policy action; if the same EC has multiple policy actions, they are compared according to the priority. Once a high-priority policy can be satisfied, the comparison and detection is stopped and the policy is executed.
[0273] Taking a typical resource expansion and contraction scenario as an example, when the memory utilization of a running business exceeds a certain threshold, an alarm event is triggered, and the policy engine expands the resource memory based on the alarm information. Traditional policies may directly determine that when the threshold is exceeded, the memory resource capacity is expanded according to the pre-defined expansion amount.
[0274] If you define a capacity expansion range for the alarm event, and define multiple actions in the range, for example, you can set multiple actions such as adding 2G, adding 4G, and 8G. In this way, the alarm event will correspond to multiple actions, and define a priority for each action. For example, adding 8G has the highest priority, 4G is second, and 2G is the lowest. When executing, adding 8G is preferred. If 8G does not meet the requirement, 4G is selected, and so on.
[0275] Add a policy monitoring module to monitor the availability of actions in real time and at regular intervals. For example, for the action of adding 8G, if it is detected that the actual resources do not meet the conditions, the action is set to disabled. When an alarm event occurs, it is found that the action of adding 8G cannot be executed, and the action of adding 4G is executed instead.
[0276] In a specific example, the event template sample is as follows:
[0277]
[0278]
[0279] Among them, the generalized analysis of this paragraph template is:
[0280]
[0281] In a specific example, the condition and action templates are as follows:
[0282]
[0283]
[0284]
[0285] Among them, the generalized analysis of this paragraph template is:
[0286]
[0287]
[0288]
[0289] By adding priority, usability, and policy group group_id to the template, you can flexibly select operations.
[0290] In a specific example, the policy monitoring template sample is as follows:
[0291]
[0292]
[0293] Among them, the generalized analysis of this paragraph template is:
[0294]
[0295]
[0296] In this embodiment, the ECA-style policy description method is enhanced, that is, two attributes, priority and usability, are added on the basis of the ECA-style policy description method, and an extension method based on the ECA-style policy is provided, that is, the Group data type is added to allow different actions in a policy to be stored at the same time, and the policy action is selected and executed according to the real-time environment of policy execution.
[0297] This embodiment also proposes a policy monitoring template based on ECA, allowing policy designers and / or operators to design content data to be monitored on demand, including but not limited to resources, permissions, security considerations and compliance of certain new methods with managed entities required by the policy, and allowing policy designers and / or operators to select a judgment method to determine whether the actions included in this policy are available based on the collected data. At the same time, the data collection and data analysis content in the template is divided into two sub-templates (represented by different IDs), so that different data collection and analysis methods can be freely combined.
[0298] The usability, priority, grouping and policy monitoring template proposed in this embodiment are a new policy availability monitoring method. Users can customize the policy execution status to be monitored in the running state according to different policy contents, which improves the flexibility of ECA-style policies in the execution process. When an event occurs, the existing scheme triggers the corresponding method for policy execution, but it is unknown whether the policy operation can be executed. In particular, if a large number of identical events are generated, frequent execution of policy actions will result in frequent calls. When the policy action can no longer be executed, frequent calls will result in a large amount of resource waste and even affect the normal operation of the overall business. Therefore, the newly added policy monitoring module dynamically monitors the policy availability and status. When the policy is not feasible, it will no longer call the resources and services and return directly, which can greatly improve the utilization efficiency of resources. At the same time, if it is monitored that the policy is not executable, the policy monitoring module can return an alarm to the upper-level entity or operator to prompt the improvement of the policy content.
[0299] The embodiment of the present invention also provides a policy management method, such as Figure 6 As shown, it includes a memory 21, a processor 22, and a computer program stored in the memory 21 and executable on the processor 22; when the processor 22 executes the program, the policy management method as described above is implemented.
[0300] The processor 22 is specifically used to obtain a policy designed according to a policy parameter template, perform static conflict verification on the policy, and if passed, assign the policy to a corresponding policy group, where the policies in the same policy group have the same events and conditions; send a data acquisition request to a network function entity according to the priority order of the policies in the policy group and the content of the policy monitoring template to request the data required by the policy; analyze the data to obtain the availability of the operations defined by the policy, and if the environment where the policy is located meets the policy execution conditions, modify the availability attribute of the policy to available, and stop detecting other low-priority policies in the same policy group; otherwise, modify the availability attribute of the policy to unavailable, and continue to detect the availability of operations defined by other low-priority policies; and execute the operations defined by the policy according to the availability attribute of the policy.
[0301] In some embodiments, the required data includes but is not limited to at least one of the following:
[0302] Whether the resources required by the strategy in the current environment can be met;
[0303] The preemption of the same resource by strategies belonging to different strategy groups during operation;
[0304] Availability of data compression actions;
[0305] Availability of protocol acceleration actions;
[0306] Whether it conflicts with the current environment;
[0307] Availability of VNF migration.
[0308] In some embodiments, the event template in the policy parameter template includes an event description, including at least one of the following:
[0309] Event ID;
[0310] Strategy ID;
[0311] Strategy type;
[0312] Event indicator value;
[0313] Start time;
[0314] End time;
[0315] cycle;
[0316] Other descriptions:
[0317] Other properties.
[0318] In some embodiments, the condition and action template in the policy parameter template includes a policy description, a condition description, and a group description, and the policy description includes at least one of the following:
[0319] Strategy ID;
[0320] Designers;
[0321] Strategy type;
[0322] Version;
[0323] describe;
[0324] The condition description includes at least one of the following:
[0325] Conditional relationship is the coexistence relationship between various conditions;
[0326] Conditional judgment indicators;
[0327] Operators;
[0328] Thresholds that trigger actions;
[0329] describe;
[0330] Other attributes:
[0331] The group description includes at least one of the following:
[0332] Strategy ID;
[0333] Group ID;
[0334] The operation list includes at least one operation description, wherein the operation description includes at least one of the following: operation ID, priority, availability, executor, execution method, execution target, parameter list, description, and other parameters.
[0335] In some embodiments, the policy monitoring template includes at least one of the following:
[0336] Monitoring description;
[0337] Monitoring ID;
[0338] Strategy ID;
[0339] Monitoring data collection description, including at least one of the following: monitored component, specific object in the monitored component, monitoring method, monitoring content, and feedback data;
[0340] A description of the monitoring data judgment, including at least one of the following: the component responsible for the analysis, the data received, the judgment method, and the availability results;
[0341] Cooling cycle;
[0342] Other description.
[0343] An embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the policy management method described above are implemented.
[0344] Computer readable media include permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage terminal devices to be detected or any other non-transmission media that can be used to store information that can be accessed by the computer terminal device to be detected. As defined in this article, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carriers.
[0345] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A strategy management method, It is characterized in that include: Obtain the policy designed according to the policy parameter template, perform static conflict verification on the policy, and if it passes, assign the policy to the corresponding policy group, where the policies in the same policy group have the same events and conditions; Sending a data acquisition request to the network function entity according to the priority order of the policies in the policy group and the content of the policy monitoring template, requesting the data required by the policy; Analyze the data to obtain the availability of the operation defined by the policy. If the environment where the policy is located meets the policy execution condition, modify the availability attribute of the policy to available, and stop detecting other low-priority policies in the same policy group; otherwise, modify the availability attribute of the policy to unavailable, and continue to detect the availability of operations defined by other low-priority policies, including: detecting the availability of operations defined by policies in a policy group in descending order of priority, when the availability of operations of high-priority policies is available, there is no need to check the operations of subsequent low-priority policies, and directly mark the availability of the low-priority policies as unavailable; when the operation of a high-priority policy is unavailable, mark the availability of the operation of the high-priority policy as unavailable, and no longer perform the operation; The operations defined by the policy are executed according to the availability attribute of the policy.
2. The policy management method according to claim 1, It is characterized in that The required data include but are not limited to at least one of the following: Whether the resources required by the strategy in the current environment can be met; The preemption of the same resource by strategies belonging to different strategy groups during operation; Availability of data compression actions; Availability of protocol acceleration actions; Whether it conflicts with the current environment; Availability of VNF migration.
3. The policy management method according to claim 1, It is characterized in that The event template in the policy parameter template includes an event description, including at least one of the following: Event ID; Strategy ID; Strategy type; Event indicator value; Start time; End time; cycle; Other descriptions: Other properties.
4. The policy management method according to claim 1, It is characterized in that The condition and action template in the policy parameter template includes a policy description, a condition description and a group description, wherein the policy description includes at least one of the following: Strategy ID; Designers; Strategy type; Version; describe; The condition description includes at least one of the following: Conditional relationship is the coexistence relationship between various conditions; Conditional judgment indicators; Operators; Thresholds that trigger actions; describe; Other attributes: The group description includes at least one of the following: Strategy ID; Group ID; The operation list includes at least one operation description, wherein the operation description includes at least one of the following: operation ID, priority, availability, executor, execution method, execution target, parameter list, description, and other parameters.
5. The policy management method according to claim 1, It is characterized in that The policy monitoring template includes at least one of the following: Monitoring description; Monitoring ID; Strategy ID; Monitoring data collection description, including at least one of the following: monitored component, specific object in the monitored component, monitoring method, monitoring content, and feedback data; A description of the monitoring data judgment, including at least one of the following: the component responsible for the analysis, the data received, the judgment method, and the availability results; Cooling cycle; Other description.
6. A policy management device, It is characterized in that include: A design module, used to obtain a strategy designed according to a strategy parameter template; A verification module, used for performing static conflict verification on the policy, and if the verification passes, assigning the policy to a corresponding policy group, where the policies in the same policy group have the same events and conditions; The storage module is used to store policies that have passed verification; A policy monitoring module, used to send a data acquisition request to the network function entity according to the priority order of the policies in the policy group and the content of the policy monitoring template, requesting the data required by the policy; Analyze the data to obtain the availability of the operation defined by the policy. If the environment where the policy is located meets the policy execution condition, modify the availability attribute of the policy to available, and stop detecting other low-priority policies in the same policy group; otherwise, modify the availability attribute of the policy to unavailable, and continue to detect the availability of operations defined by other low-priority policies; A decision module, configured to execute the operation defined by the policy according to the availability attribute of the policy; The policy monitoring module is specifically used to detect the availability of operations defined by policies in a policy group in order of priority from high to low. When the availability of operations of a high-priority policy is available, there is no need to check the subsequent operations of low-priority policies, and the availability of the low-priority policy is directly marked as unavailable; when the operation of a high-priority policy is unavailable, the availability of the operation of the high-priority policy is marked as unavailable, and the operation is no longer performed.
7. The policy management device according to claim 6, It is characterized in that The required data include but are not limited to at least one of the following: Whether the resources required by the strategy in the current environment can be met; The preemption of the same resource by strategies belonging to different strategy groups during operation; Availability of data compression actions; Availability of protocol acceleration actions; Whether it conflicts with the current environment; Availability of VNF migration.
8. The policy management device according to claim 6, It is characterized in that The policy monitoring template includes at least one of the following: Monitoring description; Monitoring ID; Strategy ID; Monitoring data collection description, including at least one of the following: monitored component, specific object in the monitored component, monitoring method, monitoring content, and feedback data; A description of the monitoring data judgment, including at least one of the following: the component responsible for the analysis, the data received, the judgment method, and the availability results; Cooling cycle; Other description.
9. A policy management device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor; It is characterized in that When the processor executes the program, the policy management method according to any one of claims 1 to 5 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the steps in the policy management method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Fine grain authority management method based on classification method
CN101493872A
KR20200063309A
