Summary of the invention
The invention provides a kind of flow control methods and system, to address the above problem.
The invention provides a kind of flow control methods.Said method comprises the following steps: the communication party carries out data flow communication by communication party's management server and Correspondent Node management server and Correspondent Node; If described communication party monitors the flow that arrives at a station, surpass default threshold value thresholding, trigger described communication party's management server and carry out traffic statistics; Communication party's management server is added up respectively communication party's the data traffic from each Correspondent Node, and according to ordering strategy, the data traffic from each Correspondent Node is sorted, and determine the Correspondent Node that need to communicate processing according to ranking results and comparison strategy, simultaneously, the communication party triggers the Correspondent Node management server by communication party's management server and establishs and enforces the data flow con-trol strategy, controls the transmission of Correspondent Node data flow; Communication party's management server communicates the information of the Correspondent Node of processing according to the needs of determining, the urgency traffic data flow communication of those Correspondent Nodes is dispensed to the emergency processing server; If the communication direction Correspondent Node sends the request of urgency traffic data flow again, communication party's management server is dispensed to the emergency processing server by communication task.
The present invention also provides a kind of flow control system, comprises communication party, communication party's management server, Correspondent Node, Correspondent Node management server and emergency processing server.The emergency processing server connects communication party, communication party's management server, Correspondent Node and Correspondent Node management server, the communication party connects communication party's management server, Correspondent Node connects the Correspondent Node management server, and communication party's management server connects the Correspondent Node management server.Wherein, the communication party carries out data flow communication by communication party's management server and Correspondent Node management server and Correspondent Node.If monitoring the flow that arrives at a station, the communication party surpasses default threshold value thresholding, trigger described communication party's management server and carry out traffic statistics, communication party's management server is added up respectively communication party's the data traffic from each Correspondent Node, and according to ordering strategy, the data traffic from each Correspondent Node is sorted, and determine the Correspondent Node that need to communicate processing according to ranking results and comparison strategy, simultaneously, the communication party triggers the Correspondent Node management server by communication party's management server and establishs and enforces the data flow con-trol strategy, control the transmission of Correspondent Node data flow.Communication party's management server communicates the Correspondent Node information of processing according to the needs of determining, the urgency traffic data flow communication of those Correspondent Nodes is dispensed to the emergency processing server.If the communication direction Correspondent Node sends the request of urgency traffic data flow again, communication party's management server is dispensed to the emergency processing server by communication task.
Compared to prior art, according to flow control methods provided by the invention and system, if monitoring the flow that arrives at a station, the communication party surpasses default threshold value thresholding, communication party's management server sorts from the data traffic of each Correspondent Node to described communication party according to ordering strategy, and determine the Correspondent Node that need to communicate processing according to ranking results and comparison strategy, simultaneously, the communication party triggers the Correspondent Node management server by communication party's management server and establishs and enforces the data flow con-trol strategy, controls the transmission of Correspondent Node data flow.The urgency traffic data flow communication that communication party's management server communicates needs the Correspondent Node of processing is dispensed to the emergency processing server.So, realize the control of communication party's communication flows.Simultaneously, realize Correspondent Node is sent to the covenant of works bundle the local flow that arrives at a station of real effectively restriction.
Embodiment
Hereinafter with reference to accompanying drawing, also describe in conjunction with the embodiments the present invention in detail.It should be noted that, in the situation that do not conflict, embodiment and the feature in embodiment in the application can combine mutually.
Figure 1 shows that the flow chart of the flow control methods that preferred embodiment according to the present invention provides.As shown in Figure 1, the flow control methods that provides of preferred embodiment of the present invention comprises step 101~104.
In step 101, the communication party carries out data flow communication by communication party's management server and Correspondent Node management server and Correspondent Node.
In the present embodiment, the communication party A of take carries out data flow communication by communication party's management server and Correspondent Node management server and Correspondent Node D, Correspondent Node E, Correspondent Node F and Correspondent Node G and is example.Wherein, when Correspondent Node D, E, F, G send data flow to communication party A respectively, all carry self identification information, so, facilitate communication party's management server to carry out traffic statistics to communication party A.In addition, described data flow comprises urgency traffic data flow and non-emergent business data flow.Wherein, the urgency traffic data flow for example comprises data query request or response, Data Update request or response, data removal request or corresponding; Non-emergent business data flow for example comprises the link detection message.In this, Correspondent Node D for example comprises urgency traffic data flow and non-emergent business data flow to the data flow that communication party A sends; Correspondent Node E for example comprises urgency traffic data flow and non-emergent business data flow to the data flow that communication party A sends; Correspondent Node F for example comprises urgency traffic data flow and non-emergent business data flow to the data flow that communication party A sends; Correspondent Node G for example comprises non-emergent business data flow to the data flow that communication party A sends.
In step 102, if monitoring the flow that arrives at a station, described communication party surpasses default threshold value thresholding, trigger described communication party's management server and carry out traffic statistics; Described communication party's management server is added up respectively described communication party's the data traffic from each Correspondent Node, and according to ordering strategy, the data traffic from each Correspondent Node is sorted, and determine the Correspondent Node that need to communicate processing according to ranking results and comparison strategy, simultaneously, described communication party triggers the Correspondent Node management server by described communication party's management server and establishs and enforces the data flow con-trol strategy, controls the transmission of Correspondent Node data flow.
In the present embodiment, described ordering strategy is: arrange according to data traffic order from big to small; Perhaps, the priority according to Correspondent Node just is arranged in order its corresponding data traffic.Yet the present invention does not limit this.
Still with the illustrating of step 101, if a certain moment, communication party A monitors the flow that arrives at a station and surpasses default threshold value thresholding (for example, being M), triggers described communication party's management server and carries out traffic statistics.Communication party's management server is added up respectively the data traffic of communication party A from Correspondent Node D, E, F, G, and sorts according to the data traffic of ordering strategy to Correspondent Node D, E, F, G.Wherein, from the data traffic of Correspondent Node D, be for example M1, from the data traffic of Correspondent Node E, be for example M2, from the data traffic of Correspondent Node F, be for example M3, from the data traffic of Correspondent Node G, be for example M4.In this, ordering strategy is for example: arrange according to data traffic order from big to small.So, ranking results is for example: M1 > M3 > M2 > M4.
Now, then according to ranking results and comparison strategy determine the Correspondent Node that need to communicate processing.Wherein, described comparison strategy is: compare first-class value and threshold value thresholding in ranking results, if described first-class value is more than or equal to the threshold value thresholding, the Correspondent Node that in ranking results, all flow values are corresponding is for communicating the Correspondent Node of processing; If described first-class value is less than the threshold value thresholding, first-class value and second value sum and threshold value thresholding, if be more than or equal to the threshold value thresholding, the Correspondent Node that second value and subsequent flows value are corresponding is for communicating the Correspondent Node of processing, if be less than the threshold value thresholding, first-class value, second value and the 3rd flow value sum and threshold value thresholding, repeat said process, until determine the Correspondent Node that need to communicate processing.
Particularly, the ranking results obtained with reference to as above example (namely, M1 > M3 > M2 > M4), at first compare first-class value (being for example M1) and threshold value thresholding (for example being M) in ranking results, if M > M1, continue first-class value and second value sum (being for example M1+M3) and threshold value thresholding (M), if M > M1+M3, continue first-class value, second value and the 3rd flow value sum (being for example M1+M3+M2) and threshold value thresholding (M), if M<M1+M3+M2, according to comparison strategy, determine that the Correspondent Node that need to communicate processing is: Correspondent Node E and Correspondent Node G.In addition, if M > M1+M3+M2, continue first-class value, second value, the 3rd flow value and the 4th flow value (being for example M1+M3+M2+M4) and threshold value thresholding M, until determine the Correspondent Node that need to process.In addition, if M1 > M, determine that the Correspondent Node that need to process is: Correspondent Node D, Correspondent Node E, Correspondent Node F, Correspondent Node G.
Simultaneously, in the present embodiment, the communication party triggers the Correspondent Node management server by communication party's management server and establishs and enforces the data flow con-trol strategy, controls the transmission of Correspondent Node data flow.Wherein, described data flow con-trol strategy is: determine corresponding transmission time interval according to idle bandwidth proportion and the bandwidth time table of comparisons of Correspondent Node.In this, bandwidth time table of comparisons example is as shown in table 1.Yet the present invention does not limit this.In practical application, can arrange as required.
The idle bandwidth specific gravity range |
Transmission time interval |
0~30% |
Every 3 seconds, send a secondary data |
30~60% |
Every 2 seconds, send a secondary data |
More than 60% |
Every 1 second, send a secondary data |
Table 1
Particularly, when the communication party monitored the flow that arrives at a station and surpasses default threshold value thresholding, the communication party triggered the Correspondent Node management server by communication party's management server.Now, the Correspondent Node management server is added up respectively current bandwidth use amount and the total amount of bandwidth of each Correspondent Node, thereby obtain the idle bandwidth proportion (total amount of bandwidth of idle bandwidth proportion=(total amount of bandwidth of single Correspondent Node-single Correspondent Node current bandwidth use amount)/single Correspondent Node) of each Correspondent Node, then the transmission time interval of determining each Correspondent Node according to idle bandwidth proportion and the bandwidth time table of comparisons of each Correspondent Node.In this, the information that the Correspondent Node management server is determined is for example as follows: the transmission time interval of Correspondent Node D is every 2 seconds, to send a secondary data, the transmission time interval of Correspondent Node E is every 2 seconds, to send a secondary data, the transmission time interval of Correspondent Node F is every 1 second, to send a secondary data, and the transmission time interval of Correspondent Node G is every 3 seconds, to send a secondary data.So, the Correspondent Node management server is controlled the data flow transmission of Correspondent Node D, Correspondent Node E, Correspondent Node F and Correspondent Node G according to above-mentioned definite information.So, realized Correspondent Node is sent to the covenant of works bundle flow thereby arrive at a station in real effectively restriction this locality.
In step 103, described communication party's management server communicates the information of the Correspondent Node of processing according to the needs of determining, the urgency traffic data flow communication of those Correspondent Nodes is dispensed to the emergency processing server.
In this, the step 101 and 102 of still take is example, if determine that according to ranking results and comparison strategy the Correspondent Node that need to communicate processing is Correspondent Node E and Correspondent Node G, and the information of communication party's management server obtaining communication opposite end E and Correspondent Node G.Wherein, because Correspondent Node E for example comprises urgency traffic data flow and non-emergent business data flow to the data flow that communication party A sends, Correspondent Node G for example comprises non-emergent business data flow to the data flow that communication party A sends, therefore, Correspondent Node E and Correspondent Node G can normally send non-emergent business data flow to communication party A.For the urgency traffic data flow of Correspondent Node E to communication party A transmission, after the urgency traffic data flow of communication party's management server received communication opposite end E, sign and the IP address of replacing the communication party A carried in the urgency traffic data flow with the sign of emergency processing server and IP address, and the urgency traffic data flow after processing is sent to the emergency processing server.So, realize the emergent distribution of urgency traffic data flow communication task.
In step 104, if described communication direction Correspondent Node sends the request of urgency traffic data flow again, described communication party's management server is dispensed to described emergency processing server by communication task.
Particularly, if described communication direction Correspondent Node sends the request of urgency traffic data flow again, described communication party's management server by the process that described communication task is dispensed to described emergency processing server is: after described communication party's management server receives the urgency traffic data flow request of described communication party's transmission, the described communication party sign of carrying in the request of described urgency traffic data flow and IP address are replaced with to described emergency processing server identification and IP address and will process after the request of urgency traffic data flow by the Correspondent Node management server, be sent to described Correspondent Node, described Correspondent Node is by Correspondent Node management server and communication party's management server or directly by described Correspondent Node management server, the response of urgency traffic data flow is sent to described emergency processing server.
In addition, in the present embodiment, if the communication party monitors the flow that arrives at a station lower than the threshold value thresholding and surpasses Preset Time, described communication party notifies described emergency processing server or directly notifies described emergency processing server that the urgency traffic data flow of reception is sent to described communication party by described communication party's management server.
Particularly, if the communication party monitors the flow that arrives at a station lower than the threshold value thresholding and surpasses Preset Time, the communication party notifies the communication party management server, and communication party's management server reinforms the emergency processing server urgency traffic data flow of reception is sent to the communication party.Wherein, in the message that communication party's management server sends to the emergency processing server, carry communication party's sign and IP address information, made the emergency processing server communication party's sign and IP address information can be added in the urgency traffic data flow.Perhaps, if the communication party monitors the flow that arrives at a station lower than the threshold value thresholding and surpasses Preset Time, the communication party directly notifies the emergency processing server that the urgency traffic data flow of reception is sent to the communication party.Wherein, communication party's sign and IP address information in the message that communication direction emergency processing server sends, have been carried, make the emergency processing server can by communication party's sign and the IP address information is added in the urgency traffic data flow or the emergency processing server pre-stored communication party IP address, in the message that communication direction emergency processing server sends, can not carry the IP address information.
Figure 2 shows that the schematic diagram of the flow control system that preferred embodiment according to the present invention provides.As shown in Figure 2, the flow control system that provides of preferred embodiment of the present invention comprises communication party A~C, communication party's management server 10, Correspondent Node D~G, Correspondent Node management server 12 and emergency processing server 14.Wherein, emergency processing server 14 connects communication party A~C, communication party's management server 10, Correspondent Node D~G and Correspondent Node management server 12.Communication party A~C connects communication party's management server 10, and Correspondent Node D~G connects Correspondent Node management server 12, and communication party's management server 10 connects Correspondent Node management server 12.
In the present embodiment, (for example, Correspondent Node D~G) carries out data flow communication to communication party (for example, communication party A) by communication party's management server 10 and Correspondent Node management server 12 and Correspondent Node.If monitoring the flow that arrives at a station, communication party A surpasses default threshold value thresholding, trigger communication party's management server 10 and carry out traffic statistics, communication party's management server 10 is added up respectively the data traffic from each Correspondent Node D~G of communication party A, and according to ordering strategy, the data traffic from each Correspondent Node D~G is sorted, and determine the Correspondent Node that need to communicate processing according to ranking results and comparison strategy, simultaneously, communication party A triggers Correspondent Node management server 12 by communication party's management server 10 and establishs and enforces the data flow con-trol strategy, control the transmission of Correspondent Node D~G data flow.Communication party's management server 10 communicates the Correspondent Node information of processing according to the needs of determining, the urgency traffic data flow communication of those Correspondent Nodes is dispensed to emergency processing server 14.If communication party A sends the request of urgency traffic data flow again to Correspondent Node, communication party's management server 10 is dispensed to emergency processing server 14 by communication task.Specific operation process about said system is described with above-mentioned method, therefore repeat no more in this.
In sum, the communication flow rate control method that preferred embodiment provides according to the present invention and system, if monitoring the flow that arrives at a station, the communication party surpasses default threshold value thresholding, communication party's management server sorts to the data traffic from each Correspondent Node according to ordering strategy, and determine the Correspondent Node that need to communicate processing according to ranking results and comparison strategy, simultaneously, the communication party triggers the Correspondent Node management server by communication party's management server and establishs and enforces the data flow con-trol strategy, controls the transmission of Correspondent Node data flow.The urgency traffic data flow communication that communication party's management server communicates needs the Correspondent Node of processing is dispensed to the emergency processing server.So, realize the control of communication party's communication flows.Simultaneously, realize Correspondent Node is sent to the covenant of works bundle the local flow that arrives at a station of real effectively restriction.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.