CN111294855B - Flow control method, device, equipment and medium - Google Patents

Flow control method, device, equipment and medium Download PDF

Info

Publication number
CN111294855B
CN111294855B CN201811493529.6A CN201811493529A CN111294855B CN 111294855 B CN111294855 B CN 111294855B CN 201811493529 A CN201811493529 A CN 201811493529A CN 111294855 B CN111294855 B CN 111294855B
Authority
CN
China
Prior art keywords
diameter
dra
link
busy response
threshold value
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
CN201811493529.6A
Other languages
Chinese (zh)
Other versions
CN111294855A (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Chongqing Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Chongqing 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 China Mobile Communications Group Co Ltd, China Mobile Group Chongqing Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201811493529.6A priority Critical patent/CN111294855B/en
Publication of CN111294855A publication Critical patent/CN111294855A/en
Application granted granted Critical
Publication of CN111294855B publication Critical patent/CN111294855B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0289Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/10Flow control between communication endpoints

Abstract

The invention discloses a flow control method, a flow control device, flow control equipment and a flow control medium. The method comprises the following steps: based on the period of the opposite terminal timer and the congestion relief condition of the opposite terminal, judging whether to calculate a DIAMETER threshold value processed by each link per second at present or not, and judging whether to send a DIAMETER _ TOO _ BUSY response to the routing agent node DRA or not, wherein the DIAMETER threshold value is inserted into the DIAMETER _ TOO _ BUSY response; when the judgment is made to calculate the DIAMETER threshold value processed per second by each link currently and averagely, and DIAMETER _ TOO _ BUSY response is sent to the DRA, the DRA is enabled to receive the DIAMETER _ TOO _ BUSY response sent from the opposite end and resolve the DIAMETER threshold value from the DIAMETER _ TOO _ BUSY response, so that each link in the link group on the DRA side can adjust the number of sent DIAMETER messages based on the DIAMETER threshold value. According to the technical scheme provided by the invention, the full service resistance caused by BUSY can be avoided, the message sending quantity is adjusted according to the congestion degree of the congestion peer, the diameter information is sent to the congestion peer as much as possible, and the maximum utility is achieved.

Description

Flow control method, device, equipment and medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a medium for controlling traffic.
Background
The typical flow of diameter signaling flow control in the existing network can be divided into the following two types:
first, DIAMETER _ TOO _ BUSY congestion control:
when the peer node peer signaling processing capacity of a Routing Agent node (DRA) is insufficient, congestion is caused, and the peer node sends a Diameter _ TOO _ BUSY (3004) response message back to the DRA. After receiving the response of DIAMETER _ TOO _ BUSY returned by the congestion node, the DRA starts a flow control timer and forwards the DIAMETER _ TOO _ BUSY error response.
No more request messages are sent to the congested node before the timer expires, and all subsequent messages are sent by an alternative route. After the flow control timer is overtime, the request message sent to the congestion node is recovered, if the congestion state of the congestion node is not relieved, the error response of DIAMETER _ TOO _ BUSY is continuously returned, and the DRA starts the flow control again; and if the congestion state of the congestion node is relieved, the DRA relieves the congestion control.
Second, the Diameter active flow control mechanism:
the DRA may perform active flow control over the diameter link. And setting the outgoing side threshold flow control aiming at all links in the same link group. And if the diameter message quantity forwarded by the link per second exceeds a set threshold, message discarding processing is carried out according to the system flow control parameters and the set discarding priority rule. The message number sent by DRA to peer is ensured not to exceed a certain fixed value, the congestion of peer nodes is avoided, and the purpose of flow control is achieved.
The following describes the drawbacks of the prior art, specifically as follows:
firstly, in the current network DIAMETER _ TOO _ BUSY congestion control mechanism, in a BUSY scene of the main and standby routes, the main and standby routes of the DRA do not transmit signaling, and at this time, the traffic from the DRA to a congested end peer is completely blocked. The message cannot be retransmitted until the peer congestion state is relieved and DIAMETER _ TOO _ BUSY is not sent to DRA. Therefore, message forwarding in BUSY time is completely blocked, and the influence on the service is very large.
Secondly, the existing network Diameter active flow control mechanism can effectively avoid BUSY scenes, but a link sending threshold from DRA to peer needs to be set as a fixed value and is determined according to the peer service processing capacity. When the peer congestion scene at the opposite end changes, the DRA sets a certain fixed flow control sending threshold value, and cannot meet the service to the maximum extent. For example, when the threshold is too high, peer at the opposite end is congested, and BUSY congestion control is triggered, so that service full blocking is caused; if the threshold is too low, more signaling will be discarded, aggravating the situation of traffic impairment.
Disclosure of Invention
The embodiment of the invention provides a flow control method, a flow control device, flow control equipment and a flow control medium, which can avoid business total blocking caused by BUSY, adjust the message sending quantity according to the congestion degree of a congestion peer, send diameter information to the congestion peer as much as possible and achieve maximum effectiveness.
In a first aspect, an embodiment of the present invention provides a flow control method, where the method includes:
based on the period of an opposite-end timer and the congestion relief condition of the opposite end, judging whether to calculate a DIAMETER threshold value processed by each link per second at present and whether to send a DIAMETER _ TOO _ BUSY response to a routing agent node DRA, wherein the DIAMETER threshold value is inserted into the DIAMETER _ TOO _ BUSY response;
when the judgment is made to calculate the DIAMETER threshold processed per second of each link currently and averagely, and DIAMETER _ TOO _ BUSY response is sent to the DRA, the DRA is enabled to receive the DIAMETER _ TOO _ BUSY response sent from the opposite end, and the DIAMETER threshold is parsed from the DIAMETER _ TOO _ BUSY response, so that each link in the link group on the DRA side adjusts the number of sent DIAMETER messages based on the DIAMETER threshold.
According to the flow control method provided by the present invention, the calculating a diameter threshold value processed per second of each current average link includes:
and calculating the diameter threshold value processed by each link per second at the current average based on the total diameter message number processed by the link group of the opposite end per second and the number of links in the link group of the opposite end.
According to the flow control method provided by the invention, the method further comprises the following steps:
when the opposite end is detected to be congested for the first time, calculating a first diameter threshold value processed by each link per second according to the congestion degree;
inserting the first DIAMETER threshold into the DIAMETER _ TOO _ BUSY response, sending the DIAMETER _ TOO _ BUSY response to the DRA, and starting the opposite terminal timer at the same time, so that the DRA adjusts the number of sent DIAMETER messages according to the first DIAMETER threshold.
According to the flow control method provided by the present invention, the determining whether to calculate the DIAMETER threshold value processed by each link per second at present and whether to send DIAMETER _ TOO _ BUSY response to the routing agent node DRA based on the peer timer period and the peer congestion relief condition includes:
when the congestion is relieved in the period of the opposite end timer, the DIAMETER threshold value processed by each link per second at the current average is not calculated any more, and the DIAMETER _ TOO _ BUSY response is not sent to the DRA any more.
According to the flow control method provided by the present invention, the determining whether to calculate the DIAMETER threshold value processed by each link per second at present and determine whether to send DIAMETER _ TOO _ BUSY response to the routing agent node DRA based on the opposite end timer period and the opposite end congestion relief condition includes:
when the opposite end timer is overtime and opposite end congestion is not relieved, recalculating a second diameter threshold value processed per second by each link at present according to the congestion degree;
inserting the second DIAMETER threshold into the DIAMETER _ TOO _ BUSY response and sending the DIAMETER _ TOO _ BUSY response to the DRA, so that the DRA adjusts the number of DIAMETER messages sent according to the second DIAMETER threshold.
According to the flow control method provided by the present invention, the method further comprises:
when the opposite-end congestion relief is detected and the DIAMETER _ TOO _ BUSY response is not sent to the DRA any more, starting a DRA side timer; and the number of the first and second electrodes,
and enabling the DRA to judge whether each link in a link group of the DRA side adjusts the number of transmitted DIAMETER messages according to a DIAMETER threshold carried by the DIAMETER _ TOO _ BUSY response according to a DRA side timer period and whether the DIAMETER _ TOO _ BUSY response is received.
According to the method for controlling flow provided by the present invention, said causing the DRA to determine, according to a DRA side timer period and whether the DIAMETER _ TOO _ BUSY response is received, whether each link in a link group of the DRA side adjusts the number of DIAMETER messages to be sent according to a DIAMETER threshold carried by the DIAMETER _ TOO _ BUSY response, includes:
and when the DIAMETER _ TOO _ BUSY response is not received in a DRA side timer period, enabling each link in the link group of the DRA side to adjust the number of DIAMETER messages to be sent according to the DIAMETER threshold value under the opposite end congestion condition in the last state.
According to the method for controlling flow provided by the present invention, said causing the DRA to determine, according to a DRA side timer period and whether the DIAMETER _ TOO _ BUSY response is received, whether each link in a link group of the DRA side adjusts the number of DIAMETER messages to be sent according to a DIAMETER threshold carried by the DIAMETER _ TOO _ BUSY response, includes:
and when the DRA side timer is overtime and the DIAMETER _ TOO _ BUSY response is not received in the DRA side timer period, each link in the link group of the DRA side normally sends DIAMETER message number.
In a second aspect, an embodiment of the present invention provides a flow control method, where the method includes:
when an opposite terminal is congested and receives a DIAMETER _ TOO _ BUSY response sent by the opposite terminal, wherein the DIAMETER _ TOO _ BUSY response carries a DIAMETER threshold;
performing flow control for each link within a link group based on the diameter threshold;
judging whether the diameter threshold value changes or not;
when the diameter threshold value is determined to be changed, each link in the link group performs flow control based on the changed diameter threshold value.
According to the flow control method provided by the invention, the method further comprises the following steps:
when the opposite terminal is free from congestion and does not receive the DIAMETER _ TOO _ BUSY response sent by the opposite terminal any more, starting a DRA side timer;
and judging whether each link in a link group of the DRA side adjusts the number of transmitted DIAMETER messages according to a DIAMETER threshold carried by the DIAMETER _ TOO _ BUSY response or not according to the period of a timer of the DRA side and whether the DIAMETER _ TOO _ BUSY response is received or not.
In a third aspect, an embodiment of the present invention provides a flow control device, where the device includes:
a first judging module, configured to, based on a peer timer period and a peer congestion relief condition, judge whether to calculate a DIAMETER threshold value processed per second for each link on average currently, and judge whether to send a DIAMETER _ TOO _ BUSY response to a routing agent node DRA, where the DIAMETER threshold value is inserted into the DIAMETER _ TOO _ BUSY response;
and the adjusting module is used for enabling the DRA to receive the DIAMETER _ TOO _ BUSY response transmitted from the opposite terminal and resolving the DIAMETER threshold value from the DIAMETER _ TOO _ BUSY response when determining to calculate the DIAMETER threshold value processed per second by each link on the current average, and transmitting the DIAMETER _ TOO _ BUSY response to the DRA, so that each link in the link group on the DRA side can adjust the number of transmitted DIAMETER messages based on the DIAMETER threshold value.
According to the flow rate control device provided by the present invention, the first determining module is specifically configured to:
and calculating the diameter threshold value processed by each link per second at the current average based on the total diameter message number processed by the link group of the opposite end per second and the number of links in the link group of the opposite end.
According to the flow control device provided by the present invention, the device further comprises:
the calculation module is used for calculating a first diameter threshold value processed by each link per second at present according to the congestion degree when the opposite end is detected to be congested for the first time;
a first starting module, configured to insert the first DIAMETER threshold into the DIAMETER _ TOO _ BUSY response, send the DIAMETER _ TOO _ BUSY response to the DRA, and start the peer timer at the same time, so that the DRA adjusts the number of DIAMETER messages sent according to the first DIAMETER threshold.
According to the flow rate control device provided by the present invention, the first determining module is specifically configured to:
when congestion is relieved within the period of the peer timer, then the DIAMETER threshold value currently processed per link per second is not calculated any more, and the DIAMETER _ TOO _ BUSY response is not sent to the DRA.
According to the flow rate control device provided by the present invention, the first determining module is specifically configured to:
when the opposite end timer is overtime and opposite end congestion is not relieved, recalculating a second diameter threshold value processed by each link per second at present according to the congestion degree;
inserting the second DIAMETER threshold into the DIAMETER _ TOO _ BUSY response and sending the DIAMETER _ TOO _ BUSY response to the DRA, so that the DRA adjusts the number of DIAMETER messages sent according to the second DIAMETER threshold.
According to the flow control device provided by the present invention, the device further comprises:
a second starting module, configured to start a DRA side timer when detecting that the opposite end is free from congestion and no longer sending the DIAMETER _ TOO _ BUSY response to the DRA; and also,
and enabling the DRA to judge whether each link in a link group of the DRA side adjusts the number of transmitted DIAMETER messages according to a DIAMETER threshold carried by the DIAMETER _ TOO _ BUSY response according to a DRA side timer period and whether the DIAMETER _ TOO _ BUSY response is received.
According to the flow control device provided by the invention, the second starting module is specifically used for:
and when the DIAMETER _ TOO _ BUSY response is not received in a DRA side timer period, enabling each link in the link group of the DRA side to adjust the number of DIAMETER messages to be sent according to the DIAMETER threshold value under the opposite end congestion condition in the last state.
According to the flow control device provided by the invention, the second starting module is specifically used for:
and when the DRA side timer is overtime and the DIAMETER _ TOO _ BUSY response is not received in the DRA side timer period, each link in the link group of the DRA side normally sends DIAMETER message number.
In a fourth aspect, an embodiment of the present invention provides a flow control device, where the device includes:
a receiving module, configured to, when a peer is congested and receives a DIAMETER _ TOO _ BUSY response sent by the peer, where the DIAMETER _ TOO _ BUSY response carries a DIAMETER threshold;
a first traffic control module to perform traffic control for each link within a link group based on the diameter threshold;
the second judging module is used for judging whether the diameter threshold value changes or not;
and the second flow control module is used for executing flow control on each link in the link group based on the changed diameter threshold when the diameter threshold is judged to be changed.
In a fifth aspect, an embodiment of the present invention provides a flow control device, including: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the methods of the first and second aspects of the embodiments described above.
In a sixth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which computer program instructions are stored, and when the computer program instructions are executed by a processor, the method of the first aspect and the second aspect in the foregoing embodiments is implemented.
The traffic method, the traffic device, the traffic equipment and the traffic medium provided by the embodiment of the invention can avoid business full-blocking caused by BUSY, and can adjust the message sending quantity according to the congestion degree of the congestion peer. The diameter information is sent to the congestion peer as much as possible, and the maximum utility is achieved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flow chart illustrating a flow control method according to an embodiment of the present invention;
fig. 2 is a flow chart illustrating a flow control method according to another embodiment of the present invention;
FIG. 3 is a schematic view of the flow control device of one embodiment of the present invention;
FIG. 4 is a schematic view of the construction of a flow control device according to another embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating a flow control method according to yet another embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a hardware structure of a flow control device according to an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
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 phrases "comprising 8230; \8230;" comprises 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
For convenience of description, the technical terms possibly referred to herein and their meanings are first listed below, and it is to be understood that these technical terms are known in the art.
< Diameter protocol >
The Diameter protocol is used as The AAA protocol standard of The next generation by The AAA working group of The Internet Engineering Task Force (IETF). The Diameter protocol supports mobile IP, network Access Service (NAS) requests, and authentication, authorization, and accounting work for mobile agents. The method is widely applied to communication between core network elements in a Long Term Evolution (LTE)/IP Multimedia Subsystem (IMS) core network architecture, and is the most widely applied IP signaling basic protocol in an LTE network. The method is used for the transmission of operation signaling of roaming user authentication, location registration, charging and the like.
<DRA>
A large number of network elements in an LTE/IMS network are communicated by using Diameter signaling, signaling networking requirements such as simplified data configuration, signaling link convergence, network topology hiding and the like exist in provincial, provincial and international level Diameter signaling addressing, and DRA becomes a key network element for constructing the LTE signaling network. Diameter signaling needs to be relayed by the DRA device.
<DIAMETER_TOO_BUSY>
The Diameter node fails to provide the requested service and returns the error cause value.
After receiving the error cause value, the Diameter node should attempt to send the message to another peer.
The DRA device generates the cause value response message when it is internally congested.
< opposite terminal >
A Diameter Peer, also called a Peer, is defined as a Diameter node, and a direct transmission link exists between the node and another Diameter node DRA, and Diameter signaling is directly transmitted and received between the node and the DRA.
Based on the above, an embodiment of the present invention may provide a flow control method, and referring to fig. 1, fig. 1 shows a schematic flow chart of a flow control method 100 according to an embodiment of the present invention, where the method includes:
s110, based on the period of the opposite terminal timer and the congestion relief condition of the opposite terminal, judging whether to calculate the DIAMETER threshold value processed by each link per second at present, and judging whether to send DIAMETER _ TOO _ BUSY response to the routing agent node DRA, wherein the DIAMETER threshold value is inserted into the DIAMETER _ TOO _ BUSY response;
and S120, when judging that the DIAMETER threshold processed per second of each link at present is calculated, and DIAMETER _ TOO _ BUSY response is sent to the DRA, enabling the DRA to receive the DIAMETER _ TOO _ BUSY response sent from the opposite end, and resolving the DIAMETER threshold from the DIAMETER _ TOO _ BUSY response, so that each link in the link group of the DRA side adjusts the number of sent DIAMETER messages based on the DIAMETER threshold.
It should be noted that the execution subject of steps S110 to S120 may be the peer.
The scheme provided by the invention can avoid generating BUSY to cause service full block, simultaneously adjust the message sending quantity according to the congestion degree of the congestion peer, and send diameter information to the congestion peer as much as possible, thereby achieving the maximum effectiveness.
Another embodiment of the present invention may provide a flow control method, and referring to fig. 2, fig. 2 is a schematic flow chart of a flow control method 200 according to another embodiment of the present invention, where the method includes:
s210, when the opposite terminal is congested and receives a DIAMETER _ TOO _ BUSY response sent by the opposite terminal, wherein the DIAMETER _ TOO _ BUSY response carries a DIAMETER threshold;
s220, based on the diameter threshold value, each link in the link group executes flow control;
s230, judging whether the diameter threshold value changes or not;
and S240, when the diameter threshold is judged to be changed, each link in the link group executes flow control based on the changed diameter threshold.
It should be noted that the execution subject of steps S210 to S240 may be the routing agent node DRA.
According to the scheme provided by the invention, when the opposite end is congested, the message sending quantity is adjusted according to the congestion degree of the congestion peer, so that the diameter information is sent to the congestion peer as much as possible, and the maximum effectiveness is achieved.
Corresponding to the flow control method 100 according to an embodiment of the present invention, an embodiment of the present invention may provide a flow control device, an apparatus, and a computer storage medium.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating a flow control device 300 according to an embodiment of the present invention, the device including:
a first determining module 310, configured to determine, based on the peer timer period and the peer congestion relief status, whether to calculate a DIAMETER threshold value processed per second for each link currently on average, and determine whether to send a DIAMETER _ TOO _ BUSY response to the routing agent node DRA, where the DIAMETER threshold value is inserted into the DIAMETER _ TOO _ BUSY response;
and an adjusting module 320, configured to, when determining to calculate the DIAMETER threshold value currently processed per second for each link on average and send a DIAMETER _ TOO _ BUSY response to the DRA, enable the DRA to receive the DIAMETER _ TOO _ BUSY response sent from the peer and parse the DIAMETER threshold value from the DIAMETER _ TOO _ BUSY response, so that each link in the link group on the DRA side adjusts the number of sent DIAMETER messages based on the DIAMETER threshold value.
Further, it should be noted that the first determining module 310 and the adjusting module 320 may be modules at opposite ends.
The scheme provided by the invention can avoid business full-block caused by BUSY, and simultaneously adjust the message sending quantity according to the congestion degree of the congestion peer, and send diameter information to the congestion peer as much as possible, thereby achieving the effect maximization.
Corresponding to the flow control method 200 according to another embodiment of the present invention, another embodiment of the present invention may provide a flow control apparatus, a device, and a computer storage medium.
Referring to fig. 4, fig. 4 shows a schematic structural view of a flow control device 400 according to another embodiment of the present invention, which includes:
a receiving module 410, configured to, when a peer is congested and receives a DIAMETER _ TOO _ BUSY response sent by the peer, where the DIAMETER _ TOO _ BUSY response carries a DIAMETER threshold;
a first traffic control module 420 for performing traffic control on each link in the link group based on the diameter threshold;
a second determining module 430, configured to determine whether the diameter threshold changes;
and the second flow control module 440 is configured to, when it is determined that the diameter threshold changes, perform flow control on each link in the link group based on the changed diameter threshold.
Further, it should be noted that the receiving module 410 to the second traffic control module 440 may be modules of the DRA side.
The scheme provided by the invention can avoid business full-block caused by BUSY, and simultaneously adjust the message sending quantity according to the congestion degree of the peer at the opposite end, and send diameter information to the congested peer as much as possible, thereby achieving the maximum effectiveness.
The following describes, by way of specific examples, alternative specific processes of embodiments of the present invention. It should be noted that the scheme of the present invention does not depend on a specific algorithm, and in practical applications, any known or unknown hardware, software, algorithm, program, or any combination thereof may be used to implement the scheme of the present invention, and the scheme of the present invention is within the protection scope of the present invention as long as the essential idea of the scheme of the present invention is adopted.
The following describes embodiments of the present invention in detail, specifically as follows:
< congestion end peer policy configuration >
The congestion end peer policy configuration mainly comprises two parts: the peer end dynamic flow calculation module and the peer end dynamic flow calculation module are provided with timers, and the two parts are introduced as follows:
the first part is that a peer end dynamic flow calculation module: when the local side is detected to be congested, before DIAMETER _ TOO _ BUSY (3004) is sent to the DRA, the total DIAMETER message number Xmps which can be processed by a current link group of the peer side per second is calculated according to the congestion degree of the peer side, N links are arranged in the link group, wherein N is a positive integer, and the average message processing number per second of each link of the peer side is (X/N) = C1 mps.
And in the second part, the peer end dynamic flow calculation module sets a timer: and transmitting a first DIAMETER _ TOO _ BUSY to the DRA in the congestion period, and starting timing. Before the timer times out, if congestion is relieved, DIAMETER _ TOO _ BUSY does not need to be sent. And when the timer is overtime and the congestion is not relieved, the dynamic flow calculation module recalculates the average message processing number per second of each link C2 mps according to the new congestion degree.
In addition, a threshold parameter C1 is inserted in the DIAMETER _ TOO _ BUSY (3004) response message sent by the peer to the DRA. And the inserted AVP code is 268.
< DRA-side dynamic flow control >
The DRA end dynamic flow control mainly comprises two parts: the DRA dynamic flow control module and the DRA dynamic flow control module are provided with timers, and the two parts are introduced as follows:
a first part, a DRA dynamic flow control module: after receiving the DIAMETER _ TOO _ BUSY (3004) response, the DRA resolves AVP code:268, result-code DIAMETER _ TOO _ BUSY (3004), and carrying a threshold parameter C1, then the dynamic flow control module is started. And according to an active flow control mechanism, setting local side threshold flow control for the link group, wherein the threshold is C1 mps.
When the value of C1 carried by DIAMETER _ TOO _ BUSY (3004) changes to C2, the DRA dynamic flow control module sets the egress flow control threshold to C2.
Therefore, the DRA can send the diameter message to the maximum extent according to the signaling processing capacity which can be borne by the peer end.
And in the second part, the DRA dynamic flow control module sets a timer: if the DRA in the timer does not receive DIAMETER _ TOO _ BUSY of the peer, the flow control of the exit side threshold value of the link group is automatically cancelled after the timer is overtime.
In conclusion, the DRA can always calculate the most appropriate number of messages according to the peer end, and send diameter messages to the peer in real time according to the calculated number of messages.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating a flow control method according to another embodiment of the present invention.
As an example, the flow of diameter signaling dynamic flow control is described with reference to fig. 5, which is as follows:
aiming at the condition that the prior network DRA can not accurately and dynamically control the peer congestion degree, the embodiment of the invention provides a Diameter active flow control mechanism, which can calculate the most suitable number of Diameter messages to be sent by the DRA end according to the congestion degree of the peer end by calculating and configuring the dynamic flow of the congested peer end, inserting a flow threshold parameter into a DIAMETER _ TOO _ BUSY (3004) response message and setting a dynamic flow control module of the DRA end, wherein the general flow comprises the following steps:
flow control is not started, namely congestion at the peer end is avoided, a threshold value C1 is suggested, namely dynamic flow control C1 at the DRA end is suggested, namely congestion degree change at the peer end is suggested, and a threshold value C2 is suggested, namely dynamic flow control C2 at the DRA end is suggested, namely the peer end is relieved from congestion, namely the DRA timer is overtime, and dynamic flow control is cancelled.
The following describes a specific process with reference to fig. 5, and the specific process is as follows:
the first step is as follows: and initially, the DRA normally sends a message to the peer without flow limitation.
The second step is that: due to various factors, the peer end is congested at the time of T1, and the message sent by the DRA to the peer end cannot be completely processed. And triggering a dynamic flow calculation module, and calculating the maximum message quantity C1 which can be received and processed by each link in the link group according to the current signaling processing capacity. The parameter C1 is inserted into the DIAMETER _ TOO _ BUSY (3004) response message, the DIAMETER _ TOO _ BUSY (3004) response message is transmitted to the DRA at time T2, and the peer end timer is started at the same time.
The third step: and the DRA receives a DIAMETER _ TOO _ BUSY (3004) response message carrying a flow control parameter C1, triggers a DRA side dynamic flow control module, sets an outlet flow control threshold of the link group to be C1, and sends the message to the congestion end peer by each link in the DRA side link group at the maximum value of C1 mps.
The fourth step: when the timer at the peer end is overtime at the time of T3, the congestion condition of the peer end is not relieved at the time, the dynamic flow calculation module is triggered again, the maximum message volume C2 which can be received and processed by each link in the link group at the peer end is calculated, the flow control parameter C2 is inserted into a DIAMETER _ TOO _ BUSY (3004) response message, the DIAMETER _ TOO _ BUSY (3004) response message carrying the flow control parameter C2 is sent to the DRA at the time of T4, and the timer is started at the same time.
The fifth step: and the DRA receives a DIAMETER _ TOO _ BUSY (3004) response carrying a flow control parameter C2, triggers the dynamic flow control module again, sets an outlet flow control threshold value of the link group to be C2, and sends a message to the congestion end peer by each link in the DRA end link group at the maximum value of C2 mps.
And a sixth step: at the time of T5, the peer end relieves the congestion, at this time, the peer does not send a DIAMETER _ TOO _ BUSY (3004) response to the DRA, and after the DRA does not receive the DIAMETER _ TOO _ BUSY (3004) response at the time of T5, the DRA end timer is started. At this time, the flow control of the DRA to the peer end is still continued, and the threshold value is still C2.
In addition, it should be noted that the above embodiment is only exemplary, and in other embodiments, at time T5, when the DRA end receives a DIAMETER _ TOO _ BUSY (3004) response sent by the PEER end, the foregoing steps are repeated, for example, the second step and the third step, and so on.
The seventh step: at time T6, the DRA-side timer times out, and the DIAMETER _ TOO _ BUSY (3004) response sent by the peer is not received in the period of the DRA-side timer. At this time, the DRA cancels the flow restriction and normally sends a message to the peer.
In summary, according to the above-mentioned scheme provided by the embodiment of the present invention, the DRA end performs dynamic flow control according to the change of the signaling congestion degree of the peer, so as to meet the real-time processing capability of the peer at the congested end.
In the embodiment of the invention, a peer dynamic flow calculation module is started according to the congestion degree of a peer end, and the DRA end is enabled to be based on the dynamic flow control parameter by setting the dynamic flow control parameter, so that the dynamic flow control module is started. And realizing dynamic flow control from the DRA end to the congestion end peer.
Therefore, in the DIAMETER _ TOO _ BUSY congestion control mechanism of the existing network, when a sender at a peer end is congested and BUSY occurs in DRA to master and slave routes from the peer end, the DRA to the congested end peer does not send DIAMETER signaling, and signaling service is completely blocked in the period.
In addition, the existing network DRA can set active flow control, and according to the existing flow control mechanism, a link sending threshold value from the DRA to an opposite-end peer link group is manually set, but the threshold value cannot be quickly and accurately set according to the opposite-end peer service processing capacity. And when the congestion degree of the peer changes, the DRA sending threshold value cannot be adjusted quickly. For example, if the threshold is too high, peer at the opposite end is congested, and BUSY congestion control is triggered, so that the service is completely blocked. If the threshold is too low, more signaling will be dropped, exacerbating the traffic impairment.
The invention can successfully realize the real-time automatic adjustment of the Peer flow control threshold from the DRA end to the congestion end. The congestion control mechanism found by BUSY touch is prevented from causing full service blocking. Meanwhile, the message sending amount is adjusted according to the congestion degree of the congestion peer, the diameter information is sent to the congestion peer as much as possible, and the diameter signaling forwarding efficiency is improved.
In addition, the flow control method according to the embodiment of the present invention described in conjunction with fig. 1 and fig. 2 may be implemented by a flow control device. Fig. 6 shows a schematic hardware structure diagram of a flow control device according to an embodiment of the present invention.
The flow control device may comprise a processor 1003 and a memory 1004 in which computer program instructions are stored.
Fig. 6 is a block diagram illustrating an exemplary hardware architecture of a computing device capable of implementing a communication method and a network server according to an embodiment of the present invention. As shown in fig. 6, computing device 1000 includes input device 1001, input interface 1002, processor 1003, memory 1004, output interface 1005, and output device 1006.
The input interface 1002, the processor 1003, the memory 1004, and the output interface 1005 are connected to each other via a bus 1010, and the input device 1001 and the output device 1006 are connected to the bus 1010 via the input interface 1002 and the output interface 1005, respectively, and further connected to other components of the computing device 1000.
Specifically, the input device 1001 receives input information from the outside and transmits the input information to the processor 1003 via the input interface 1002; the processor 1003 processes the input information based on computer-executable instructions stored in the memory 1004 to generate output information, stores the output information temporarily or permanently in the memory 1004, and then transmits the output information to the output device 1006 through the output interface 1005; output device 1006 outputs the output information external to computing device 1000 for use by a user.
The computing device 1000 may perform the steps of the communication method described above in the embodiments of the present invention.
Processor 1003 may be one or more Central Processing Units (CPUs). In the case where the processor 1003 is one CPU, the CPU may be a single-core CPU or a multi-core CPU.
The memory 1004 may be, but is not limited to, one or more of Random Access Memory (RAM), read Only Memory (ROM), erasable Programmable Read Only Memory (EPROM), compact disc read only memory (CD-ROM), a hard disk, and the like. The memory 1004 is used to store program codes.
It is understood that, in the embodiment of the present invention, the functions of any one or all of the first determining module and the adjusting module provided in fig. 3 and the receiving module to the second flow control module provided in fig. 4 may be implemented by using the central processing unit 1003 shown in fig. 6.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When used in whole or in part, is implemented in a computer program product that includes one or more computer instructions. When loaded or executed on a computer, cause the flow or functions according to embodiments of the invention to occur, in whole or in part. 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, the computer instructions may be transmitted from one website site, computer, server, or data center to another website site, computer, server, or data center via wire (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.
All parts of the specification are described in a progressive mode, the same and similar parts of all embodiments can be referred to each other, and each embodiment is mainly introduced to be different from other embodiments. In particular, as to the apparatus and system embodiments, since they are substantially similar to the method embodiments, the description is relatively simple and reference may be made to the description of the method embodiments in relevant places.

Claims (13)

1. A traffic control method, wherein the traffic control method is applied to peer DIAMETER, the traffic control method comprising:
based on the period of an opposite terminal timer and the congestion relief condition of the opposite terminal, judging whether a DIAMETER threshold value processed by each link per second at present is calculated or not, and judging whether a DIAMETER _ TOO _ BUSY response is sent to a routing agent node DRA or not, wherein the DIAMETER threshold value is inserted into the DIAMETER _ TOO _ BUSY response;
when determining to calculate the DIAMETER threshold processed per second of the current average each link and send a DIAMETER _ TOO _ BUSY response to the DRA, enabling the DRA to receive the DIAMETER _ TOO _ BUSY response sent from the opposite end and analyze the DIAMETER threshold from the DIAMETER _ TOO _ BUSY response, so that each link in a link group on the DRA side adjusts the number of sent DIAMETER messages based on the DIAMETER threshold;
wherein the calculating a diameter threshold for processing each link per second at the current average comprises: and calculating the diameter threshold value processed by each link per second at present on the basis of the total diameter message number processed by the link group of the opposite end per second and the number of the links in the link group of the opposite end.
2. The method of claim 1, further comprising:
when the opposite end is detected to be congested for the first time, calculating a first diameter threshold value processed by each link per second according to the congestion degree;
inserting the first DIAMETER threshold value into the DIAMETER _ TOO _ BUSY response, sending the DIAMETER _ TOO _ BUSY response to the DRA, and simultaneously starting the opposite terminal timer, so that the DRA adjusts the number of sent DIAMETER messages according to the first DIAMETER threshold value.
3. The method of claim 2, wherein determining whether to calculate a DIAMETER threshold for processing per second for each link on average currently, and whether to send DIAMETER _ TOO _ BUSY response to the routing agent node DRA based on the peer timer period and the peer congestion relief condition comprises:
when the congestion is relieved in the period of the opposite end timer, the DIAMETER threshold value processed by each link per second at the current average is not calculated any more, and the DIAMETER _ TOO _ BUSY response is not sent to the DRA any more.
4. The method of claim 2, wherein determining whether to calculate a DIAMETER threshold for processing per second for each link on average currently, and whether to send DIAMETER _ TOO _ BUSY response to the routing agent node DRA based on the peer timer period and the peer congestion relief condition comprises:
when the opposite end timer is overtime and opposite end congestion is not relieved, recalculating a second diameter threshold value processed per second by each link at present according to the congestion degree;
inserting the second DIAMETER threshold into the DIAMETER _ TOO _ BUSY response and sending the DIAMETER _ TOO _ BUSY response to the DRA, so that the DRA adjusts the number of DIAMETER messages sent according to the second DIAMETER threshold.
5. The method of claim 1, further comprising:
when the opposite-end congestion relief is detected and the DIAMETER _ TOO _ BUSY response is not sent to the DRA any more, starting a DRA side timer; and the number of the first and second electrodes,
and enabling the DRA to judge whether each link in a link group of the DRA side adjusts the number of transmitted DIAMETER messages according to a DIAMETER threshold carried by the DIAMETER _ TOO _ BUSY response according to a DRA side timer period and whether the DIAMETER _ TOO _ BUSY response is received.
6. The method according to claim 5, wherein the causing the DRA to determine whether each link in the link group on the DRA side adjusts the number of DIAMETER messages sent according to a DIAMETER threshold carried by the DIAMETER _ TOO _ BUSY response according to a DRA side timer period and whether the DIAMETER _ TOO _ BUSY response is received comprises:
and when the DIAMETER _ TOO _ BUSY response is not received in a DRA side timer period, each link in the link group of the DRA side is enabled to adjust the number of transmitted DIAMETER messages according to the DIAMETER threshold value under the opposite end congestion condition in the last state.
7. The method of claim 5, wherein the causing the DRA to determine whether each link in the link group on the DRA side adjusts the number of DIAMETER messages sent according to a DIAMETER threshold carried by the DIAMETER _ TOO _ BUSY response according to a DRA side timer period and whether the DIAMETER _ TOO _ BUSY response is received comprises:
and when the DRA side timer is overtime and the DIAMETER _ TOO _ BUSY response is not received in the DRA side timer period, each link in the link group of the DRA side normally sends DIAMETER message number.
8. A flow control method is applied to a routing agent node DRA, and comprises the following steps:
when an opposite terminal is congested and receives a DIAMETER _ TOO _ BUSY response sent by the opposite terminal, wherein the DIAMETER _ TOO _ BUSY response carries a DIAMETER threshold;
performing flow control for each link within a link group based on the diameter threshold;
judging whether the diameter threshold value changes or not;
when the diameter threshold value is judged to be changed, each link in the link group executes flow control based on the changed diameter threshold value;
wherein the diameter threshold is calculated from the total number of diameter messages processed per second for a link group and the number of links within the link group.
9. The method of claim 8, further comprising:
when the opposite terminal is free from congestion and does not receive the DIAMETER _ TOO _ BUSY response sent by the opposite terminal any more, starting a DRA side timer;
and judging whether each link in a link group of the DRA side adjusts the number of transmitted DIAMETER messages according to a DIAMETER threshold carried by the DIAMETER _ TOO _ BUSY response or not according to the period of a timer of the DRA side and whether the DIAMETER _ TOO _ BUSY response is received or not.
10. A flow control device comprising:
a first judging module, configured to judge, based on an opposite-end timer period and an opposite-end congestion relief condition, whether to calculate a DIAMETER threshold value processed per second for each link at present on average, and judge whether to send a DIAMETER _ TOO _ BUSY response to a routing agent node DRA, where the DIAMETER threshold value is inserted into the DIAMETER _ TOO _ BUSY response;
an adjusting module, configured to, when determining to calculate a DIAMETER threshold value currently processed per second for each link on average and send a DIAMETER _ TOO _ BUSY response to the DRA, cause the DRA to receive the DIAMETER _ TOO _ BUSY response sent from the peer and parse the DIAMETER threshold value from the DIAMETER _ TOO _ BUSY response, so that each link in a link group of the DRA side adjusts the number of sent DIAMETER messages based on the DIAMETER threshold value;
the first judging module is specifically configured to: and calculating the diameter threshold value processed by each link per second at the current average based on the total diameter message number processed by the link group of the opposite end per second and the number of the links in the link group of the opposite end.
11. A flow control device comprising:
a receiving module, configured to, when a peer is congested and receives a DIAMETER _ TOO _ BUSY response sent by the peer, where the DIAMETER _ TOO _ BUSY response carries a DIAMETER threshold;
a first traffic control module to perform traffic control for each link within a link group based on the diameter threshold;
the second judging module is used for judging whether the diameter threshold value changes or not;
the second flow control module is used for executing flow control on each link in the link group based on the changed diameter threshold when the diameter threshold is judged to be changed;
wherein the diameter threshold is calculated from the total number of diameter messages processed per second for a link group and the number of links within the link group.
12. A flow control apparatus, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory, which when executed by the processor, implement the method of any one of claims 1-9.
13. A computer-readable storage medium having computer program instructions stored thereon, which when executed by a processor implement the method of any one of claims 1-9.
CN201811493529.6A 2018-12-07 2018-12-07 Flow control method, device, equipment and medium Active CN111294855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811493529.6A CN111294855B (en) 2018-12-07 2018-12-07 Flow control method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811493529.6A CN111294855B (en) 2018-12-07 2018-12-07 Flow control method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN111294855A CN111294855A (en) 2020-06-16
CN111294855B true CN111294855B (en) 2023-04-11

Family

ID=71029180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811493529.6A Active CN111294855B (en) 2018-12-07 2018-12-07 Flow control method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN111294855B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011020363A1 (en) * 2009-08-19 2011-02-24 中兴通讯股份有限公司 Method and system for realizing load balance and diameter client
EP2587859A1 (en) * 2011-10-31 2013-05-01 Alcatel Lucent Apparatus, method and computer program for signaling radio resource congestion information
CN104159254A (en) * 2014-07-22 2014-11-19 大唐移动通信设备有限公司 Network congestion treatment method and system
CN105450537A (en) * 2014-09-02 2016-03-30 阿尔卡特朗讯 Method and device for determining node load information, as well as carrying out load balancing and overload control based thereon
CN105991468A (en) * 2015-02-03 2016-10-05 中国移动通信集团公司 Diameter congestion response processing method and device
WO2017092819A1 (en) * 2015-12-04 2017-06-08 Nokia Solutions And Networks Oy Overload control handling in case of an overload state of a charging entity

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8953443B2 (en) * 2011-06-01 2015-02-10 At&T Intellectual Property I, L.P. Method and apparatus for providing congestion management for a wireless communication network
US9106769B2 (en) * 2011-08-10 2015-08-11 Tekelec, Inc. Methods, systems, and computer readable media for congestion management in a diameter signaling network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011020363A1 (en) * 2009-08-19 2011-02-24 中兴通讯股份有限公司 Method and system for realizing load balance and diameter client
EP2587859A1 (en) * 2011-10-31 2013-05-01 Alcatel Lucent Apparatus, method and computer program for signaling radio resource congestion information
CN104159254A (en) * 2014-07-22 2014-11-19 大唐移动通信设备有限公司 Network congestion treatment method and system
CN105450537A (en) * 2014-09-02 2016-03-30 阿尔卡特朗讯 Method and device for determining node load information, as well as carrying out load balancing and overload control based thereon
CN105991468A (en) * 2015-02-03 2016-10-05 中国移动通信集团公司 Diameter congestion response processing method and device
WO2017092819A1 (en) * 2015-12-04 2017-06-08 Nokia Solutions And Networks Oy Overload control handling in case of an overload state of a charging entity

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
S2-142321 "Addition of RAN user plane congestion handling feature into the specification";Allot Communications等;《3GPP tsg_sa\WG2_Arch》;20140702;全文 *

Also Published As

Publication number Publication date
CN111294855A (en) 2020-06-16

Similar Documents

Publication Publication Date Title
EP3528440B1 (en) Path selection method and system, network acceleration node, and network acceleration system
EP3166267B1 (en) Method and apparatus for diverting flow
KR102030574B1 (en) Method, apparatus and system for transmitting Transmission Control Protocol (TCP) data packets
US9270536B2 (en) BGP slow peer detection
US9240946B2 (en) Message restriction for diameter servers
JP6059336B2 (en) Method, system and computer readable medium for performing Diameter overload control
JP7097916B2 (en) Flow control for stochastic relays in blockchain networks
US8948191B2 (en) Intelligent traffic quota management
EP2883384B1 (en) Signaling traffic reduction in mobile communication systems
CN107547442B (en) Data transmission buffer queue distribution method and device
CN104683259A (en) TCP congestion control method and device
US20170310493A1 (en) Network entity and service policy management method
US20160286434A1 (en) Method and Device for Controlling Processing Load of a Network Node
US10680930B2 (en) Method and apparatus for communication in virtual network
CN111294855B (en) Flow control method, device, equipment and medium
CN103747481A (en) Network congestion prompting and access control method and device
CN109788520A (en) Method for switching network, AMF and RAN node
KR102168177B1 (en) Network function and method for processing packet using the same
CN110035422B (en) Uplink data processing method based on temporary processing tunnel table, MME and SGW
US7746788B2 (en) Traffic information aggregating apparatus
CN111641698B (en) Data statistical method, system, equipment and storage medium
JP7260997B2 (en) Communication device and wireless communication system
KR102387124B1 (en) Method for message forwarding using forwarding priority information-centric networking based on delay tolerant networking, recording medium and device for performing the method
WO2021245683A1 (en) Operation of ocs when recovering from overload condition
CN110856148B (en) Data transmission method, system, device and medium based on 5G communication

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