CN108833292A - Flow control methods and device - Google Patents

Flow control methods and device Download PDF

Info

Publication number
CN108833292A
CN108833292A CN201810418122.0A CN201810418122A CN108833292A CN 108833292 A CN108833292 A CN 108833292A CN 201810418122 A CN201810418122 A CN 201810418122A CN 108833292 A CN108833292 A CN 108833292A
Authority
CN
China
Prior art keywords
speed limit
host
resource
statistical magnitude
message
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.)
Pending
Application number
CN201810418122.0A
Other languages
Chinese (zh)
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.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies 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 New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201810418122.0A priority Critical patent/CN108833292A/en
Publication of CN108833292A publication Critical patent/CN108833292A/en
Pending legal-status Critical Current

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/29Flow control; Congestion control using a combination of thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring

Landscapes

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

Abstract

This disclosure relates to data communication technology field, more particularly to a kind of flow control methods and device, this method is by monitoring whether host meets speed limit condition, and when host meets speed limit condition, to host assignment speed limit resource, when host is unsatisfactory for speed limit condition, it is recovered as the speed limit resource of host assignment, thus speed limit resource will not be occupied by a host, realize the distribution according to need and recycling of speed limit resource, and then each speed limit resource can be used by multiple host, solve speed limit inadequate resource in flow forwarding control equipment in the related technology, the problem of being unable to satisfy to All hosts speed limit demand.

Description

