CN108933672B - Policy rule script configuration method, device and system - Google Patents

Policy rule script configuration method, device and system Download PDF

Info

Publication number
CN108933672B
CN108933672B CN201710376676.4A CN201710376676A CN108933672B CN 108933672 B CN108933672 B CN 108933672B CN 201710376676 A CN201710376676 A CN 201710376676A CN 108933672 B CN108933672 B CN 108933672B
Authority
CN
China
Prior art keywords
policy rule
rule script
pcrf
script
types
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710376676.4A
Other languages
Chinese (zh)
Other versions
CN108933672A (en
Inventor
王一峰
杨延亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201710376676.4A priority Critical patent/CN108933672B/en
Publication of CN108933672A publication Critical patent/CN108933672A/en
Application granted granted Critical
Publication of CN108933672B publication Critical patent/CN108933672B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1403Architecture for metering, charging or billing
    • H04L12/1407Policy-and-charging control [PCC] architecture
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M15/00Arrangements for metering, time-control or time indication ; Metering, charging or billing arrangements for voice wireline or wireless communications, e.g. VoIP
    • H04M15/66Policy and charging system

Abstract

The invention discloses a method, a device and a system for configuring a strategy rule script, which relate to the field of communication and information, wherein the method comprises the following steps: acquiring policy rule script operation type information for downloading a policy rule script file of a corresponding type by PCRF equipment; classifying the PCRF equipment according to types according to the acquired strategy rule script operation type information; generating a plurality of policy rule script operation instructions suitable for downloading policy rule script files of corresponding types by PCRF equipment of various types; and respectively sending the multiple strategy rule script operation instructions to PCRF equipment of corresponding types so as to obtain strategy rule script files of corresponding types according to the received instructions. The embodiment of the invention can enable an operator to carry out unified management on the PCRF equipment of all manufacturers, carry out unified management on the policy rule script, and carry out configuration and distribution on the policy rule script to each PCRF equipment.

Description

Policy rule script configuration method, device and system
Technical Field
The present invention relates to the field of communications and information, and in particular, to a policy rule script configuration method, apparatus, and system.
Background
Policy and Charging Control (PCC) architecture standards of the third Generation Partnership Project (3 GPP) define Policy network enforcement capability of the core network domain, i.e. a Policy enforcement system, which includes core network elements such as Policy and Charging Rules Function (PCRF), Subscriber Profile Repository (SPR), etc.
The current standard does not define policy rules to configure network elements related to the operation service. For a long time, different manufacturers carry out policy rule configuration from different angles, manual configuration is inefficient, perfect policy rule operation management is lacked, and provided maintenance means are different. The systems are communicated through oral, mail and excel, which causes extremely chaotic status situation for the operation and maintenance of strategy rule scripts of operators.
Research shows that with the sharp rise of policy operation requirements, the diversity and complexity of policy rule configuration are increased in a geometric progression, and in a new period, the following technical problems need to be solved in policy rule implementation:
1. how do PCRF device configurations from different vendors become non-uniform, the complexity of policy rule configuration data management work is high, and how to get rid of the situation of inefficient manual processing?
2. How to get rid of single tedious work, should different PCRF devices of the same manufacturer need to be configured separately?
3. How are PCRF device maintenance systems of different manufacturers diverse and managed uniformly?
Disclosure of Invention
The embodiment of the invention provides a method, a device and a system for configuring a policy rule script, which solve the problem that the configuration, management and maintenance of PCRF equipment and the policy rule script are not uniform in the prior art.
The policy rule script configuration method provided by the embodiment of the invention comprises the following steps:
acquiring policy rule script operation type information for downloading a policy rule script file of a corresponding type by PCRF equipment;
classifying the PCRF equipment according to types according to the acquired strategy rule script operation type information;
generating a plurality of policy rule script operation instructions suitable for downloading policy rule script files of corresponding types by PCRF equipment of various types;
and respectively sending the multiple strategy rule script operation instructions to PCRF equipment of corresponding types so as to obtain strategy rule script files of corresponding types according to the received instructions.
Preferably, the sending the multiple policy rule script operation instructions to the PCRF device of the corresponding type respectively so that the obtaining of the policy rule script file of the corresponding type according to the received instruction includes:
generating a plurality of simple object access protocol messages, wherein each simple object access protocol message carries a strategy rule script operation instruction, a file name and a file address of a strategy rule script file of one operation type;
and respectively sending the plurality of simple object access protocol messages to PCRF equipment of corresponding types so that the PCRF equipment of corresponding types can download the policy rule script file of the file name from the file address according to the received policy rule script operation instruction.
Preferably, the sending the multiple policy rule script operation instructions to the PCRF device of the corresponding type respectively so that the obtaining of the policy rule script file of the corresponding type according to the received instruction includes:
generating a plurality of simple object access protocol messages, wherein each simple object access protocol message carries a strategy rule script file of one operation type and a strategy rule script operation instruction thereof;
and respectively sending the plurality of simple object access protocol messages to PCRF equipment of corresponding types, so that the PCRF equipment of corresponding types can obtain the policy rule script file from the simple object access protocol messages according to the received policy rule script operation instruction.
Preferably, the method further comprises the following steps:
and generating a plurality of strategy rule script recovery operation instructions suitable for downloading strategy rule recovery script files of corresponding types by PCRF equipment of various types, and respectively sending the strategy rule script recovery operation instructions to the PCRF equipment of corresponding types, so that when the PCRF equipment of corresponding types fails to load the obtained strategy rule script files, the strategy rule recovery script files of corresponding types are obtained according to the received strategy rule script recovery operation instructions.
Preferably, after the PCRF device of the corresponding type fails to load the obtained policy rule script file, the policy rule script file is adjusted.
Preferably, before the obtaining of the policy rule script operation type information used for the PCRF device to download the policy rule script file of the corresponding type, the method further includes:
acquiring and maintaining PCRF equipment information of all types;
and generating a policy rule script file suitable for each type and policy rule script operation type information for managing the policy rule script file of each type according to the PCRF equipment information of all types.
According to an embodiment of the present invention, there is provided a storage medium storing a program for implementing the policy rule script configuration method.
The policy rule script configuration device provided by the embodiment of the invention comprises:
the acquisition module is used for acquiring the operation type information of the policy rule script, which is used for downloading the policy rule script file of the corresponding type by the PCRF equipment;
the classification module is used for classifying the PCRF equipment according to the type according to the acquired strategy rule script operation type information;
the generation module is used for generating a plurality of policy rule script operation instructions suitable for downloading policy rule script files of corresponding types by PCRF equipment of various types;
and the sending module is used for respectively sending the multiple strategy rule script operation instructions to the PCRF equipment of the corresponding type so as to obtain the strategy rule script files of the corresponding type according to the received instructions.
Preferably, the sending module is configured to generate a plurality of simple object access protocol messages, where each simple object access protocol message carries a policy rule script operation instruction, a file name, and a file address of a policy rule script file of one operation type, and then send the plurality of simple object access protocol messages to PCRF devices of corresponding types, so that the PCRF devices of corresponding types download the policy rule script file of the file name from the file address according to the received policy rule script operation instruction.
Preferably, the sending module generates a plurality of simple object access protocol messages, where each simple object access protocol message carries a policy rule script file of one operation type and a policy rule script operation instruction thereof, and then sends the plurality of simple object access protocol messages to PCRF devices of corresponding types, so that the PCRF devices of corresponding types obtain the policy rule script file from the simple object access protocol message according to the received policy rule script operation instruction.
Preferably, the generating module is further configured to generate a plurality of policy rule script recovery operation instructions suitable for downloading policy rule recovery script files of corresponding types by PCRF devices of respective types, and send the plurality of policy rule script recovery operation instructions to the PCRF devices of corresponding types by using the sending module, so that when loading of an acquired policy rule script file by a PCRF device of a corresponding type fails, a policy rule recovery script file of a corresponding type is acquired according to the received policy rule script recovery operation instruction.
Preferably, the method further comprises the following steps:
and the script adjusting module is used for adjusting the strategy rule script file after the PCRF equipment of the corresponding type fails to load the obtained strategy rule script file.
Preferably, the method further comprises the following steps:
the equipment management module is used for acquiring and maintaining information of all types of PCRF equipment before acquiring the operation type information of the policy rule script used for downloading the policy rule script file of the corresponding type by the PCRF equipment;
and the script management module is used for generating the strategy rule script files suitable for all types and strategy rule script operation type information for managing the strategy rule script files of all types according to the PCRF equipment information of all types.
The policy rule script configuration system provided by the embodiment of the invention comprises:
the strategy rule script configuration management subsystem is used for acquiring and maintaining all types of PCRF equipment information, and generating strategy rule script files suitable for all types and strategy rule script operation type information for managing all types of strategy rule script files according to all types of PCRF equipment information;
the system comprises a policy rule configuration distribution subsystem, a policy rule configuration management subsystem and a policy rule configuration management subsystem, wherein the policy rule configuration distribution subsystem is used for acquiring policy rule script operation type information used for downloading policy rule script files of corresponding types by PCRF equipment, classifying the PCRF equipment according to types according to the acquired policy rule script operation type information, generating a plurality of policy rule script operation instructions suitable for downloading the policy rule script files of corresponding types by the PCRF equipment of various types, and respectively sending the policy rule script operation instructions to the PCRF equipment of corresponding types;
and the PCRF equipment is used for acquiring the corresponding type of policy rule script file according to the received policy rule script operation instruction.
Preferably, the policy rule configuration distribution subsystem is further configured to generate a plurality of policy rule script recovery operation instructions suitable for each type of PCRF device to download the policy rule recovery script files of the corresponding type, and send the policy rule script recovery operation instructions to the PCRF devices of the corresponding types, respectively, so that when the PCRF devices of the corresponding types fail to load the acquired policy rule script files, the PCRF devices of the corresponding types acquire the policy rule recovery script files of the corresponding types according to the received policy rule script recovery operation instructions.
Preferably, the policy rule configuration distribution subsystem is further configured to adjust the policy rule script file after the corresponding type of PCRF device fails to load the acquired policy rule script file.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the embodiment of the invention can lead an operator to carry out unified management on the PCRF equipment of all manufacturers, carry out unified management on the policy rule script, and carry out batch configuration and distribution on the policy rule script to each PCRF equipment, thereby reducing the production cost of enterprises and leading terminal users to enjoy better user experience.
Drawings
Fig. 1 is a flowchart of a policy rule script configuration method provided in embodiment 1 of the present invention;
FIG. 2 is a block diagram of a policy rule script configuration apparatus provided in embodiment 2 of the present invention;
FIG. 3 is a block diagram of an apparatus for configuring a policy rule script according to embodiment 3 of the present invention;
fig. 4 is a flowchart of policy rule script configuration distribution provided in embodiment 4 of the present invention;
fig. 5 is a block diagram of a policy rule configuration system according to embodiment 5 of the present invention;
fig. 6 is a flowchart of closed-loop management of policy rule script configuration according to embodiment 6 of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the preferred embodiments described below are only for the purpose of illustrating and explaining the present invention, and are not to be construed as limiting the present invention.
Example 1
Fig. 1 is a flowchart of a policy rule script configuration method provided in embodiment 1 of the present invention, and as shown in fig. 1, the steps include:
step S101: and acquiring the operation type information of the policy rule script for downloading the policy rule script file of the corresponding type by the PCRF equipment.
Before executing step S101, obtaining and maintaining PCRF device information of all types, and generating policy rule script files suitable for each type and policy rule script operation type information for managing the policy rule script files of each type according to the PCRF device information of all types.
Step S102: and classifying the PCRF equipment according to the type according to the acquired strategy rule script operation type information.
Step S103: and generating a plurality of policy rule script operation instructions suitable for downloading policy rule script files of corresponding types by PCRF equipment of various types.
Optionally, a plurality of policy rule script recovery operation instructions suitable for downloading policy rule recovery script files of corresponding types by PCRF devices of respective types are further generated.
Step S104: and respectively sending the multiple strategy rule script operation instructions to PCRF equipment of corresponding types so as to obtain strategy rule script files of corresponding types according to the received instructions.
Step S104 is implemented by two ways:
mode 1: firstly, generating a plurality of simple object access protocol messages, wherein each simple object access protocol message carries a strategy rule script operation instruction, a file name and a file address of a strategy rule script file of one operation type; and then the plurality of simple object access protocol messages are respectively sent to the PCRF equipment of the corresponding type, so that the PCRF equipment of the corresponding type can download the policy rule script file of the file name from the file address according to the received policy rule script operation instruction.
In the method 1, since the policy rule script files suitable for each type are respectively stored in different paths of the FTP server, the PCRF device of the corresponding type is required to download the policy rule script file of the corresponding file name from the FTP server according to the indicated file address.
Optionally, each simple object access protocol message further carries a policy rule script recovery operation instruction, a file name and a file address of the policy rule recovery script file of the one operation type; in this way, once the PCRF device fails to load the acquired policy rule script file, the operation instruction may be restored according to the policy rule script, and the policy rule restoration script file of the corresponding file name may be downloaded from the file address of the policy rule restoration script file.
Mode 2: firstly, generating a plurality of simple object access protocol messages, wherein each simple object access protocol message carries a strategy rule script file of one operation type and a strategy rule script operation instruction thereof; and then respectively sending the plurality of simple object access protocol messages to PCRF equipment of corresponding types, so that the PCRF equipment of corresponding types can obtain the policy rule script file from the simple object access protocol messages according to the received policy rule script operation instruction.
In the mode 2, the FTP server is omitted, and the policy rule script file of the corresponding file name can be directly issued to the PCRF device through a specified interface.
Optionally, each simple object access protocol message further carries the policy rule recovery script file of the one operation type and a policy rule script recovery operation instruction thereof; in this way, once the PCRF device fails to load the acquired policy rule script file, the operation instruction can be recovered according to the policy rule script, and the policy rule recovery script file can be directly acquired from the simple object access protocol message.
Optionally, the multiple policy rule script recovery operation instructions applicable to downloading the policy rule recovery script files of corresponding types by the PCRF devices of each type may also be generated after executing step S104, and when it is determined that the PCRF device fails to load the acquired policy rule script file, the policy rule script recovery operation instruction of the corresponding type corresponding to the PCRF device that failed to load the policy rule script file is sent to the PCRF device. During specific sending, the file name and the file address of the policy rule script recovery operation instruction and the policy rule recovery script file may be encapsulated in a simple object access protocol message and sent to the PCRF device, or the policy rule script recovery operation instruction and the policy rule recovery script file may be encapsulated in a simple object access protocol message and sent to the PCRF device, so that the PCRF device may obtain the policy rule recovery script file.
Further, the strategy rule script file can be actively adjusted according to the actual situation. Or after the corresponding type of PCRF device fails to load the acquired policy rule script file, adjusting the policy rule script file.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, and the program may be stored in a computer readable storage medium. That is, the present invention may also provide a storage medium on which a program or instructions executable by a processor are stored, and the program or instructions, when executed by the processor, implement at least the above-described steps S101 to S104. The storage medium can be ROM/RAM, magnetic disk, U disk, optical disk, etc.
Example 2
Fig. 2 is a block diagram of a policy rule script configuration apparatus provided in embodiment 2 of the present invention, as shown in fig. 2, including:
the obtaining module 10 is configured to obtain policy rule script operation type information used for the PCRF device to download the policy rule script file of the corresponding type.
And the classification module 20 is configured to classify the PCRF device by type according to the acquired policy rule script operation type information, so as to implement a one-to-many binding relationship between the policy rule script and the PCRF device, so as to provide for subsequent batch processing.
The generating module 30 is configured to generate a plurality of policy rule script operation instructions suitable for each type of PCRF device to download the policy rule script file of the corresponding type, and generate a plurality of policy rule script recovery operation instructions suitable for each type of PCRF device to download the policy rule recovery script file of the corresponding type.
The sending module 40 is configured to send the multiple policy rule script operation instructions to PCRF devices of corresponding types, so that the PCRF devices obtain policy rule script files of corresponding types according to the received instructions. Optionally, the sending module 40 is further configured to send the multiple policy rule script recovery operation instructions to PCRF devices of corresponding types, so that when the PCRF device of a corresponding type fails to load the obtained policy rule script file, the PCRF device obtains the policy rule recovery script file of a corresponding type according to the received policy rule script recovery operation instruction. Specifically, the sending module 40 carries a corresponding instruction or information in a message (for example, a simple object access protocol message) and sends the message to the PCRF device, where the message carries content including: the strategy rule script recovery method comprises the steps that a strategy rule script operation instruction, a file name and a file address of a strategy rule script file of an operation type and/or a strategy rule script recovery operation instruction, a file name and a file address of a strategy rule recovery script file carrying the operation type are/is provided; or the message carrying content comprises a strategy rule script file and a strategy rule script operation instruction of an operation type, and/or carries a strategy rule recovery script file and a strategy rule script recovery operation instruction of the operation type.
And the script adjusting module 50 is configured to adjust the policy rule script file after the corresponding type of PCRF device fails to load the acquired policy rule script file. Optionally, the policy rule script file may also be actively adjusted.
The device management module 60 is configured to acquire and maintain PCRF device information of all types, including an IP address, an interface URL, and the like of the PCRF device, before acquiring policy rule script operation type information used for downloading a policy rule script file of a corresponding type by the PCRF device.
The script management module 70 is configured to generate policy rule script files suitable for the respective types and policy rule script operation type information for managing the policy rule script files of the respective types according to the PCRF device information of all types.
Further, each module of embodiment 2 may be implemented by a processor, and further, the present invention may also provide a policy rule script configuration apparatus, including: a memory and a processor that, when executing programs or instructions stored by the memory, perform at least the following: acquiring policy rule script operation type information for downloading a policy rule script file of a corresponding type by PCRF equipment; classifying the PCRF equipment according to types according to the acquired strategy rule script operation type information; generating a plurality of policy rule script operation instructions suitable for downloading policy rule script files of corresponding types by PCRF equipment of various types; and respectively sending the multiple strategy rule script operation instructions to PCRF equipment of corresponding types so as to obtain strategy rule script files of corresponding types according to the received instructions.
Example 3
Fig. 3 is a block diagram of a policy rule script configuration apparatus according to embodiment 3 of the present invention, as shown in fig. 3, including: the system comprises a unified PCRF management module 11, a policy rule script configuration management module 12, a policy rule script and PCRF comparison module 13 and a policy rule script configuration distribution operation module 14.
The unified PCRF management module 11 completes the unified management function of the administrator on the managed PCRF equipment, completes the maintenance function on the interface URL and the IP address of the PCRF, and completes the configuration function on the account, the password, the IP address and the path of the FTP server.
The policy rule script configuration management module 12 provides configuration of the policy rule script, including addition, modification, deletion, comparison between the policy and the script, and script uniqueness judgment functions.
The policy rule script and the PCRF comparison module 13 adopt a one-to-many relationship, that is, one policy rule script can bind PCRF systems of the same operation type and different operation types, and provide functions of adding, modifying and deleting operation types.
The policy rule script configuration/distribution operation device 14 selects the records of the same operation type by the one-to-many correlation set by the module 13, and performs the distribution function.
Example 4
Fig. 4 is a flow chart of policy rule script configuration and distribution provided in embodiment 4 of the present invention, where PCC policy rule scripts are uniformly manufactured and managed by a policy rule script configuration management system, and according to a flow of policy operation, the policy rule script configuration distribution system issues the policy rule scripts to each PCRF system to load the policy rule scripts, and the detailed description of fig. 4 is as follows:
step 1: after completing the rule script configuration and the comparison relationship, the policy rule script configuration and distribution system 21 FTP the script file to the FTP server 22 in the corresponding path.
Step 2: the policy rule script configuration and distribution system 21 sends a policy rule script operation instruction to each PCRF system 23 through a Simple Object Access Protocol (SOAP) message, and instructs the PCRF to download and load the policy rule script. The script operation command may be Add, Modify, Delete, and instruct the PCRF system 23 on the operation manner of the policy rule script; the SOAP message should also carry a script file name, a script file address, and a task number (TaskID). The name format of the script file name is as follows: "PolicyCode _ SS _ XXX _ yymddhhmmss", where PolicyCod is 32 decimal digits according to policy encoding rules, SS is an abbreviation for province, XXX is a short for the name of the equipment manufacturer, and yymmdddhhmmss is the script generation time. The TaskID is generated by the policy rule script configuration and distribution system 21, is in a character string type, and is in a format of POPID _ yymymmddhhmmss _ sn, wherein "POPID" is an equipment identifier of the policy rule script configuration and distribution system 21, "yyymymmddhhmmss" is a specific time when the policy rule script configuration and distribution system 21 generates a current operation instruction, and "sn" is a 4-digit decimal serial number, and when a plurality of operation instructions are generated in the same second, sn is sequentially accumulated from 0000 upwards.
And step 3: after receiving the policy rule script operation instruction, the PCRF system 23 directly replies a response message (i.e., an instruction receiving response), and feeds back the instruction receiving condition and the response condition to the policy rule script configuration and distribution system 21, where the response message carries the TaskID issued in step 2, so that the policy rule script configuration and distribution system 21 implements association of the response message.
And 4, step 4: the PCRF system 23 goes to the path specified by the FTP server 22 to download the specified script file.
And 5: the PCRF system 23 waits for completion of the script download or a download failure, and the PCRF system 23 feeds back a script download execution result to the policy rule script configuration and distribution system 21 through a download result reporting message.
And when the PCRF system 23 can inquire the specified file and normally start downloading, replying a successful response, otherwise, replying a failed response. The response message needs to carry the task id issued in step 2.
If the file cannot be successfully downloaded due to FTP failure or other reasons in the downloading process, setting a 'Result' field in the SOAP message as 'Script Download Fail' for error reporting.
Step 5 a: after receiving the downloading operation result reported by the PCRF system 23, the policy rule script configuration and distribution system 21 immediately replies a response message indicating successful reception of the operation result. The response message needs to carry the task id issued in step 2.
Step 6: the PCRF system 23 automatically loads the policy rule script according to the operation instruction of the policy rule script received in step 2, and when an error occurs in the script execution process, the PCRF system 23 needs to locally record error information and generate an error log file.
And 7: the PCRF system 23 uploads the error log file to the policy rule script configuration distribution system 21 via the FTP/SFTP interface to specify the folder.
The error log adopts a uniform naming format: "PolicyCode _ ErrorLog _ SS _ PCRFID _ yymddhmmss", where PolicyCod is a 32-digit decimal number according to policy coding rules, SS is a provincial abbreviation, PCRFID is a device identifier of the PCRF system 23, and yymmdddhmmss is an error log generation time.
And 8: the PCRF system 23 reports the policy rule script execution result to the policy rule script configuration and distribution system 21 by using the SOAP message.
If the strategy rule script is completely executed correctly, the strategy rule script is reported to the strategy rule script configuration and distribution system 21 that the execution is successful; otherwise, the execution is failed in a feedback mode, and the SOAP message carries the name of the failed log file and the uploading destination address of the log file. The execution result message needs to carry the task id issued in step 2. If the error Log is not successfully uploaded to the FTP server 22, the "Result" field in the execution Result message is set to "Log Upload Fail" for error reporting.
And step 9: after receiving the script execution result reporting message, the policy rule script configuration and distribution system 21 immediately replies a response message indicating the successful reception of the result reporting message. The response message needs to carry the task id issued in step 2.
Step 10: after receiving the message that the execution of the policy rule script fails, the policy rule script configuration and distribution system 21 sends a policy rule script recovery instruction to the PCRF system 23 through an SOAP message. The script operation instruction is Recovery (Recovery), and the message carries the name of the script file, the address of the script file and the task ID issued in the step 2.
If the PCRF system 23 supports synchronous reception of the execution script and the Recovery script, this step may be combined with step 2, and the script operation instruction indicates through an operation instruction of "Add + Recovery" (or "Delete + Recovery" or "Modify + Recovery"), and carries two script file names and script file addresses at the same time, so as to indicate to the PCRF system 23 to perform corresponding script downloading and subsequent loading/Recovery execution.
Step 11: after receiving the policy rule script operation instruction, the PCRF system 23 directly replies a response message, which carries the task id issued in step 2, and feeds back the instruction receiving condition and the response condition to the policy operation platform. And when the PCRF system 23 can inquire the specified file and normally start downloading, replying a successful response, otherwise, replying a failed response, and carrying the failure reason.
Step 12: the PCRF system 23 downloads the policy rule script file from the FTP server 22 by using the FTP protocol or the SFTP protocol.
Step 13: after the completion of the script downloading or the downloading failure, the PCRF system 23 feeds back the script downloading execution result to the policy rule script configuration and distribution system 21 through the downloading result reporting message. And when the PCRF system 23 can inquire the specified file and normally start downloading, replying a successful response, otherwise, replying a failed response. The response message needs to carry the task id issued in step 2.
If the file cannot be successfully downloaded due to FTP failure or other reasons in the downloading process, setting a 'Result' field in the SOAP message as 'Script Download Fail' for error reporting.
Step 13 a: after receiving the downloading operation result reported by the PCRF system 23, the policy rule script configuration and distribution system 21 immediately replies a response message indicating successful reception of the operation result. The response message needs to carry the task id issued in step 2.
Step 14: the PCRF system 23 recovers the system data according to the policy rule recovery script, and when an error occurs during the script execution process, the PCRF system 23 needs to locally record error information and generate an error log file.
The PCRF system 23 should have an error cause determination function when performing the script recovery operation, so as to ensure that the recovery operation does not affect the original data of the system, for example, the original data should not be deleted if the duplicate name is reported incorrectly.
The PCRF system 23 uploads the error log file to the FTP server 22 through the FTP/SFTP interface to specify the folder. The error log adopts a uniform naming format: "PolicyCode _ ErrorLog _ SS _ PCRFID _ yymddhmmss", where PolicyCod is a 32-digit decimal number according to policy coding rules, SS is a provincial abbreviation, PCRFID is a device identifier of PCRF, and yymmdddhmmss is an error log generation time.
Step 15: the PCRF system 23 reports the system recovery operation execution result to the policy rule script configuration and distribution system 21 by using the SOAP message.
If the strategy rule script is completely executed correctly, the strategy rule script is reported to the strategy rule script configuration and distribution system 21 that the execution is successful; otherwise, the execution is failed in a feedback mode, and the SOAP message carries the name of the failed log file and the uploading destination address of the log file. The execution result message needs to carry the task id issued in step 2. If the error Log is not successfully uploaded to the policy rule script configuration distribution system 21, setting the "Result" field in the execution Result message to be "Log Upload Fail" for error reporting.
And step 17: after receiving the script execution result reporting message, the policy rule script configuration and distribution system 21 immediately replies a response message indicating the successful reception of the result reporting message. The response message needs to carry the task id issued in step 2.
It should be noted that the policy rule script configuration and distribution system 21 may implement the functions of the unified PCRF management module 11 and the policy rule script configuration management module 12 in embodiment 3, and the policy rule script configuration and distribution system 21 may implement the functions of the policy rule script and PCRF comparison module 13 and the policy rule script configuration and distribution operation module 14 in embodiment 3. As an alternative embodiment, the policy rule script configuration distribution system 21 may implement the functions of the unified PCRF management module 11, the policy rule script configuration management module 12, and the policy rule script and PCRF comparison module 13 of embodiment 3, and the policy rule script configuration distribution system 21 may implement the function of the policy rule script configuration distribution operation module 14 of embodiment 3.
Example 5
Fig. 5 is a block diagram of a policy rule configuration system according to embodiment 5 of the present invention, as shown in fig. 5, including: a policy rule script configuration management system 24, a policy rule script configuration distribution system 21, an FTP server 22 and a PCRF system 23, wherein:
1. policy rules script configuration management system 24
The policy rule script configuration management system 24 implements functions including: configuring strategy rule script management; and managing the PCRF equipment.
The policy rule script configuration management system 24 provides or completes configuration of the policy rule script, including addition, modification, deletion, comparison between the policy and the script, and script uniqueness judgment. Furthermore, an administrator designs and writes visual strategy rules through the web and outputs strategy rule scripts.
Among other things, the policy rule script configuration management system 24 provides the following operational functions: the administrator has the unified management function on the managed PCRF equipment, completes the maintenance function on interface URL and IP address of PCRF, and completes the configuration function on account, password, IP address and path of FTP server 22.
Optionally, the policy rule script configuration management system 24 completes the comparison relationship between the script and the PCRF system 23, and completes the operation functions of adding, modifying, and deleting the comparison relationship.
2. Policy rule script configuration distribution system 21
The policy rule script configuration distribution system 21 implements functions including: obtaining the operation type of the strategy rule script; matching the strategy rule script and the PCRF; the policy rules and PCRF system 23 distributes the script data to the PCRF system 23 through a standard delivery interface. The policy rule script configuration and distribution system 21 may provide a policy rule script and PCRF comparison module, and the policy rule script and the PCRF system 23 use a one-to-many comparison relationship, that is, one policy rule script may bind to PCRF systems 23 of the same operation type and different operation types, and provide functions of adding, modifying, and deleting operation types. The policy rule script configuration and distribution system 21 selects the PCRF system records of the same operation type through the one-to-many comparison set by the above modules, and issues the script. Further, the policy rule script configuration distribution system 21 of this embodiment may distribute different PCRF systems.
The implementation modes of the strategy rule script configuration distribution comprise the following two modes:
implementation mode 1: the policy rule script configuration and distribution system 21 sends the script to the designated directory of the FTP server 22 through a specified interface according to the setting of the policy rule script configuration and management system 24, so that the PCRF device downloads the script from the designated directory of the FTP server 22, and the purpose of batch unified operation is achieved.
Implementation mode 2: the policy rule script configuration and distribution system 21 sends the messages carrying the information such as the policy rule script file to different PCRF systems 23 through a specified interface according to the setting of the policy rule script configuration management system 24, so as to achieve the purpose of batch unified operation.
It should be noted that one of the policy rule script configuration management system 24 and the policy rule script configuration distribution system 21 needs to implement the following functions: and finishing the comparison relationship between the script and the PCRF system 23, and finishing the operation functions of adding, modifying and deleting the comparison relationship.
Example 6
Fig. 6 is a flowchart of a closed-loop management process for policy rule script configuration provided in embodiment 6 of the present invention, as shown in fig. 6, the detailed process is as follows:
step 41: the strategy rule script configuration and distribution system sends the strategy rule script to different PCRF systems (or PCRF equipment) through a specified interface according to configuration setting.
The difference between this step and the embodiment in fig. 4 is that the policy rule script configuration and distribution system in this embodiment can directly send the policy rule script operation instruction and the policy rule script to the PCRF system through the specified interface.
Step 42: each PCRF system (or PCRF device) executes the policy rule script and sends an executed script result file (namely a script execution result) to a policy rule script configuration and distribution system through a specified interface.
Step 43: and the strategy rule script configuration and distribution system adjusts the content of the strategy rule script according to the actual situation and modifies and configures the strategy rule script.
In this embodiment, through step 43, the policy rule configuration can be quickly adjusted according to the positive and negative impacts on the user after policy deployment, so as to adapt to market demands.
Step 44: and the strategy rule script configuration and distribution system sends the adjusted strategy rule script to different PCRF systems again through the specified modification interface.
Step 45: each PCRF system sends the executed script result file (namely the script execution result) to the policy rule script configuration distribution system through a specified interface.
That is to say, the policy rule configuration closed-loop management method of the present embodiment includes: the strategy rule script configuration distribution system and the PCRF system distribute script data to the PCRF system through a standard issuing interface; the PCRF system feeds back execution result information to the policy rule configuration distribution system; the strategy rule script configuration and distribution system receives the execution result information of the strategy rule script, if the strategy rule needs to be adjusted, the strategy rule configuration data after the strategy rule adjustment is distributed to the PCRF system.
Example 7
The embodiment of the invention also provides a policy rule script configuration arithmetic device, which comprises a memory and a processor (CPU), wherein the memory stores a policy rule configuration distribution program; the CPU is used for executing the strategy rule configuration distribution program and carrying out corresponding processing, and comprises the following steps: configuring the strategy rules according to the strategy rule script items; and the policy rule configuration distribution system and the PCRF system distribute the script data to the PCRF system through a standard issuing interface.
Example 8
An embodiment of the present invention may further provide a policy rule script configuration system, including: a policy rule script configuration management subsystem (for implementing the function of the policy rule script configuration management system), a policy rule configuration distribution subsystem (for implementing the function of the policy rule script configuration distribution system), and a PCRF device (for implementing the function of the PCRF system), wherein:
the strategy rule script configuration management subsystem is used for acquiring and maintaining PCRF equipment information of all types, and generating strategy rule script files suitable for all types and strategy rule script operation type information for managing the strategy rule script files of all types according to the PCRF equipment information of all types.
The policy rule configuration distribution subsystem is used for acquiring policy rule script operation type information used for the PCRF equipment to download the policy rule script files of corresponding types, classifying the PCRF equipment according to the acquired policy rule script operation type information, generating a plurality of policy rule script operation instructions suitable for the PCRF equipment of each type to download the policy rule script files of corresponding types, and respectively sending the policy rule script operation instructions to the PCRF equipment of corresponding types. The strategy rule configuration distribution subsystem is also used for generating a plurality of strategy rule script recovery operation instructions suitable for downloading strategy rule recovery script files of corresponding types by PCRF equipment of various types, and respectively sending the strategy rule script recovery operation instructions to the PCRF equipment of corresponding types. The policy rule configuration distribution subsystem is further configured to adjust the policy rule script file after the corresponding type of PCRF device fails to load the acquired policy rule script file.
And the PCRF equipment is used for acquiring the corresponding type of policy rule script file according to the received policy rule script operation instruction. And the PCRF equipment is also used for acquiring a corresponding type of policy rule recovery script file according to the received policy rule script recovery operation instruction when the loading of the acquired policy rule script file fails.
It should be noted that the policy rule script operation instruction and the policy rule script recovery operation instruction may be encapsulated in the same message and sent, and at this time, the message may carry two instructions, a policy rule script file and a policy rule recovery script file, or may carry two instructions, a file name and a file address of the policy rule script file, and a file name and a file address of the policy rule recovery script file.
It should be noted that the policy rule script operation instruction and the policy rule script recovery operation instruction may be encapsulated in two messages and sent separately.
In summary, the embodiments of the present invention have the following technical effects:
the embodiment of the invention realizes the configuration management, the configuration distribution and the closed-loop management of the strategy rule script configuration.
Although the present invention has been described in detail hereinabove, the present invention is not limited thereto, and various modifications can be made by those skilled in the art in light of the principle of the present invention. Thus, modifications made in accordance with the principles of the present invention should be understood to fall within the scope of the present invention.

Claims (15)

1. A policy rule script configuration method comprises the following steps:
acquiring policy rule script operation type information for downloading a policy rule script file of a corresponding type by PCRF equipment;
classifying the PCRF equipment according to types according to the acquired strategy rule script operation type information;
generating a plurality of policy rule script operation instructions suitable for downloading policy rule script files of corresponding types by PCRF equipment of various types;
and respectively sending the multiple strategy rule script operation instructions to PCRF equipment of corresponding types so as to obtain strategy rule script files of corresponding types according to the received instructions.
2. The method of claim 1, wherein the sending the plurality of policy rule script operation instructions to PCRF devices of corresponding types, respectively, so that obtaining policy rule script files of corresponding types according to the received instructions comprises:
generating a plurality of simple object access protocol messages, wherein each simple object access protocol message carries a strategy rule script operation instruction, a file name and a file address of a strategy rule script file of one operation type;
and respectively sending the plurality of simple object access protocol messages to PCRF equipment of corresponding types so that the PCRF equipment of corresponding types can download the policy rule script file of the file name from the file address according to the received policy rule script operation instruction.
3. The method of claim 1, wherein the sending the plurality of policy rule script operation instructions to PCRF devices of corresponding types, respectively, so that obtaining policy rule script files of corresponding types according to the received instructions comprises:
generating a plurality of simple object access protocol messages, wherein each simple object access protocol message carries a strategy rule script file of one operation type and a strategy rule script operation instruction thereof;
and respectively sending the plurality of simple object access protocol messages to PCRF equipment of corresponding types, so that the PCRF equipment of corresponding types can obtain the policy rule script file from the simple object access protocol messages according to the received policy rule script operation instruction.
4. The method of claim 2 or 3, further comprising:
and generating a plurality of strategy rule script recovery operation instructions suitable for downloading strategy rule recovery script files of corresponding types by PCRF equipment of various types, and respectively sending the strategy rule script recovery operation instructions to the PCRF equipment of corresponding types, so that when the PCRF equipment of corresponding types fails to load the obtained strategy rule script files, the strategy rule recovery script files of corresponding types are obtained according to the received strategy rule script recovery operation instructions.
5. The method of claim 4, wherein the policy rule script file is adjusted after the corresponding type of PCRF device fails to load the policy rule script file obtained by the corresponding type of PCRF device.
6. The method according to any one of claims 1 to 3, before the obtaining policy rule script operation type information for downloading a policy rule script file of a corresponding type by a PCRF device, further comprising:
acquiring and maintaining PCRF equipment information of all types;
and generating a policy rule script file suitable for each type and policy rule script operation type information for managing the policy rule script file of each type according to the PCRF equipment information of all types.
7. A policy rule script configuration apparatus comprising:
the acquisition module is used for acquiring the operation type information of the policy rule script, which is used for downloading the policy rule script file of the corresponding type by the PCRF equipment;
the classification module is used for classifying the PCRF equipment according to the type according to the acquired strategy rule script operation type information;
the generation module is used for generating a plurality of policy rule script operation instructions suitable for downloading policy rule script files of corresponding types by PCRF equipment of various types;
and the sending module is used for respectively sending the multiple strategy rule script operation instructions to the PCRF equipment of the corresponding type so as to obtain the strategy rule script files of the corresponding type according to the received instructions.
8. The apparatus of claim 7, wherein the sending module is configured to generate a plurality of simple object access protocol messages, each of the simple object access protocol messages carries a policy rule script operation instruction, a file name, and a file address of a policy rule script file of one operation type, and then send the plurality of simple object access protocol messages to PCRF devices of corresponding types, respectively, so that the PCRF devices of corresponding types download the policy rule script file of the file name from the file address according to the received policy rule script operation instruction.
9. The apparatus of claim 7, wherein the sending module generates a plurality of simple object access protocol messages, each of which carries a policy rule script file of one operation type and a policy rule script operation instruction thereof, and then sends the plurality of simple object access protocol messages to PCRF devices of corresponding types, so that the PCRF devices of corresponding types obtain the policy rule script file from the simple object access protocol messages according to the received policy rule script operation instruction.
10. The apparatus according to claim 8 or 9, wherein the generating module is further configured to generate a plurality of policy rule script recovery operation instructions applicable to each type of PCRF device for downloading a corresponding type of policy rule recovery script file, and send the plurality of policy rule script recovery operation instructions to the corresponding type of PCRF device by using the sending module, so that when the corresponding type of PCRF device fails to load the obtained policy rule script file, the corresponding type of policy rule recovery script file is obtained according to the received policy rule script recovery operation instruction.
11. The apparatus of claim 10, further comprising:
and the script adjusting module is used for adjusting the strategy rule script file after the PCRF equipment of the corresponding type fails to load the obtained strategy rule script file.
12. The apparatus of any of claims 7-9, further comprising:
the equipment management module is used for acquiring and maintaining information of all types of PCRF equipment before acquiring the operation type information of the policy rule script used for downloading the policy rule script file of the corresponding type by the PCRF equipment;
and the script management module is used for generating the strategy rule script files suitable for all types and strategy rule script operation type information for managing the strategy rule script files of all types according to the PCRF equipment information of all types.
13. A policy rule script configuration system comprising:
the strategy rule script configuration management subsystem is used for acquiring and maintaining all types of PCRF equipment information, and generating strategy rule script files suitable for all types and strategy rule script operation type information for managing all types of strategy rule script files according to all types of PCRF equipment information;
the system comprises a policy rule configuration distribution subsystem, a policy rule configuration management subsystem and a policy rule configuration management subsystem, wherein the policy rule configuration distribution subsystem is used for acquiring policy rule script operation type information used for downloading policy rule script files of corresponding types by PCRF equipment, classifying the PCRF equipment according to types according to the acquired policy rule script operation type information, generating a plurality of policy rule script operation instructions suitable for downloading the policy rule script files of corresponding types by the PCRF equipment of various types, and respectively sending the policy rule script operation instructions to the PCRF equipment of corresponding types;
and the PCRF equipment is used for acquiring the corresponding type of policy rule script file according to the received policy rule script operation instruction.
14. The system of claim 13, wherein the policy rule configuration distribution subsystem is further configured to generate a plurality of policy rule script recovery operation instructions applicable to each type of PCRF device for downloading the policy rule recovery script file of the corresponding type, and send the policy rule script recovery operation instructions to the PCRF devices of the corresponding types, respectively, so that when the PCRF devices of the corresponding types fail to load the acquired policy rule script file, the PCRF devices of the corresponding types acquire the policy rule recovery script file of the corresponding type according to the received policy rule script recovery operation instructions.
15. The system of claim 14, wherein the policy rule configuration distribution subsystem is further configured to adjust the policy rule script file after the corresponding type of PCRF device fails to load the policy rule script file obtained by the corresponding type of PCRF device.
CN201710376676.4A 2017-05-25 2017-05-25 Policy rule script configuration method, device and system Active CN108933672B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710376676.4A CN108933672B (en) 2017-05-25 2017-05-25 Policy rule script configuration method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710376676.4A CN108933672B (en) 2017-05-25 2017-05-25 Policy rule script configuration method, device and system

Publications (2)

Publication Number Publication Date
CN108933672A CN108933672A (en) 2018-12-04
CN108933672B true CN108933672B (en) 2022-04-19

Family

ID=64451368

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710376676.4A Active CN108933672B (en) 2017-05-25 2017-05-25 Policy rule script configuration method, device and system

Country Status (1)

Country Link
CN (1) CN108933672B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112492000B (en) * 2020-11-18 2022-10-04 中盈优创资讯科技有限公司 Method and device for loading Internet of things access network rules
CN112733147A (en) * 2021-01-07 2021-04-30 中国工商银行股份有限公司 Equipment safety management method and system
CN113204300A (en) * 2021-07-02 2021-08-03 杭州星犀科技有限公司 Method and system for automatically executing operation by equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105071964A (en) * 2015-08-06 2015-11-18 中兴通讯股份有限公司 Strategy operation, configuration issuing, conflict resolution and closed-loop management method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8654691B2 (en) * 2010-11-15 2014-02-18 Blackberry Limited Managing wireless communications

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105071964A (en) * 2015-08-06 2015-11-18 中兴通讯股份有限公司 Strategy operation, configuration issuing, conflict resolution and closed-loop management method and system
WO2017020601A1 (en) * 2015-08-06 2017-02-09 中兴通讯股份有限公司 Method and system for strategy operation, configuration forwarding, conflict processing and closed-loop management

Also Published As

Publication number Publication date
CN108933672A (en) 2018-12-04

Similar Documents

Publication Publication Date Title
CN110928774B (en) Automatic test system based on node type
CN108933672B (en) Policy rule script configuration method, device and system
CN109587228A (en) A kind of publicly-owned agreement platform of internet of things and equipment cut-in method
CN103024081B (en) Be applicable to the terminal scheduling method of the point-to-point communication of effective guarantee communication system
CN105162878A (en) Distributed storage based file distribution system and method
CN105224351B (en) Rapid configuration implementation method and rapid configuration server
KR101528210B1 (en) Software downloading method and device
CN103019757A (en) Method, device and system for synchronizing software among multiple clients
EP2582089A1 (en) System and method for implementing automatic configuration for equipments
RU2533638C2 (en) Data configuration method and device
CN107483627A (en) A kind of file distributing, method for down loading, Distributor, client and system
WO2019113486A1 (en) Local profile assistant and application programming interface
US20120005325A1 (en) Systems and methods for automated processing of devices
WO2011137793A1 (en) Method, apparatus and network system for achieving remote update of zigbee devices
EP2642724B1 (en) File downloading method and system for a terminal
CN108155999B (en) Intelligent UDP multicast file distribution system and method with TCP (transmission control protocol) packet supplementing mechanism
CN102420863B (en) Rapid file distribution system, method thereof and apparatus thereof
CN106453668A (en) Reverse file uploading method and system
CN111142905A (en) OTA (over-the-air) upgrading method, OTA server and OTA upgrading system
CN103812881A (en) Offline downloading control method and apparatus
CN106982445A (en) A kind of transmission method, equipment and the system of abnormal information of upgrading
CN102332989A (en) Method for sending configuration information and service boards
CN114124981A (en) Cloud storage data direct transmission management method, cloud transmission management platform and system
CN101729286B (en) Method, device and system for modifying variables in management information base of agent terminal
CN112637266A (en) AWS IoT-based intelligent photo frame management method, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant