Background
The application of policy management is quite wide, related policy control is provided on a wireless Access Point (AP) and a switch, and the policy is divided into a service policy, a security policy, a fault policy and a service policy according to the purpose. The wireless service system comprises a cloud management platform (cloud platform for short) and a wireless access point, wherein the cloud platform issues service strategies to the access point, and provides some configurations for executing services to the access point, and each shop end (shop) on the cloud platform of the wireless service system must have a service strategy (business policy), otherwise, the access point in the shop end is not suitable.
The policy configuration items supported by the shop side are, for example: authentication-free MAC, authentication-free IP, URL list pushing, URL address replacement, URL strategy, URL pushing interval, whether URL collection is started or not, whether URL KEY collection is started or not, the number of URLs reported each time, PORTAL page URL and the like. The configuration items of the business strategy are related to the business requirements of specific projects, such as: if the cloud platform of the wireless service system needs to support portal authentication service, the service policy configuration items supported by the system have authentication-free MAC and authentication-free IP configurations.
In the existing scheme, in terms of implementing the policy configuration related to the service, the data structure mostly adopts an XML file, and in terms of implementation, the data structure mostly adopts a guide or a tab page, and is displayed in the form of multiple web pages. Specifically, in the prior art, configuration items are stored in an XML file, the parsing of the XML file requires an XML file parser, and adding, deleting and updating the XML file in a program are complicated.
Meanwhile, the configuration items are issued step by step in the form of guide or label pages, and the business strategy that the configuration items are fixed and the configuration parameters can be subdivided according to the classes is more suitable; however, if the policy configuration items of a certain device are more and distributed, switching of multiple pages is required, and the guide or tab page is composed of multiple separate WEB pages, and multiple page jumps and refreshes are required, so that the user has long waiting time, which is not favorable for user experience, and the operation is troublesome.
Therefore, how to provide a simple and convenient data structure and how to expose the policy configuration page to improve the user experience is a problem that the program has to solve urgently.
Disclosure of Invention
The invention provides a method for realizing service policy management on a cloud platform in a wireless service system aiming at service policy management of equipment in a wireless network, which completes the service policy management function on the cloud platform by designing a data structure, generating a policy, assigning to a shop side and controlling the policy, and has the advantages of simple realization method and easy operation.
In order to achieve the above object, the technical solution of the present invention is to provide a method for implementing service policy management of a cloud platform of a wireless service system, wherein:
for the business strategy sent to the corresponding wireless access point by the shop side, recording the configuration items related to the business strategy and the parameter values of the configuration items by using a strategy table with a tree structure;
the policy table comprises a policy configuration parameter table for storing all configurable items of the business policies on each shop end, wherein fields of father nodes and/or child nodes for recording parameter values in the configuration items are arranged;
and adjusting the configuration items supported by the shop end or the parameter values of the configuration items by controlling the policy configuration parameter table.
Preferably, for the request of the newly added strategy, the cloud platform acquires the related information of the newly added strategy to form a corresponding strategy table, records the configuration item of the newly added strategy through the strategy table, and assigns the newly added strategy to the set shop side;
when the appointed store end does not have the started strategy originally, or when the appointed store end has the started strategy originally and does not start the new strategy, submitting the strategy table of the new strategy to a database for storage;
and giving an error prompt when the appointed store end originally has the enabled strategy and enables the newly added strategy.
Preferably, when the appointed store end does not have the activated strategy originally, the newly added strategy is modified to be in an activated state;
when the appointed store end originally has the enabled strategy and needs to enable the new strategy, the originally enabled strategy is modified into the disabled state, and then the new strategy is modified into the enabled state.
Preferably, in the business policies supported by the shop side, the configuration item of one policy in the enabled state is viewed, or the configuration items of one or more policies in the disabled state are controlled; the control operation comprises an operation of adding, deleting or modifying the configuration item or the parameter value thereof.
Preferably, for a policy selected from the business policies supported by the shop side, when receiving a policy state adjustment request, the cloud platform determines an original enabled or disabled state of the policy:
if the policy is in the enabled or disabled state requested to be adjusted, entering a policy details page to view the configuration item of the policy;
if the strategy is not in the enabled or disabled state requested to be adjusted, modifying the state of the relevant strategy in the strategy table into the enabled or disabled state requested to be adjusted, and sending a WEB notification message to the service terminal after the modification is successful.
Preferably, all configuration items of the shop side are displayed in a table form on the same page, and the display of the page is dynamically adjusted along with the control operation of the strategy table through the Jquery library.
Preferably, the policy table is stored by a Mysql database.
Preferably, the policy table further includes: a strategy information table for storing the relevant information of the business strategy, and a strategy detailed configuration table for storing the parameter values of the business strategy of each shop.
Preferably, the type of the configuration item is any one of or any combination of the following: integer, string, array, record, array record.
Preferably, the configuration items supported by the shop side are any one or any combination of the following items, including: authentication-free MAC, authentication-free IP, URL list pushing, URL address replacement, URL strategy, URL pushing interval, URL collection starting, URL KEY collection starting, URL number reported each time and PORTAL page URL.
Compared with the prior art, the method for realizing the service strategy management of the cloud platform of the wireless service system has the advantages that:
the data storage of the invention is based on the Mysql database, the design of the policy table structure adopts a tree structure, the PHP language used by the WEB server provides rich interfaces for the operation of the Mysql database, the policy configuration items are added, and the corresponding interface functions can be directly called when deleted and updated, so that the processing is very simple and convenient. If the strategy configuration items supported by the shop end need to be changed, the strategy configuration parameter table can be directly modified to take effect without modifying codes or logging out of the system for re-login. Therefore, the method effectively simplifies the complexity of program codes when the program codes are added, deleted and updated based on the XML file in the prior art.
According to the invention, all configuration items and parameters which can be matched by a shop-side strategy are placed on the same operation page and presented in a popup-type table form, so that the complexity of operation by a guide or a label page is avoided, meanwhile, the waiting of page jump refreshing is not required, and all the configuration items are clear at a glance; meanwhile, the required configuration items are dynamically displayed by the given items in the policy configuration parameter table in combination with jquery (JS script library), so that the operation is simple, one step is in place, the response speed is high, and the operation of managers is simplified, thereby improving the user experience.
Detailed Description
In an example of fig. 1, for a wireless service system cloud platform, a server (server) and a plurality of shop sides (shop) corresponding to the server (server) and a plurality of wireless Access Points (AP) under each shop side are provided, and an administrator may control all wireless access point devices under the shop sides through a service policy to assist related services of the system. The method mainly relates to the design of a data structure, the generation of a strategy, the assignment to a shop side and the control of the strategy, so as to complete the service strategy management function on the cloud platform.
In the implementation method of the business strategy management, the data storage is realized mainly based on the Mysql database, wherein a strategy table is used for recording relevant strategy configuration items. And all configuration items which can be configured by the shop side strategy are placed on the same operation page to be presented in a table form, and the dynamic change of the page presentation along with the operation is realized by combining a Jquery library (JS script library).
In a preferred example, in the same operation page containing all configuration items that can be configured by the business-side policy, configured items are displayed on the upper part of the page, and parameters and corresponding values of the configuration items are listed in the form of a table, the configuration items can be directly added, deleted and changed on the table, and the unconfigured items only display names of the configuration items, and parameter values of the items can be configured through a nearby adding button. The table has the characteristics that the relation between each configuration item and each sub item is clearly seen, and the gaps among a plurality of configuration records of the same configuration item are small, so that the page length can be effectively shortened, and all the configuration items are placed on the same operation page without causing the page to be overlong.
The page display is dynamically changed along with the operation, the page change can be caused by the addition and deletion operations of each configuration item of the policy control page, the JS script can directly operate WEB page elements to achieve the effect of the page to be displayed, the page response speed is very high, the JS script takes effect almost immediately after the operation, and the good user experience can be achieved, wherein the JS script is achieved by referring to a Jquery library. The Jquery library is an excellent lightweight js library and is compatible with the CSS3 and various browsers. The jQuery can separate html page codes and contents, does not need to insert a large number of js in html to call commands, and only needs to define id. The method integrates functions frequently used in JavaScript development to facilitate direct use of developers without writing a large number of codes by using a native JavaScript statement, thereby simplifying JS script control codes.
The strategy configuration items in the invention are of types of integer, character string, array, record and array record, and the latter three types of configuration items have a one-to-many relationship, so that the design of the strategy table structure in the invention adopts a tree structure to express related subordination, parallel relationship and the like, and the data with the tree relationship is stored according to the parentid field of the record in the design of the table.
The strategy configuration items supported by the shop side in the invention are any one or any combination of the following items, including: authentication-free MAC, authentication-free IP, URL list pushing, URL address replacement, URL strategy, URL pushing interval, URL collection starting, URL KEY collection starting, URL number reported each time and PORTAL page URL. The configuration items of the business strategy are related to the business requirements of the system for executing specific projects.
The policy table includes a policy information table (policy _ info), a policy detail configuration table (policy _ detail _ info), and a policy configuration parameter table (policy _ info). The policy _ info table is mainly used for storing basic information such as a policy name, a state and the like of the policy; the policy _ detail _ info table is mainly used for storing the values of the strategy parameters of each shop; the policyitem _ info table is used primarily to store all configurable entries for policies on various merchants. The policy _ detail _ info table and the policy item _ info table are key to implementing policy management.
Fig. 2 shows the structure of an exemplary policy _ detail _ info table, (which is similar). That is, the policy _ detail _ info table of the tree structure may contain Columns and Indexes; the fields PolicyRecordID (policy record identification), PolicyID (policy identification), ParentRecordID (parent node record identification), ItemID (item identification), Value (Value) under the Columns entry are shown as examples. The ParentRecordID field is used to identify a parent node corresponding to a configuration parameter Value in the record, and if the Value field Value in the record is null, it indicates that there are child nodes below the Value field Value.
When the strategy is generated, a strategy is newly added through a cloud platform management page and is assigned to a certain shop side. The default state of the strategy is disabled, one shop side can have a plurality of disabled strategies, but only one and one enabled strategy is required; if the store does not have a policy enabled, then a warning is given in the store list.
As shown in fig. 3, in a specific example, the generation and specification of the policy includes the following processes:
a1, receiving a request for adding a new policy (for example, clicking a 'new adding' button on a policy management page of the cloud platform), and displaying a management page for adding a policy by the cloud platform, wherein the management page can be given with related information such as a policy name, an initial state and the like of the new policy.
A2, the cloud platform forms a corresponding policy table according to the given relevant information to record the policy configuration item of the new policy, and assigns the new policy to a certain set store.
A3, judging whether the appointed store end has appointed the enabled strategy, executing A3-1 or A3-2 according to the judgment result: wherein the content of the first and second substances,
a3-1, if the strategy is not enabled, submitting the strategy table of the newly added strategy to the database for storage. For the case that no policy was originally enabled, a prompt message may be given to prompt policy configuration (described in detail below) to enable a policy for the store (considering that only the new policy is added at this time, so it is usually enabled).
A3-2, if the strategy is already enabled, further determining whether the appointed store end enables the new strategy, executing A3-2-1 or A3-2-2:
a3-2-1, if the new strategy is not enabled, keeping the default disabled state of the new strategy, and submitting the strategy table of the new strategy to a database for storage;
a3-2-2, if the newly added strategy is determined to be enabled, giving an error prompt because of conflict with the strategy already enabled by the shop. The error notification may be further resolved by modifying the previously enabled policy to be disabled and then enabling the new policy through a policy configuration operation (described in detail below).
For the control of the strategy, relevant configuration parameters and values can be specified for the strategy on the shop side according to the business strategy scheme of the shop side, the existing configuration items can be added, deleted and changed when the strategy is in a forbidden state, and the enabled strategy can only be checked. Meanwhile, the enabling and disabling states of the strategy can be controlled, and a notification message can be sent to the server when the strategy state is changed, so that the server can process the strategy in time conveniently.
As shown in fig. 4, a specific example of the process of performing policy control includes:
B. selecting a strategy from a strategy list;
b1, when receiving a request for policy configuration (for example, clicking a "policy configuration" button on a policy management page of the cloud platform), determining whether the policy is enabled:
b1-1, if the strategy is enabled, entering a strategy detail page for checking;
b1-2, if the policy is not enabled, entering a policy configuration page provided by the cloud platform:
and after the operations of adding, deleting, changing and the like are carried out on the configuration items of the strategy, submitting the strategy table after the strategy is configured to a database for storage. And if the relevant operation is not carried out, returning the strategy list.
B2, when receiving a request for adjusting the policy state (for example, clicking an "enable/disable" button on a policy management page of the cloud platform), determining whether the policy is enabled/disabled:
b2-1, if the policy is enabled/disabled (i.e. when the requested adjusted state has been reached), entering a policy details page for viewing;
b2-3, if the policy is not enabled/disabled (i.e. not in the requested adjusted state), modifying the policy state in the record to the requested enabled/disabled state. After the modification is successful, sending a notification message to the server; if the modification is unsuccessful, an error prompt message is sent out.
According to the related flow of policy control, it can be understood that for the case that the policy is not originally enabled as described in a3-1 above, the configuration operation of B2 may be performed on the newly added policy, and the newly added policy is directly enabled. For the case described in a3-2-2, the configuration operation of B2 needs to be performed once for the originally enabled policy, and then the configuration operation of B2 needs to be performed once for the newly added policy, so as to eliminate the related error prompt and ensure that only the store has one and only one enabled policy.
In addition, the present invention supports the WEB notification function in B2-3, that is, when the policy status changes, a change notification is sent to the server, which facilitates the server to perform corresponding processing in time. The WEB notification means that when a certain operation of the WEB page is completed and the service needs to perform corresponding processing, the service can determine that the WEB performs the operation through round robin, or perform corresponding processing according to the notification of the WEB. The invention adopts a WEB notification method to notify the server, so that the server can respond quickly.
The implementation method for the service policy management of the cloud platform of the wireless service system, disclosed by the invention, is based on the tree structure design of the database table, so that the complexity of program codes when the existing XML-based file is added, deleted and updated is simplified; all configuration items which can be configured by the shop side strategy are placed on the same operation page and presented in a table form, dynamic change of the page presentation along with the operation is realized by combining a Jquery library (JS script library), the operation is simple, the operation is in place at one time, the response speed is high, the operation of a manager is simplified, and therefore the user experience is improved.
While the present invention has been described in detail with reference to the preferred embodiments, it should be understood that the above description should not be taken as limiting the invention. Various modifications and alterations to this invention will become apparent to those skilled in the art upon reading the foregoing description. Accordingly, the scope of the invention should be determined from the following claims.