CN108156086B - Policy rule issuing method and device - Google Patents

Policy rule issuing method and device Download PDF

Info

Publication number
CN108156086B
CN108156086B CN201711377196.6A CN201711377196A CN108156086B CN 108156086 B CN108156086 B CN 108156086B CN 201711377196 A CN201711377196 A CN 201711377196A CN 108156086 B CN108156086 B CN 108156086B
Authority
CN
China
Prior art keywords
receiving
receiving node
current position
nodes
issuing
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
CN201711377196.6A
Other languages
Chinese (zh)
Other versions
CN108156086A (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201711377196.6A priority Critical patent/CN108156086B/en
Publication of CN108156086A publication Critical patent/CN108156086A/en
Application granted granted Critical
Publication of CN108156086B publication Critical patent/CN108156086B/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
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control

Abstract

The embodiment of the invention provides a strategy rule issuing method and a device, which are applied to a pre-established communication service system, wherein the communication service system comprises a service cluster established by adopting an inverse entropy protocol, the service cluster comprises a first number of sending nodes and a second number of receiving nodes, the first number of sending nodes and the second number of receiving nodes are selected from the communication service system, and the method comprises the following steps of: sequencing the second number of receiving nodes according to the priorities of all the receiving nodes in the communication service system defined by a preset strategy rule to obtain a sequence of the second number of receiving nodes sequenced according to the priorities; and issuing a strategy for the second number of receiving nodes according to the sequence of each receiving node in the sequence. The embodiment of the invention can improve the efficiency of issuing the strategy by the sending node.

Description

Policy rule issuing method and device
Technical Field
The invention relates to the technical field of information acquisition, processing and transmission, in particular to a method and a device for issuing policy rules.
Background
In different fields, how to issue policy rules to receiving nodes, such as network traffic scheduling and charging weighting, or quality of service control and alarm rule adjustment, is an urgent solution to the problem because of limited communication channels and a large number of receiving nodes to which policies are issued, how to issue policies to preset receiving nodes effectively and successfully.
However, existing techniques for issuing policy rules, such as message queues, only utilize existing communication service systems to deliver policies. That is, the object of issuing the policy can only use the sending node to specify a communication channel issuing policy, and a plurality of receiving nodes monitor the communication channel to acquire the policy sent by the sending node. If the same communication channel has more sending strategies and the communication channel is jammed, a receiving node which needs a certain urgent strategy cannot timely receive the strategy issued by the receiving and sending node, and the issuing efficiency of the sending node is low.
Disclosure of Invention
The embodiment of the invention aims to provide a method and a device for issuing policy rules, which improve the issuing efficiency of a sending node and are low according to the priority of a receiving node.
The specific technical scheme is as follows:
a strategy rule issuing method is applied to a communication service system which is created in advance, the communication service system comprises a service cluster which is created by adopting an inverse entropy protocol, the service cluster comprises a first number of sending nodes and a second number of receiving nodes which are selected from the communication service system, and aiming at each sending node, the method comprises the following steps:
sorting the second number of receiving nodes according to the priorities of all receiving nodes in the communication service system defined by a preset strategy rule to obtain a sequence of the second number of receiving nodes sorted according to the priorities;
and issuing a strategy to the second number of receiving nodes according to the sequence of each receiving node in the sequence.
Further, the method for acquiring the first number of sending nodes includes:
according to the sequencing of the nodes serving as the sending nodes in a preset strategy issuing process, a first number of nodes are selected from a target number of nodes in a service cluster to serve as the sending nodes, a second number of nodes are selected to serve as the receiving nodes, the strategy issuing process is to sequence the nodes which can serve as the sending nodes, and the target number is the sum of the first number and the second number.
Further, the creation process of the communication service system is as follows:
establishing a communication service system by utilizing a communication protocol, a predefined message format and a predefined safe response mode under a predefined low-frequency scene and a predefined high-frequency scene; wherein the content of the first and second substances,
the safety response mode is used for judging whether the encrypted communication sent by the sending node to the receiving node conforms to a preset encryption convention rule or not, and if the encrypted communication conforms to the encryption convention rule, the receiving node receives the encrypted communication.
Further, the process of making the policy rule is as follows:
according to a preset configuration file corresponding to a second number of receiving nodes, dividing the priorities of the second number of receiving nodes by using at least one combination of preset sequencing, hardware resource configuration and network flow configuration of an operator corresponding to each receiving node in the configuration file;
classifying the information content to be received according to the information to be received by the second number of receiving nodes;
and configuring corresponding preset execution commands for the classified information contents.
Further, the message format is:
the message format comprises information length and information content corresponding to the information length, and is used for a receiving node to analyze the information content according to the information length, wherein the information length is used for describing predefined bytes.
Further, the sorting the second number of receiving nodes according to the priorities of all receiving nodes in the communication service system defined by the policy rule to obtain a sequence of the second number of receiving nodes includes:
and sequencing the second number of receiving nodes from high to low according to the priorities of all the receiving nodes in the communication service system defined by the strategy rule to obtain a sequence of the second number of receiving nodes from high to low.
Further, the issuing a policy to the second number of receiving nodes according to the sequence of each receiving node in the sequence includes:
taking the position corresponding to the receiving node ranked at the head in the sequence as the current position;
issuing a strategy to a receiving node corresponding to the current position;
monitoring whether a receiving node corresponding to the current position successfully receives a strategy issued by a current sending node or not;
if the receiving is successful, if the current position is not equal to the preset position, taking the position in the sequence corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position, and returning to the step of executing the step of issuing the strategy to the receiving node corresponding to the current position, wherein the preset position is the position corresponding to the receiving node arranged at the tail in the sequence.
Further, after the monitoring whether the receiving node corresponding to the current location successfully receives the policy issued by the current sending node, the method further includes:
if the receiving is not successful, sending the preset error reporting information corresponding to the receiving node corresponding to the current position to the communication service system, if the current position is not equal to the preset position, taking the position in the sequence corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position, and returning to the step of executing the strategy issuing of the receiving node corresponding to the current position.
Further, the issuing a policy to the second number of receiving nodes according to the sequence of each receiving node in the sequence includes:
taking the position corresponding to the receiving node arranged at the head in the sequence as a current position, and taking the sending node as a current sending node;
issuing a strategy to a receiving node corresponding to the current position;
monitoring whether a receiving node corresponding to the current position successfully receives a strategy issued by a current sending node or not;
if the receiving is successful, if the current position is not equal to the preset position, indicating the receiving node corresponding to the current position to automatically replace the current sending node as a new current sending node, taking the position in the sequence corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position, and returning to the step of executing the strategy issuing of the receiving node corresponding to the current position.
Further, after the monitoring whether the receiving node corresponding to the current location successfully receives the policy issued by the current sending node, the method further includes:
if the receiving is not successful, sending the preset error reporting information corresponding to the receiving node corresponding to the current position to the communication service system, if the current position is not equal to the preset position, taking the position in the sequence corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position, and returning to the step of executing the strategy issuing of the receiving node corresponding to the current position.
Further, before the sending the preset error information corresponding to the receiving node corresponding to the current location to the communication service system, the method further includes:
and adding the receiving node corresponding to the current position into a preset set.
Further, after the step of returning and executing the sending down policy for the receiving node corresponding to the current location, the method further includes:
according to the priority sequence of the receiving nodes in the set, issuing a strategy to each receiving node in the set within preset time;
monitoring whether each receiving node successfully receives the issued strategy;
and if the strategy is not successfully received, adding the receiving nodes corresponding to the strategy which is not successfully received into a new set, returning to execute the step of issuing the strategy to each receiving node in the set within the preset time according to the priority sequence of the receiving nodes in the set.
Further, before adding the receiving node corresponding to the unsuccessfully receiving the policy to the new set, the method further includes:
and sending the preset error reporting information corresponding to the unsuccessfully received receiving node to the communication service system.
A kind of tactics rule issue device, apply to the communication service system that is set up in advance, the said communication service system includes the service cluster that adopts the protocol of the inverse entropy to set up, the said service cluster includes the first number sending node and second number receiving node that chooses in the communication service system, to each said sending node, the said device includes:
the sequencing module is used for sequencing the second number of receiving nodes according to the priorities of all receiving nodes in the communication service system defined by a preset strategy rule to obtain a sequence of the second number of receiving nodes sequenced according to the priorities;
and the strategy issuing module is used for issuing the strategy to the second number of receiving nodes according to the sequence of each receiving node in the sequence.
Further, the method for acquiring the first number of sending nodes includes:
according to the sequencing of the nodes serving as the sending nodes in a preset strategy issuing process, a first number of nodes are selected from a target number of nodes in a service cluster to serve as the sending nodes, a second number of nodes are selected to serve as the receiving nodes, the strategy issuing process is to sequence the nodes which can serve as the sending nodes, and the target number is the sum of the first number and the second number.
Further, the communication service system creation process is as follows:
establishing a communication service system by utilizing a communication protocol, a predefined message format and a predefined safe response mode under a predefined low-frequency scene and a predefined high-frequency scene; wherein the content of the first and second substances,
the safety response mode is used for judging whether the encrypted communication sent by the sending node to the receiving node conforms to a preset encryption convention rule or not, and if the encrypted communication conforms to the encryption convention rule, the receiving node receives the encrypted communication.
Further, the process of making the policy rule is as follows:
according to a preset configuration file corresponding to a second number of receiving nodes, dividing the priorities of the second number of receiving nodes by using at least one combination of preset sequencing, hardware resource configuration and network flow configuration of an operator corresponding to each receiving node in the configuration file;
classifying the information content to be received according to the information to be received by the second number of receiving nodes;
and configuring corresponding preset execution commands for the classified information contents.
Further, the message format is:
the message format comprises information length and information content corresponding to the information length, and is used for a receiving node to analyze the information content according to the information length, wherein the information length is used for describing predefined bytes.
Further, the ranking module includes:
and the sequence obtaining submodule is used for sequencing the second number of receiving nodes from high to low according to the priorities of all the receiving nodes in the communication service system defined by the strategy rule to obtain a sequence of the second number of receiving nodes from high to low.
Further, the policy issuing module includes:
a first current position setting submodule for setting a position corresponding to a receiving node ranked at the head in the sequence as a current position;
the first issuing submodule is used for issuing a strategy to the receiving node corresponding to the current position;
the first monitoring submodule is used for monitoring whether the receiving node corresponding to the current position successfully receives the strategy issued by the current sending node; if the receiving is successful, triggering a new current position setting submodule;
and a first new current position setting submodule, configured to, if the current position is not equal to a preset position, take a position in the sequence corresponding to a next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position, and return to the step of executing the policy issuing procedure for the receiving node corresponding to the current position, where the preset position is a position corresponding to a receiving node arranged at the end in the sequence.
Further, the policy issuing module further includes:
and the first error message sending submodule is used for sending preset error message corresponding to the receiving node corresponding to the current position to the communication service system if the receiving is unsuccessful, taking the position in the sequence corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position if the current position is not equal to the preset position, and returning to execute the step of issuing the strategy to the receiving node corresponding to the current position.
Further, the policy issuing module includes:
a second current position setting submodule, configured to use a position corresponding to a receiving node arranged at the head in the sequence as a current position, and use the transmitting node as a current transmitting node;
the second issuing submodule is used for issuing a strategy to the receiving node corresponding to the current position;
the second monitoring submodule is used for monitoring whether the receiving node corresponding to the current position successfully receives the strategy issued by the current sending node; if the receiving is successful, triggering a second new current position setting submodule;
and the second new current position setting submodule is used for indicating the receiving node corresponding to the current position to automatically replace the current sending node as a new current sending node if the current position is not equal to the preset position, taking the position in the sequence corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position, and returning to the step of executing the strategy of issuing the receiving node corresponding to the current position.
Further, the policy issuing module further includes:
and the second error information reporting submodule is used for sending preset error information corresponding to the receiving node corresponding to the current position to the communication service system if the receiving is unsuccessful, taking the position corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position if the current position is not equal to the preset position, and returning to execute the step of issuing the strategy for the receiving node corresponding to the current position.
Further, the policy issuing module further includes:
and the first adding submodule is used for adding the receiving node corresponding to the current position into a preset set.
Further, the policy issuing module further includes:
the third issuing submodule is used for issuing a strategy to each receiving node in the set within preset time according to the priority sequence of the receiving nodes in the set;
a third monitoring submodule, configured to monitor whether each receiving node successfully receives the issued policy; if the receiving is not successful, triggering a second adding submodule;
and the second adding submodule is used for adding the receiving nodes corresponding to the strategy which is not successfully received into a new set, returning to execute the steps of carrying out the priority ordering according to the receiving nodes in the set and issuing the strategy to each receiving node in the set within the preset time.
Further, the policy issuing module further includes:
and the sending submodule is used for sending the preset error reporting information corresponding to the unsuccessfully received receiving node to the communication service system.
In another aspect of the present invention, there is also provided a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to execute any one of the above policy rule issuing methods.
In another aspect of the present invention, an embodiment of the present invention further provides a computer program product containing instructions, which when run on a computer, causes the computer to execute any of the above policy rule issuing methods.
According to the method and the device for issuing the policy rules, provided by the embodiment of the invention, the second number of receiving nodes can be sorted according to the priority levels of all receiving nodes in the communication service system defined according to the preset policy rules, so that the sequence of the second number of receiving nodes sorted according to the priority levels is obtained; and issuing a strategy for the second number of receiving nodes according to the sequence of each receiving node in the sequence. The method issues the strategies to the receiving nodes according to the priority of the receiving nodes, and can improve the efficiency of issuing the strategies to the sending nodes. Of course, it is not necessary for any product or method of practicing the invention to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a flowchart of a first policy rule issuing method according to an embodiment of the present invention;
fig. 2 is a flowchart of a second policy rule issuing method according to an embodiment of the present invention;
fig. 3 is a flowchart of a third policy rule issuing method according to an embodiment of the present invention;
fig. 4 is a flowchart of a fourth policy rule issuing method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a policy rule issuing device according to an embodiment of the present invention;
fig. 6 is a schematic diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
In an implementation manner of the embodiment of the present invention, a policy rule issuing method is provided, which is applied to a communication service system created in advance, where the communication service system includes a service cluster created by using an inverse entropy protocol, and the service cluster includes a first number of sending nodes and a second number of receiving nodes selected in the communication service system, and is specific to each sending node. Referring to fig. 1, fig. 1 is a first policy rule issuing method provided by an embodiment of the present invention, where the method includes:
s101, sorting a second number of receiving nodes according to priorities of all receiving nodes in a communication service system defined by a preset strategy rule to obtain a sequence of the second number of receiving nodes sorted according to priorities;
the second quantity is the number of receiving nodes in the service cluster, and the first quantity is the number of sending nodes in the service cluster.
It is worth mentioning that the service clusters created in the embodiment of the present invention are all constructed by using an anti-entropy protocol, which is a Gossip protocol, and is a decentralized, fault-tolerant protocol that ensures final consistency.
A service cluster is understood to be a collection of servers that together perform the same service, which for a client is equivalent to one server.
A communication service system may be understood as a dedicated system that provides communication services to users on a network that need to transfer files over a telecommunication link or access information on a remote system or network.
The sorting of the second number of receiving nodes according to the priority may be sorting the second number of receiving nodes from high to low of each receiving node, or sorting the second number of receiving nodes from low to high of each receiving node.
The method for acquiring the first number of sending nodes comprises the following steps:
according to the sequencing of the nodes serving as the sending nodes in the preset strategy issuing process, a first number of nodes are selected from a target number of nodes in a service cluster to serve as the sending nodes, a second number of nodes are selected to serve as the receiving nodes, the strategy issuing process is to sequence the nodes which can serve as the sending nodes, and the target number is the sum of the first number and the second number.
It should be noted that the nodes in the policy issuing process are sorted in a series according to whether the functions of the nodes better meet those of the sending node.
Therefore, the embodiment selects the first number of nodes as the sending nodes according to the preset strategy issuing process, so that the strategy issuing speed is increased, and the strategy issuing efficiency is further improved.
The creation process of the communication service system may be:
establishing a communication service system by utilizing a communication protocol, a predefined message format and a predefined safe response mode under a predefined low-frequency scene and a predefined high-frequency scene; wherein the content of the first and second substances,
the safety response mode is used for judging whether the encrypted communication sent by the sending node to the receiving node conforms to a preset encryption convention rule or not, and if the encrypted communication conforms to the encryption convention rule, the receiving node receives the encrypted communication.
The method comprises the following steps that an issuing object can be distinguished according to high-frequency and low-frequency communication scenes, and when a communication service system needs to frequently exchange, check and collect information, a high-frequency issuing strategy mode is used; when the communication service system only needs to trigger operations such as information exchange, verification and the like under a specific threshold value, a low-frequency strategy issuing mode is used.
The safe response mode can be understood as sending and receiving messages which are encrypted, refusing to respond to messages which do not conform to encryption convention, and ensuring the safety of communication.
The message format may be:
the message format comprises information length and information content corresponding to the information length, and is used for a receiving node to analyze the information content according to the information length, wherein the information length is used for describing predefined bytes.
In this step, in order to meet the high availability and easy expansion of policy issuing, the Gossip protocol is selected to meet the distributed layout and decentralized flexible expansion of the communication service system, and the created communication service system and the customized communication protocol are used to meet various policy issuing scenarios, so as to achieve easy expansion and maintenance, wherein the high availability is used for describing that one system is specially designed, thereby reducing the downtime and maintaining the high availability of the service.
S102, according to the sequence of each receiving node in the sequence, issuing a strategy to a second number of receiving nodes:
based on the above situation, when the second number of receiving nodes are sorted from high to low according to the priority, the sending node issues the strategies to the sorted second number of receiving nodes from front to back in sequence, and similarly, when the second number of receiving nodes are sorted from low to high according to the priority, the sending node issues the strategies to the sorted second number of receiving nodes from back to front in sequence.
The process of making the policy rule may be:
according to a preset configuration file corresponding to a second number of receiving nodes, dividing the priorities of the second number of receiving nodes by utilizing the preset sequence, hardware resource configuration and network flow configuration of each receiving node corresponding to an operator in the configuration file;
classifying the information content to be received according to the information to be received by the second number of receiving nodes;
and configuring corresponding preset execution commands for the classified information contents.
Therefore, the first policy rule issuing method provided by the embodiment of the invention meets the distributed layout and decentering elastic expansion of the created communication service system by constructing the service cluster in the created communication service system by adopting the inverse entropy protocol, not only reduces the maintenance cost of the communication service system, but also improves the communication efficiency of different scenes, meets various policy issuing scenes by using the customized communication service system and the communication protocol, ensures that the communication service system has higher flexibility in service access and expansion, is easy to maintain, and improves the efficiency of issuing policies to the receiving nodes by issuing the policies to the receiving nodes according to the priority order of the second number of receiving nodes.
In an implementation manner of the embodiment of the invention, another policy rule issuing method is provided. Referring to fig. 2, fig. 2 is a diagram of a second policy rule issuing method applied to a communication service system created in advance, where the communication service system includes a service cluster created by using an inverse entropy protocol, the service cluster includes a first number of sending nodes and a second number of receiving nodes selected in the communication service system, and for each sending node, the method includes:
s201, according to the priorities of all receiving nodes in the communication service defined by the policy rule, sequencing a second number of receiving nodes from high to low according to the priorities to obtain a sequence of the second number of receiving nodes from high to low;
in this step, the second number of receiving nodes are sorted from high to low according to priority, so as to obtain a series of receiving node sequences with priorities sorted from high to low, for example, if the second number is 10, the sequence is composed of 10 receiving nodes with priorities sorted from high to low.
S202, taking the position corresponding to the receiving node arranged at the head in the sequence as the current position;
in this step, after the second number of receiving nodes are sorted from high to low according to priority, the position of the receiving node ranked at the first position in the sequence is taken as the current position.
Based on the above example, the position in the sequence where the 1 st receiving node of the 10 receiving nodes sorted from high to low in priority is located is taken as the current position.
S203, issuing a strategy to the receiving node corresponding to the current position;
based on the above example, the current sending node issues the policy to the 1 st receiving node.
S204, monitoring whether the receiving node corresponding to the current position successfully receives the strategy issued by the current sending node; if the reception is successful, executing S205, and if the reception is not successful, executing S206;
based on the above example, it is monitored that the 1 st receiving node generates a policy on whether to successfully receive the policy issued by the current sending node.
S205, if the current position is not equal to the preset position, taking the position corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position, and returning to execute the S203, wherein the preset position is the position corresponding to the receiving node arranged at the tail in the sequence;
based on the above example, the preset position is a position that is ranked at the end, i.e., the 10 th receiving node, in the order from high to low in priority.
Judging whether the current position is equal to the preset position, and as can be seen from the above description, the current position is currently the position of the 1 st receiving node in the sequence, and the position of the 1 st receiving node in the sequence is obviously not equal to the preset position, at this time, the position of the 2 nd receiving node next to the 1 st receiving node in the sequence is taken as the new current position, and therefore, returning to execute S207, that is, executing steps S207 to S209 again.
S206, sending the preset error reporting information corresponding to the receiving node corresponding to the current position to the communication service system, if the current position is not equal to the preset position, taking the position in the sequence corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position, and returning to execute the step S203.
Based on the above example, if the current sending node monitors that the 1 st receiving node does not successfully receive the policy issued by the current sending node, the preset error reporting information corresponding to the 1 st receiving node is sent to the communication service system, and since the 1 st receiving node as the current location is obviously not equal to the preset location, at this time, the location of the 2 nd receiving node next to the 1 st receiving node in the sequence is taken as the new current location, and therefore, the step of executing S207 is returned, that is, the steps of S207 to S210 are executed again.
It can be seen that, the second policy rule issuing method provided in the embodiment of the present invention constructs a service cluster in the created communication service system by using an inverse entropy protocol, thereby satisfying the distributed layout and decentered elastic expansion of the created communication service system, not only reducing the maintenance cost of the communication service system, but also improving the communication efficiency in different scenarios, and satisfying multiple policy issuing scenarios by using a customized communication service system and a customized communication protocol, so that the communication service system has higher flexibility in service access and expansion, and is easy to maintain, and by issuing a policy to a receiving node according to the priority order of a second number of receiving nodes, for a receiving node that successfully receives, the current sending node then issues a policy to the next receiving node next to the receiving node, and reports error report information that occurs to the receiving node that does not successfully receive, the method can not only prevent the strategy from being lost and inconsistent, but also improve the efficiency of issuing the strategy by the sending node, so that the communication service system can monitor the receiving strategy state of each receiving node frequently, and necessary solutions are provided.
In an implementation manner of the embodiment of the invention, another policy rule issuing method is provided. Referring to fig. 3, fig. 3 is a third policy rule issuing method provided in the embodiment of the present invention, which is applied to a communication service system created in advance, where the communication service system includes a service cluster created by using an inverse entropy protocol, the service cluster includes a first number of sending nodes and a second number of receiving nodes selected in the communication service system, and for each sending node, the method includes:
s301, according to the priorities of all receiving nodes in the communication service defined by the policy rule, sequencing the second number of receiving nodes from high to low according to the priorities to obtain a sequence of the second number of receiving nodes from high to low;
wherein, S301 is the same as the method executed by S201 in the embodiment of fig. 2. Therefore, all the embodiments in fig. 2 are applicable to fig. 3, and can achieve the same or similar beneficial effects, and are not described herein again.
S302, taking a position corresponding to a receiving node arranged at the head in the sequence as a current position, and taking a sending node as a current sending node;
in this step, after the second number of receiving nodes are sorted from high to low according to priority, the position of the receiving node ranked at the first position in the sequence is taken as the current position.
It should be noted that in this step, the sending node is taken as a new current sending node, and all subsequent steps are performed with the current sending node as an execution subject.
S303, issuing a strategy to the receiving node corresponding to the current position;
s303 to S304 are the same as the methods performed by S203 to S204 in the embodiment of fig. 2. Therefore, all the embodiments in fig. 2 are applicable to fig. 3, and can achieve the same or similar beneficial effects, and are not described herein again.
S304, monitoring whether the receiving node corresponding to the current position successfully receives the strategy issued by the current sending node; if the reception is successful, executing S305, and if the reception is not successful, executing S306;
s305, if the current position is not equal to the preset position, indicating a receiving node corresponding to the current position to automatically replace the current sending node as a new current sending node, taking a position in the sequence corresponding to a next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position, and returning to execute S303;
based on the above example, that is, there are 10 receiving nodes ordered from high to low according to the priority, the preset position is the position of the 10 th receiving node.
Judging whether the current position is equal to a preset position, wherein the current position is the position of the 1 st receiving node in the sequence, and the position of the 1 st receiving node in the sequence is obviously not equal to the preset position, at this time, the 1 st receiving node is automatically converted into a new current sending node, and the position of the 2 nd receiving node next to the 1 st receiving node in the sequence is taken as the new current position, so that the step of executing S303 is returned, namely executing S303-S305 again.
S306, sending the preset error reporting information corresponding to the receiving node corresponding to the current position to the communication service system, if the current position is not equal to the preset position, taking the position in the sequence corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position, and returning to execute S303.
Based on the above example, if the current sending node monitors that the 1 st receiving node does not successfully receive the policy issued by the current sending node, the preset error reporting information corresponding to the 1 st receiving node is sent to the communication service system, and since the 1 st receiving node as the current location is obviously not equal to the preset location, at this time, the location of the 2 nd receiving node next to the 1 st receiving node in the sequence is taken as the new current location, and therefore, the step of executing S303 is returned, that is, the steps of S303 to S306 are executed again.
It can be seen that, the third policy rule issuing method provided in the embodiment of the present invention constructs a service cluster in the created communication service system by using the inverse entropy protocol, thereby satisfying the distributed layout and decentered elastic expansion of the created communication service system, not only reducing the maintenance cost of the communication service system, but also improving the communication efficiency in different scenarios, and satisfying multiple policy issuing scenarios by using the customized communication service system and communication protocol, so that the communication service system has higher flexibility in service access and expansion, and is easy to maintain, and by instructing to issue policies to the receiving nodes according to the priority order of the second number of receiving nodes, for the receiving nodes that successfully receive, the receiving node is automatically converted into the current sending node, and then issues a policy to the next receiving node adjacent to the receiving node, for the receiving node which is not successfully received, the error report information of the receiving node is reported, so that not only can the strategy loss and the strategy inconsistency be prevented, but also the strategy issuing efficiency of the sending node can be improved, and the communication service system can monitor the receiving strategy state of each receiving node frequently, and provide necessary solutions.
In an implementation manner of the embodiment of the invention, another policy rule issuing method is provided. Referring to fig. 4, fig. 4 is a fourth policy rule issuing method provided in the embodiment of the present invention, which is applied to a communication service system created in advance, where the communication service system includes a service cluster created by using an inverse entropy protocol, the service cluster includes a first number of sending nodes and a second number of receiving nodes selected in the communication service system, and for each sending node, the method includes:
s401, according to the priorities of all receiving nodes in the communication service defined by the strategy rule, sequencing a second number of receiving nodes from high to low according to the priorities to obtain a sequence of the second number of receiving nodes from high to low;
s401 to S405 are the same as the methods performed in S301 to S305 in the embodiment of fig. 3, respectively. Therefore, all the embodiments in fig. 3 are applicable to fig. 4, and can achieve the same or similar beneficial effects, and are not described herein again.
S402, taking the position corresponding to the receiving node arranged at the head in the sequence as the current position, and taking the sending node as the current sending node;
s403, issuing a strategy to the receiving node corresponding to the current position;
s404, monitoring whether the receiving node corresponding to the current position successfully receives the strategy issued by the current sending node; if the reception is successful, executing S405, and if the reception is unsuccessful, executing S406;
s405, if the current position is not equal to the preset position, indicating a receiving node corresponding to the current position to automatically replace the current sending node as a new current sending node, taking a position in the sequence corresponding to a next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position, and returning to execute S403;
s406, adding the receiving node corresponding to the current position into a preset set;
note that in this step, the receiving node that did not receive successfully is added to the preset set.
S407, sending the preset error reporting information corresponding to the receiving node corresponding to the current position to the communication service system, if the current position is not equal to the preset position, taking a position in the sequence corresponding to a next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position, and returning to execute S403.
Wherein S407 is the same as the method executed in S306 in the embodiment of fig. 3. Therefore, all the embodiments in fig. 3 are applicable to fig. 4, and can achieve the same or similar beneficial effects, and are not described herein again.
S408, according to the priority sequence of the receiving nodes in the set, issuing a strategy to each receiving node in the set within preset time;
in the step, each receiving node can be issued with a strategy according to the sequence of the priorities of the receiving nodes in the set from high to low.
It should be noted that the specific issuing policy in this step may also be implemented according to an issuing policy for each receiving node in the set within a specified certain period, where the issuing policy may be implemented according to the methods in steps S401 to S406, or according to the methods in S201 to S206.
S409, monitoring whether each receiving node successfully receives the issued strategy, if not, executing S410, and if each receiving node successfully receives the issued strategy, ending;
after issuing the policy to each receiving node, it is necessary to monitor whether each receiving node receives the policy, and S410 is performed for the receiving node that has not yet issued successfully.
S410, sending the preset error reporting information corresponding to the unsuccessfully received receiving node to a communication service system;
this step requires that error information for the receiving node that has not received the policy yet be sent to the communication service system in order to further propose a solution.
S411, adding the receiving node corresponding to the unsuccessful receiving strategy into a new set, and returning to execute S408.
And if receiving nodes in the original set still have receiving nodes which have not received successful strategies, forming a new set by the receiving nodes which have not received successful strategies, and returning to execute the step S408, namely executing the steps S408 to S411.
It can be seen that, the fourth policy rule issuing method provided in the embodiment of the present invention constructs a service cluster in the created communication service system by using an inverse entropy protocol, thereby satisfying the distributed layout and decentered elastic expansion of the created communication service system, not only reducing the maintenance cost of the communication service system, but also improving the communication efficiency in different scenarios, and satisfying multiple policy issuing scenarios by using a customized communication service system and a customized communication protocol, so that the communication service system has higher flexibility in service access and expansion, and is easy to maintain, and by issuing policies to receiving nodes according to the priority order of the second number of receiving nodes, for receiving nodes that are successfully received, the receiving node is automatically converted into a current sending node, and then issues a policy to the next receiving node adjacent to the receiving node, for the receiving nodes which are not successfully received, reporting error reporting information of the receiving nodes, issuing strategies to each receiving node which is not successfully received within a preset time according to the priority sequence of the receiving nodes, and issuing strategies to the receiving nodes if the receiving nodes still have the receiving nodes which are not successfully received; the method can not only prevent the strategy from being lost and inconsistent, but also improve the efficiency of issuing the strategy by the sending node, and facilitate the communication service system to monitor the receiving strategy state of each receiving node frequently so as to implement further measures.
Corresponding to the method for issuing the policy rules, the embodiment of the application also provides a device for issuing the policy rules.
The embodiment of the invention also provides a device for issuing the strategy rules, which is applied to the established communication service system. Referring to fig. 5, fig. 5 is a structural diagram of a policy rule issuing device according to an embodiment of the present invention, which is applied to a communication service system created in advance, where the communication service system includes a service cluster created by using an inverse entropy protocol, the service cluster includes a first number of sending nodes and a second number of receiving nodes selected in the communication service system, and for each sending node, the device includes:
a sorting module 501, configured to sort, according to priorities of all receiving nodes in the communication service system defined by a preset policy rule, the second number of receiving nodes according to priority levels, so as to obtain a sequence in which the second number of receiving nodes are sorted according to priority levels;
the policy issuing module 502 is configured to issue a policy for a second number of receiving nodes according to the sequence of each receiving node in the sequence.
Wherein the content of the first and second substances,
the method for acquiring the first number of sending nodes comprises the following steps:
according to the sequencing of the nodes serving as the sending nodes in the preset strategy issuing process, a first number of nodes are selected from a target number of nodes in a service cluster to serve as the sending nodes, a second number of nodes are selected to serve as the receiving nodes, the strategy issuing process is to sequence the nodes which can serve as the sending nodes, and the target number is the sum of the first number and the second number.
The communication service system creating process comprises the following steps:
establishing a communication service system by utilizing a communication protocol, a predefined message format and a predefined safe response mode under a predefined low-frequency scene and a predefined high-frequency scene; wherein the content of the first and second substances,
the safety response mode is used for judging whether the encrypted communication sent by the sending node to the receiving node conforms to a preset encryption convention rule or not, and if the encrypted communication conforms to the encryption convention rule, the receiving node receives the encrypted communication.
The process of making the policy rule is as follows:
according to a preset configuration file corresponding to a second number of receiving nodes, dividing the priorities of the second number of receiving nodes by using at least one combination of preset sequencing, hardware resource configuration and network flow configuration of an operator corresponding to each receiving node in the configuration file;
classifying the information content to be received according to the information to be received by the second number of receiving nodes;
and configuring corresponding preset execution commands for the classified information contents.
The message format is as follows:
the message format comprises information length and information content corresponding to the information length, and is used for a receiving node to analyze the information content according to the information length, wherein the information length is used for describing predefined bytes.
The sorting module 501 may include:
and the sequence obtaining submodule is used for sequencing the second number of receiving nodes from high to low according to the priorities of all the receiving nodes in the communication service system defined by the strategy rule to obtain a sequence of the second number of receiving nodes from high to low.
The policy issuing module 502 may include:
a first current position setting submodule for setting a position corresponding to a receiving node arranged at the head in the sequence as a current position;
the first issuing submodule is used for issuing a strategy to the receiving node corresponding to the current position;
the first monitoring submodule is used for monitoring whether the receiving node corresponding to the current position successfully receives the strategy issued by the current sending node; if the receiving is successful, triggering a new current position setting submodule;
and the first new current position setting submodule is used for taking the position in the sequence corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position if the current position is not equal to the preset position, and returning to execute the step of issuing the strategy to the receiving node corresponding to the current position, wherein the preset position is the position corresponding to the receiving node arranged at the tail in the sequence.
The policy issuing module 502 may further include:
and the first error-reporting information sending submodule is used for sending preset error-reporting information corresponding to the receiving node corresponding to the current position to the communication service system if the receiving node is not successfully received, and taking the position in the sequence corresponding to the next receiving node which is adjacent to the receiving node corresponding to the current position in the sequence as a new current position if the current position is not equal to the preset position, and returning to execute the step of issuing the strategy to the receiving node corresponding to the current position.
The policy issuing module 502 may further include:
a second current position setting submodule for setting a position corresponding to the receiving node arranged at the head in the sequence as a current position, and setting the transmitting node as a current transmitting node;
the second issuing submodule is used for issuing a strategy to the receiving node corresponding to the current position;
the second monitoring submodule is used for monitoring whether the receiving node corresponding to the current position successfully receives the strategy issued by the current sending node; if the receiving is successful, triggering a second new current position setting submodule;
and a second new current position setting submodule, configured to instruct, if the current position is not equal to the preset position, the receiving node corresponding to the current position to automatically replace the current sending node as a new current sending node, and then use, as a new current position, a position in the sequence corresponding to a next receiving node next to the receiving node corresponding to the current position in the sequence, and return to execute the step of issuing the policy to the receiving node corresponding to the current position.
The policy issuing module 502 may further include:
and the second error information reporting submodule is used for sending preset error information corresponding to the receiving node corresponding to the current position to the communication service system if the receiving node is not successfully received, and taking the position corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position if the current position is not equal to the preset position, and returning to the step of executing the strategy of issuing the receiving node corresponding to the current position.
The policy issuing module 502 may further include:
and the first adding submodule is used for adding the receiving node corresponding to the current position into a preset set.
The policy issuing module 502 may further include:
the third issuing submodule is used for issuing a strategy to each receiving node in the set within preset time according to the priority sequence of the receiving nodes in the set;
a third monitoring submodule, configured to monitor whether each receiving node successfully receives the issued policy; if the receiving is not successful, triggering a second adding submodule;
and the second adding submodule is used for adding the receiving nodes corresponding to the unsuccessful receiving strategy into a new set, returning to execute the steps of sorting according to the priority of the receiving nodes in the set and issuing the strategy to each receiving node in the set within the preset time.
The policy issuing module 502 may further include:
and the sending submodule is used for sending the preset error reporting information corresponding to the unsuccessfully received receiving node to the communication service system.
Therefore, the policy rule issuing device provided by the embodiment of the invention adopts the inverse entropy protocol to construct the service cluster in the created communication service system, meets the requirements of distributed layout and decentration elastic expansion of the created communication service system, reduces the maintenance cost of the communication service system, improves the communication efficiency of different scenes, and meets various policy issuing scenes by using the customized communication service system and the communication protocol, so that the communication service system has higher flexibility in service access and expansion, is easy to maintain, and can improve the efficiency of issuing the policy by issuing the policy to the receiving nodes according to the priority order of the second number of receiving nodes.
Referring to fig. 6, fig. 6 is a schematic diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 6, the electronic device includes a processor 601, a communication interface 602, a memory 603, and a communication bus 604, where the processor 601, the communication interface 602, and the memory 603 complete mutual communication through the communication bus 604,
a memory 603 for storing a computer program;
the processor 601 is configured to implement the policy rule issuing method provided in the embodiment of the present invention when executing the program stored in the memory 603.
Specifically, the policy rule issuing method is applied to a pre-established communication service system, the communication service system includes a service cluster established by using an inverse entropy protocol, the service cluster includes a first number of sending nodes and a second number of receiving nodes selected in the communication service system, and for each sending node, the method includes:
sequencing the second number of receiving nodes according to the priorities of all the receiving nodes in the communication service system defined by a preset strategy rule to obtain a sequence of the second number of receiving nodes sequenced according to the priorities;
and issuing a strategy for the second number of receiving nodes according to the sequence of each receiving node in the sequence.
Therefore, by adopting the inverse entropy protocol to construct the service cluster in the created communication service system, the electronic device provided by the embodiment meets the requirements of distributed layout and decentering elastic expansion of the created communication service system, reduces the maintenance cost of the communication service system, improves the communication efficiency of different scenes, meets the requirements of multiple strategy issuing scenes by using the customized communication service system and the customized communication protocol, ensures that the communication service system has higher flexibility in service access and expansion, is easy to maintain, and can improve the efficiency of issuing strategies by sending the receiving nodes according to the priority ranking of the second number of receiving nodes.
The implementation of the foregoing method for issuing related content policy rules is the same as the policy rule issuing method provided in the foregoing method embodiment, and is not described here again.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In another embodiment of the present invention, a computer-readable storage medium is further provided, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is caused to execute the policy rule issuing method described in any one of the above embodiments.
In another embodiment of the present invention, there is also provided a computer program product containing instructions, which when run on a computer, causes the computer to execute the policy rule issuing method described in any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the invention are generated in whole or in part when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that includes one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, device, computer-readable storage medium, and computer program product embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for relevant points.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (23)

1. A strategy rule issuing method is applied to a pre-established communication service system, the communication service system comprises a service cluster established by adopting an inverse entropy protocol, the service cluster comprises a first number of sending nodes and a second number of receiving nodes selected in the communication service system, the sending nodes and the receiving nodes are servers in the service cluster, and the method comprises the following steps of:
according to the priorities of all receiving nodes in the communication service system defined by the strategy rule, sequencing the second number of receiving nodes from high to low according to the priorities to obtain a sequence of the second number of receiving nodes from high to low;
issuing a strategy to the second number of receiving nodes according to the sequence of each receiving node in the sequence;
the issuing strategy of the second number of receiving nodes according to the sequence of each receiving node in the sequence comprises the following steps:
taking the position corresponding to the receiving node ranked at the head in the sequence as the current position;
issuing a strategy to a receiving node corresponding to the current position;
monitoring whether a receiving node corresponding to the current position successfully receives a strategy issued by a current sending node or not;
if the receiving is successful, if the current position is not equal to the preset position, taking the position in the sequence corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position, and returning to the step of executing the step of issuing the strategy to the receiving node corresponding to the current position, wherein the preset position is the position corresponding to the receiving node arranged at the tail in the sequence.
2. The method of claim 1, wherein the first number of sending nodes obtain the method comprising:
according to the sequencing of the nodes serving as the sending nodes in a preset strategy issuing process, a first number of nodes are selected from a target number of nodes in a service cluster to serve as the sending nodes, a second number of nodes are selected to serve as the receiving nodes, the strategy issuing process is to sequence the nodes which can serve as the sending nodes, and the target number is the sum of the first number and the second number.
3. The method of claim 1, wherein the communication service system is created by:
establishing a communication service system by utilizing a communication protocol, a predefined message format and a predefined safe response mode under a predefined low-frequency scene and a predefined high-frequency scene; wherein the content of the first and second substances,
the safety response mode is used for judging whether the encrypted communication sent by the sending node to the receiving node conforms to a preset encryption convention rule or not, and if the encrypted communication conforms to the encryption convention rule, the receiving node receives the encrypted communication.
4. The method of claim 1, wherein the policy rule is formulated by:
according to a preset configuration file corresponding to a second number of receiving nodes, dividing the priorities of the second number of receiving nodes by using at least one combination of preset sequencing, hardware resource configuration and network flow configuration of an operator corresponding to each receiving node in the configuration file;
classifying the information content to be received according to the information to be received by the second number of receiving nodes;
and configuring corresponding preset execution commands for the classified information contents.
5. The method of claim 3, wherein the message format is:
the message format comprises information length and information content corresponding to the information length, and is used for a receiving node to analyze the information content according to the information length, wherein the information length is used for describing predefined bytes.
6. The method of claim 1, wherein after the monitoring whether the receiving node corresponding to the current location successfully receives the policy issued by the current sending node, the method further comprises:
if the receiving is not successful, sending the preset error reporting information corresponding to the receiving node corresponding to the current position to the communication service system, if the current position is not equal to the preset position, taking the position in the sequence corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position, and returning to the step of executing the strategy issuing of the receiving node corresponding to the current position.
7. The method of claim 1, wherein said issuing a delivery policy for said second number of receiving nodes according to the ordering of each receiving node in said sequence comprises:
taking the position corresponding to the receiving node arranged at the head in the sequence as a current position, and taking the sending node as a current sending node;
issuing a strategy to a receiving node corresponding to the current position;
monitoring whether a receiving node corresponding to the current position successfully receives a strategy issued by a current sending node or not;
if the receiving is successful, if the current position is not equal to the preset position, indicating the receiving node corresponding to the current position to automatically replace the current sending node as a new current sending node, taking the position in the sequence corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position, and returning to the step of executing the strategy issuing of the receiving node corresponding to the current position.
8. The method of claim 7, wherein after the monitoring whether the receiving node corresponding to the current location successfully receives the policy issued by the current sending node, the method further comprises:
if the receiving is not successful, sending the preset error reporting information corresponding to the receiving node corresponding to the current position to the communication service system, if the current position is not equal to the preset position, taking the position in the sequence corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position, and returning to the step of executing the strategy issuing of the receiving node corresponding to the current position.
9. The method of claim 8, wherein before the sending the preset error information corresponding to the receiving node corresponding to the current location to the communication service system, the method further comprises:
and adding the receiving node corresponding to the current position into a preset set.
10. The method according to claim 9, wherein after the step of returning and executing the sending down policy for the receiving node corresponding to the current location, the method further comprises:
according to the priority sequence of the receiving nodes in the set, issuing a strategy to each receiving node in the set within preset time;
monitoring whether each receiving node successfully receives the issued strategy;
and if the strategy is not successfully received, adding the receiving nodes corresponding to the strategy which is not successfully received into a new set, returning to execute the step of issuing the strategy to each receiving node in the set within the preset time according to the priority sequence of the receiving nodes in the set.
11. The method of claim 10, wherein prior to adding the receiving node corresponding to the unsuccessful receipt of the policy in the new set, further comprising:
and sending the preset error reporting information corresponding to the unsuccessfully received receiving node to the communication service system.
12. A strategy rule issuing device is applied to a pre-established communication service system, the communication service system comprises a service cluster established by adopting an inverse entropy protocol, the service cluster comprises a first number of sending nodes and a second number of receiving nodes selected in the communication service system, the sending nodes and the receiving nodes are servers in the service cluster, and the device comprises:
a ranking module, the ranking module comprising: a sequence obtaining submodule, configured to sort, according to priorities of all receiving nodes in the communication service system defined by the policy rule, the second number of receiving nodes from high to low according to the priorities, so as to obtain a sequence of the second number of receiving nodes from high to low;
the strategy issuing module is used for issuing strategies to the second number of receiving nodes according to the sequence of each receiving node in the sequence;
the strategy issuing module comprises:
a first current position setting submodule for setting a position corresponding to a receiving node ranked at the head in the sequence as a current position;
the first issuing submodule is used for issuing a strategy to the receiving node corresponding to the current position;
the first monitoring submodule is used for monitoring whether the receiving node corresponding to the current position successfully receives the strategy issued by the current sending node; if the receiving is successful, triggering a new current position setting submodule;
and a first new current position setting submodule, configured to, if the current position is not equal to a preset position, take a position in the sequence corresponding to a next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position, and return to the step of executing the policy issuing procedure for the receiving node corresponding to the current position, where the preset position is a position corresponding to a receiving node arranged at the end in the sequence.
13. The apparatus of claim 12, wherein the first number of sending nodes obtain the method comprising:
according to the sequencing of the nodes serving as the sending nodes in a preset strategy issuing process, a first number of nodes are selected from a target number of nodes in a service cluster to serve as the sending nodes, a second number of nodes are selected to serve as the receiving nodes, the strategy issuing process is to sequence the nodes which can serve as the sending nodes, and the target number is the sum of the first number and the second number.
14. The apparatus of claim 12, wherein the communication service system creation process is:
establishing a communication service system by utilizing a communication protocol, a predefined message format and a predefined safe response mode under a predefined low-frequency scene and a predefined high-frequency scene; wherein the content of the first and second substances,
the safety response mode is used for judging whether the encrypted communication sent by the sending node to the receiving node conforms to a preset encryption convention rule or not, and if the encrypted communication conforms to the encryption convention rule, the receiving node receives the encrypted communication.
15. The apparatus of claim 12, wherein the policy rule is formulated by:
according to a preset configuration file corresponding to a second number of receiving nodes, dividing the priorities of the second number of receiving nodes by using at least one combination of preset sequencing, hardware resource configuration and network flow configuration of an operator corresponding to each receiving node in the configuration file;
classifying the information content to be received according to the information to be received by the second number of receiving nodes;
and configuring corresponding preset execution commands for the classified information contents.
16. The apparatus of claim 14, wherein the message format is:
the message format comprises information length and information content corresponding to the information length, and is used for a receiving node to analyze the information content according to the information length, wherein the information length is used for describing predefined bytes.
17. The apparatus of claim 12, wherein the policy issuing module further comprises:
and the first error message sending submodule is used for sending preset error message corresponding to the receiving node corresponding to the current position to the communication service system if the receiving is unsuccessful, taking the position in the sequence corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position if the current position is not equal to the preset position, and returning to execute the step of issuing the strategy to the receiving node corresponding to the current position.
18. The apparatus of claim 12, wherein the policy issuing module comprises:
a second current position setting submodule, configured to use a position corresponding to a receiving node arranged at the head in the sequence as a current position, and use the transmitting node as a current transmitting node;
the second issuing submodule is used for issuing a strategy to the receiving node corresponding to the current position;
the second monitoring submodule is used for monitoring whether the receiving node corresponding to the current position successfully receives the strategy issued by the current sending node; if the receiving is successful, triggering a second new current position setting submodule;
and the second new current position setting submodule is used for indicating the receiving node corresponding to the current position to automatically replace the current sending node as a new current sending node if the current position is not equal to the preset position, taking the position in the sequence corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position, and returning to the step of executing the strategy of issuing the receiving node corresponding to the current position.
19. The apparatus of claim 18, wherein the policy issuing module further comprises:
and the second error information reporting submodule is used for sending preset error information corresponding to the receiving node corresponding to the current position to the communication service system if the receiving is unsuccessful, taking the position corresponding to the next receiving node next to the receiving node corresponding to the current position in the sequence as a new current position if the current position is not equal to the preset position, and returning to execute the step of issuing the strategy for the receiving node corresponding to the current position.
20. The apparatus of claim 19, wherein the policy issuing module further comprises:
and the first adding submodule is used for adding the receiving node corresponding to the current position into a preset set.
21. The apparatus of claim 20, wherein the policy issuing module further comprises:
the third issuing submodule is used for issuing a strategy to each receiving node in the set within preset time according to the priority sequence of the receiving nodes in the set;
a third monitoring submodule, configured to monitor whether each receiving node successfully receives the issued policy; if the receiving is not successful, triggering a second adding submodule;
and the second adding submodule is used for adding the receiving nodes corresponding to the strategy which is not successfully received into a new set, returning to execute the steps of carrying out the priority ordering according to the receiving nodes in the set and issuing the strategy to each receiving node in the set within the preset time.
22. The apparatus of claim 21, wherein the policy issuing module further comprises:
and the sending submodule is used for sending the preset error reporting information corresponding to the unsuccessfully received receiving node to the communication service system.
23. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 11 when executing a program stored in the memory.
CN201711377196.6A 2017-12-19 2017-12-19 Policy rule issuing method and device Active CN108156086B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711377196.6A CN108156086B (en) 2017-12-19 2017-12-19 Policy rule issuing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711377196.6A CN108156086B (en) 2017-12-19 2017-12-19 Policy rule issuing method and device

Publications (2)

Publication Number Publication Date
CN108156086A CN108156086A (en) 2018-06-12
CN108156086B true CN108156086B (en) 2022-04-22

Family

ID=62463953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711377196.6A Active CN108156086B (en) 2017-12-19 2017-12-19 Policy rule issuing method and device

Country Status (1)

Country Link
CN (1) CN108156086B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109121176B (en) * 2018-09-29 2021-11-02 中国电子科技集团公司第三十研究所 Distributed data synchronization method
CN109361749B (en) 2018-10-24 2022-03-29 华为云计算技术有限公司 Message processing method, related equipment and computer storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102726031A (en) * 2011-07-22 2012-10-10 华为技术有限公司 Content processing method, device and system
CN102833151A (en) * 2012-07-02 2012-12-19 上海交通大学 User individuation priority routing algorithm based on content coverage and feedback mechanism
CN104391918A (en) * 2014-11-19 2015-03-04 天津南大通用数据技术股份有限公司 Method for achieving distributed database query priority management based on peer deployment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103200531B (en) * 2013-04-10 2016-03-09 广东全通教育股份有限公司 A kind of multimedia message mass-sending method and system
CN104079623B (en) * 2014-05-08 2018-03-20 深圳市中博科创信息技术有限公司 Multistage cloud storage synchronisation control means and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102726031A (en) * 2011-07-22 2012-10-10 华为技术有限公司 Content processing method, device and system
CN102833151A (en) * 2012-07-02 2012-12-19 上海交通大学 User individuation priority routing algorithm based on content coverage and feedback mechanism
CN104391918A (en) * 2014-11-19 2015-03-04 天津南大通用数据技术股份有限公司 Method for achieving distributed database query priority management based on peer deployment

Also Published As

Publication number Publication date
CN108156086A (en) 2018-06-12

Similar Documents

Publication Publication Date Title
CN106550003B (en) Load balancing control method, device and system
CN108183950B (en) Method and device for establishing connection of network equipment
EP3264723B1 (en) Method, related apparatus and system for processing service request
CN111130912B (en) Anomaly positioning method for content distribution network, server and storage medium
CN110247816B (en) Index monitoring method and device
CN111182568A (en) Communication method, communication device, computer readable medium and electronic equipment
CN112600693B (en) Service request processing method, system, electronic equipment and computer storage medium
US20210058811A1 (en) Method and apparatus for detecting time series data
CN110677684B (en) Video processing method, video access method, distributed storage method and distributed video access system
CN108156086B (en) Policy rule issuing method and device
CN107306200B (en) Network fault early warning method and gateway for network fault early warning
CN105468619A (en) Resource distribution method and device used for database connection pool
CN112585904B (en) Background data transmission processing
CN104579738A (en) Computer-implemented method, computer system, computer program product to manage traffic in a network
CN110012051A (en) Notify method for pushing, device, terminal device, server and system
CN110460486B (en) Service node monitoring method and system
CN115412609B (en) Service processing method, device, server and storage medium
CN111555918B (en) Return source optimization method and device and electronic equipment
CN112506896B (en) Data deleting method and device and electronic equipment
CN111294553B (en) Method, device, equipment and storage medium for processing video monitoring service signaling
CN114615337A (en) Equipment scheduling method, system, server and storage medium
CN115333917A (en) CDN anomaly detection method and device
CN111083430B (en) Image acquisition method and device, electronic equipment and storage medium
CN110636607B (en) Positioning method, positioning device, electronic equipment and storage medium
CN110347632B (en) Communication method and device

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