Flow control methods and device
Technical field
This disclosure relates to data communication technology field more particularly to a kind of flow control methods and device.
Background technique
Broadband Remote Access Server (Broadband Remote Access Server, BRAS) is one kind towards broadband The access network management of network application is the bridge between broadband access network and backbone network, basic access is provided for broadband access network Means and management function;After the networking of access BRAS equipment certification, flow forwarding control equipment needs to use its institute host The statistics resource and speed limit resource having carry out flow control to the host of each access, to reduce flow forwarding control equipment Data forwarding pressure.Wherein, the flow for the host that statistics resource is used to be linked into BRAS equipment certification networking to every counts Amount statistics;Speed limit resource is used for after the flow of host exceeds preset flow threshold, carries out speed limit, such as token bucket to host.
The statistics resource that would generally have quantity more huge in flow forwarding control equipment, but since speed limit resource is usual More hardware resource can be occupied, the quantity of the speed limit resource in flow forwarding control equipment is usually limited;Therefore, it is largely leading The problem of machine accesses under scene, flow forwarding control equipment generally existing speed limit inadequate resource, be unable to satisfy to All hosts into The demand of row speed limit.
Summary of the invention
The embodiment of the present disclosure provides a kind of flow control methods and device, to solve flow forwarding control equipment speed limit money Source is insufficient, the problem of being unable to satisfy to All hosts speed limit demand.
In a first aspect, a kind of flow control methods are provided, applied to the flow forwarding control equipment in certification networking, the party Method includes:
Whether monitoring host meets speed limit condition;
If the host meets speed limit condition, and the current vacant speed limit resource of the host, then to the host assignment Speed limit resource;
If the host is unsatisfactory for speed limit condition, and the host currently occupies speed limit resource, then recycles the host and account for Speed limit resource.
Second aspect also provides a kind of volume control device, should applied to the flow forwarding control equipment in certification networking Device includes:
Monitoring modular, for monitoring whether host meets speed limit condition;
Distribution module, for meeting speed limit condition in the host, and the host currently vacant speed limit resource when, to The host assignment speed limit resource;
Recycling module is returned for being unsatisfactory for speed limit condition in the host, and when the host currently occupies speed limit resource Receive the speed limit resource that the host occupies.
In embodiment of the present disclosure above scheme, meet speed limit condition by monitoring whether, and meet speed limit condition in host, And host currently vacant speed limit resource when, to host assignment speed limit support, be unsatisfactory for speed limit condition in host, and host is current When occupying speed limit resource, the speed limit resource that recycling host occupies repeats benefit to realize the distribution according to need of speed limit resource With.It in turn, is host assignment speed limit resource when host needs speed limit;It is not then host assignment when host does not need speed limit Speed limit resource enables a limited number of speed limit resources to be used by way of this distribution according to need by multiple main frames, with solution Certainly flow forwarding control device resource is insufficient, the problem of being unable to satisfy to All hosts speed limit demand.
Detailed description of the invention
It, below will be to the disclosure in order to clearly illustrate the embodiment of the present disclosure or technical solution in the prior art Required attached drawing does simple introduction in embodiment or description of the prior art.It should be evident that the accompanying drawings in the following description The some embodiments only recorded in the disclosure for those of ordinary skill in the art can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is the schematic diagram of the certification networking for the BRAS equipment management that the embodiment of the present disclosure is related to;
Fig. 2 is the flow control methods flow chart that the embodiment of the present disclosure one provides;
Fig. 3 is the flow control methods schematic illustration that the embodiment of the present disclosure two provides;
Fig. 4 is the flow control methods flow chart that the embodiment of the present disclosure three provides;
Fig. 5 is the method for flow flow chart that the embodiment of the present disclosure four provides;
Fig. 6 is the method for flow flow chart that the embodiment of the present disclosure five provides;
Fig. 7 is 700 structural schematic diagram of volume control device that the embodiment of the present disclosure provides;
Fig. 8 is 800 structural schematic diagram of volume control device that another embodiment of the disclosure provides.
Specific embodiment
As shown in Figure 1, the schematic diagram for authenticating networking for the BRAS equipment management being related to for the embodiment of the present disclosure, host (user) 1 and user2 accesses BRAS equipment by LAN switch (Local Area Network Switch, LSW), Port1 is the port that BRAS equipment connects LSW;When user1 accesses the certification networking, can initiate to authenticate to BRAS by LSW Request;BRAS generates user's list item corresponding with the user1 after the certification to user1 passes through, and user's list item is issued To LSW.In user's list item, the flow rate threshold value of user1 is carried, for forwarding the LSW of control equipment as flow Flow control is carried out to user1.
In the related art, after LSW receives user's list item corresponding with user1 transmitted by BRAS, for the user1 Distribution statistics resource and speed limit resource.It can be occupied by user1 always for the statistics resource and speed limit resource of user1 distribution.Wherein Resource is counted to be used to carry out real-time statistics to user1 rate;Speed limit resource is used to exceed preset flow rate when user1 rate When threshold value, the data packet that will exceed preset flow rate threshold portion is abandoned, to realize the speed limit to the user1.
Before implementing disclosure scheme, when the user quantity of LSW access is greater than the quantity of owned speed limit resource When, such as speed limit resource has 4000, and the user quantity for accessing LSW then has 6000, cannot guarantee that each user can It is assigned to speed limit resource, causes LSW that can not carry out flow control to part user.
The disclosure is in order to solve this problem, it is proposed that a kind of new solution.For the objects, features and advantages for making the disclosure Can be more obvious and easy to understand, the disclosure is further described in detail with reference to the accompanying drawings and detailed description.In this public affairs It opens in each embodiment, executes the main body of flow control methods as the flow forwarding control equipment in various networkings.
Shown in Figure 2, the flow control methods that the embodiment of the present disclosure one provides include:
S201:Whether monitoring host meets speed limit condition.
S202:If host meets speed limit condition, and the current vacant speed limit resource of host, then provided to host assignment speed limit Source.
S203:If host is unsatisfactory for speed limit condition, and host currently occupies speed limit resource, then recycles the speed limit of host occupancy Resource.
Whether the embodiment of the present disclosure meets speed limit condition by monitoring host, and when host meets speed limit condition, to master Machine distribution speed limit resource is recovered as the speed limit resource of host assignment when host is unsatisfactory for speed limit condition, thus speed limit resource is not It can be occupied by a host, realize the distribution according to need and recycling of speed limit resource, and then each speed limit resource can It is used by multiple host, solves speed limit inadequate resource in flow forwarding control equipment in the related technology, be unable to satisfy to all masters The problem of machine speed limit demand.
It forwards control equipment as the LSW in the certification networking of BRAS equipment management using flow below, host user1 is carried out For flow control, flow control methods provided by the embodiment of the present disclosure are illustrated.
Shown in Figure 3, the flow control methods that the embodiment of the present disclosure two provides include:
S301:Whether detection host occupies speed limit resource;If it is not, then executing S302;If it is, executing S307.
S302:The message forwarded is counted, and obtains the current statistic period to the message progress quantity forwarded The first statistical magnitude obtained after statistics.
S303:It obtains a upper measurement period and carries out the second statistical magnitude obtained after quantity statistics to the message forwarded.
S304:According to the first statistical magnitude and current statistic period and the second statistical magnitude and a upper measurement period, meter Calculate the flow rate of host out of upper a measurement period to current statistic period.
S305:Whether detection flows rate is greater than preset flow rate threshold value.If it is not, then jumping to S301;If so, Jump to S306.
S306:Determine that host meets speed limit condition, and to host assignment speed limit resource.Jump to S301.
S307:The message abandoned is counted, and obtains the current statistic period to the message progress quantity abandoned The third statistical magnitude obtained after statistics.
S308:It obtains a upper measurement period and carries out the 4th statistical magnitude obtained after quantity statistics to the message abandoned.
S309:Whether detection third statistical magnitude is greater than the 4th statistical magnitude;If it is not, then jumping to S310;If so, jumping Go to S301.
S310:Determine that host is unsatisfactory for speed limit condition, the speed limit resource that recycling host occupies.
In the embodiment of the present disclosure two, forward the LSW of control equipment in the host user1 for receiving BRAS and issuing as flow User's list item after, for host user1 distribution the first statistics resource, which is used to forward user1 Message carries out quantity statistics.
In addition, LSW can increase corresponding column, specifically after receiving user's list item of user1 in user's list item Ground, the user's list item for increasing corresponding column are as shown in table 1 below:
Table 1
USer_No Pre_Timestamp Pre_Counter Pre_Rate Config_Rate Ocupy_Meter Pre_Meterdrop
1
Wherein, User_No is for indicating host;In one embodiment, 1 user1 is indicated;Pre_Timestamp is indicated The timestamp that the last time counts the message forwarded;Pre_Counter indicates the last time to the message forwarded The second statistical magnitude counted;Pre_Rate indicates the last flow speed counted to the message forwarded Rate;Config_Rate indicates the preset flow threshold of user;Ocupy_Meter is speed limit resource identification;If Ocupy_Meter For " NO ", then it represents that host is current and vacant speed limit resource;If Ocupy_Meter is " YES ", then it represents that host occupies limit Fast resource;Pre_Meterdrop indicates the statistical result counted to the message of discarding.
LSW can carry out periodic scan to user's list item of online all user;User's list item of user1 is arrived in scanning When, first according to the value of the Ocupy_Meter in user's list item of user1, detect whether user1 occupies speed limit resource.
If the Ocupy_Meter of user1 is " NO ", then it represents that the vacant speed limit resource of user1.LSW is recorded currently first The timestamp of time, while the current statistic quantity of the first statistics resource is recorded, and the current statistic number for counting resource for first Amount is used as the first statistical magnitude.Meanwhile LSW can also read the last time to the message forwarded from user's list item of user1 The the second statistical magnitude Pre_Counter obtained after being counted, and the last the message forwarded is counted Timestamp Pre_Timestamp.Afterwards according to the first statistical magnitude, the second statistical magnitude Pre_Counter, current time time The timestamp Pre_Timestamp of stamp and the last measurement period, calculates out of the last measurement period to current time, The flow rate of host.
Wherein, flow rate Rate_Current meets following formula (1):
Wherein, M1For the first statistical magnitude;M2For the second statistical magnitude Pre_Counter;T1For the time of current time Stamp;T2For the timestamp Pre_Timestamp of the last measurement period.
Herein, it should be noted that read for first statistics resource the last time from user's list item to the message forwarded The the second statistical magnitude Pre_Counter obtained after being counted the and corresponding timestamp Pre_ of the second statistical magnitude Timestamp is sky, or when being 0, then explanation does not need currently to calculate user rate.
Whether detection flows rate Rate_Current is greater than preset flow rate threshold value Config_Rate.If it is not, then Within this period, flow rate is not more than preset flow threshold Config_Rate, is unsatisfactory for speed limit condition, waits next Scan period.
If so, flow rate is greater than preset flow threshold Config_Rate, it is determined that user1 is full within this period Sufficient speed limit condition distributes speed limit resource for user1.
Herein, after distributing speed limit resource for user1, more by " NO " by the Ocupy_Meter in user's list item of user1 It is changed to " YES ".
In addition, LSW can be also user1 distribution the second statistics resource while distributing speed limit resource for user1;Second The message that statistics resource is used to abandon user1 carries out quantity statistics.
If the Ocupy_Meter of user1 is " YES ", then it represents that user1 occupies speed limit resource.LSW is recorded currently first Time second counts the current statistic quantity of resource, and using the current statistic quantity of the second statistics resource as third statistical number Amount.Meanwhile LSW the message of discarding can also be counted from the last time is read in user's list item of user1 after obtain the Four statistical magnitude Pre_Meterdrop.Third statistical magnitude and the 4th statistical magnitude are compared afterwards;If third statistical magnitude Greater than the 4th statistical magnitude, illustrate there is new message to be dropped within the period of the last measurement period to current time, Namely speed limit resource has carried out speed limit to user1, then it is assumed that user1 meets speed limit condition, it is still desirable to limit user1 Speed.If third statistical magnitude is equal to the 4th statistical magnitude, illustrate within the period of the last measurement period to current time, Not new message is dropped, that is, speed limit resource has not carried out speed limit to user1, it is believed that user1 is unsatisfactory for speed limit item Part, the speed limit resource for needing to occupy user1 are withdrawn.
By the embodiment two, the distribution according to need and recycling of speed limit resource are realized, improves the benefit of speed limit resource With rate, solves flow forwarding control equipment speed limit inadequate resource to a certain extent, being unable to satisfy needs All hosts speed limit The problem of asking.
Shown in Figure 4, the flow control methods that the embodiment of the present disclosure three provides include:
S401:Whether detection host occupies speed limit resource;If it is not, then executing S402;If it is, executing S407.
S402:The message forwarded is counted, obtains the current statistic period to the message progress quantity system forwarded The first statistical magnitude obtained after meter.
S403:It obtains a upper measurement period and carries out the second statistical magnitude obtained after quantity statistics to the message forwarded.
S404:According to the first statistical magnitude and current statistic period and the second statistical magnitude and a upper measurement period, meter Calculate the flow rate of host out of upper a measurement period to current statistic period.
S405:Whether detection flows rate is greater than preset flow rate threshold value.If it is not, then jumping to S401;If so, Jump to S406.
S406:Determine that host meets speed limit condition, and to host assignment speed limit resource.
S407:The message abandoned is counted, obtains the current statistic period to the message progress quantity system abandoned The 5th statistical magnitude obtained after meter.
S408:Detect whether the 5th statistical magnitude is greater than zero;If so, jumping to S409;If it is not, then jumping to S410.
S409:Determine that host meets speed limit condition;It is obtained after message of the current statistic period to discarding is carried out quantity statistics The 5th statistical magnitude arrived is reset.Jump to S401.
S410:Determine that host is unsatisfactory for speed limit condition, the speed limit resource that recycling host occupies.
In this embodiment, the process of S401-S406 is similar with the process of S301-S306 in above-described embodiment two, herein It repeats no more.
If the Ocupy_Meter of user1 is " YES ", then it represents that user1 occupies speed limit resource.LSW is recorded currently first Time second counts the current statistic quantity of resource, and using the current statistic quantity of the second statistics resource as the 5th statistical number Amount.Then whether the 5th statistical magnitude of detection is 0.If the 5th statistical magnitude is not 0, illustrate in the last measurement period to working as In the period of preceding time, there is that new message is dropped namely speed limit resource has carried out speed limit to user1, then it is assumed that user1 is full Sufficient speed limit condition, it is still desirable to speed limit be carried out to user1, the 5th statistical magnitude of the second statistics resource is reset, is waited next The scanning in period.If the 5th statistical magnitude is 0, illustrate do not have within the period of the last measurement period to current time New message is dropped, that is, speed limit resource has not carried out speed limit to user1, it is believed that user1 is unsatisfactory for speed limit condition, needs The speed limit resource that user1 is occupied is withdrawn.
Herein, by user1 occupy speed limit resource withdraw after, by the Ocupy_Meter in user's list item of user1 by " YES " is changed to " NO ".
In the embodiment three, due to not needing to read Pre_Meterdrop from user's list item in user1, only Need to read the statistical result of the second statistics resource, therefore, if realizing flow control using method provided by embodiment three, Then user's list item is as shown in table 2 below:
Table 2
User_No Pre_Timestamp Pre_Counter Pre_Rate Config_Rate Ocupy_Meter
1
By the embodiment three, the distribution according to need and recycling of speed limit resource are realized, improves the benefit of speed limit resource With rate, solves flow forwarding control equipment speed limit inadequate resource to a certain extent, being unable to satisfy needs All hosts speed limit The problem of asking.
Shown in Figure 5, the flow control methods that the embodiment of the present disclosure four provides include:
S501:Whether detection host occupies speed limit resource;If it is not, then executing S502;If it is, executing S508.
S502:The message forwarded is counted, obtains the current statistic period to the message progress quantity system forwarded The first statistical magnitude obtained after meter.
S503:It obtains a upper measurement period and carries out the second statistical magnitude obtained after quantity statistics to the message forwarded.
S504:According to the first statistical magnitude and current statistic period and the second statistical magnitude and a upper measurement period, meter Calculate the flow rate of the host out of upper a measurement period to current statistic period.
S505:Whether detection flows rate is greater than preset flow rate threshold value.If it is not, then jumping to S501;If so, Jump to S506.
S506:Determine that host meets speed limit condition, and detect host include this period the continuous quantity period in whether It is all satisfied speed limit condition, if so, jumping to S507;If it is not, then jumping to S501.
S507:To host assignment speed limit resource.
S508:The message abandoned is counted, obtains the current statistic period to the message progress quantity system abandoned The third statistical magnitude obtained after meter.
S509:It obtains a upper measurement period and carries out the 4th statistical magnitude obtained after quantity statistics to the message abandoned.
S510:Whether detection third statistical magnitude is greater than the 4th statistical magnitude;If it is not, then jumping to S511;If so, jumping Go to S501.
S511:Determine that host is unsatisfactory for speed limit condition, and detect host to be within the continuous quantity period for including this period It is no that speed limit condition is not satisfied, if so, jumping to S512;If it is not, then jumping to S511.
S512:Recycle the speed limit resource that host occupies.
By the embodiment, in the case where guaranteeing that customer flow is stablized, realize speed limit resource distribution according to need and Recycling improves the utilization rate of speed limit resource;It avoids providing since the rate of short time increases suddenly to host assignment speed limit Source, and avoid the rate due to the short time from reducing suddenly and recycle the speed limit resource that host occupies, reduce flow forwarding control The workload of equipment, while avoiding the concussion for causing speed limit resource to issue due to customer flow shakiness.
Shown in Figure 6, the flow control methods that the embodiment of the present disclosure five provides include:
S601:Whether detection host occupies speed limit resource;If it is not, then executing S602;If it is, executing S608.
S602:The message forwarded is counted, obtains the current statistic period to the message progress quantity system forwarded The first statistical magnitude obtained after meter.
S603:It obtains a upper measurement period and carries out the second statistical magnitude obtained after quantity statistics to the message forwarded.
S604:According to the first statistical magnitude and current statistic period and the second statistical magnitude and a upper measurement period, meter Calculate the flow rate of the host out of upper a measurement period to current statistic period.
S605:Whether detection flows rate is greater than preset flow rate threshold value.If it is not, then jumping to S601;If so, Jump to S606.
S606:Determine that host meets speed limit condition, and detect host include this period the continuous quantity period in whether It is all satisfied speed limit condition, if so, jumping to S607;If it is not, then jumping to S601.
S607:To host assignment speed limit resource.
S608:The message abandoned is counted, obtains the current statistic period to the message progress quantity system abandoned The 5th statistical magnitude obtained after meter.
S609:Detect whether the 5th statistical magnitude is greater than zero;If so, jumping to S601;If it is not, then jumping to S610.
S610:Determine that host is unsatisfactory for speed limit condition;And detect host include this period the continuous quantity period in be It is no that speed limit condition is not satisfied, if it is not, then jumping to S611;If so, jumping to S612;
S611:Message of the current statistic period to discarding is carried out the 5th statistical magnitude obtained after quantity statistics to reset.
Jump to S601.
S612:Recycle the speed limit resource that host occupies.Jump to S601.
By the embodiment, in the case where guaranteeing that customer flow is stablized, realize speed limit resource distribution according to need and Recycling improves the utilization rate of speed limit resource;It avoids providing since the rate of short time increases suddenly to host assignment speed limit Source, and avoid the rate due to the short time from reducing suddenly and recycle the speed limit resource that host occupies, reduce flow forwarding control The workload of equipment.
Based on the same inventive concept, device corresponding with above-mentioned flow control methods is additionally provided in the embodiment of the present disclosure, Since the principle that the device in the embodiment of the present disclosure solves the problems, such as is similar to the above method, the implementation side of may refer to of device The implementation of method, overlaps will not be repeated.
As shown in fig. 7, the structural schematic diagram of the volume control device 700 provided for the embodiment of the present disclosure, the flow control Device 700 is applied to the flow forwarding control equipment in certification networking, which includes:
Monitoring modular 701, for monitoring whether host meets speed limit condition;
Distribution module 702, for meeting speed limit condition in host, and host currently vacant speed limit resource when, to host Distribute speed limit resource;
Recycling module 703, for being unsatisfactory for speed limit condition in host, and when host currently occupies speed limit resource, recycling master The speed limit resource that machine occupies.
Optionally, host currently vacant speed limit resource when, monitoring modular 701 is specifically used for:Detect the flow speed of host Rate;
Flow rate is compared with preset flow rate threshold value;
If flow rate is greater than preset flow rate threshold value, it is determined that host meets speed limit condition.
Optionally, monitoring modular 701 is specifically used for the flow rate using following step detection host:
The message forwarded is counted, obtaining the current statistic period carries out after quantity statistics the message that has forwarded The first statistical magnitude arrived;
It obtains a upper measurement period and carries out the second statistical magnitude obtained after quantity statistics to the message forwarded;
According to the first statistical magnitude and current statistic period and the second statistical magnitude and a upper measurement period, calculate from In a upper measurement period to current statistic period, the flow rate of host.
Optionally, when host currently occupies speed limit resource, monitoring modular 701 is specifically used for monitoring host by following step Whether speed limit condition is met:The message abandoned is counted, the acquisition current statistic period counts the message abandoned The third statistical magnitude obtained after amount statistics;
It obtains a upper measurement period and carries out the 4th statistical magnitude obtained after quantity statistics to the message abandoned;
Whether detection third statistical magnitude is greater than the 4th statistical magnitude;
If third statistical magnitude is greater than the 4th statistical magnitude, it is determined that host meets speed limit condition.
Optionally, when host currently occupies speed limit resource, monitoring modular 701 is specifically used for monitoring host by following step Whether speed limit condition is met:
The message abandoned is counted, obtaining the current statistic period carries out after quantity statistics the message that has abandoned The 5th statistical magnitude arrived;
Detect whether the 5th statistical magnitude is greater than zero;
If so, determining that host meets speed limit condition;
Message of the current statistic period to discarding is carried out the 5th statistical magnitude obtained after quantity statistics to reset.
Optionally, monitoring modular 701 are specifically used for:Whether periodically monitoring host meets speed limit condition;
Distribution module 702, within the continuous preset quantity period, host to meet speed limit condition, and host does not account for currently When with speed limit resource, to host assignment speed limit resource;
Recycling module 703, if host is unsatisfactory for speed limit condition, and host is current within the continuous preset quantity period When occupying speed limit resource, the speed limit resource of recycling host occupancy.
In embodiment of the present disclosure above scheme, meet speed limit condition by monitoring whether, and meet speed limit condition in host, And host currently vacant speed limit resource when, to host assignment speed limit support, be unsatisfactory for speed limit condition in host, and host is current When occupying speed limit resource, the speed limit resource that recycling host occupies repeats benefit to realize the distribution according to need of speed limit resource With.It in turn, is host assignment speed limit resource when host needs speed limit;It is not then host assignment when host does not need speed limit Speed limit resource enables a limited number of speed limit resources to be used by way of this distribution according to need by multiple main frames, with solution Certainly flow forwarding control device resource is insufficient, the problem of being unable to satisfy to All hosts speed limit demand.
As shown in figure 8, for 800 structural schematic diagram of volume control device that the embodiment of the present disclosure provides, flow control dress Setting 800 includes processor 81, memory 82 and bus 83, is connected between processor 81 and memory 82 by bus 83;Storage It is stored with and executes instruction in device 82, the operation of processor 81 executes instruction, to realize following methods:
Whether monitoring host meets speed limit condition;
If host meets speed limit condition, and the current vacant speed limit resource of host, then to host assignment speed limit resource;
If host is unsatisfactory for speed limit condition, and host currently occupies speed limit resource, then recycles the speed limit resource of host occupancy.
Optionally, host currently vacant speed limit resource when, processor 81 is specifically used for by following step monitoring host Whether meet speed limit condition, specifically includes:
Detect the flow rate of host;
Flow rate is compared with preset flow rate threshold value;
If flow rate is greater than preset flow rate threshold value, it is determined that host meets speed limit condition.
Optionally, processor 81 is specifically used for detecting the flow rate of host by following step:To the message forwarded It is counted, obtains the current statistic period to the first statistical magnitude obtained after the message progress quantity statistics forwarded;
It obtains a upper measurement period and carries out the second statistical magnitude obtained after quantity statistics to the message forwarded;
According to the first statistical magnitude and current statistic period and the second statistical magnitude and a upper measurement period, calculate from In a upper measurement period to current statistic period, the flow rate of host.
Optionally, when host currently occupies speed limit resource, processor 81 is specifically for monitoring host by following step It is no to meet speed limit condition:
The message abandoned is counted, obtaining the current statistic period carries out after quantity statistics the message that has abandoned The third statistical magnitude arrived;
It obtains a upper measurement period and carries out the 4th statistical magnitude obtained after quantity statistics to the message abandoned;
Whether detection third statistical magnitude is greater than the 4th statistical magnitude;
If third statistical magnitude is greater than the 4th statistical magnitude, it is determined that host meets speed limit condition.
Optionally, when host currently occupies speed limit resource, processor 81 is specifically for monitoring host by following step It is no to meet speed limit condition, it specifically includes:
The message abandoned is counted, obtaining the current statistic period carries out after quantity statistics the message that has abandoned The 5th statistical magnitude arrived;
Detect whether the 5th statistical magnitude is greater than zero;
If so, determining that host meets speed limit condition;
Message of the current statistic period to discarding is carried out the 5th statistical magnitude obtained after quantity statistics to reset.
Optionally, processor 81 is specifically used for:Whether periodically monitoring host meets speed limit condition;
If in the continuous preset quantity period, host meets speed limit condition, and the current vacant speed limit resource of host, then to master Machine distributes speed limit resource;
If host is unsatisfactory for speed limit condition, and host currently occupies speed limit resource, then recycles in the continuous preset quantity period The speed limit resource that host occupies.
Corresponding to above-mentioned flow control methods and device, the embodiment of the present disclosure additionally provides a kind of computer-readable storage medium Matter is stored with computer program on the computer readable storage medium, which executes above-mentioned when being run by processor The step of flow control methods.
The technical solution of the disclosure substantially the part that contributes to existing technology or the technical solution in other words Part can be embodied in the form of software products, which is stored in a storage medium, if including Dry instruction is used so that a computer equipment (can be personal computer, server or the network equipment etc.) executes this public affairs Open all or part of the steps of each embodiment method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk Etc. the various media that can store program code.
More than, the only specific embodiment of the disclosure, but the protection scope of the disclosure is not limited thereto, and it is any to be familiar with Those skilled in the art can easily think of the change or the replacement in the technical scope that the disclosure discloses, and should all cover Within the protection scope of the disclosure.Therefore, the protection scope of the disclosure should be subject to the protection scope in claims.

Claims (12)

1. a kind of flow control methods, which is characterized in that applied to the flow forwarding control equipment in certification networking, this method packet It includes:
Whether monitoring host meets speed limit condition;
If the host meets speed limit condition, and the current vacant speed limit resource of the host, then to the host assignment speed limit Resource;
If the host is unsatisfactory for speed limit condition, and the host currently occupies speed limit resource, then recycles what the host occupied Speed limit resource.
2. the method according to claim 1, wherein the host currently vacant speed limit resource when, the prison It surveys whether host meets speed limit condition, specifically includes:
Detect the flow rate of the host;
The flow rate is compared with preset flow rate threshold value;
If the flow rate is greater than the preset flow rate threshold value, it is determined that the host meets speed limit condition.
3. according to the method described in claim 2, it is characterized in that, the flow rate of the detection host, specifically includes:
The message forwarded is counted, obtains what the current statistic period obtain after quantity statistics to the message that has forwarded First statistical magnitude;
It obtains a upper measurement period and carries out the second statistical magnitude obtained after quantity statistics to the message forwarded;
According to first statistical magnitude and current statistic period and second statistical magnitude and a upper measurement period, meter Calculate the flow rate of the host out of described a upper measurement period to current statistic period.
4. the method according to claim 1, wherein when the host currently occupies speed limit resource, the monitoring Whether host meets speed limit condition, specifically includes:
The message abandoned is counted, obtains what the current statistic period obtain after quantity statistics to the message that has abandoned Third statistical magnitude;
It obtains a upper measurement period and carries out the 4th statistical magnitude obtained after quantity statistics to the message abandoned;
Detect whether the third statistical magnitude is greater than the 4th statistical magnitude;
If the third statistical magnitude is greater than the 4th statistical magnitude, it is determined that host meets speed limit condition.
5. the method according to claim 1, wherein when the host currently occupies speed limit resource, the monitoring Whether host meets speed limit condition, specifically includes:
The message abandoned is counted, obtains what the current statistic period obtain after quantity statistics to the message that has abandoned 5th statistical magnitude;
Detect whether the 5th statistical magnitude is greater than zero;
If so, determining that host meets speed limit condition;
Message of the current statistic period to discarding is carried out the 5th statistical magnitude obtained after quantity statistics to reset.
6. specifically being wrapped the method according to claim 1, wherein whether the monitoring host meets speed limit condition It includes:Whether periodically monitoring host meets speed limit condition;
If in the continuous preset quantity period, the host meets speed limit condition, and the current vacant speed limit resource of the host, then To the host assignment speed limit resource;
If the host is unsatisfactory for speed limit condition, and the host currently occupies speed limit resource, then in the continuous preset quantity period Recycle the speed limit resource that the host occupies.
7. a kind of volume control device, which is characterized in that applied to the flow forwarding control equipment in certification networking, the device packet It includes:
Monitoring modular, for monitoring whether host meets speed limit condition;
Distribution module, for meeting speed limit condition in the host, and the host currently vacant speed limit resource when, to described Host assignment speed limit resource;
Recycling module recycles institute for being unsatisfactory for speed limit condition in the host, and when the host currently occupies speed limit resource State the speed limit resource of host occupancy.
8. device according to claim 7, which is characterized in that the host currently vacant speed limit resource when, the prison Module is surveyed, is specifically used for:Detect the flow rate of the host;
The flow rate is compared with preset flow rate threshold value;
If the flow rate is greater than the preset flow rate threshold value, it is determined that the host meets speed limit condition.
9. device according to claim 8, which is characterized in that the monitoring modular is specifically used for detecting using following step The flow rate of the host:
The message forwarded is counted, obtains what the current statistic period obtain after quantity statistics to the message that has forwarded First statistical magnitude;
It obtains a upper measurement period and carries out the second statistical magnitude obtained after quantity statistics to the message forwarded;
According to first statistical magnitude and current statistic period and second statistical magnitude and a upper measurement period, meter Calculate the flow rate of the host out of described a upper measurement period to current statistic period.
10. device according to claim 7, which is characterized in that when the host currently occupies speed limit resource, the monitoring Module is specifically used for monitoring whether host meets speed limit condition by following step:
The message abandoned is counted, obtains what the current statistic period obtain after quantity statistics to the message that has abandoned Third statistical magnitude;
It obtains a upper measurement period and carries out the 4th statistical magnitude obtained after quantity statistics to the message abandoned;
Detect whether the third statistical magnitude is greater than the 4th statistical magnitude;
If the third statistical magnitude is greater than the 4th statistical magnitude, it is determined that host meets speed limit condition.
11. device according to claim 7, which is characterized in that when the host currently occupies speed limit resource, the monitoring Module is specifically used for monitoring whether host meets speed limit condition by following step:
The message abandoned is counted, obtains what the current statistic period obtain after quantity statistics to the message that has abandoned 5th statistical magnitude;
Detect whether the 5th statistical magnitude is greater than zero;
If so, determining that host meets speed limit condition;
Message of the current statistic period to discarding is carried out the 5th statistical magnitude obtained after quantity statistics to reset.
12. device according to claim 7, which is characterized in that the monitoring modular is specifically used for:Periodically monitoring master Whether machine meets speed limit condition;
The distribution module, within the continuous preset quantity period, the host to meet speed limit condition, and the host is current When vacant speed limit resource, to the host assignment speed limit resource;
The recycling module, if the host is unsatisfactory for speed limit condition, and the host within the continuous preset quantity period When current occupancy speed limit resource, the speed limit resource that the host occupies is recycled.
CN201810418122.0A 2018-05-04 2018-05-04 Flow control methods and device Pending CN108833292A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810418122.0A CN108833292A (en) 2018-05-04 2018-05-04 Flow control methods and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810418122.0A CN108833292A (en) 2018-05-04 2018-05-04 Flow control methods and device

