CN109327403A - A kind of flow control method, device, the network equipment and storage medium - Google Patents

A kind of flow control method, device, the network equipment and storage medium Download PDF

Info

Publication number
CN109327403A
CN109327403A CN201811475028.5A CN201811475028A CN109327403A CN 109327403 A CN109327403 A CN 109327403A CN 201811475028 A CN201811475028 A CN 201811475028A CN 109327403 A CN109327403 A CN 109327403A
Authority
CN
China
Prior art keywords
assembly line
message processing
processing assembly
message
pause
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
CN201811475028.5A
Other languages
Chinese (zh)
Other versions
CN109327403B (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.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks 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 Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN201811475028.5A priority Critical patent/CN109327403B/en
Publication of CN109327403A publication Critical patent/CN109327403A/en
Application granted granted Critical
Publication of CN109327403B publication Critical patent/CN109327403B/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/30Flow control; Congestion control in combination with information about buffer occupancy at either end or at transit nodes
    • 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/26Flow control; Congestion control using explicit feedback to the source, e.g. choke packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9063Intermediate storage in different physical parts of a node or terminal

Abstract

The embodiment of the present application provides a kind of flow control method, device, the network equipment and storage medium, wherein the described method includes: available cache resources amount in the buffer queue of the detection network equipment;When detecting that the available cache resources amount is less than preset lower limit value, according to the significance level for each Message processing assembly line current bearer for sharing the buffer queue, pause Message processing assembly line and normal message processing assembly line are determined from each Message processing assembly line;Pause receives the message of the pause Message processing assembly line current bearer, to be successfully received when guaranteeing that the message of the normal message processing assembly line current bearer reaches into the buffer queue.In the present embodiment, the packet loss of important service can be reduced, is effectively improved the service quality of important service.

Description

A kind of flow control method, device, the network equipment and storage medium
Technical field
This application involves field of communication technology more particularly to a kind of flow control method, device, the network equipment and storage mediums.
Background technique
Today's society people are more and more stronger to the dependence of internet, and the computer node being connected on network is also in a grade numerical expression Growth;The data exchange node that the network equipment is interconnected as computer network, performance determine the total quality of network.
Currently, the network equipment would generally be when generating network congestion, random drop reaches the message of the network port, to alleviate Network congestion.But this will lead to the network service that the network equipment is carried and random packet loss occur, this will affect network service just It is often used.Especially for important network service, if packet loss occurs, the stability of whole network may be will affect, therefore, needed A kind of reasonable flow control scheme.
Summary of the invention
The many aspects of the application provide a kind of flow control method, device, the network equipment and storage medium, to improve network The service quality for the important service that equipment is carried.
The embodiment of the present application provides a kind of flow control method, comprising:
Detect available cache resources amount in the buffer queue of the network equipment;
When detecting that the available cache resources amount is less than preset lower limit value, according to sharing each of the buffer queue The significance level of Message processing assembly line current bearer determines pause report from each Message processing assembly line Text processing assembly line and normal message handle assembly line;
Pause receives the message of the pause Message processing assembly line current bearer, to guarantee at the normal message The message of reason assembly line current bearer is successfully received when reaching into the buffer queue.
The embodiment of the present application also provides a kind of flow control apparatus characterized by comprising
Detection module, available cache resources amount in the buffer queue for detecting the network equipment;
Configuration module, for when detect the available cache resources amount be less than preset lower limit value when, according to shared institute The significance level for stating each Message processing assembly line current bearer of buffer queue, from each Message processing assembly line In determine pause Message processing assembly line and normal message processing assembly line;
Control module, for suspending the message for receiving the pause Message processing assembly line current bearer, to guarantee The message of the normal message processing assembly line current bearer is successfully received when reaching into the buffer queue.
The embodiment of the present application also provides a kind of network equipment, including memory and processor;
The memory is for storing one or more computer instruction;
The processor is coupled with the memory, for executing one or more computer instruction, to be used for:
Detect available cache resources amount in the buffer queue of the network equipment;
When detecting that the available cache resources amount is less than preset lower limit value, according to sharing each of the buffer queue The significance level of Message processing assembly line current bearer determines pause report from each Message processing assembly line Text processing assembly line and normal message handle assembly line;
Pause receives the message of the pause Message processing assembly line current bearer, to guarantee at the normal message The message of reason assembly line current bearer is successfully received when reaching into the buffer queue.
The embodiment of the present application also provides a kind of computer readable storage medium for storing computer instruction, which is characterized in that When the computer instruction is executed by one or more processors, one or more of processors is caused to execute stream above-mentioned Prosecutor method.
In the embodiment of the present application, available cache resources amount in the buffer queue by detecting the network equipment, it may be determined that Whether the network equipment occurs network congestion;It, can be according to the weight of each Message processing assembly line bearer service when network congestion occurs Degree is wanted, pause Message processing assembly line and normal message processing assembly line are determined from each Message processing assembly line;And The message for receiving the pause Message processing assembly line current bearer can be suspended.This allows to according to business significance level The message of selectable receiving portion business advantageously reduces the packet loss of important service into buffer queue, is effectively improved weight Want the service quality of business.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is a kind of flow diagram for flow control method that one embodiment of the application provides;
Fig. 2 is the work framework signal that a kind of multi-core network device that one embodiment of the application provides carries multiple business Figure;
Fig. 3 is a kind of structural schematic diagram for network equipment that another embodiment of the application provides;
Fig. 4 is a kind of structural schematic diagram for flow control apparatus that the another embodiment of the application provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
Currently, the network equipment would generally be when generating network congestion, random drop reaches the message of the network port, to alleviate Network congestion.But this will lead to the network service that the network equipment is carried and random packet loss occur, and will affect the normal of network service It uses.In some embodiments of the present application: available cache resources amount in the buffer queue by detecting the network equipment, it can be true Determine whether the network equipment occurs network congestion;It, can be according to each Message processing assembly line bearer service when network congestion occurs Significance level determines pause Message processing assembly line and normal message processing assembly line from each Message processing assembly line; And the message for receiving pause Message processing assembly line current bearer can be suspended.This allows to be had according to business significance level The message of the receiving portion business of selection advantageously reduces the packet loss of important service into buffer queue, is effectively improved important The service quality of business.
Below in conjunction with attached drawing, the technical scheme provided by various embodiments of the present application will be described in detail.
Fig. 1 is the flow diagram for the flow control method that one embodiment of the application provides.As shown in Figure 1, this method comprises:
100, available cache resources amount in the buffer queue of the network equipment is detected;
101, when detecting that available cache resources amount is less than preset lower limit value, according to each item report of shared buffer queue The significance level of text processing assembly line current bearer, determines pause Message processing stream from each Message processing assembly line Waterline and normal message handle assembly line;
102, pause receives the message of pause Message processing assembly line current bearer, to guarantee normal message processing stream The message of waterline current bearer is successfully received when reaching into buffer queue.
In the present embodiment, the network equipment can be the data exchange nodes equipment such as interchanger, router or gateway, certainly, It can also be other equipment for capableing of bearer network business, the present embodiment is not construed as limiting this.Correspondingly, provided in this embodiment Flow control method can be applied to various types of network equipments, the service quality of the important service to improve network equipment carrying.
In the present embodiment, the form carrying various businesses of Message processing assembly line are can be used in the network equipment.It wherein, can be right During the network equipment is initialized, set according to the parameters such as total bandwidth of the processor nucleus number of the network equipment, communication interface Determine the item number of the Message processing assembly line of network equipment support.One Message processing assembly line can carry a business, and can be After the completion of one business processing, continue with other business, that is to say, that same Message processing assembly line carrying business be Dynamic change.Therefore, in the present embodiment, the network equipment can carry simultaneously multinomial business based on a plurality of Message processing assembly line.
Wherein, each Message processing assembly line can share buffer queue, and buffer queue is for storing clear text.This reality It applies in example, it can be by available cache resources amount in the buffer queue of the detection network equipment, to judge whether the network equipment enters Network congestion condition.For example, can determine that the network equipment enters when detecting that available cache resources amount is less than preset lower limit value Network congestion condition.In some practical applications, cache resources inquiry request can be sent to the hardware monitoring assembly of the network equipment; The query result that hardware monitoring assembly is returned according to cache resources inquiry request is received, query result includes that buffer queue is available Cache resources amount.Certainly, also can be used other way or from the buffer queue that other approach obtain the network equipment it is available slow Stock number is deposited, the present embodiment is not limited to this.
In the present embodiment, available cache resources amount in the buffer queue of the network equipment can be detected at intervals, when interval Between can be set according to the actual situation.For example, can according to the total bandwidth of the communication interface of the network equipment, the nucleus number of processor and Caching total quantity in buffer queue sets interval time.It certainly, can also be according to the other performance index of the network equipment come really Determine interval time, the present embodiment is not construed as limiting this.
In addition, determine the network equipment whether enter used preset lower limit value when network congestion condition can also be according to reality Situation is set.For example, can according to the caching total quantity in the total bandwidth and buffer queue of the communication interface of the network equipment come Set suitable lower limit value.Certainly, the lower limit value, the present embodiment pair can be also determined according to the other performance index of the network equipment This is not construed as limiting.
It, can be according to each Message processing flowing water of shared buffer queue when determining that the network equipment enters network congestion condition The significance level of line current bearer determines pause Message processing assembly line and normal from each Message processing assembly line Message processing assembly line.Based on the associated description hereinbefore to Message processing assembly line in the network equipment it is found that in the present embodiment, Different Message processing assembly lines carries different business in the network equipment, and the significance level of different business may be endless It is exactly the same.It, can will be in each Message processing assembly line in some practical applications in order to preferentially guarantee the service quality of important service The Message processing assembly line that carry the business of lower significance level is determined as suspending Message processing assembly line, higher by carry The Message processing assembly line of the business of significance level is determined as normal message processing assembly line.For example, when the report in the network equipment It, can be according to the significance level of each Message processing assembly line bearer service to Message processing flowing water when text processing assembly line is 5 Line is ranked up, and the lower 2 Message processing assembly lines of significance level is determined as to suspend Message processing assembly line, by other 3 Message processing assembly line is determined as normal message processing assembly line.
Assembly line is handled based on the pause Message processing assembly line determined and normal message, when message reaches the network equipment Communication interface when, the corresponding Message processing assembly line of outgoing packet can be determined, when message is corresponding according to the corresponding business of message When Message processing assembly line is pause Message processing assembly line, which will be dropped, and work as the corresponding Message processing stream of message When waterline is normal Message processing assembly line, which can be received normally to buffer queue.Accordingly, in the present embodiment, can lead to The message that pause receives pause Message processing assembly line institute bearer service is crossed, pause Message processing assembly line is carried to suspend The processing of business focuses on the available resources of the network equipment in the processing of normal message processing assembly line institute bearer service. Example in undertaking, when message suspends the message of Message processing assembly line institute bearer service for 2, which will be dropped, this makes The messages for obtaining no longer newly-increased 2 pauses Message processing assembly line institute bearer service in buffer queue, accordingly, at 2 pause messages Assembly line is managed to operate pause.
In the present embodiment, available cache resources amount in the buffer queue by detecting the network equipment, it may be determined that network is set It is standby whether network congestion to occur;When network congestion occurs, can according to the significance level of each Message processing assembly line bearer service, Pause Message processing assembly line and normal message processing assembly line are determined from each Message processing assembly line;And it can suspend and connect Receive the message of pause Message processing assembly line current bearer.This allows to selectively be received according to business significance level The message of partial service advantageously reduces the packet loss of important service into buffer queue, is effectively improved the service of important service Quality.
In above-mentioned or following embodiments, pause receive pause Message processing assembly line current bearer message it Afterwards, with the continuous running of each normal message processing assembly line, available cache resources amount is by dynamic change in buffer queue. Accordingly, it can be continued to test in buffer queue after the message that pause receives pause Message processing assembly line current bearer Available cache resources amount;When continuing to test available cache resources amount still less than preset lower limit value, according to normal message The significance level for handling assembly line current bearer is determined to be changed to from pause message from normal message processing assembly line The Message processing assembly line of assembly line is managed, and suspends the Message processing assembly line for receiving and being changed to suspend Message processing assembly line and works as The message of preceding bearer service.
If continuing to test available cache resources amount still less than preset lower limit value, illustrate that normal message handles assembly line The cache resources amount of occupancy is still larger, and the network equipment is still in network congestion condition.In this case, it can normally be reported from each item The lower Message processing assembly line of significance level that institute's bearer service is chosen in text processing assembly line is changed to pause Message processing Assembly line.Example hereinbefore is accepted, if at according to 2 pause Message processing assembly lines in the network equipment and 3 normal messages After the configuration progress business processing for managing assembly line, the network equipment is still in network congestion condition, then can be from 3 normal messages 1 Message processing assembly line of selection is changed to pause Message processing assembly line in reason assembly line will include in the network equipment accordingly 3 pause Message processing assembly lines and 2 normal messages handle assembly line.
The quantity that assembly line is handled by reducing normal message, can further alleviate the network congestion condition of the network equipment. Certainly, the operation for detecting available cache resources amount in the buffer queue of the network equipment is the behaviour of an intermittent and duration Make, after the proportional arrangement of pause class and normal class in the adjustment network equipment in each Message processing assembly line, inspection can be passed through Available cache resources amount in the buffer queue of the network equipment is surveyed to set to determine the effect of adjustment when can not still change network When standby network congestion condition, the quantity for reducing normal message processing assembly line can be continued, until the network congestion of the network equipment State is changed.In practical applications, the Message processing assembly line of lesser amt ratio usually need to be only determined as to pause report Text processing assembly line can effectively change the network congestion condition of the network equipment, therefore, it is ensured that the clothes of most of important service Business quality.
As mentioned previously, the quantity that assembly line is handled by reducing normal message in the network equipment, can improve network and set Standby network congestion state, this is mainly due to receive in buffer queue with the reduction of normal message processing assembly line quantity The message amount arrived will also be reduced, and in buffer queue clear text constantly handled, it is available slow in buffer queue Depositing stock number will increase.Therefore, in the present embodiment, when detect available cache resources amount be greater than or equal to preset upper limit When value, according to the significance level of pause Message processing assembly line current bearer, determined from pause Message processing assembly line It reverts to the Message processing assembly line of normal message processing assembly line again out, and is reverting to normal message processing flowing water again The message of the Message processing assembly line current bearer of line normally receives when reaching into buffer queue.Wherein, preset upper limit Value can be greater than or equal to preset lower limit value mentioned above.
When detecting that available cache resources amount is greater than or equal to preset upper limit value, illustrate that the network equipment comes into net The unobstructed state of network, the network equipment can carry more business at this time.Accordingly, one can be chosen from pause Message processing assembly line Or a plurality of Message processing assembly line reverts to normal message processing assembly line, and normal message in the network equipment is also handled flowing water The ratio of line is turned up, to handle more business.Certainly, be turned up the network equipment in normal message processing assembly line ratio Afterwards, available cache resources amount in the buffer queue of the network equipment can be continued to test, when detect available cache resources amount according to When being so greater than or equal to preset upper limit value, the ratio that normal message processing assembly line is turned up can be continued, and it is available when detecting When cache resources amount is less than preset lower limit value, then the ratio for reducing normal message processing assembly line is needed.
Accordingly, in the present embodiment, can according to the dynamic change of cache resources amount available in the buffer queue of the network equipment, The specific gravity of normal message processing assembly line in the network equipment is adaptively adjusted, thus, the network equipment can be made to operate in comparison steady Fixed network state, and the service quality of business more as far as possible can be improved.
In above-mentioned or following embodiments, it can be determined according to the type of each Message processing assembly line current bearer The priority of each Message processing assembly line, wherein the type of business can indicate the significance level of business;At each message The priority of assembly line is managed, at least one Message processing assembly line for selecting priority minimum is as pause Message processing flowing water Line.
In the present embodiment, when determining pause Message processing assembly line, industry can be carried according to each Message processing assembly line The type of business defines the priority of each Message processing assembly line.As mentioned previously, the bearer service of Message processing assembly line It is dynamic change, therefore, the type of each Message processing assembly line current bearer can be monitored in real time, and in each message When the type of processing assembly line current bearer changes, the priority of each Message processing assembly line is dynamically adjusted.This Sample, in the network equipment priority of each Message processing assembly line can with the variation of bearer service dynamic change.Moreover, with The processing status of the dynamic change of the priority of Message processing assembly line, Message processing assembly line may also dynamic change.For example, When the priority of Message processing assembly line is lower, it is confirmed as suspending class Message processing assembly line, and works as Message processing stream The business that waterline is carried changes when the priority of the Message processing assembly line being caused to increase, which will It is adjusted to normal message processing assembly line.This can guarantee matching to the processing status of Message processing assembly line each in the network equipment The compatible degree between each Message processing assembly line bearer service is set, careless omission processing important service is avoided.
Wherein, the type of business include but is not limited to Enterprise Resources Plan (Enterprise Resource Planning, ERP), database, office automation (Office Automation, OA), web video, game on line etc..The type of business can The significance level of business is symbolized, for example, the significance level of ERP is generally higher than the significance level of game on line.In some realities In the application of border, the type of business and the corresponding relationship of priority can be pre-established, it accordingly, can be according to each Message processing assembly line The type of institute's bearer service, determines the priority of each Message processing assembly line.For example, if the range of priority is determined as 0 ~2, the type of each business can be ranked up according to significance level, and be associated with to suitable numerical priority value.
It accordingly, can be according to preferential when each Message processing assembly line carries out the configuration of processing status in the network equipment Grade is ranked up each Message processing assembly line in the network equipment, by at least one Message processing assembly line that priority is minimum As pause Message processing assembly line, and assembly line is handled using other Message processing assembly lines as normal message.In this way, can incite somebody to action The relatively low business pause of significance level, and preferentially guarantee that important service is normally processed.
In conjunction with the detection network equipment buffer queue in available cache resources amount operation, in the present embodiment, can will adjust The dynamics of normal message processing assembly line and pause Message processing assembly line ratio is set as at a message in the whole network equipment Manage assembly line.When the network equipment is in network congestion condition, it can be handled in assembly line from normal message choose priority every time A minimum Message processing assembly line is changed to pause Message processing assembly line, and continues to test the buffer queue of the network equipment In available cache resources amount, if the network equipment still in network congestion condition, continues from remaining from normal message processing A minimum Message processing assembly line of priority is chosen in assembly line and is changed to pause Message processing assembly line, until network is set It is standby to be detached from network congestion condition.And when the network equipment enters the unobstructed state of network, it every time can be from pause Message processing assembly line A middle Message processing assembly line for choosing highest priority reverts to normal message processing assembly line, and continues to test network and set Available cache resources amount in standby buffer queue, if the network equipment still in the unobstructed state of network, continue from it is remaining from The Message processing assembly line that highest priority is chosen in pause Message processing assembly line reverts to normal message processing flowing water Line, until the discovery network equipment leaves the unobstructed state of network.
It in practical applications, can be by the way that the preset upper limit value referred in previous embodiment be set greater than pre-determined lower limit Value defines a network steady state between network congestion condition and the unobstructed state of network for the network equipment, and by network Steady state is as adjustment target, by adjusting normal message processing assembly line in the network equipment and pause Message processing assembly line Ratio, the network equipment is maintained into network steady state, to guarantee the service quality of important service.
Fig. 2 is the work framework signal that a kind of multi-core network device that one embodiment of the application provides carries multiple business Figure.As shown in Fig. 2, the network equipment includes three Message processing assembly lines, three Message processing assembly lines can carry difference respectively Business, by taking the message forwarding task for handling all kinds of business as an example, every Message processing assembly line can be divided into three modules: driving connects Module, processing forward module and driving sending module are received, three modules respectively correspond the three phases of message forwarding task, it may be assumed that Message receives stage, Message processing stage and message transmission phase.In Fig. 2, the network equipment includes multiple cores processor, and three The corresponding processing work of modules on Message processing assembly line can be dispatched to suitable core processor by scheduler module Upper execution, wherein scheduler module can be deployed in other except the processing work on each Message processing assembly line for executing In core processor.In this way, the modules on a Message processing assembly line can be executed by different core processor.Value It must illustrate, module number, the content etc. that the Message processing assembly line quantity in Fig. 2, Message processing assembly line include all are Illustratively, the restriction to the application protection scope should not be caused.
Accordingly, in above-mentioned or following embodiments, clear text can also be read from buffer queue, and by report to be processed Driving receiving module, processing forward module where text is sequentially sent to the corresponding business of clear text on Message processing assembly line Message processing pipeline processes are carried out with driving sending module;Complete the Message processing pipeline processes to clear text Afterwards, clear text is deleted from buffer queue to discharge cache resources.
It, can be according to the place for including on Message processing assembly line for the clear text in buffer queue in the present embodiment Clear text is sequentially sent to subsequent processing stage by the reason stage.For example, the message for all kinds of business forwards demand, report Text processing assembly line may include driving receiving module, processing forward module and driving sending module.For with multi-core processor The network equipment for, the core processor that the processing task of aforementioned each module is schedulable to different is handled, thus a plurality of Message processing assembly line can operate parallel, this makes the network equipment can the multiple business of parallel processing.
After completing to the Message processing pipeline processes of clear text, clear text can be deleted from buffer queue It removing, the cache resources that clear text occupies will be released as available cache resources, correspondingly, the buffer queue of the network equipment In available cache resources amount will change.
In the present embodiment, the processing progress of clear text will bring available caching money in buffer queue in buffer queue The dynamic change of source amount, and the dynamic change based on cache resources amount available in buffer queue, are dynamically adapted the network equipment Middle normal message processing assembly line and the ratio for suspending Message processing assembly line, maintain network stabilization shape for the network equipment State improves the service quality of important service to reduce the packet loss of important service.
Fig. 3 is a kind of structural schematic diagram for network equipment that another embodiment of the application provides.As shown in figure 3, the network Equipment includes: memory 30 and one or more processors 31.
Memory 30 for storing computer program, and can be configured to store various other data to support in network Operation in equipment.The example of these data includes the finger of any application or method for operating on network devices It enables, contact data, telephone book data, message, picture, video etc..
Memory 30 can be by any kind of volatibility or non-volatile memory device or their combination realization, such as Static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is read-only to be deposited Reservoir (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
Processor 31 is coupled with memory 30, for executing the computer program in memory 30, to be used for:
Detect available cache resources amount in the buffer queue of the network equipment;
When detecting that the available cache resources amount is less than preset lower limit value, according to sharing each of the buffer queue The significance level of Message processing assembly line current bearer determines pause report from each Message processing assembly line Text processing assembly line and normal message handle assembly line;
Pause receives the message of the pause Message processing assembly line current bearer, to guarantee at the normal message The message of reason assembly line current bearer is successfully received when reaching into the buffer queue.
In the present embodiment, the network equipment includes one or more processors 31, and one or more processors 31 are in addition to available In outside the above-mentioned movement of realization, it may also be used for join together to carry out Message processing pipeline processes to each Message processing assembly line. Wherein, one or more processors 31 are joined together the work that Message processing pipeline processes are carried out to each Message processing assembly line It can refer to Fig. 2 as framework.In the present embodiment, a processor 31 can be responsible for handling at one in a Message processing assembly line The reason stage, for example, message reception, Message processing or message transmission etc..
In an alternative embodiment, processor 31 receives the report of pause Message processing assembly line current bearer in pause After text, it is also used to:
Continue to test available cache resources amount in buffer queue;
When continuing to test available cache resources amount still less than preset lower limit value, assembly line is handled according to normal message The significance level of current bearer is determined to be changed to pause Message processing assembly line from normal message processing assembly line Message processing assembly line, and suspend the Message processing assembly line current bearer for receiving and being changed to pause Message processing assembly line Message.
In an alternative embodiment, processor 31 is also used to:
When continuing to test available cache resources amount more than or equal to preset upper limit value, according to pause Message processing stream The significance level of waterline current bearer is determined to revert to normal message processing again from pause Message processing assembly line The Message processing assembly line of assembly line, and currently held in the Message processing assembly line for reverting to normal message processing assembly line again The message of load business normally receives when reaching into buffer queue, and preset upper limit value is greater than or equal to preset lower limit value.
In an alternative embodiment, processor 31 is currently held according to each Message processing assembly line for sharing buffer queue The significance level of load business is used for when determining pause Message processing assembly line from each Message processing assembly line:
According to the type of each Message processing assembly line current bearer, the preferential of each Message processing assembly line is determined Grade, wherein the type of business can indicate the significance level of business;
According to the priority of each Message processing assembly line, at least one Message processing assembly line for selecting priority minimum As pause Message processing assembly line.
In an alternative embodiment, processor 31 selects priority in the priority according to each Message processing assembly line When at least one minimum Message processing assembly line is as pause Message processing assembly line, it is used for:
According to the priority of each Message processing assembly line, a Message processing assembly line for selecting priority minimum as Suspend Message processing assembly line.
In an alternative embodiment, processor 31 is also used to:
It monitors the type of each Message processing assembly line current bearer in real time, and works as in each Message processing assembly line When the type of preceding bearer service changes, the priority of each Message processing assembly line is dynamically adjusted.
In an alternative embodiment, processor 31 is also used to:
Clear text is read from buffer queue, and clear text is sequentially sent to the corresponding business of clear text Driving receiving module, processing forward module and driving sending module on the Message processing assembly line of place carry out Message processing flowing water Line processing;
After completing to the Message processing pipeline processes of clear text, clear text is deleted from buffer queue To discharge cache resources.
In an alternative embodiment, the available cache resources amount in the buffer queue of the detection network equipment of processor 31 When, it is used for:
Cache resources inquiry request is sent to the hardware monitoring assembly of the network equipment;
The query result that hardware monitoring assembly is returned according to cache resources inquiry request is received, query result includes caching team Arrange available cache resources amount.
Further, as shown in figure 3, the network equipment further include: other components such as communication component 32, power supply module 33.Fig. 3 In only schematically provide members, be not meant to that the network equipment only includes component shown in Fig. 3.
Wherein, wired or wireless side between equipment and other equipment where communication component 32 is configured to facilitate communication component The communication of formula.Equipment where communication component can access the wireless network based on communication standard, such as WiFi, 2G or 3G or they Combination.In one exemplary embodiment, communication component is received via broadcast channel from the wide of external broadcasting management system Broadcast signal or broadcast related information.In one exemplary embodiment, communication component can be based on near-field communication (NFC) technology, penetrate Frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band (UWB) technology, bluetooth (BT) technology or other skills Art is realized, to promote short range communication.
Wherein, power supply module 33, the various assemblies of equipment provide electric power where power supply module.Power supply module may include Power-supply management system, one or more power supplys and other are related to electric power is generated, managed, and distributed for equipment where power supply module The component of connection.
Correspondingly, the embodiment of the present application also provides a kind of computer readable storage medium for being stored with computer program, meter Calculation machine program, which is performed, can be realized each step that can be executed by the network equipment in above method embodiment.
Fig. 4 is a kind of structural schematic diagram for flow control apparatus that the another embodiment of the application provides.As shown in figure 4, the flow control Device can include:
Detection module 40, available cache resources amount in the buffer queue for detecting the network equipment;
Configuration module 41, for when detect the available cache resources amount be less than preset lower limit value when, according to share The significance level of each Message processing assembly line current bearer of the buffer queue, from each Message processing flowing water Pause Message processing assembly line and normal message processing assembly line are determined in line;
Control module 42, for suspending the message for receiving the pause Message processing assembly line current bearer, to protect It is successfully received when demonstrate,proving the message arrival of the normal message processing assembly line current bearer into the buffer queue.
In an alternative embodiment, detection module 40 is also used to continue to test available cache resources amount in buffer queue;
Configuration module 41 is also used to when continuing to test available cache resources amount still less than preset lower limit value, according to Normal message handles the significance level of assembly line current bearer, determines to be changed to temporarily from normal message processing assembly line Stop the Message processing assembly line of Message processing assembly line, and suspends the Message processing for receiving and being changed to pause Message processing assembly line The message of assembly line current bearer.
In an alternative embodiment, configuration module 41 is also used to:
When continuing to test available cache resources amount more than or equal to preset upper limit value, according to pause Message processing stream The significance level of waterline current bearer is determined to revert to normal message processing again from pause Message processing assembly line The Message processing assembly line of assembly line, and currently held in the Message processing assembly line for reverting to normal message processing assembly line again The message of load business normally receives when reaching into buffer queue, and preset upper limit value is greater than or equal to preset lower limit value.
In an alternative embodiment, configuration module 41 is used for:
According to the type of each Message processing assembly line current bearer, the preferential of each Message processing assembly line is determined Grade, wherein the type of business can indicate the significance level of business;
According to the priority of each Message processing assembly line, at least one Message processing assembly line for selecting priority minimum As pause Message processing assembly line.
In an alternative embodiment, configuration module 41 is specifically used for:
According to the priority of each Message processing assembly line, a Message processing assembly line for selecting priority minimum as Suspend Message processing assembly line.
In an alternative embodiment, configuration module 41 is also used to:
It monitors the type of each Message processing assembly line current bearer in real time, and works as in each Message processing assembly line When the type of preceding bearer service changes, the priority of each Message processing assembly line is dynamically adjusted.
In an alternative embodiment, control module 42 is also used to:
Clear text is read from buffer queue, and clear text is sequentially sent to the corresponding business of clear text Driving receiving module, processing forward module and driving sending module on the Message processing assembly line of place carry out Message processing flowing water Line processing;
After completing to the Message processing pipeline processes of clear text, clear text is deleted from buffer queue To discharge cache resources.
In an alternative embodiment, detection module 40 is used for:
Cache resources inquiry request is sent to the hardware monitoring assembly of the network equipment;
The query result that hardware monitoring assembly is returned according to cache resources inquiry request is received, query result includes caching team Arrange available cache resources amount.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal Replacement, improvement etc., should be included within the scope of the claims of this application.

Claims (14)

1. a kind of flow control method characterized by comprising
Detect available cache resources amount in the buffer queue of the network equipment;
When detecting that the available cache resources amount is less than preset lower limit value, according to each item report for sharing the buffer queue Text processing assembly line current bearer significance level, from determined in each Message processing assembly line pause message from It manages assembly line and normal message handles assembly line;
Pause receives the message of the pause Message processing assembly line current bearer, to guarantee the normal message processing stream The message of waterline current bearer is successfully received when reaching into the buffer queue.
2. working as the method according to claim 1, wherein the pause receives the pause Message processing assembly line After the message of preceding bearer service, further includes:
Continue to test available cache resources amount in the buffer queue;
When continuing to test the available cache resources amount still less than the preset lower limit value, at the normal message The significance level for managing assembly line current bearer is determined to be changed to pause message from normal message processing assembly line The Message processing assembly line of assembly line is handled, and suspends the Message processing stream for being changed to pause Message processing assembly line described in reception The message of waterline current bearer.
3. according to the method described in claim 2, it is characterized by further comprising:
When continuing to test the available cache resources amount more than or equal to preset upper limit value, at the pause message The significance level for managing assembly line current bearer is determined to revert to again from the pause Message processing assembly line normal The Message processing assembly line of Message processing assembly line, and in the Message processing for reverting to normal message processing assembly line again The message of assembly line current bearer normally receives when reaching into the buffer queue, and the preset upper limit value is greater than or waits In the preset lower limit value.
4. method according to claim 1-3, which is characterized in that the basis shares each of the buffer queue The significance level of Message processing assembly line current bearer, from being determined in each Message processing assembly line from pause message Manage assembly line, comprising:
According to the type of each Message processing assembly line current bearer, the priority of each Message processing assembly line is determined, Wherein, the type of business indicates the significance level of business;
According to the priority of each Message processing assembly line, at least one Message processing assembly line for selecting priority minimum as Suspend Message processing assembly line.
5. according to the method described in claim 4, it is characterized by further comprising:
It monitors the type of each Message processing assembly line current bearer in real time, and is currently held in each Message processing assembly line When the type of load business changes, the priority of each Message processing assembly line is dynamically adjusted.
6. method according to claim 1-3, which is characterized in that in the buffer queue of the detection network equipment Available cache resources amount, comprising:
Cache resources inquiry request is sent to the hardware monitoring assembly of the network equipment;
Receive the query result that the hardware monitoring assembly is returned according to the cache resources inquiry request, the query result packet Include the available cache resources amount of the buffer queue.
7. a kind of flow control apparatus characterized by comprising
Detection module, available cache resources amount in the buffer queue for detecting the network equipment;
Configuration module, it is described slow according to sharing for when detecting that the available cache resources amount is less than preset lower limit value The significance level for depositing each Message processing assembly line current bearer of queue, from each Message processing assembly line really Make pause Message processing assembly line and normal message processing assembly line;
Control module, for suspending the message for receiving the pause Message processing assembly line current bearer, described in guaranteeing The message of normal message processing assembly line current bearer is successfully received when reaching into the buffer queue.
8. a kind of network equipment, which is characterized in that including one or more memories and one or more processors;
One or more of memories are for storing one or more computer instruction;
One or more of processors are coupled with one or more of memories, are calculated for executing described one or more Machine instruction, to be used for:
Detect available cache resources amount in the buffer queue of the network equipment;
When detecting that the available cache resources amount is less than preset lower limit value, according to each item report for sharing the buffer queue Text processing assembly line current bearer significance level, from determined in each Message processing assembly line pause message from It manages assembly line and normal message handles assembly line;
Pause receives the message of the pause Message processing assembly line current bearer, to guarantee the normal message processing stream The message of waterline current bearer is successfully received when reaching into the buffer queue.
9. equipment according to claim 8, which is characterized in that the processor receives the pause Message processing in pause After the message of assembly line current bearer, it is also used to:
Continue to test available cache resources amount in the buffer queue;
When continuing to test the available cache resources amount still less than the preset lower limit value, at the normal message The significance level for managing assembly line current bearer is determined to be changed to pause message from normal message processing assembly line The Message processing assembly line of assembly line is handled, and suspends the Message processing stream for being changed to pause Message processing assembly line described in reception The message of waterline current bearer.
10. equipment according to claim 9, which is characterized in that the processor is also used to:
When continuing to test the available cache resources amount more than or equal to preset upper limit value, at the pause message The significance level for managing assembly line current bearer is determined to revert to again from the pause Message processing assembly line normal The Message processing assembly line of Message processing assembly line, and in the Message processing for reverting to normal message processing assembly line again The message of assembly line current bearer normally receives when reaching into the buffer queue, and the preset upper limit value is greater than or waits In the preset lower limit value.
11. according to the described in any item equipment of claim 8-10, which is characterized in that the processor is described slow according to sharing The significance level for depositing each Message processing assembly line current bearer of queue, is determined from each Message processing assembly line When suspending Message processing assembly line, it is used for:
According to the type of each Message processing assembly line current bearer, the priority of each Message processing assembly line is determined, Wherein, the type of business indicates the significance level of business;
According to the priority of each Message processing assembly line, at least one Message processing assembly line for selecting priority minimum as Suspend Message processing assembly line.
12. equipment according to claim 11, which is characterized in that the processor is also used to:
It monitors the type of each Message processing assembly line current bearer in real time, and is currently held in each Message processing assembly line When the type of load business changes, the priority of each Message processing assembly line is dynamically adjusted.
13. according to the described in any item equipment of claim 8-10, which is characterized in that the processor is in the detection network equipment In buffer queue when available cache resources amount, it is used for:
Cache resources inquiry request is sent to the hardware monitoring assembly of the network equipment;
Receive the query result that the hardware monitoring assembly is returned according to the cache resources inquiry request, the query result packet Include the available cache resources amount of the buffer queue.
14. a kind of computer readable storage medium for storing computer instruction, which is characterized in that when the computer instruction is by one When a or multiple processors execute, one or more of processor perform claims is caused to require 1~6 described in any item flow controls Method.
CN201811475028.5A 2018-12-04 2018-12-04 Flow control method, flow control device, network equipment and storage medium Active CN109327403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811475028.5A CN109327403B (en) 2018-12-04 2018-12-04 Flow control method, flow control device, network equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811475028.5A CN109327403B (en) 2018-12-04 2018-12-04 Flow control method, flow control device, network equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109327403A true CN109327403A (en) 2019-02-12
CN109327403B CN109327403B (en) 2022-08-16

Family

ID=65256709

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811475028.5A Active CN109327403B (en) 2018-12-04 2018-12-04 Flow control method, flow control device, network equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109327403B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259247A (en) * 2020-02-11 2021-08-13 华为技术有限公司 Cache device in network equipment and data management method in cache device
US20210295583A1 (en) * 2020-03-16 2021-09-23 Intel Corporation Apparatus and method for throttling a ray tracing pipeline
CN113689075A (en) * 2021-07-22 2021-11-23 深圳泰德激光科技有限公司 Processing control method and device for double processing lines and computer storage medium
CN114189477A (en) * 2021-10-22 2022-03-15 新华三大数据技术有限公司 Message congestion control method and device
WO2022242305A1 (en) * 2021-05-18 2022-11-24 成都欧珀通信科技有限公司 Message transmission method and system, and related apparatus
CN115878334A (en) * 2023-03-08 2023-03-31 深圳云豹智能有限公司 Data caching processing method and system, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025638A (en) * 2010-12-21 2011-04-20 福建星网锐捷网络有限公司 Data transmission method and device based on priority level as well as network equipment
CN104579865A (en) * 2013-10-11 2015-04-29 通用电气航空系统有限责任公司 Data communications network for an aircraft
US9154455B1 (en) * 2013-08-30 2015-10-06 Qlogic, Corporation Method and system for determining drop eligibility of network information
CN105337895A (en) * 2014-07-14 2016-02-17 杭州华三通信技术有限公司 Network equipment host unit, network equipment daughter card and network equipment
CN106961445A (en) * 2017-04-28 2017-07-18 中国人民解放军信息工程大学 Message parsing method and its device based on FPGA hardware parallel pipeline
CN107770090A (en) * 2017-10-20 2018-03-06 深圳市楠菲微电子有限公司 Method and apparatus for controlling register in streamline

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102025638A (en) * 2010-12-21 2011-04-20 福建星网锐捷网络有限公司 Data transmission method and device based on priority level as well as network equipment
US9154455B1 (en) * 2013-08-30 2015-10-06 Qlogic, Corporation Method and system for determining drop eligibility of network information
CN104579865A (en) * 2013-10-11 2015-04-29 通用电气航空系统有限责任公司 Data communications network for an aircraft
CN105337895A (en) * 2014-07-14 2016-02-17 杭州华三通信技术有限公司 Network equipment host unit, network equipment daughter card and network equipment
CN106961445A (en) * 2017-04-28 2017-07-18 中国人民解放军信息工程大学 Message parsing method and its device based on FPGA hardware parallel pipeline
CN107770090A (en) * 2017-10-20 2018-03-06 深圳市楠菲微电子有限公司 Method and apparatus for controlling register in streamline

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113259247A (en) * 2020-02-11 2021-08-13 华为技术有限公司 Cache device in network equipment and data management method in cache device
US20210295583A1 (en) * 2020-03-16 2021-09-23 Intel Corporation Apparatus and method for throttling a ray tracing pipeline
US11915357B2 (en) * 2020-03-16 2024-02-27 Intel Corporation Apparatus and method for throttling a ray tracing pipeline
WO2022242305A1 (en) * 2021-05-18 2022-11-24 成都欧珀通信科技有限公司 Message transmission method and system, and related apparatus
CN113689075A (en) * 2021-07-22 2021-11-23 深圳泰德激光科技有限公司 Processing control method and device for double processing lines and computer storage medium
CN114189477A (en) * 2021-10-22 2022-03-15 新华三大数据技术有限公司 Message congestion control method and device
CN114189477B (en) * 2021-10-22 2023-12-26 新华三大数据技术有限公司 Message congestion control method and device
CN115878334A (en) * 2023-03-08 2023-03-31 深圳云豹智能有限公司 Data caching processing method and system, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN109327403B (en) 2022-08-16

Similar Documents

Publication Publication Date Title
CN109327403A (en) A kind of flow control method, device, the network equipment and storage medium
US8479216B2 (en) Method for decentralized load distribution in an event-driven system using localized migration between physically connected nodes and load exchange protocol preventing simultaneous migration of plurality of tasks to or from a same node
US8479215B2 (en) Decentralized load distribution to reduce power and/or cooling costs in an event-driven system
CN103053146B (en) Data migration method and device
US10833934B2 (en) Energy management in a network
US20180241665A1 (en) Application information based network route modification
US11315125B2 (en) Prioritized data synchronization
CN109412966B (en) Large-scale log transmission method, device and system
CN107231662A (en) The method and apparatus of multiple stream transmission in a kind of SDN
CN105207947B (en) A kind of gradual traffic scheduling method and system of filtering shake
CN104378308A (en) Method and device for detecting message sending rate
CN106130960B (en) Judgement system, load dispatching method and the device of steal-number behavior
Al-Masri Enhancing the microservices architecture for the internet of things
CN102970379A (en) Method for realizing load balance among multiple servers
US9979630B2 (en) Optimized consumption of third-party web services in a composite service
CN103929368A (en) Load balance method and device for multiple service units
CN109714183A (en) Data processing method and device in a kind of cluster
Assi et al. Energy-aware mapping and scheduling of network flows with deadlines on VNFs
Gausseran et al. Be scalable and rescue my slices during reconfiguration
CN102377672A (en) Routing method and communication equipment in data center network
CA3208382A1 (en) Network capacity planning systems and methods
CN109150756A (en) A kind of queue scheduling weight quantization method based on SDN power telecom network
Peralta et al. Fog to cloud and network coded based architecture: Minimizing data download time for smart mobility
Feng et al. An aggressive migration strategy for service function chaining in the core cloud
CN110515728A (en) Server scheduling method, apparatus, electronic equipment and machine readable storage medium

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