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

Flow control method, device, equipment and medium Download PDF

Info

Publication number
CN111294855A
CN111294855A CN201811493529.6A CN201811493529A CN111294855A CN 111294855 A CN111294855 A CN 111294855A CN 201811493529 A CN201811493529 A CN 201811493529A CN 111294855 A CN111294855 A CN 111294855A
Authority
CN
China
Prior art keywords
diameter
dra
link
threshold value
busy response
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.)
Granted
Application number
CN201811493529.6A
Other languages
Chinese (zh)
Other versions
CN111294855B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

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 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 DIAMETER _ TOO _ BUSY response to the routing agent node DRA, wherein the DIAMETER threshold value is inserted into the DIAMETER _ TOO _ BUSY response; and when judging that the DIAMETER threshold value 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 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. According to the technical scheme provided by the invention, the full service block 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 effectiveness 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 a Routing Agent node (DRA) opposite end node (peer) has insufficient signaling processing capacity, congestion is caused, and the peer end 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 congested node is already released, the DRA releases 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 not more than a certain fixed value, so as to avoid the congestion of peer nodes and achieve the purpose of flow control.
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 Diameter active flow control mechanism of the existing network can effectively avoid the occurrence of a BUSY scene, but a sending threshold value of a DRA-to-peer end link needs to be set as a fixed value and is determined according to the peer service processing capacity of the opposite end. 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 value is too high, peer at the opposite end is congested, BUSY congestion control is triggered, and full service blocking is caused; if the threshold is too low, more signaling will be discarded, and the condition of service damage is aggravated.
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 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 value 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 value is analyzed from the DIAMETER _ TOO _ BUSY response, so that each link in a link group on the DRA side can adjust the number of sent DIAMETER messages based on the DIAMETER threshold value.
According to the flow control method provided by the present invention, the calculating of the 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 the 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 value 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 DIAMETER messages sent according to the first DIAMETER threshold value.
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 opposite end timer period and the opposite end congestion relief condition includes:
when the congestion in the period of the opposite-end timer is relieved, 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 by each link per second at present according to the congestion degree;
inserting the second DIAMETER threshold value 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 value.
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 at the DRA side adjusts the number of transmitted DIAMETER messages according to a DIAMETER threshold value 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 value;
based on the diameter threshold, each link in the link group performs flow control;
judging whether the diameter threshold value changes or not;
and 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.
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 value 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 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 current average link, 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 sent from the opposite end and analyze the DIAMETER threshold value from the DIAMETER _ TOO _ BUSY response so as to enable each link in a link group on the DRA side to adjust the number of sent DIAMETER messages based on the DIAMETER threshold value when the DIAMETER threshold value processed per second at the current average each link is judged to be calculated and the DIAMETER _ TOO _ BUSY response is sent to the DRA.
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 the 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 the congestion is relieved in the period of the opposite end timer, the DIAMETER threshold value processed by each link per second at present is not calculated any more, and the DIAMETER _ TOO _ BUSY response is not sent to the DRA any more.
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 value 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 value.
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 the number of the first and second electrodes,
and enabling the DRA to judge whether each link in a link group at the DRA side adjusts the number of transmitted DIAMETER messages according to a DIAMETER threshold value 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 an opposite end is congested and receives a DIAMETER _ TOO _ BUSY response sent by the opposite end, where the DIAMETER _ TOO _ BUSY response carries a DIAMETER threshold;
a first flow control module, configured to perform flow control on each link in the 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, embodiments of the present invention provide a computer-readable storage medium, on which computer program instructions are stored, which, when executed by a processor, implement the method of the first aspect and the second aspect in the above embodiments.
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 illustrates a schematic structural view of a flow control device in accordance with an embodiment of the present invention;
FIG. 4 is a schematic view 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 phrase "comprising … …" does not exclude the presence of other identical 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 next generation AAA protocol standard 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 IP signaling protocol is widely applied to communication between core network elements in a Long Term Evolution (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 on average, 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 value processed per second of each link at present is calculated on average, 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 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.
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 value;
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, based on the changed diameter threshold, each link in the link group executes flow control.
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 condition, whether to calculate a DIAMETER threshold value processed per second for each link at present 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 processed per second currently and average each link, 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 DIAMETER messages sent 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 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.
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 device, an apparatus, 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, configured to perform traffic control on each link in the link group based on the diameter threshold;
a second judging module 430, configured to judge whether the diameter threshold changes;
and a second traffic control module 440, configured to, when it is determined that the diameter threshold is changed, perform traffic 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, the DIAMETER _ TOO _ BUSY need not be sent if congestion is relieved. 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 C2mps 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 outgoing 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 message number according to the peer end, and send the diameter message to the peer in real time according to the calculated message number.
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 DRA of the current network 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 sent by the DRA 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 total flow is as follows:
flow control is not started, namely congestion at the peer end is relieved, a threshold value C1 is suggested, namely dynamic flow control C1 at the DRA end is suggested, namely the congestion degree of the peer end is changed, and a threshold value C2 is suggested, namely dynamic flow control C2 at the DRA end is suggested, namely the congestion is relieved at the peer end, namely the DRA timer is overtime, and the 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 cannot completely process the message sent by DRA to the peer end. 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 flow control parameters C1, triggers a DRA side dynamic flow control module, and sets an exit flow control threshold value of the link group to be C1, namely, each link in the DRA side link group sends a message to the congestion end peer 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 capable of being received and processed by each link in the link group at the peer end is calculated, the flow control parameter C2 is inserted into the 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 flow control parameters C2, triggers the dynamic flow control module again, sets the exit flow control threshold of the link group to be C2, namely each link in the DRA-side link group sends a message to the congestion end peer at the maximum value of C2 mps.
And a sixth step: at time T5, the peer end releases the congestion, at this time, the peer does not send DIAMETER _ TOO _ BUSY (3004) response to the DRA, and after the DRA does not receive DIAMETER _ TOO _ BUSY (3004) response at time T5, the DRA end timer is started. At this point, the DRA to peer end flow control is still continued, and the threshold is still C2.
Further, it should be noted that the above embodiments are 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, etc.
The seventh step: at time T6, the DRA-side timer times out, and no DIAMETER _ TOO _ BUSY (3004) response sent by the peer is received within 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 current network, when the sender at the peer end is congested and the master and standby routes from DRA to peer all occur BUSY, the signaling service is blocked completely when the DRA to the congested end peer does not send DIAMETER signaling.
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 quickly adjusted. 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 discarded, and the condition of service impairment is aggravated.
The invention can successfully realize the real-time automatic adjustment of the flow control threshold value from the DRA end to the peer of 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 is a schematic diagram illustrating a hardware structure 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 storing computer program instructions.
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, can be 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 (14)

1. A method of flow control, comprising:
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 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 DIAMETER threshold value processed per second of each current average link is judged to be calculated, and a 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 value is analyzed from the DIAMETER _ TOO _ BUSY response, so that each link in a link group on the DRA side can adjust the number of transmitted DIAMETER messages based on the DIAMETER threshold value.
2. The method of claim 1, wherein calculating the diameter threshold for processing per second for each link on a 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.
3. 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 starting the opposite terminal timer at the same time, so that the DRA adjusts the number of DIAMETER messages sent according to the first DIAMETER threshold value.
4. The method of claim 3, 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 in the period of the opposite-end timer is relieved, 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.
5. The method of claim 3, 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 by each link per second at present according to the congestion degree;
inserting the second DIAMETER threshold value 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 value.
6. 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 at the DRA side adjusts the number of transmitted DIAMETER messages according to a DIAMETER threshold value carried by the DIAMETER _ TOO _ BUSY response according to a DRA side timer period and whether the DIAMETER _ TOO _ BUSY response is received.
7. The method of claim 6, wherein said 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 a 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, 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.
8. The method of claim 6, wherein said 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 a 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.
9. A method of flow control, comprising:
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 value;
based on the diameter threshold, each link in the link group performs flow control;
judging whether the diameter threshold value changes or not;
and 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.
10. The method of claim 9, 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 value 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.
11. 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 current average link, 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 sent from the opposite end and analyze the DIAMETER threshold value from the DIAMETER _ TOO _ BUSY response so as to enable each link in a link group on the DRA side to adjust the number of sent DIAMETER messages based on the DIAMETER threshold value when the DIAMETER threshold value processed per second at the current average each link is judged to be calculated and the DIAMETER _ TOO _ BUSY response is sent to the DRA.
12. A flow control device comprising:
a receiving module, configured to, when an opposite end is congested and receives a DIAMETER _ TOO _ BUSY response sent by the opposite end, where the DIAMETER _ TOO _ BUSY response carries a DIAMETER threshold;
a first flow control module, configured to perform flow control on each link in the 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.
13. A flow control apparatus, comprising: at least one processor, at least one memory, and computer program instructions stored in the memory that, when executed by the processor, implement the method of any of claims 1-10.
14. 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-10.
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 true CN111294855A (en) 2020-06-16
CN111294855B 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 (8)

* 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
US20130039176A1 (en) * 2011-08-10 2013-02-14 Mark Edward Kanode Methods, systems, and computer readable media for congestion management in a diameter signaling network
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
US20150181463A1 (en) * 2011-06-01 2015-06-25 At&T Intellectual Property I, L.P. Method and apparatus for providing congestion management for a wireless communication network
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

Patent Citations (8)

* 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
US20150181463A1 (en) * 2011-06-01 2015-06-25 At&T Intellectual Property I, L.P. Method and apparatus for providing congestion management for a wireless communication network
US20130039176A1 (en) * 2011-08-10 2013-02-14 Mark Edward Kanode Methods, systems, and computer readable media for congestion management in a diameter signaling network
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
ALLOT COMMUNICATIONS等: "S2-142321 "Addition of RAN user plane congestion handling feature into the specification"", 《3GPP TSG_SA\WG2_ARCH》 *

Also Published As

Publication number Publication date
CN111294855B (en) 2023-04-11

Similar Documents

Publication Publication Date Title
KR102030574B1 (en) Method, apparatus and system for transmitting Transmission Control Protocol (TCP) data packets
EP3166267B1 (en) Method and apparatus for diverting flow
US9270536B2 (en) BGP slow peer detection
JP6059336B2 (en) Method, system and computer readable medium for performing Diameter overload control
US9240946B2 (en) Message restriction for diameter servers
EP2883384B1 (en) Signaling traffic reduction in mobile communication systems
US8948191B2 (en) Intelligent traffic quota management
US11233694B2 (en) Method and device for processing communication path
CN107547442B (en) Data transmission buffer queue distribution method and device
CN109525376B (en) Fast retransmission method and device and terminal equipment
CN104683259A (en) TCP congestion control method and device
US10680930B2 (en) Method and apparatus for communication in virtual network
CN112737940A (en) Data transmission method and device
CN111294855B (en) Flow control method, device, equipment and medium
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
JP6801075B2 (en) How to get path information for data packets and devices
CN109391914B (en) Method and equipment for addressing session
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
CN111641698B (en) Data statistical method, system, equipment and storage medium
CN110996350B (en) Ad hoc network routing method and device, and electronic equipment
JP7260997B2 (en) Communication device and wireless communication system
WO2021245683A1 (en) Operation of ocs when recovering from overload condition
CN117880886A (en) Data packet forwarding method and device, storage medium and electronic 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