Publications (1)

Publication Number Publication Date
CN108833292A true CN108833292A (en) 2018-11-16

Family

ID=64148205

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810418122.0A Pending CN108833292A (en) 2018-05-04 2018-05-04 Flow control methods and device

Country Status (1)

Country Link
CN (1) CN108833292A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103874133A (en) * 2012-12-10 2014-06-18 深圳国人通信有限公司 Method and device for bandwidth control and access point
EP2938033A1 (en) * 2012-11-29 2015-10-28 ZTE Corporation Device and method for managing resources in multicast service
WO2015161480A1 (en) * 2014-04-24 2015-10-29 Empire Technology Development Llc Resource consumption optimization
CN105024932A (en) * 2014-04-21 2015-11-04 中兴通讯股份有限公司 Traffic policing method and apparatus based on token bucket
CN106161068A (en) * 2015-04-15 2016-11-23 华为技术有限公司 A kind of recovery prompting to Internet resources and distribution method, and controller
CN107888428A (en) * 2017-12-04 2018-04-06 郑州云海信息技术有限公司 A kind of bandwidth adjusting method, device, equipment and readable storage medium storing program for executing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2938033A1 (en) * 2012-11-29 2015-10-28 ZTE Corporation Device and method for managing resources in multicast service
CN103874133A (en) * 2012-12-10 2014-06-18 深圳国人通信有限公司 Method and device for bandwidth control and access point
CN105024932A (en) * 2014-04-21 2015-11-04 中兴通讯股份有限公司 Traffic policing method and apparatus based on token bucket
WO2015161480A1 (en) * 2014-04-24 2015-10-29 Empire Technology Development Llc Resource consumption optimization
CN106161068A (en) * 2015-04-15 2016-11-23 华为技术有限公司 A kind of recovery prompting to Internet resources and distribution method, and controller
CN107888428A (en) * 2017-12-04 2018-04-06 郑州云海信息技术有限公司 A kind of bandwidth adjusting method, device, equipment and readable storage medium storing program for executing

