CN109561029A - A kind of message up sending control method and device - Google Patents

A kind of message up sending control method and device Download PDF

Info

Publication number
CN109561029A
CN109561029A CN201710882805.7A CN201710882805A CN109561029A CN 109561029 A CN109561029 A CN 109561029A CN 201710882805 A CN201710882805 A CN 201710882805A CN 109561029 A CN109561029 A CN 109561029A
Authority
CN
China
Prior art keywords
message
threshold value
sending
packet loss
data surface
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
CN201710882805.7A
Other languages
Chinese (zh)
Other versions
CN109561029B (en
Inventor
吕矿生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201710882805.7A priority Critical patent/CN109561029B/en
Publication of CN109561029A publication Critical patent/CN109561029A/en
Application granted granted Critical
Publication of CN109561029B publication Critical patent/CN109561029B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
    • H04L47/323Discarding or blocking control packets, e.g. ACK packets

Abstract

A kind of message up sending control method and device, the message up sending control method include: that control plane receives the message packet loss information that data surface reports;The control plane is issued to the data surface according to the message packet loss information update message up sending threshold value, by updated message up sending threshold value.Technical solution provided by the present application is arranged message up sending threshold value according to the message packet loss information that data surface reports, can better meet message up sending demand and the utilization to control plane resource.

Description

A kind of message up sending control method and device
Technical field
The present invention relates to network technology, espespecially a kind of message up sending control method and device.
Background technique
The network equipment and component are attached to the physical entity in network.The network equipment generally has certain data processing Function, message are needed by being sent to control surface treatment on data surface, but when be above sent to control plane message it is excessive when, network The control plane of equipment there is certain pressure, influence whether the operation of control plane normal function.Simultaneously because the place of control plane Scarce capacity is managed, lasting packet loss can be also generated.So in general control plane can all issue on one to data surface and send threshold value, For limiting the message number for giving control plane on data surface.
It is existing at present to have many methods for message up sending control.Such as manually control message up sending threshold value, or setting The message up sending threshold value of several fixations, under complex environment, message up sending threshold value is often arranged unreasonable, such as message On send threshold value setting it is too small, control plane resource cannot make full use of;For another example the setting of message up sending threshold value is excessive leads to control plane Treating capacity is too big, influences the execution of regular traffic, causes the control effect under many scenes bad.
Summary of the invention
A present invention at least embodiment provides a kind of message up sending control method and device, can dynamically adjust on message Threshold value is sent, message up sending demand is better met.
In order to reach the object of the invention, a present invention at least embodiment provides a kind of message up sending control method, comprising:
Control plane receives the message packet loss information that data surface reports;
The control plane is according to the message packet loss information update message up sending threshold value, by updated message up sending threshold value It is issued to the data surface.
In an alternative embodiment, the message packet loss information includes an instruction information, preset time before instruction reports Whether the interior data surface, which abandons, needs to give the message of the control plane, alternatively, including a packet loss quantity information, indicates institute State the message amount that the control plane is given on the needs abandoned in the data surface unit time.
It further include institute before the control plane receives the message packet loss information that data surface reports in an alternative embodiment It states control plane message is classified, the corresponding priority of every class message;
The control plane includes: according to the message packet loss information update message up sending threshold value
To any sort message, on message of the control plane according to such message of the message packet loss information update of such message Send threshold value.
In an alternative embodiment, the method also includes the control plane is received on the message that the data surface reports Transmission rate;
The control plane includes: according to the message packet loss information update message up sending threshold value
To any sort message, when the message packet loss information of such message indicates currently without packet loss, and the message of such message Uploading rate is less than on minimum when sending threshold value, and threshold value will be sent to reduce by the first preset step-length on the current message of such message and be used as this The updated message up sending threshold value of class message.
In an alternative embodiment, threshold value is sent to reduce by the first preset step-length as this on the current message using such message After the updated message up sending threshold value of class message, before updated message up sending threshold value is issued to the data surface, Further include:
Judge the updated message up sending threshold value whether to be greater than in the preset default of such message and send threshold value, if It is greater than, the updated message up sending threshold value is just issued to the data surface.
In an alternative embodiment, the control plane includes: according to the message packet loss information update message up sending threshold value
To any sort message, when the message packet loss information of such message indicates that the control plane obtains there is currently when packet loss Central processing unit utilization rate is taken, according to the report of the central processing unit utilization rate and such message of the priority update of such message Threshold value is sent on text.
It is described to be somebody's turn to do according to the central processing unit utilization rate and the priority update of such message in an alternative embodiment The message up sending threshold value of class message includes at least one of:
When the central processing unit utilization rate and the priority of such message meet the first preset condition, by such message Current message on send threshold value to increase updated message up sending threshold value of second preset step-length as such message;
When the central processing unit utilization rate and the priority of such message meet the second preset condition, by such message Current message on send threshold value to increase updated message up sending threshold value of the third preset step-length as such message, the third Preset step-length is less than second preset step-length;
When the priority of the central processing unit utilization rate and such message meets third preset condition, by such message Minimum on send updated message up sending threshold value of the threshold value as such message;
When the central processing unit utilization rate and the priority of such message meet four preset conditions, by such message Default on send updated message up sending threshold value of the threshold value as such message.
In an alternative embodiment, according to the message packet loss information of the central processing unit utilization rate and such message more After the message up sending threshold value of such new message, before the updated message up sending threshold value is issued to the data surface, Further include:
Judge the updated message up sending threshold value whether be greater than such message it is preset maximum on send threshold value, if It is not more than, the updated message up sending threshold value is just issued to the data surface.
In an alternative embodiment, it includes: the control that the control plane, which receives the message packet loss information that data surface reports, Face receives the message packet loss information that the data surface periodically reports.
One embodiment of the invention provides a kind of message up sending control device, including memory and processor, the memory It is stored with program, described program realizes above-mentioned message up sending control method when reading execution by the processor.
One embodiment of the invention provides a kind of message up sending control method, comprising:
Data surface obtains message packet loss information, and the message packet loss information is sent to control plane;
The data surface receives the updated message up sending threshold that the control plane is generated according to the message packet loss information Value send control according on the updated message up sending threshold value progress message.
In an alternative embodiment, the message packet loss information includes an instruction information, preset time before instruction reports Whether the interior data surface, which abandons, needs to give the message of the control plane, alternatively, including a packet loss quantity information, indicates institute State the message amount that the control plane is given on the needs abandoned in the data surface unit time.
In an alternative embodiment, the data surface obtains message packet loss information and includes:
The data surface obtains the message packet loss information of every class message, wherein the message of same priority is as a kind of report Text;
According to the updated message up sending threshold value carry out message on send the control to include:
To any sort message, according to the updated message up sending threshold value of such message carry out such message on send control System.
In an alternative embodiment, the method also includes the data surface obtains message up sending rate, is sent to described Control plane.
One embodiment of the invention provides a kind of message up sending control device, including memory and processor, the memory It is stored with program, described program realizes above-mentioned message up sending control method when reading execution by the processor.
Compared with the relevant technologies, the technical solution that one embodiment of the application provides, the message packet loss reported according to data surface Message up sending threshold value is arranged in information, compared to using fixed message up sending threshold value, the application is more enough according to message in the related technology Packet loss information adjusts message up sending threshold value, better meets message up sending demand and the utilization to control plane resource.In another reality It applies in example, to message according to priority classification, message up sending threshold value is respectively set to every class message, meets the report of different priorities The demand of text.In another embodiment, there are packet loss, message is further carried out according to central processing unit utilization rate On send the setting of threshold value, control plane processing capacity is avoided exceeding while meeting message up sending demand.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is the message up sending control method flow chart that one embodiment of the invention provides;
Fig. 2 is the message up sending control method flow chart that one embodiment of the invention provides;
Fig. 3 is the packet loss statistical method that one embodiment of the invention provides;
Fig. 4 is the message up sending control method flow chart that one embodiment of the invention provides;
Fig. 5 is the flow chart that the control plane that one embodiment of the invention provides carries out the update of message up sending threshold value;
Fig. 6 is the message up sending threshold value update method flow chart that one embodiment of the invention provides;
Fig. 7 is the message up sending changes of threshold process schematic that one embodiment of the invention provides;
Fig. 8 is the message up sending control device block diagram that one embodiment of the invention provides;
Fig. 9 be another embodiment of the present invention provides message up sending control device block diagram;
Figure 10 is the message up sending control device block diagram that further embodiment of this invention provides.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable Sequence executes shown or described step.
In the application, the network equipment is divided into control plane and data surface, and data surface is in the logic lower layer of equipment, for handling The forwarding of protocol massages and on send processing, control plane is located at the logic upper layer of equipment, be used for business processing.
As shown in Figure 1, one embodiment of the invention provides a kind of message up sending control method, comprising:
Step 101, control plane receives the message packet loss information that data surface reports;
Step 102, the control plane is according to the message packet loss information update message up sending threshold value, by updated message On send threshold value to be issued to the data surface.
In an alternative embodiment, the message packet loss information includes an instruction information, preset time before instruction reports Whether the interior data surface, which abandons, needs to give the message of the control plane, alternatively, including a packet loss quantity information, indicates institute State the message amount that the control plane is given on the needs abandoned in the data surface unit time.For example, periodically being counted, unite It counts and whether there is packet loss in current period;Alternatively, the average packet loss quantity in statistics current period, such as average packet loss per second Quantity.
It further include institute before the control plane receives the message packet loss information that data surface reports in an alternative embodiment It states control plane message is classified, the corresponding priority of every class message;It wherein, can be according to message when classification Significance level, requirement of real-time, protocol type, type of service etc. determine the priority of message.In one embodiment, message point For three classes: high priority message, normal priority message and low priority message.For example keep alive Packet, high value message are set to High priority message, online message and can retransmit message and can be set to low priority message.It should be noted that this classification is only For example, it can according to need and be divided into more multiclass, alternatively, less class.
The control plane includes: according to the message packet loss information update message up sending threshold value
To any sort message, on message of the control plane according to such message of the message packet loss information update of such message Send threshold value.I.e. to threshold value is sent on every class message all downward messages, every class message is respectively controlled.On the message of every class message It send threshold value to determine in such message each unit time and send ability in the maximum of (such as per second) clock.Certainly, in other embodiments In, all messages can also all be used with a message up sending threshold value.
In an alternative embodiment, the method also includes the control plane is received on the message that the data surface reports Transmission rate;For example, message up sending rate be the data surface in one cycle each second averagely on give the message of control plane Number.
In an alternative embodiment, it can preset and send threshold value in minimum, be sent in maximum and send threshold value in threshold value and default;Control The message up sending threshold value that face issues, which is more than or equal in minimum, send threshold value, less than or equal to threshold value is sent in maximum, when initial, issues default On send threshold value.It is the safety in order to guarantee system that threshold value is sent in maximum, prevents the setting value of single message excessively high, due to such report System safety problem caused by the burst of text.Can be respectively each priority message setting minimum on send threshold value, sent in maximum Threshold value and default on send threshold value, also can be set it is identical minimum on send threshold value, maximum on send threshold value and default on send threshold value.
In an alternative embodiment, the method also includes: when initial, the control plane will send threshold value in preset default The data surface is issued to as message up sending threshold value.
In an alternative embodiment, the control plane includes: according to the message packet loss information update message up sending threshold value
Such message is reduced when the message packet loss information of such message indicates currently without packet loss to any sort message Threshold value is sent on current message.How much specific reduce can be set as needed.A kind of method are as follows: carry out stepped reduction, often Secondary the first preset step-length of reduction.Using this Stepped control algorithm, i.e., every time according to certain standard step-length (upwards or to Under secured adjusted value) be adjusted, can be very good using the control algolithm that the ladder of fixed value increases or decreases regulated quantity Control disturbance, so that system is more steady.It is of course also possible to not be adjusted in such a way, for example, taking message up sending Threshold value once reduces a biggish value, if it find that packet loss, then improve the mode, etc. of message up sending threshold value.It can basis Need to set the mode for reducing message up sending threshold value.This processing, it is therefore an objective to allow message on send threshold value be intended to default on give Threshold value.
In an alternative embodiment, the control plane includes: according to the message packet loss information update message up sending threshold value
To any sort message, when the message packet loss information of such message indicates currently without packet loss, and the message of such message Uploading rate, which is less than, will send the value of threshold value to reduce by the first preset step-length to make on the current message of such message on minimum when sending threshold value For the updated message up sending threshold value of such message.
In an alternative embodiment, send the value of threshold value to reduce by the first preset step-length on the current message by such message and make After the updated message up sending threshold value of such message, by updated message up sending threshold value be issued to the data surface it Before, further includes:
Judge whether the updated message up sending threshold value is greater than in preset default and send threshold value, if it does, just will The updated message up sending threshold value is issued to the data surface.Be herein in order to when message up sending threshold value comparison is high, by Step, which is reduced in default, send threshold value.Because sending threshold value in default is the pre- more appropriate message up sending threshold for first passing through statistics Value allows message up sending threshold value to revert in default as far as possible and send threshold value in system operation.In another embodiment, such as The updated message up sending threshold value of fruit is less than or equal to send threshold value in default, then can not update message up sending threshold value, i.e., at this time not New message up sending threshold value is issued to data surface, send threshold value to data surface in default alternatively, issuing.
In an alternative embodiment, the control plane includes: according to the message packet loss information update message up sending threshold value
To any sort message, when the message packet loss information of such message indicates to improve such message there is currently when packet loss Message up sending threshold value.
In an alternative embodiment, the control plane includes: according to the message packet loss information update message up sending threshold value
To any sort message, when the message packet loss information of such message indicates that the control plane obtains there is currently when packet loss Central processing unit (CPU) utilization rate is taken, according to the message of such message of the cpu busy percentage He the priority update of such message On send threshold value.The cpu busy percentage represents the processing capacity of control plane, and control may be influenced if cpu busy percentage is excessively high The stability in face processed and the development of regular traffic.Cpu busy percentage can be classified, a kind of classification are as follows: dangerous (i.e. CPU money Source is largely occupied, and surplus resources are seldom), higher, safety (cpu resource is more more than needed).Certainly, classification method herein is only Example can according to need and cpu busy percentage is classified.For example, it is divided into the classification of update, such as four classes, dangerous, high, In, low four class etc..It can according to need other divisions of progress, details are not described herein again.Under the cpu busy percentage of different stage, no The adjustable strategies of the message up sending threshold value of same priority message are different, due to there is packet loss, need to improve message up sending threshold value, generally Principle is that the message up sending threshold value of high priority message preferentially improves.In the case where cpu busy percentage height, low priority message Even need to reduce its message up sending threshold value.Even if normal priority message improves its message up sending threshold value, the step-length improved Less than the step-length of high priority message.The processing capacity of control plane can both be increased in this way, moreover it is possible to take into account the safety of protection system. Certainly, specific adjustable strategies can be set as needed.Certainly, in other embodiments, when there are packet loss, can not also consider Message priority (such as when between message without priority) only updates the message up sending threshold value of message according to cpu busy percentage.
It is described according to the cpu busy percentage and such message of the priority update of such message in an alternative embodiment Message up sending threshold value include at least one of:
When the priority of the cpu busy percentage and such message meets the first preset condition, by the current of such message Message up sending threshold value increases updated message up sending threshold value of second preset step-length as such message;Wherein, second is default Step-length can be identical as the first preset step-length, can also be different.First preset condition is such as that cpu busy percentage rank is safety, Alternatively, cpu busy percentage rank be it is higher, message priority is high priority.
When the priority of the cpu busy percentage and such message meets the second preset condition, by the current of such message Message up sending threshold value increases updated message up sending threshold value of the third preset step-length as such message, the default step of the third It is long to be less than second preset step-length;For example, third preset step-length is the 50% of the second preset step-length, it is of course also possible to be Other values outside 50%.Second preset condition is such as are as follows: cpu busy percentage rank be it is higher, message priority is common.
When the priority of the cpu busy percentage He such message meets third preset condition, by the minimum of such message On send updated message up sending threshold value of the threshold value as such message;The third preset condition is such as are as follows: cpu busy percentage grade Wei not be dangerous, message priority is low.
When the priority of the cpu busy percentage and such message meets four preset conditions, by the default of such message On send updated message up sending threshold value of the threshold value as such message.4th preset condition is such as are as follows: cpu busy percentage grade Wei not be dangerous, message priority be common and current message up sending threshold value greater than sending threshold value on defaulting.
Certainly, above-mentioned each preset condition is merely illustrative, can be set as needed.
In an alternative embodiment, according to the message packet loss information update of the cpu busy percentage and such message such After the message up sending threshold value of message, the updated message up sending threshold value is issued to before the data surface, further includes:
Judge the updated message up sending threshold value whether be greater than such message it is preset maximum on send threshold value, if It is not more than, the updated message up sending threshold value is just issued to the data surface.It is in order to message up sending threshold value herein Limited, prevent be more than maximum on send threshold value, if updated message up sending threshold value be greater than such message it is preset most Threshold value is sent on big, then can not update message up sending threshold value, is i.e. holding message up sending threshold value is constant, send in maximum alternatively, issuing Threshold value is to data surface.
In an alternative embodiment, it includes: the control that the control plane, which receives the message packet loss information that data surface reports, Face receives the message packet loss information that the data surface periodically reports.Certainly, reporting for message packet loss information is also possible to non-week Phase property, such as triggering property, it can be data surface and carry out triggering and be also possible to control plane and triggered.
As shown in Fig. 2, one embodiment of the invention provides a kind of message up sending control method, comprising:
Step 201, data surface obtains message packet loss information, and the message packet loss information is sent to the data surface;
Step 202, the data surface receives the control plane according to the message packet loss information update message up sending threshold value The updated message up sending threshold value generated send control according on the updated message up sending threshold value progress message.
In an alternative embodiment, the message packet loss information includes an instruction information, preset time before instruction reports Whether the interior data surface, which abandons, needs to give the message of the control plane, alternatively, including a packet loss quantity information, indicates institute State the message amount that the control plane is given on the needs abandoned in the data surface unit time.
In an alternative embodiment, the data surface obtains message packet loss information and includes:
The data surface obtains the message packet loss information of every class message, wherein the message of same priority is as a kind of report Text;
It is described according to the updated message up sending threshold value carry out message on send the control to include:
To any sort message, according to the updated message up sending threshold value of such message carry out such message on send control System.I.e. every class message has corresponding message up sending threshold value, carries out message up sending control respectively, and this mode can preferably expire The demand of the message of sufficient different priorities.
In an alternative embodiment, the method also includes the data surface obtains message up sending rate, is sent to described Control plane.
In an alternative embodiment, the data surface obtains message packet loss information, and the message packet loss information is sent to The data surface includes: that the data surface periodically acquires message packet loss information, the message packet loss information is sent to described Data surface.I.e. data surface is periodically reported, correspondingly, control plane periodically updates message up sending threshold value.Certainly, periodically Report it is merely illustrative, can also be with aperiodicity, such as triggering property reports message packet loss information after reaching trigger condition, than Such as, packet loss reaches certain condition, and triggering reports, and so as to adjust message up sending threshold value, for another example, receives in control plane requirement Reported again after the instruction of report packet loss information, etc..
Below by specific embodiment, the present invention is described in further detail.
The acquisition of message packet loss information is described further below.As shown in figure 3, the net that one embodiment of the invention provides Network packet receiving packet loss statistical flowsheet the following steps are included:
Step 301, the message that the data surface of the network equipment, which receives, to be needed to send;
Step 302, the data surface checks whether the message number sent on current alreadys exceed message up sending threshold value;If not yet Have, execute step 303, otherwise, executes step 305;
For example, the message up sending threshold value is the corresponding message up sending threshold value of priority of the message sent on current need;
Step 303, give the message to control plane on the data surface;
Step 304, record the message of the priority on deliver newspaper literary number, terminate, it is subsequent can be according to literary number of above delivering newspaper Mesh obtains message up sending rate;
Step 305, packet loss processing is carried out, that is, abandons the message;
Step 306, the packet loss number of the message of the priority is recorded, is terminated.
By the above method, the packet loss number of message is obtained, that is, obtains message packet loss information, it should be noted that Can not also accounting message packet loss number, directly record whether have packet loss.
Fig. 4 is the message up sending control method flow chart that one embodiment of the invention provides, as shown in Figure 4, comprising:
Step 401, data surface counts number of dropped packets;
Step 402, data surface is by the number of dropped packets of the various messages counted on, as message packet loss information reporting to control Face;
Wherein, data surface can also report message up sending rate to control plane.
Step 403, the control plane is updated current message up sending threshold value according to message packet loss information, generates more Message up sending threshold value after new, specific update mode embodiment as shown in Figure 5.
Step 404, updated message up sending threshold value is issued to data surface by control plane.
In the present embodiment, control plane carries out the update of message up sending threshold value according to message packet loss information, so as to dynamic Change message up sending threshold value, better meet message up sending demand.
As shown in figure 5, in above-mentioned steps 403, control plane according to message packet loss information to current message up sending threshold value into Row, which updates, to be specifically included:
Step 501, control plane receives the message packet loss information and message up sending rate that data surface reports;
Step 502, control plane judges whether there is packet loss according to message packet loss information, if there is packet loss then goes to step 507, does not have There is packet loss then to go to step 503;
Step 503, if message up sending rate, which is lower than on minimum, send threshold value, 504 are gone to step;Otherwise, 510 are gone to step;
Step 504, current message up sending threshold value is subtracted the first preset step-length as on updated message by control plane Threshold value is sent, goes to step 505;
Step 505, control plane judge the updated message up sending threshold value whether be greater than default on send threshold value, if so, Go to step 506;Otherwise, 510 are gone to step;
Step 506, updated message up sending threshold value is handed down to data surface by control plane, Terminate;
Step 507, control plane obtains cpu busy percentage;
Step 508, control plane determines updated message up sending threshold value according to the cpu busy percentage and message priority. It is a kind of to realize embodiment shown in Figure 6;
Step 509, control plane judges whether updated message up sending threshold value is greater than in maximum and send threshold value, if be not more than 506 are then entered step, otherwise, goes to step 510;
Step 510, it keeps message up sending threshold value constant, terminates.
In the present embodiment, when not having packet loss, control plane reduces message up sending threshold value, to reduce to control plane resource It occupies, when there is packet loss, control plane comprehensively considers whether improve message up sending threshold value according to cpu busy percentage and message priority, Take into account control plane resource.
Fig. 6 is a kind of realization for determining updated message up sending threshold value in step 508 according to cpu busy percentage and priority Schematic diagram, as shown in Figure 6, comprising:
Step 601, message priority is obtained;
Step 602, judge cpu busy percentage rank, if it is danger, enter step 603, if it is higher, enter step 607, if it is safety, enter step 611;
Step 603, judge message priority, if it is low priority, enter step 604, if it is normal priority, into Enter step 605, if it is high priority, enters step 606;
Step 604, low priority message needs to guarantee control plane safety in CPU danger level, turns down the report of such message Threshold value is sent on text, is set as sending threshold value in the minimum of such message, is terminated;
Step 605, normal priority message needs to guarantee control plane safety in CPU danger level, if such current report The message up sending threshold value of text, which is greater than in the default of such message, send threshold value, then is silent by the message up sending adjusting thresholds of such message Threshold value is sent on recognizing, and is terminated;
Step 606, in order to guarantee the duration of business, the message up sending threshold value of high priority message is remained unchanged, and is terminated;
Step 607, judge priority, if it is low priority, enter step 608, if it is normal priority, into step Rapid 609, if it is high priority, enter step 610;
Step 608, the message of low priority class needs to guarantee control plane safety in CPU higher level, does not adjust, ties Beam;
Step 609, to guarantee control plane safety, normal priority is adjusted according to the 50% of standard adjustment value, that is, will be common The current message up sending threshold value of priority class message plus 50% preset standard step-length as updated message up sending threshold Value terminates;
Step 610, in order to guarantee the duration of business, high priority message is according to normal regulating, that is, by high priority class The current message up sending threshold value of message, as updated message up sending threshold value, terminates plus preset standard step-length;
Step 611, the message normal regulating of each priority, that is, by the current message up sending threshold value of message plus preset Standard step-length terminates as updated message up sending threshold value.
In the present embodiment, when cpu busy percentage is safe, message up sending threshold value is improved, meets message up sending demand, in CPU When utilization rate is non-security, message up sending threshold value is determined according to message priority, as far as possible the case where not influencing cpu busy percentage Under, meet high priority message on send demand.
It should be noted that message up sending threshold value more new algorithm described in above-described embodiment is merely illustrative, in other implementations It can according to need in example and be updated by other means.For example, when cpu busy percentage classification is dangerous, by low priority class The message up sending threshold value of other message and normal priority classification message be set as respective classes message it is minimum on send threshold value, etc. Deng.
Fig. 7 is the adjustment process figure of the message up sending threshold value for a kind of message that one embodiment of the invention provides, and ordinate is Message up sending threshold value, abscissa are the time, and movement is a sampling period T every time.In the present embodiment, message priority is general Logical, scheme carries out the adjustment of message up sending threshold value as shown in Figure 6.
As shown in fig. 7, comprises:
The T1 stage persistently has packet loss and cpu busy percentage rank for safety, then can be according to preset standard step-length to message On send threshold value carry out increment adjusting, message up sending threshold value is constantly according to ladder-like increase;
T2 stage, cpu busy percentage become higher, due to message priority be it is common, then to the adjustment of message up sending threshold value Step-length becomes the 50% of standard step-length, and final message up sending threshold value reaches and send threshold value in maximum, into stable state.
T3 stage, stable state, message up sending threshold value are constant;
T4 stage, the stage do not have a packet loss, and message up sending rate is less than in minimum and send threshold value, then to message up sending threshold value It is adjusted downwards, is adjusted according to standard step-length ladder when adjusting, until sending threshold value in default.
It can be seen that message up sending threshold value is adjusted with packet loss and cpu busy percentage, there are packet loss and cpu busy percentage When level security, message up sending threshold value can be improved, when not having packet loss, message up sending threshold value can be reduced.
Fig. 8 is a kind of message up sending control device block diagram that one embodiment of the invention provides, as shown in Figure 8, comprising: is received Unit 801, threshold value updating unit 802 and configuration unit 803, in which:
The receiving unit 801 is set as, and receives the message packet loss information that data surface reports;
The threshold value updating unit 802 is set as, and according to the message packet loss information update message up sending threshold value, will be updated Message up sending threshold value afterwards is sent to the configuration unit;
The configuration unit 803 is set as, and the new message up sending threshold value is issued to the data surface.
In one embodiment, the message up sending control device further includes taxon 804, is set as being divided message Class, the corresponding priority of every class message;
The threshold value updating unit 802 includes: according to the message packet loss information update message up sending threshold value
To any sort message, according to the message up sending threshold value of such message of the message packet loss information update of such message.
In another embodiment, the receiving unit 801 is also configured to, and receives the message up sending speed that the data surface reports Rate;
The threshold value updating unit 802 includes: according to the message packet loss information update message up sending threshold value
To any sort message, when the message packet loss information of such message indicates currently without packet loss, and the message of such message Uploading rate, which is less than, will send the value of threshold value to reduce by the first preset step-length to make on the current message of such message on minimum when sending threshold value For the updated message up sending threshold value of such message.
In another embodiment, the threshold value updating unit 802 is also configured to, and is sent on the current message by such message After the value of threshold value reduces by the first preset step-length as the updated message up sending threshold value of such message, after judging the update Message up sending threshold value whether be greater than in preset default and send threshold value, if it does, just by the updated message up sending threshold Value is sent to the configuration unit.
In another embodiment, the threshold value updating unit 802 is according to the message packet loss information update message up sending threshold Value includes:
To any sort message, when the message packet loss information of such message indicates to obtain central processing there is currently when packet loss Device utilization rate, according to the message up sending threshold of the central processing unit utilization rate and such message of the priority update of such message Value.
In another embodiment, the threshold value updating unit 802 is according to the central processing unit utilization rate and such message The message up sending threshold value of priority update such message include at least one of:
When the central processing unit utilization rate and the priority of such message meet the first preset condition, by such message Current message on send threshold value to increase updated message up sending threshold value of second preset step-length as such message;
When the central processing unit utilization rate and the priority of such message meet the second preset condition, by such message Current message on send threshold value to increase updated message up sending threshold value of the third preset step-length as such message, the third Preset step-length is less than second preset step-length;
When the priority of the central processing unit utilization rate and such message meets third preset condition, by such message Minimum on send updated message up sending threshold value of the threshold value as such message;
When the central processing unit utilization rate and the priority of such message meet four preset conditions, by such message Default on send new message up sending threshold value of the threshold value as such message.
In another embodiment, the threshold value updating unit 802 is also configured to, according to the central processing unit utilization rate After the message up sending threshold value of the message packet loss information update of such message such message, judge on the updated message It send threshold value whether to be greater than in the preset maximum of such message and send threshold value, if it is not greater, just will be on the updated message Threshold value is sent to be sent to the configuration unit.
In another embodiment, the configuration unit 803 is also configured to, and when initial, threshold value will be sent to make in preset default The data surface is issued to for message up sending threshold value.
In another embodiment, it includes: described connect that the receiving unit 801, which receives the message packet loss information that data surface reports, It receives unit 801 and receives the message packet loss information that the data surface periodically reports.
Fig. 9 is a kind of message up sending control device block diagram that one embodiment of the invention provides, as shown in Figure 9, comprising:
Statistic unit 901 is set as obtaining message packet loss information;
Reporting unit 902 is set as the message packet loss information being sent to control plane;
Receiving unit 903 is set as receiving the updated report that the control plane is generated according to the message packet loss information Threshold value is sent on text;
On send control unit 904, be set as being carried out according to the updated message up sending threshold value message on send control.
In another embodiment, it includes: the message for obtaining every class message that the statistic unit 901, which obtains message packet loss information, Packet loss information, wherein the message of same priority is as a kind of message;
Control unit 904 is sent to send control to wrap according on the updated message up sending threshold value progress message on described Include: to any sort message, according to the updated message up sending threshold value of such message carry out such message on send control.
In another embodiment, the statistic unit 901 is also configured to, and is obtained message up sending rate, is sent to the control Face processed.
In another embodiment, the acquisition of the statistic unit 901 message packet loss information includes: the statistic unit 901 weeks Phase property obtains message packet loss information;
It includes: the reporting unit 902 that the message packet loss information is sent to the data surface by the reporting unit 902 Message packet loss information is periodically sent to the data surface.
As shown in Figure 10, one embodiment of the invention also provides a kind of message up sending control device 100, including memory 1010 With processor 1020, the memory 1010 is stored with program, and described program is real when reading execution by the processor 1020 Message up sending control method described in existing any of the above-described embodiment.
One embodiment of the invention also provides a kind of computer readable storage medium, the computer-readable recording medium storage There is one or more program, one or more of programs can be executed by one or more processor, above-mentioned to realize Message up sending control method described in any embodiment.
The computer readable storage medium includes: USB flash disk, read-only memory (ROM, Read-Only Memory), random Access memory (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. are various to can store program The medium of code.
Although disclosed herein embodiment it is as above, the content only for ease of understanding the present invention and use Embodiment is not intended to limit the invention.Technical staff in any fields of the present invention is taken off not departing from the present invention Under the premise of the spirit and scope of dew, any modification and variation, but the present invention can be carried out in the form and details of implementation Scope of patent protection, still should be subject to the scope of the claims as defined in the appended claims.

Claims (15)

1. a kind of message up sending control method, comprising:
Control plane receives the message packet loss information that data surface reports;
The control plane issues updated message up sending threshold value according to the message packet loss information update message up sending threshold value To the data surface.
2. message up sending control method as described in claim 1, which is characterized in that the message packet loss information includes an instruction Information, whether the data surface abandons the message for needing to give the control plane in preset time before instruction reports, alternatively, Including a packet loss quantity information, the message number that the control plane is given on the needs abandoned in the data surface unit time is indicated Amount.
3. message up sending control method as described in claim 1, which is characterized in that
It further include that the control plane is divided message before the control plane receives the message packet loss information that data surface reports Class, the corresponding priority of every class message;
The control plane includes: according to the message packet loss information update message up sending threshold value
To any sort message, the control plane is according to the message up sending threshold of such message of the message packet loss information update of such message Value.
4. message up sending control method as claimed in claim 3, which is characterized in that the method also includes the control planes Receive the message up sending rate that the data surface reports;
The control plane includes: according to the message packet loss information update message up sending threshold value
To any sort message, when the message packet loss information of such message indicates currently without packet loss, and the message up sending of such message Rate is less than on minimum when sending threshold value, and threshold value will be sent to reduce by the first preset step-length as such report on the current message of such message The updated message up sending threshold value of text.
5. message up sending control method as claimed in claim 4, which is characterized in that sent on the current message by such message After threshold value reduces by the first preset step-length as the updated message up sending threshold value of such message, by updated message up sending Threshold value is issued to before the data surface, further includes:
Judge the updated message up sending threshold value whether to be greater than in the preset default of such message and send threshold value, if greatly In the updated message up sending threshold value is just issued to the data surface.
6. message up sending control method as claimed in claim 3, which is characterized in that the control plane is according to the message packet loss Information update message up sending threshold value includes:
To any sort message, in the instruction of the message packet loss information of such message is there is currently when packet loss, the control plane is obtained Central processor utilization rate, according on the message of the central processing unit utilization rate and such message of the priority update of such message Send threshold value.
7. message up sending control method as claimed in claim 6, which is characterized in that described to be utilized according to the central processing unit The message up sending threshold value of such message of rate He the priority update of such message includes at least one of:
When the central processing unit utilization rate and the priority of such message meet the first preset condition, by working as such message Preceding message up sending threshold value increases updated message up sending threshold value of second preset step-length as such message;
When the central processing unit utilization rate and the priority of such message meet the second preset condition, by working as such message Preceding message up sending threshold value increases updated message up sending threshold value of the third preset step-length as such message, and the third is default Step-length is less than second preset step-length;
When the priority of the central processing unit utilization rate and such message meets third preset condition, most by such message Updated message up sending threshold value of the threshold value as such message is sent on small;
When the central processing unit utilization rate and the priority of such message meet four preset conditions, by the silent of such message Updated message up sending threshold value of the threshold value as such message is sent on recognizing.
8. message up sending control method as claimed in claim 7, which is characterized in that according to the central processing unit utilization rate After the message up sending threshold value of the message packet loss information update of such message such message, by the updated message up sending Threshold value is issued to before the data surface, further includes:
Judge the updated message up sending threshold value whether be greater than such message it is preset maximum on send threshold value, if less In the updated message up sending threshold value is just issued to the data surface.
9. message up sending control method as described in any of the claims 1 to 8, which is characterized in that the control plane receives data The message packet loss information that face reports includes: that the control plane receives the message packet loss information that the data surface periodically reports.
10. a kind of message up sending control device, which is characterized in that including memory and processor, the memory is stored with journey Sequence, described program realize message up sending control as described in any one of claim 1 to 9 when reading execution by the processor Method.
11. a kind of message up sending control method, comprising:
Data surface obtains message packet loss information, and the message packet loss information is sent to control plane;
The data surface receives the updated message up sending threshold value that the control plane is generated according to the message packet loss information, root According to the updated message up sending threshold value carry out message on send control.
12. message up sending control method as claimed in claim 11, which is characterized in that
The message packet loss information includes an instruction information, and whether the data surface abandons need in preset time before instruction reports Will on give the message of the control plane, alternatively, including a packet loss quantity information, indicate to abandon in the data surface unit time Needs on give the message amount of the control plane.
13. message up sending control method as claimed in claim 11, which is characterized in that the data surface obtains message packet loss letter Breath includes:
The data surface obtains the message packet loss information of every class message, wherein the message of same priority is as a kind of message;
According to the updated message up sending threshold value carry out message on send the control to include:
To any sort message, according to the updated message up sending threshold value of such message carry out such message on send control.
14. the message up sending control method as described in claim 11 to 13 is any, which is characterized in that the method also includes, The data surface obtains message up sending rate, is sent to the control plane.
15. a kind of message up sending control device, which is characterized in that including memory and processor, the memory is stored with journey Sequence, described program realize the message up sending control as described in claim 11 to 14 is any when reading execution by the processor Method processed.
CN201710882805.7A 2017-09-26 2017-09-26 Message uploading control method and device Active CN109561029B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710882805.7A CN109561029B (en) 2017-09-26 2017-09-26 Message uploading control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710882805.7A CN109561029B (en) 2017-09-26 2017-09-26 Message uploading control method and device

Publications (2)

Publication Number Publication Date
CN109561029A true CN109561029A (en) 2019-04-02
CN109561029B CN109561029B (en) 2023-05-30

Family

ID=65862937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710882805.7A Active CN109561029B (en) 2017-09-26 2017-09-26 Message uploading control method and device

Country Status (1)

Country Link
CN (1) CN109561029B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661716A (en) * 2019-09-16 2020-01-07 锐捷网络股份有限公司 Network packet loss notification method, monitoring device, switch and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378308A (en) * 2014-11-19 2015-02-25 盛科网络(苏州)有限公司 Method and device for detecting message sending rate
CN106254266A (en) * 2016-08-17 2016-12-21 中国联合网络通信集团有限公司 A kind of message processing method and the network equipment
CN106656857A (en) * 2016-12-29 2017-05-10 杭州迪普科技股份有限公司 Message speed limiting method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104378308A (en) * 2014-11-19 2015-02-25 盛科网络(苏州)有限公司 Method and device for detecting message sending rate
CN106254266A (en) * 2016-08-17 2016-12-21 中国联合网络通信集团有限公司 A kind of message processing method and the network equipment
CN106656857A (en) * 2016-12-29 2017-05-10 杭州迪普科技股份有限公司 Message speed limiting method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110661716A (en) * 2019-09-16 2020-01-07 锐捷网络股份有限公司 Network packet loss notification method, monitoring device, switch and storage medium
CN110661716B (en) * 2019-09-16 2022-07-19 锐捷网络股份有限公司 Network packet loss notification method, monitoring device, switch and storage medium

Also Published As

Publication number Publication date
CN109561029B (en) 2023-05-30

Similar Documents

Publication Publication Date Title
US11057287B2 (en) Systems and methods for setting a rate limit for a computing device
US11102641B2 (en) SIM card status determination method and SIM card status determination device
US6829649B1 (en) Method an congestion control system to allocate bandwidth of a link to dataflows
EP2466824B1 (en) Service scheduling method and device
CN100459589C (en) A method to monitor flow and flow monitoring equipment
CN104980367A (en) Token bucket limiting speed method and apparatus
CN108023759B (en) Self-adaptive resource scheduling method and device
CN111130790B (en) Block co-recognition method based on block chain node network
CN109660468A (en) A kind of port congestion management method, device and equipment
CN109699089A (en) A kind of channel access method and device
JP5436701B1 (en) Communication device and relay device
CN104283643A (en) Message speed limiting method and device
CN103997522B (en) A kind of content delivery network flow control method and terminal
CN107070811B (en) Data sending method, terminal and data processing system
CN109428950B (en) Automatic scheduling method and system for IP address pool
US9319325B2 (en) Adaptive method and system of regulation of yellow traffic in a network
WO2022188440A1 (en) Method and apparatus for adjusting data forwarding queue, and computer-readable storage medium
CN109561029A (en) A kind of message up sending control method and device
CN108243506B (en) L TE system service scheduling method and device
CN116489019B (en) Intelligent visual signaling channel management method, system and medium
CN112685169B (en) Load control method, device, server and readable storage medium
CN105610728B (en) A kind of automatic down method of web crawlers flow control based on time window
CN111131066B (en) Traffic shaping method and device
CN116719787A (en) Method and device for uploading equipment logs in track system, medium and electronic equipment
CN106447302A (en) Intelligent order distributing method

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