IP Library › Granted Patent US 10,262,267
Granted Patent B2
US 10,262,267 · App. 14/102,136 · Granted Apr 16, 2019

Method and device for processing policy

Inventor: Mingzhen Xia (Hangzhou, CN)
Assignee: Huawei Technologies Co., Ltd.
G06N5/025
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,262,267
App. No.
14/102,136
Granted
Apr 16, 2019
Kind
B2
Abstract

The present invention disclose a method for processing a policy, including: obtaining at least one user policy, where the user policy is used to instruct a service processing unit to perform service processing; reading information of an application knowledge base corresponding to each user policy and performing rule conversion on the read information, so that the description language of the information is consistent with the rule description language of the user policy; combining a condition element and an action element of each user policy with information corresponding to the condition element and the action element, and compiling each result obtained through combination; and sending each compilation result to a service processing unit corresponding to each compilation result. Correspondingly, the embodiments of the present invention further disclose a device for processing a policy. The embodiments of the present invention can reduce system overhead.

Claims (36)

1. A method for processing a policy implemented by a computer program, wherein the computer program instructs a hardware processor to perform the method to form a unified policy engine and a plurality of service processing units respectively corresponding to a plurality of application knowledge bases, the method comprising:

obtaining a plurality of user policies by the unified policy engine, wherein each user policy includes at least one classified user policy, each classified user policy corresponds to a specific user policy classification, the each user policy is configured in advance to be sent to one service processing unit corresponding to the each user policy in the plurality of service processing units, each service processing unit further corresponds to one application knowledge base of one application service in the plurality of application knowledge bases, and the plurality of service processing units include at least two service processing units selected from: a wide area network optimization controller (WOC), a deep packet inspection (DPI), an application delivery controller (ADC), a uniform resource locator filter (URLF), or an intrusion prevention system (IPS);

reading information of the plurality of application knowledge bases corresponding to the plurality of user policies, and performing rule conversion on the information in the unified policy engine, so that the description language of the information is converted to be consistent with a same one rule description language of the plurality of user policies;

combining a condition element and an action element of the each user policy with information corresponding to the condition element and the action element, and compiling each result obtained through combination to obtain a compilation result in the unified policy engine, wherein the information corresponding to the condition element and the action element is information required by the condition element and the action element in the information obtained through rule conversion, and the compilation result is a data structure that is capable of being identified and used by the one service processing unit corresponding to the each user policy; and

sending the compilation result to the one service processing unit by the unified policy engine.

2. The method according to claim 1 , wherein before combining the condition element and the action element of the each user policy with information corresponding to the condition element and the action element, and compiling each result obtained through combination, the method further comprises:

parsing the each user policy, and extracting the condition element and the action element that are comprised in the each user policy; and

extracting the information corresponding to the condition element and the action element from the information obtained through rule conversion.

3. The method according to claim 1 , wherein combining the condition element and the action element of the each user policy with information corresponding to the condition element and the action element, and compiling each result obtained through combination, comprises:

optimizing the condition element and the action element of the each user policy and the information corresponding to the condition element and the action element; and

combining the condition element and the action element of the each user policy with the optimized information corresponding to the condition element and the action element, and compiling each result obtained through combination;

wherein the optimization comprises:

deleting repeated information; and/or

creating a mapping relationship between the condition element and a numeric identifier ID, and a mapping relationship between the action element and a numeric ID.

4. The method according to claim 1 , wherein when the each user policy comprises a centralized user policy, the reading information of an application knowledge base corresponding to the each user policy comprises:

reading information of all application knowledge bases.

5. A device for processing a policy, the device comprising a hardware processor and a non-transitory memory coupled to the hardware processor; wherein the hardware processor being configured to execute a computer program in the non-transitory memory to form a unified policy engine and a plurality of service processing units respectively corresponding to a plurality of application knowledge bases, and the hardware processor being further configured to execute the computer program to perform operations of:

obtaining a plurality of user policies by the unified policy engine, wherein each user policy includes at least one classified user policy, each classified user policy corresponds to a specific user policy classification, the each user policy is configured in advance to be sent to one service processing unit corresponding to the each user policy in the plurality of service processing units, each service processing unit further corresponds to one application knowledge base of one application service in the plurality of application knowledge bases, and the plurality of service processing units include at least two service processing units selected from: a wide area network optimization controller (WOC), a deep packet inspection (DPI), an application delivery controller (ADC), a uniform resource locator filter (URLF), or an intrusion prevention system (IPS);

reading information of the plurality of application knowledge bases corresponding to the plurality of user policies, and performing rule conversion on the information in the unified policy engine, so that the description language of the information is converted to be consistent with a same one rule description language of the plurality of user policies;

combining a condition element and an action element of the each user policy with information corresponding to the condition element and the action element, and compiling each result obtained through combination to obtain a compilation result in the unified policy engine, wherein the information corresponding to the condition element and the action element is information required by the condition element and the action element in the information obtained through rule conversion, and the compilation result is a data structure that is capable of being identified and used by the one service processing unit corresponding to the each user policy; and

sending the compilation result to the one service processing unit by the unified policy engine.

6. The device according to claim 5 , wherein the hardware processor is further configured to perform:

parsing the each user policy, and extracting the condition element and the action element that are comprised in the each user policy; and

extracting the information corresponding to the condition element and the action element from the information obtained through rule conversion.

7. The device according to claim 6 , wherein combining the condition element and the action element of the each user policy with information corresponding to the condition element and the action element, and compiling each result obtained through combination comprises:

optimizing the information corresponding to the condition element and the action element of the each user policy;

combining the condition element and the action element of the each user policy with the optimized information corresponding to the condition element and the action element, and compiling each result obtained through combination; and

wherein the optimization comprises:

deleting repeated information; and/or

creating a mapping relationship between the condition element and a numeric identifier ID, and a mapping relationship between the action element and a numeric ID.

8. The device according to claim 5 , wherein when the each user policy comprises a centralized user policy, reading information of an application knowledge base corresponding to the each user policy comprises reading information of all application knowledge bases.

9. A non-transitory computer readable medium including operations stored thereon that when processed by at least one processing unit cause a system to form a unified policy engine and a plurality of service processing units respectively corresponding to a plurality of application knowledge bases, and to perform the acts of:

obtaining a plurality of user policies by the unified policy engine, wherein each user policy includes at least one classified user policy, each classified user policy corresponds to a specific user policy classification, the each user policy is configured in advance to be sent to one service processing unit corresponding to the each user policy in the plurality of service processing units, each service processing unit further corresponds to one application knowledge base of one application service in the plurality of application knowledge bases, and the plurality of service processing units include at least two service processing units selected from: a wide area network optimization controller (WOC), a deep packet inspection (DPI), an application delivery controller (ADC), a uniform resource locator filter (URLF), or an intrusion prevention system (IPS);

reading information of the plurality of application knowledge bases corresponding to the plurality of user policies, and performing rule conversion on the information in the unified policy engine, so that the description language of the information is converted to be consistent with a same one rule description language of the plurality of user policies;

combining a condition element and an action element of the each user policy with information corresponding to the condition element and the action element, and compiling each result obtained through combination to obtain a compilation result in the unified policy engine, wherein the information corresponding to the condition element and the action element is information required by the condition element and the action element in the information obtained through rule conversion, and the compilation result is a data structure that is capable of being identified and used by the one service processing unit corresponding to the each user policy; and

sending the compilation result to the one service processing unit by the unified policy engine.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 10, 2013
From: XIA, MINGZHEN
To: HUAWEI TECHNOLOGIES CO., LTD.
Reel/Frame 031753/0261 →
Priority Claims (1)
CN 2012 1 0426064 · Oct 31, 2012 · national
Continuity (2)
Continuation PCTCN2013074185 · Apr 15, 2013
Related Publication 20140122406A1 · May 1, 2014