CN113193991A - Bandwidth speed limiting method, decision device and computer readable storage medium - Google Patents

Bandwidth speed limiting method, decision device and computer readable storage medium Download PDF

Info

Publication number
CN113193991A
CN113193991A CN202110405661.2A CN202110405661A CN113193991A CN 113193991 A CN113193991 A CN 113193991A CN 202110405661 A CN202110405661 A CN 202110405661A CN 113193991 A CN113193991 A CN 113193991A
Authority
CN
China
Prior art keywords
pop
bandwidth
speed
gear
channel
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
CN202110405661.2A
Other languages
Chinese (zh)
Other versions
CN113193991B (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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and Technology 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN202110405661.2A priority Critical patent/CN113193991B/en
Publication of CN113193991A publication Critical patent/CN113193991A/en
Application granted granted Critical
Publication of CN113193991B publication Critical patent/CN113193991B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0896Bandwidth or capacity management, i.e. automatically increasing or decreasing capacities
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The invention discloses a bandwidth speed limiting method, which comprises the following steps: acquiring the real-time bandwidth and state information of the POP, canceling a speed limit line and the speed limit line; and judging whether the POP is in a speed-limiting state or not according to the state information, and calculating control data and sending the control data to the edge server when the POP is in the speed-limiting state and the real-time bandwidth of the POP is smaller than the speed-limiting line or the POP is not in the speed-limiting state and the real-time bandwidth of the POP is larger than the speed-limiting line. The invention also provides a decision device, a bandwidth control system and a computer readable storage medium. The invention can achieve the purpose of limiting the speed of the bandwidth by automatically adjusting the speed of the channel through the gear.

Description

Bandwidth speed limiting method, decision device and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a bandwidth speed limiting method, a decision device, and a computer-readable storage medium.
Background
An existing CDN architecture often plans a plurality of POPs (Point of presence, edge nodes) for providing services to customers according to different regions, where each POP hosts a plurality of different customers, each customer has a corresponding channel, and the POP can distinguish each customer through the channel of the customer. Since the scheduled bandwidth and the underlying channel of each POP are not the same and the desired rate requirement for each channel is different, if the bandwidth of a channel within a POP is too high, the bandwidth and rate of other channels within the same POP will be affected.
When the bandwidth of the POP is too high, the existing scheme is to limit the bandwidth of all channels under the POP. However, since the channels received in each POP have different requirements for bandwidth and rate, the existing speed-limiting method may affect the speed-limiting effect, and even the partial channels may be improperly limited, and the speed cannot be limited according to the desired download rate of the channels.
Accordingly, there is a need for a method for limiting speed for different channels.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a bandwidth speed limiting method and a decision device, so as to solve the problem in the prior art that speed limitation cannot be performed on different channels. The technical scheme is as follows:
in a first aspect, a bandwidth speed limiting method is provided, the method including:
acquiring the real-time bandwidth and state information of the POP, canceling a speed limit line and the speed limit line;
and judging whether the POP is in a speed-limiting state or not according to the state information, and calculating control data and sending the control data to an edge server when the POP is in the speed-limiting state and the real-time bandwidth of the POP is smaller than the speed-limiting line or the POP is not in the speed-limiting state and the real-time bandwidth of the POP is larger than the speed-limiting line.
Further, the method also comprises the following steps:
acquiring a warning line and a preset maximum gear of the POP;
calculating a difference ratio according to the speed limit line, the warning line and a preset maximum gear number;
and calculating the actual maximum gear of the POP and the bandwidth line corresponding to each gear according to the difference ratio.
Further, the method calculates the actual maximum gear of the POP and the bandwidth line corresponding to each gear according to the following formula:
W=S*(1+p%)mand S is the speed limit line of the POP, W is an alarm line, and m is the preset maximum gear number.
Further, the calculating the control data includes:
judging whether the current gear of the POP is larger than the actual maximum gear or not;
if the current frequency band is smaller than the preset frequency band, adjusting the speed of the channel with the largest bandwidth, adding the adjusted speed and the corresponding channel into the control data, and increasing the current gear of the POP;
and if so, selecting a channel with the minimum bandwidth to delete from the control data, and reducing the current gear of the POP.
Further, the adjusting the rate of the frequency channel with the largest bandwidth specifically includes:
calculating the speed of the frequency channel with the maximum bandwidth, if the speed of the frequency channel with the maximum bandwidth is larger than the minimum speed, adjusting the speed of the frequency channel with the maximum bandwidth to the expected speed, and if the speed of the frequency channel with the maximum bandwidth is smaller than the minimum speed, setting the speed of the frequency channel with the maximum bandwidth as the minimum speed.
Further, the method further comprises:
acquiring a cancellation speed limit line and a gradual recovery proportion of the POP;
and when the real-time bandwidth of the POP is smaller than the cancellation speed limit line, calculating the number of the channels to be cancelled, and sending the channels to be cancelled to the edge server.
Further, the method calculates the number of the channels to be released according to the following formula:
f (k) ═ count (x) × p × t, where count (x) is the total number of currently issued control channels, p is the gradual recovery ratio, t is the recovery period, and f (k) is the number of channels for which control is released.
In a second aspect, a decision device is provided, which includes a processor and a memory, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by the processor to implement the bandwidth rate limiting method.
In a third aspect, a bandwidth control system is provided, which includes the above decision device.
In a fourth aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by a processor to implement the above bandwidth rate limiting method.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
planning bandwidth and gear division for the node POP in advance, wherein different real-time bandwidths are divided into different gears, and each channel can be in different gears and can be configured to correspond to different expected rates; the invention automatically adjusts the gears through the POP real-time bandwidth, automatically calculates the channel speed in each gear, and calculates control data according to the gear and the channel speed so as to adjust the channel speed to reach the expected speed in the gear; the bandwidth speed limit purpose is achieved by automatically adjusting the speed of the channels through the gears, so that the CDN system can not be broken down due to the fact that the speed of the channels is too high, and each channel at the expected speed can be protected from being interfered by other channels.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic diagram of a bandwidth rate limiting system in an embodiment of the invention;
FIG. 2 is a flow chart of a bandwidth rate limiting method according to an embodiment of the present invention;
FIG. 3 is a flow chart of computing control data provided by an embodiment of the present invention;
FIG. 4 is a flow chart of computing recovery data according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a decision device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a bandwidth speed limiting system according to an embodiment of the present invention includes: configuration means, a database, data means, and decision means.
The operation and maintenance personnel can configure the configuration data of the POP on the configuration device through the web interface and submit the configuration data to the database for storage; the data device can pull configuration data from the database, and can also collect the real-time bandwidth, channel request number and channel rejection number of the POP and push the collected data to the decision device; the decision device pulls the configuration data from the database, loads and analyzes the configuration data, reads the real-time data according to the configuration data, calculates the decision data by combining the configuration data and the real-time data, and sends the decision data to the edge machine. Wherein the decision data comprises speed limit data and recovery data.
The configuration data can comprise the name of POP, planning bandwidth, speed limit line, cancellation speed limit line, gradual recovery proportion, preset maximum gear number and minimum speed; the configuration data may also include the channel running on the POP, the desired rate for the channel, the first configuration threshold, and the second configuration threshold.
The projected bandwidth of the POP is the rated bandwidth of the POP purchased from the operator; the speed limit line is that the real-time bandwidth of the POP is greater than a first preset value, the bandwidth of the POP is controlled, the first preset value is the speed limit line, and the speed limit line is smaller than the rated bandwidth of the POP. The cancellation speed limit line means that the control of the bandwidth of the POP is cancelled after the real-time bandwidth of the POP is smaller than a second preset value, the second preset value is the cancellation speed limit line, and the cancellation speed limit line is lower than the speed limit line. For example, if the planned bandwidth of the POP is 100M, the speed limit line can be set to 80M, and the cancellation speed limit line can be set to 78M, so that when the real-time bandwidth of the POP is greater than 80M, the POP needs to be limited in speed; correspondingly, when the real-time bandwidth of the POP is less than 78M, the speed limit of the POP is not required to be limited.
The minimum rate is the minimum rate of each channel and is the minimum guarantee of the channel downloading rate. When the rate of a channel is less than the minimum rate, the rate of the channel is not limited regardless of the state of the POP. The preset maximum gear number refers to a maximum gear preset according to the planned bandwidth and the speed limit line of the POP, in other words, the preset maximum gear number refers to the gear number set between the speed limit line and the planned bandwidth. For example, if the planned bandwidth of the POP is 100M and the speed limit line is set to 80M, the maximum number of gears can be set to 2, where 80M to 90M are the first gear and 90M to 100M are the second gear, which is only a simple example for convenience of description, and how to set the maximum gear and how large the interval between each gear can be set according to practical situations and different algorithms.
The gradual recovery proportion is the number of control channels which need to be released in each recovery period after the real-time bandwidth of the POP is smaller than the speed limit line.
The data device is used for acquiring the real-time data of the POP and the channels, including the real-time bandwidth of the POP, the real-time bandwidth of the state information channel of the POP, the request number of the channels and the rejection number of the channels, and then pushing the real-time data to the decision device; the state information of the POP comprises a speed limit state and a recovery state.
The bandwidth speed-limiting system provided in the embodiment of the present invention can make a decision and control on the bandwidth POP real-time bandwidth through the decision device shown in fig. 1, so as to achieve the purpose of speed limiting, and the specific process refers to fig. 2:
and step S202, acquiring the real-time bandwidth and configuration data of the POP.
In an alternative embodiment, the decision-making means reads the configuration data from the database and the real-time bandwidth of the POP from the data means. After the configuration data is obtained, calculating a difference ratio according to a speed limit line, an alarm line and a preset maximum gear number of the obtained configuration data; and then calculating the actual maximum gear of the POP and the bandwidth line corresponding to each gear according to the difference ratio.
Specifically, the formula W ═ S (1+ p%)mCalculating a proportional value p; substituting the calculated ratio value p into formula Wn=S*(1+p%)nIn (1), respectively calculating the bandwidth line W corresponding to each gearnAfter the real-time bandwidth of the POP is obtained, the actual maximum gear of the POP can be determined according to the bandwidth line corresponding to each gear.
For example, if the warning line W of POP is 100M, the speed limit line S is 80M, the preset maximum shift number M is 3, and W is S (1+ p%)mThe calculated ratio p is 7.5. Then according to the formula Wn=S*(1+p%)nWhen the shift position is the first shift position (i.e., n is 1), the corresponding bandwidth line is 86M, when the shift position is the second shift position (i.e., n is 2), the corresponding bandwidth line is 92.45M, and when the shift position is the third shift position (i.e., n is 3), the corresponding bandwidth line is 99.38M; in other words, 80M to 86M belong to first gear, 86.1M to 92.5M belong to second gear, and 92.6M to 99.38M belong to third gear.
Step S203, judging whether the vehicle is in a speed limit state according to the historical speed limit state of the POP; if the speed limit state is reached, the step S205 is entered, otherwise, the step S204 is entered.
In an alternative embodiment, the speed limit state is entered when the POP real-time bandwidth is greater than the speed limit line and the duration reaches a first configured threshold. For example, when the POP real-time bandwidth is greater than 80M and the duration reaches 1 second, the speed limit state is entered, where 80 in this example is the speed limit line and 1 second is the first configuration threshold.
And step S204, judging whether the POP real-time bandwidth is larger than the speed limit line, if so, entering step S206, and if not, entering step S210 to wait for the next recovery period. In this step, although the POP is not in the speed-limiting state, in the operation process, a situation that the bandwidth is greater than the speed-limiting line may occur, and if the bandwidth is greater than the speed-limiting line and the duration reaches the first configuration threshold, the POP also enters the speed-limiting state. In other words, the invention can determine whether to calculate the control data by firstly judging whether the POP is in the speed-limiting state and the POP real-time bandwidth is smaller than the cancellation speed-limiting line, or can directly determine whether to calculate the control data by judging whether the POP real-time bandwidth is larger than the speed-limiting line and the duration reaches the first configuration threshold.
And S205, judging whether the POP real-time bandwidth is smaller than the cancellation speed limit line, if so, entering S207, and otherwise, entering S206.
In an alternative embodiment, in the speed limit state, since the bandwidth of the POP may change, it is first determined whether the real-time bandwidth of the POP is smaller than the cancellation speed limit line. And entering a recovery state when the POP real-time bandwidth is smaller than the cancellation speed limit line and the duration reaches a second configuration threshold. For example, if the cancellation speed limit line is also set to 80M and the second configuration threshold is also set to 1 second, the recovery state is entered when the POP real-time bandwidth is less than 80M and the duration reaches 1 second.
It should be noted that the speed limit line and the cancellation speed limit line may be set to the same value or different values, and the first configuration threshold and the second configuration threshold may be the same or different, which is not limited in the present invention.
Step S206, calculating the control data and sending the control data to the edge server, then adjusting the gear, and then entering 210 to wait for the next recovery period.
Specifically, step S206 may first determine whether the current gear of the POP is greater than the actual maximum gear; if the bandwidth of the POP is larger than the bandwidth of the POP, adjusting the speed of the channel with the largest bandwidth, adding the adjusted speed and the corresponding channel into control data, and reducing the current gear of the POP; if the number of the POPs is smaller than the preset threshold, selecting a channel with the minimum bandwidth to delete from the control data, and increasing the current gear of the POP; and if so, keeping the current gear of the POP unchanged. Wherein, adjusting the rate of the channel with the largest bandwidth specifically comprises: and calculating the rate of the frequency channel with the maximum bandwidth, adjusting the rate of the frequency channel with the maximum bandwidth to a desired rate if the rate of the frequency channel with the maximum bandwidth is greater than the minimum rate, and setting the rate of the frequency channel with the maximum bandwidth as the minimum rate if the rate of the frequency channel with the maximum bandwidth is less than the minimum rate. Please refer to fig. 3 for a detailed process of this step.
Step S207, calculating and restoring data, issuing the data to an edge server, and then adjusting gears; and then step S208 is entered to judge whether the gradual recovery is completed or not, if the gradual recovery is completed, step S209 is entered to exit the speed limiting state, and if not, step S210 is directly entered to wait for the next recovery period.
Specifically, step S207 may enter the recovery state when the POP real-time bandwidth is less than the cancellation speed limit line and the duration reaches the configuration threshold, and correspondingly, entering the recovery state to perform recovery calculation to obtain the recovery data includes: calculating the total number of the strategies for releasing the control state each time according to the issued strategy number, the gradual recovery proportion and the recovery period of the gear of the POP real-time bandwidth; and acquiring domain names with the number equal to the total number of the strategies of the control releasing state at each time one by one from the gear of the POP real-time bandwidth to the lowest gear, issuing the domain names to the cache server, and reducing the gear of the POP real-time bandwidth.
In addition, if the POP real-time bandwidth is greater than the cancellation speed limit line and less than or equal to the speed limit line, keeping the gear of the POP real-time bandwidth unchanged; and if the POP real-time bandwidth is larger than the cancellation speed limit line and the speed limit line, entering a gear increasing calculation process. If the bandwidth of the POP is higher than the speed limit line in the gradual recovery process, the gradual recovery state is interrupted, and the speed limit state is automatically adjusted.
Please refer to fig. 4 for a detailed process of step S207.
Fig. 3 is a method for calculating control data according to an embodiment of the present invention.
In step S302, control data is initialized.
In an alternative embodiment, the control data includes one or more channels, and a rate for each channel, wherein each channel corresponds to a domain name of a client; in other words, the control data is used to control or set the rate of one or more channels. Each gear of the POP can have a plurality of channels, and the same channel can be located on different gears.
In an alternative embodiment, the initialized control strategy is smaller than all control strategies in the current gear.
And step S303, determining that the real-time bandwidth of the POP can reach the maximum gear, judging whether the gear is larger than or smaller than the maximum gear, if so, entering step S304, and otherwise, entering step S305.
In an optional embodiment, the decision device records the gear at which the POP is located, and after calculating the maximum gear that can be reached by the POP according to the real-time bandwidth of the POP, the gear at which the POP is located may be compared with the calculated maximum gear to determine whether the gear at which the POP is located is greater than or equal to the maximum gear. For example, if the real-time bandwidth of a certain POP is 95M, the maximum gear that can be reached by the POP is 3 gears, but if the gear where the POP is currently located is 1 gear, which is recorded by the decision device, the step S305 needs to be entered; accordingly, if the real-time bandwidth of a certain POP is 85M, the maximum gear that can be reached by the POP is 1 gear, but if the gear in which the POP is currently located is 3 gears, which is recorded by the decision device, the step S304 needs to be entered.
And step S304, selecting the channel with the minimum bandwidth, deleting the channel from the control data, and reducing the current gear of the POP.
When the gear of the real-time bandwidth of the POP is larger than the maximum gear, the total bandwidth of the POP is overlarge, so that the total bandwidth of the POP needs to be reduced.
For example, if the real-time bandwidth of a certain POP is 85M, and is currently in the second gear (86.1M to 92.5M), the actual maximum gear of the POP is the first gear (80M to 86M), and the bandwidths of the 6 channels operated by the gear are: channel 1 bandwidth 18M, channel 2 bandwidth 10M, channel 3 bandwidth 15M, channel 4 bandwidth 22M, channel 5 bandwidth 11M, channel 6 bandwidth 9M, since channel 6 bandwidth is the smallest and belongs to the channel of control data. Since the POP is in a gear that is larger than the maximum gear that can actually be reached, channel 6 can now be deleted from the control data, channel 6 is no longer controlled, and the gear is then reduced to first gear.
Step S305 selects the channel with the largest bandwidth, and calculates the rate of the channel with the largest bandwidth.
In an alternative embodiment, the channel bandwidths in the gears where the POP is currently located may be sorted, and then the channel with the largest bandwidth may be selected to calculate the rate of the channel with the largest bandwidth.
In an alternative embodiment, the rate of the channel may be calculated according to the following formula:
Vn=Wn/(Rn-Dn) In which V isnIs the rate of the channel, WnIs the bandwidth of the channel, RnIs the number of requests for a channel, DnIs the number of rejects of the channel. The rate of the channel may be calculated in other manners in other embodiments, which are not limited by the invention.
Step S306, determine whether the rate of the channel with the largest bandwidth is smaller than the minimum rate of the channel, if so, go to step S307, otherwise, go to step S308.
In an alternative embodiment, the rate of the frequency channel with the largest bandwidth calculated in step S305 is compared with the frequency channel minimum rate in the configuration data, so as to determine whether the rate of the frequency channel with the largest bandwidth is smaller than the frequency channel minimum rate.
Step S307, the rate of the channel with the largest bandwidth is set as the minimum rate, and the set channel and its rate are added to the control data set.
Because the speed of the channel is too small, the invention sets the speed of the channel with the maximum bandwidth as the minimum speed to fully utilize the bandwidth of the POP and ensure that the speed of the channel does not influence the service quality because of too small speed.
And step S308, adjusting the speed of the channel with the maximum bandwidth to a desired speed, adding the adjusted speed and the corresponding channel into control data, and increasing the current gear of the POP.
To make the channel download rate more smooth and closer to the desired rate, the channel rate can be adjusted using a PID algorithm as follows:
Figure BDA0003022165710000091
wherein Kpv (k) is a proportional control algorithm that allows the rate to be quickly minimizedThe velocity is close; kd(v (k) -v (k-1)) is a differential control algorithm, and the result calculated by the proportional control algorithm can be adjusted to reduce the oscillation in the control process, so that the target speed is more smoothly approached;
Figure BDA0003022165710000092
the error value for each calculation and target can be accumulated for the integral control algorithm so that the rate actually reaches the target rate.
Step S309, determine the control data, and send it to the edge server.
In addition, the control data of each gear needs to be merged when the control data are issued each time, and when the control data are merged, if the control data exist in different gears in the same channel, the control data of the higher gear is issued; if the same channel has no control data in the high gear position but has control data in the low gear position, the channel is taken to be issued with the control data in the low gear position. For example, the control data of the first gear is: channel a has a rate of 10 and channel B has a rate of 15; POP is currently in second gear, and channel a has a rate of 8, and second gear has no control data for channel B. In this example, if there is a control rate of channel a in both the first gear and the second gear, the control data of channel a in the high gear is sent, and if there is no control data in channel B in the second gear, the control data of channel B in the first gear is sent. Therefore, the merged control data is: channel a has a rate of 8 and channel B has a rate of 15.
From the above process, it can be seen that, in the embodiment of the present invention, by dividing the bandwidth of the POP into different gears, the bandwidth and the rate of different channels in each gear can be respectively controlled, and all channels in the same POP cannot be uniformly controlled, so that the utilization rate of the bandwidth of the POP can be maximally improved while the quality of the client is ensured.
Fig. 4 is a method for calculating recovery data according to an embodiment of the present invention.
In an alternative embodiment, the recovery data also includes one or more channels, and a rate for each channel, where each channel corresponds to a domain name of a client; the recovered data is used to de-control the rate of one or more channels. Each gear of the POP can have a plurality of channels, and the same channel can be located on different gears.
And step S402, acquiring the POP real-time bandwidth.
Since the bandwidth of the POP changes during operation, the decision device needs to periodically read the real-time bandwidth of the POP from the data device.
And S403, judging whether the POP real-time bandwidth is larger than the cancellation speed limit line, if so, entering S404, and otherwise, entering S405.
And S404, judging whether the POP real-time bandwidth is larger than the speed limit line, if so, entering the step S407, and otherwise, entering the step S406.
Specifically, after reading the real-time bandwidth of the POP from the data device, the decision device compares the real-time bandwidth of the POP with the cancellation speed limit line in the configuration data to judge whether the real-time bandwidth of the POP is larger than the cancellation speed limit line. When the real-time bandwidth of the POP is greater than the cancellation speed limit line and greater than the speed limit line, indicating that the real-time bandwidth of the POP is higher, entering a speed limit state in the step S407 and calculating control data; when the POP real-time bandwidth is larger than the cancellation speed limit line but smaller than the speed limit line, the step S406 is required to be carried out to keep the gear and the control data unchanged; when the POP real-time bandwidth is less than or equal to the cancellation speed limit line, the process needs to go to step S405 to start recovery.
Step S405, judging whether to enter the recovery state for the first time, if so, entering step S408, otherwise, entering step S409.
In step S408, the recovery period is set to 1. It should be noted that the recovery period may be set to 1, or may be set to other numbers, letters, or symbols, as long as the representation is that the recovery state is entered for the first time, which is not limited by the present invention.
In step S409, the number of pieces of release control data is calculated.
In an alternative embodiment, the recovery data may be calculated according to the following formula: f (k) ═ count (x) × p × t; wherein, f (k) is the number of channels to be released from control, count (x) is the total number of channels already controlled, and p is the gradual recovery ratio; t is the recovery period. For example, if the total number of controlled channels is 100, the gradual recovery ratio is 10%, and the recovery period is 0.1 second, then f (k) — 100 × 10% × 0.1 ═ 1, that is, the number of channels that need to be released from control per recovery period is 1.
Step S410, increasing the recovery period by 1;
step S411, judging whether the recovery period multiplied by the gradual recovery ratio is larger than or equal to 1, if so, entering step S412 to quit the recovery state, and then ending the recovery process, otherwise, directly ending the recovery process.
It can be seen from the above process that the present invention realizes the smooth release control by releasing the predetermined number of channels every predetermined period, thus not only ensuring the bandwidth of the POP to be in a stable state, but also realizing the smooth control of the control rate delivered every time, and effectively avoiding the bandwidth of the POP from increasing and decreasing suddenly.
Fig. 5 is a schematic structural diagram of a decision device according to an embodiment of the present invention. The decision-making apparatus 1100 may vary significantly depending on configuration or performance, and may include one or more central processors 1122 (e.g., one or more processors) and memory 1132, one or more storage media 1130 (e.g., one or more mass storage devices) storing application programs 1142 or data 1144. Memory 1132 and storage media 1130 may be, among other things, transient storage or persistent storage. The program stored on the storage medium 1130 may include one or more modules (not shown), each of which may include a series of instructions operating on the SDK embedded apparatus 1100. Further, the central processor 1122 may be provided in communication with the storage medium 1130 to execute a series of instruction operations in the storage medium 1130 on the SDK embedded device 1100.
The decision device 1100 may also include one or more power supplies 1129, one or more wired or wireless network interfaces 1150, one or more input-output interfaces 1158, one or more keyboards 1156, and/or one or more operating systems 1141, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc.
Decision device 1100 may include memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for performing the SDK embedding features described above.
The decision device provided in the embodiment of the present invention can achieve the same technical effect as the bandwidth speed limiting method shown in fig. 2, and is not described herein again.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
planning bandwidth and gear division for the node POP in advance, wherein different real-time bandwidths are divided into different gears, and each channel can be in different gears and can be configured to correspond to different expected rates; the invention automatically adjusts the gears through the POP real-time bandwidth, automatically calculates the channel speed in each gear, and calculates control data according to the gear and the channel speed so as to adjust the channel speed to reach the expected speed in the gear; the bandwidth speed limit purpose is achieved by automatically adjusting the speed of the channels through the gears, so that the CDN system can not be broken down due to the fact that the speed of the channels is too high, and each channel at the expected speed can be protected from being interfered by other channels.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present invention and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A bandwidth speed limiting method, the method comprising:
acquiring the real-time bandwidth and state information of the POP, canceling a speed limit line and the speed limit line;
and judging whether the POP is in a speed-limiting state or not according to the state information, and calculating control data and sending the control data to an edge server when the POP is in the speed-limiting state and the real-time bandwidth of the POP is smaller than the speed-limiting line or the POP is not in the speed-limiting state and the real-time bandwidth of the POP is larger than the speed-limiting line.
2. The method of claim 1, further comprising the steps of:
acquiring a warning line and a preset maximum gear of the POP;
calculating a difference ratio according to the speed limit line, the warning line and a preset maximum gear number;
and calculating the actual maximum gear of the POP and the bandwidth line corresponding to each gear according to the difference ratio.
3. The method of claim 2, wherein the actual maximum gear of the POP and the bandwidth line for each gear are calculated according to the following formula:
W=S*(1+p%)mand S is the speed limit line of the POP, W is an alarm line, and m is the preset maximum gear number.
4. The method of claim 2, wherein the calculating control data comprises:
judging whether the current gear of the POP is larger than the actual maximum gear or not;
if the current frequency band is smaller than the preset frequency band, adjusting the speed of the channel with the largest bandwidth, adding the adjusted speed and the corresponding channel into the control data, and increasing the current gear of the POP;
and if the number of the channels is larger than the preset threshold, selecting the channel with the minimum bandwidth to delete from the control data, and reducing the current gear of the POP.
5. The method of claim 4, wherein the adjusting the rate of the channel with the largest bandwidth specifically comprises:
calculating the speed of the frequency channel with the maximum bandwidth, if the speed of the frequency channel with the maximum bandwidth is larger than the minimum speed, adjusting the speed of the frequency channel with the maximum bandwidth to the expected speed, and if the speed of the frequency channel with the maximum bandwidth is smaller than the minimum speed, setting the speed of the frequency channel with the maximum bandwidth as the minimum speed.
6. The method of claim 1, further comprising:
acquiring a cancellation speed limit line and a gradual recovery proportion of the POP;
and when the real-time bandwidth of the POP is smaller than the cancellation speed limit line, calculating the number of the channels to be cancelled, and sending the channels to be cancelled to the edge server.
7. The method of claim 6, wherein the number of channels to be de-controlled is calculated according to the following formula:
f (k) ═ count (x) × p × t, where count (x) is the total number of currently issued control channels, p is the gradual recovery ratio, t is the recovery period, and f (k) is the number of channels for which control is released.
8. A decision-making apparatus comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, the at least one instruction, the at least one program, set of codes, or set of instructions being loaded and executed by the processor to implement the bandwidth rate limiting method of any one of claims 1 to 7.
9. A bandwidth control system, characterized in that it comprises a decision means according to claim 8.
10. A computer readable storage medium having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by a processor to implement the bandwidth rate limiting method according to any one of claims 1 to 7.
CN202110405661.2A 2021-04-15 2021-04-15 Bandwidth speed limiting method, decision device and computer readable storage medium Active CN113193991B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110405661.2A CN113193991B (en) 2021-04-15 2021-04-15 Bandwidth speed limiting method, decision device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110405661.2A CN113193991B (en) 2021-04-15 2021-04-15 Bandwidth speed limiting method, decision device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN113193991A true CN113193991A (en) 2021-07-30
CN113193991B CN113193991B (en) 2023-05-19

Family

ID=76976996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110405661.2A Active CN113193991B (en) 2021-04-15 2021-04-15 Bandwidth speed limiting method, decision device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN113193991B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111333A (en) * 2011-02-17 2011-06-29 上海聚欣网络科技有限公司 Method, device and equipment for determining network speed limiting information in network node
WO2014059828A1 (en) * 2012-10-16 2014-04-24 中兴通讯股份有限公司 Method and system for adjusting control policy
CN110048968A (en) * 2019-04-12 2019-07-23 网宿科技股份有限公司 A kind of domain name bandwidth adjusting method and device
CN110690988A (en) * 2019-09-02 2020-01-14 网宿科技股份有限公司 Bandwidth control method, bandwidth control platform, server and storage medium
US20200314019A1 (en) * 2019-04-01 2020-10-01 Hewlett Packard Enterprise Development Lp Managing bandwidth based on user behavior
CN112039799A (en) * 2017-12-06 2020-12-04 贵州白山云科技股份有限公司 Method, server, system, device and medium for network bandwidth management
CN112260962A (en) * 2020-10-16 2021-01-22 网宿科技股份有限公司 Bandwidth control method and device
CN112468827A (en) * 2020-11-12 2021-03-09 鹏城实验室 Video acquisition method, device, equipment and computer readable storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111333A (en) * 2011-02-17 2011-06-29 上海聚欣网络科技有限公司 Method, device and equipment for determining network speed limiting information in network node
WO2014059828A1 (en) * 2012-10-16 2014-04-24 中兴通讯股份有限公司 Method and system for adjusting control policy
CN112039799A (en) * 2017-12-06 2020-12-04 贵州白山云科技股份有限公司 Method, server, system, device and medium for network bandwidth management
US20200314019A1 (en) * 2019-04-01 2020-10-01 Hewlett Packard Enterprise Development Lp Managing bandwidth based on user behavior
CN110048968A (en) * 2019-04-12 2019-07-23 网宿科技股份有限公司 A kind of domain name bandwidth adjusting method and device
CN110690988A (en) * 2019-09-02 2020-01-14 网宿科技股份有限公司 Bandwidth control method, bandwidth control platform, server and storage medium
CN112260962A (en) * 2020-10-16 2021-01-22 网宿科技股份有限公司 Bandwidth control method and device
CN112468827A (en) * 2020-11-12 2021-03-09 鹏城实验室 Video acquisition method, device, equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN113193991B (en) 2023-05-19

Similar Documents

Publication Publication Date Title
WO2020238810A1 (en) Alarm analysis method and related device
CN107204894B (en) Method and device for monitoring network service quality
CN110896365B (en) Traffic scheduling method in network node, server and storage medium
EP3806402B1 (en) Method for call admission of slices in a virtual communication network and of the congestion generated among services deployed on the slices
EP3152659B1 (en) Scheduling access to resources for efficient utilisation of network capacity and infrastructure
CN109428950B (en) Automatic scheduling method and system for IP address pool
CN106255144B (en) Base station load determination method and device
CN116418876A (en) Migration method and system of computing power network service and cloud management platform
CN104768171A (en) Network optimization method and device
CN115858161A (en) Method, device, equipment and storage medium for intelligently managing resources of data middleboxes
CN116743669A (en) Deep reinforcement learning packet scheduling method, system, terminal and medium
CN113193991A (en) Bandwidth speed limiting method, decision device and computer readable storage medium
CN112825511A (en) Switching network congestion management method, device, equipment and storage medium
CN114595970A (en) Resource scheduling intelligent decision method and device, electronic equipment and storage medium
US11706719B2 (en) Dynamic operation parameter optimization and modulation of a wireless network
WO2021149181A1 (en) System determination device, system determination method and system determination program
CN107038067B (en) Management method and device for processing resources in distributed stream processing
Abu-Shareha et al. Linear random early detection for congestion control at the router buffer
CN112437015A (en) Shunting scheduling method, device, system and computer readable storage medium
CN113556585B (en) Video stream limiting method and device
EP4340320A1 (en) Communication method, device and system
CN114553964A (en) Control method, device and equipment of simulcast system and simulcast system
EP3206441A1 (en) Power estimation method and apparatus
CN114079619A (en) Port flow sampling method and device
KR101813165B1 (en) Adaptive control plane management method for software defined network and apparatus thereof

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