Similar Documents

Publication Publication Date Title
WO2018177012A1 (en) Method, apparatus and device for controlling bandwidth
CN107528870A (en) A kind of collecting method and its equipment
CN105183565A (en) Computer and service quality control method and device
CN108984125B (en) Resource allocation method, device and storage medium
CN105791254B (en) Network request processing method and device and terminal
CN111049756B (en) Request response method and device, electronic equipment and computer readable storage medium
TW201246991A (en) Network system, femtocell, femtocell management apparatus, resource allocation method and computer program product thereof
WO2019144846A1 (en) Storage system, and method and apparatus for allocating storage resources
EP2998862A1 (en) Method, device, and system for memory management
US11706630B2 (en) Spectrum management device, system and method, and computer-readable storage medium
CN105704256B (en) A kind of IP address management methods, devices and systems
CN106970841A (en) A kind of resource constraint and dynamic adjusting method based on cloud computing
CN114244718A (en) Power transmission line communication network equipment management system
CN114155026A (en) Resource allocation method, device, server and storage medium
CN106550010A (en) A kind of real-time control distributed system calls external system to service the method and system of the frequency
CN108833292A (en) Flow control methods and device
KR101008010B1 (en) Resource assignment control method and assignment list management method
KR20170014804A (en) Virtual machine provisioning system and method for cloud service
CN111858021B (en) Transaction channel selection method, online transaction method and related device
CN105283864A (en) Governing bare metal guests
CN103929378B (en) The communication link distribution of cross-domain data transmission and cross-domain data transmission method and system
CN103237236B (en) A kind of information processing method, BOSS system and information processing system
CN105519055A (en) Dynamic equilibrium method and apparatus for QoS of I/O channel
CN108595370A (en) A kind of multi-core processor and message processing method
CN105323320B (en) A kind of method and device of content distribution

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20181116

RJ01 Rejection of invention patent application after publication