CN111585824A - Resource distribution method, device and system and electronic equipment - Google Patents

Resource distribution method, device and system and electronic equipment Download PDF

Info

Publication number
CN111585824A
CN111585824A CN202010436302.9A CN202010436302A CN111585824A CN 111585824 A CN111585824 A CN 111585824A CN 202010436302 A CN202010436302 A CN 202010436302A CN 111585824 A CN111585824 A CN 111585824A
Authority
CN
China
Prior art keywords
bandwidth
idc
duration
available
outlet
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
CN202010436302.9A
Other languages
Chinese (zh)
Other versions
CN111585824B (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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN202010436302.9A priority Critical patent/CN111585824B/en
Publication of CN111585824A publication Critical patent/CN111585824A/en
Application granted granted Critical
Publication of CN111585824B publication Critical patent/CN111585824B/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
    • 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/14Network analysis or design
    • H04L41/147Network analysis or design for predicting network behaviour
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation

Landscapes

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

Abstract

The embodiment of the invention provides a resource distribution method, a device, a system and electronic equipment, wherein the method comprises the steps of collecting the outlet bandwidth of each IDC in real time, predicting the predicted outlet bandwidth of the IDC in the next sampling time length based on the historical outlet bandwidth of the IDC for each IDC in each IDC, updating the highest bandwidth available time length of the IDC in the current charging period in real time for each IDC in each IDC by comparing the outlet bandwidth of the IDC with the first preset bandwidth, selecting the IDC with the predicted outlet bandwidth larger than the first preset bandwidth and the highest bandwidth available time length larger than the preset time length as the highest bandwidth available time length in each IDC, calling the highest bandwidth available IDC to distribute resources according to the outlet bandwidth upper limit in the next sampling time length, and when the resources are distributed according to the outlet bandwidth upper limit of the IDC in the next sampling time length, the efficiency of resource distribution is improved without increasing traffic cost.

Description

Resource distribution method, device and system and electronic equipment
Technical Field
The present invention relates to the technical field of resource distribution networks, and in particular, to a method, an apparatus, a system, and an electronic device for resource distribution.
Background
With the development of Internet technology, more and more users obtain resource services through the Internet, and in order to better provide resource services for users, resource servers often build a CDN (Content Delivery Network) by self-building an IDC (Internet Data Center) and renting an IDC.
An operator mainly collects the flow charge of IDC by a 95 bandwidth peak value charging mode, in brief, the real-time bandwidth of the IDC is monitored for one IDC, the bandwidth peak value of the IDC in the sampling time length is collected every other sampling time length in a charging period and is used as the bandwidth sampling value of the IDC in the sampling time length, after the charging period is finished, the first 5% of the bandwidth sampling values with the maximum bandwidth value are removed from the collected bandwidth sampling values, the bandwidth sampling value with the maximum bandwidth value is selected from the remaining 95% of the bandwidth sampling values and is used as the charging bandwidth value of the charging period, and finally the flow charge in the charging period is calculated according to the charging bandwidth value of the charging period.
Therefore, it can be seen that the traffic cost in the 95 bandwidth peak charging mode depends on a portion with a higher bandwidth value, and when a bandwidth is abnormally increased in a charging period, the traffic cost in the charging period is increased, and during the operation of a CDN, resource distribution is an important reason for the abnormally increased bandwidth, where resource distribution refers to that after a resource service provider obtains a new resource, in order to enable the new resource to be normally obtained by a required user, the new resource is often required to be distributed to each IDC of the CDN as soon as possible, so if bandwidth control is not performed in the resource distribution process, the bandwidth of each node is abnormally increased in the resource distribution process, and the traffic cost is increased.
In order to solve the problem of bandwidth abnormality caused by resource distribution, in the prior art, a mode of setting a threshold to limit the resource distribution amount is adopted, so that abnormal increase of the outlet bandwidth is avoided.
The inventor finds that the prior art at least has the following problems in the process of implementing the invention:
in a time period when the resource demand of the user is small, a mode of setting a threshold value to limit the distribution amount is still adopted, so that new resources cannot be distributed to each IDC in time, and the resource distribution efficiency is low.
Disclosure of Invention
The embodiment of the invention aims to provide a resource distribution method, a resource distribution device, a resource distribution system and electronic equipment so as to reduce the flow cost of a resource service provider. The specific technical scheme is as follows:
in a first aspect of the present invention, there is provided a resource distribution method, including:
collecting the outlet bandwidth of each IDC in real time;
for each IDC in the IDCs, predicting the predicted outlet bandwidth of the IDC in the next sampling time length based on the historical outlet bandwidth of the IDC;
for each IDC in each IDC, updating the highest bandwidth available time length of the IDC in the current charging period in real time by comparing the size of the outlet bandwidth of the IDC with a first preset bandwidth, wherein the highest bandwidth available time length of one IDC is the time length difference between a specified time length and the peak bandwidth used time length of the IDC, the peak bandwidth used time length of one IDC is the time length when the outlet bandwidth of the IDC is greater than the first preset bandwidth in the current charging period, the specified time length is the product of the time length of the current charging period and a specified ratio, and the specified ratio is not greater than the ratio removed when the bandwidth cost is settled;
selecting IDCs with predicted outlet bandwidths larger than a first preset bandwidth and with highest bandwidth available duration larger than a preset duration from the IDCs as highest bandwidth available IDCs;
and calling the IDC with the highest available bandwidth to distribute resources according to the upper limit of the outlet bandwidth in the next sampling time length.
Further, before the invoking the highest bandwidth available IDC to distribute the resource according to the upper bound of the outlet bandwidth, the method further includes:
calculating a difference value of an outlet bandwidth upper limit of the highest bandwidth available IDC and a predicted outlet bandwidth of the highest bandwidth available IDC as a first bandwidth difference;
taking the product of the first bandwidth difference and the next sampling time length as a first distribution flow;
within the next sampling duration, the calling the highest bandwidth available IDC to distribute resources according to the upper limit of the outlet bandwidth includes:
and calling a resource distribution task with the data size of the highest bandwidth available IDC processing resource being the same as the first distribution flow in the next sampling time length.
Further, the method further comprises:
selecting IDCs with predicted outlet bandwidth not larger than a first preset bandwidth or with available highest bandwidth not larger than a preset time length from the IDCs as bandwidth limiting IDCs;
and calling the bandwidth limiting IDC to distribute resources according to the first preset bandwidth within the next sampling time length.
Further, before the invoking the bandwidth limiting IDC to distribute the resource according to the first preset bandwidth, the method further includes:
calculating a difference value between the first preset bandwidth and a predicted outlet bandwidth of the bandwidth limiting IDC to serve as a second bandwidth difference;
taking the product of the second bandwidth difference and the next sampling time length as a second distribution flow;
within the next sampling duration, calling the bandwidth limiting IDC to distribute resources according to the first preset bandwidth, and further including:
and calling a resource distribution task with the data size of the bandwidth limiting IDC processing resource being the same as the second distribution flow in the next sampling time length.
Further, the collecting the egress bandwidth of each IDC in real time includes:
collecting egress traffic for each of the IDCs and determining an egress bandwidth for each of the IDCs based on the egress traffic for each of the IDCs; and/or the presence of a gas in the gas,
and acquiring each outlet bandwidth through the API of each IDC.
In a second aspect of the present invention, there is also provided a resource distribution apparatus, including:
the bandwidth collection module is used for collecting the outlet bandwidth of each IDC in real time;
the bandwidth prediction module is used for predicting the predicted outlet bandwidth of each IDC in the IDCs in the next sampling time length based on the historical outlet bandwidth of the IDC;
an available duration updating module, configured to update, in real time, a maximum bandwidth available duration of the IDC in a current charging period by comparing an outlet bandwidth of the IDC with a first preset bandwidth for each IDC, where the maximum bandwidth available duration of one IDC is a difference between a specified duration and a peak bandwidth used duration of the IDC, the peak bandwidth used duration of one IDC is a duration in which the outlet bandwidth of the IDC is greater than the first preset bandwidth in the current charging period, the specified duration is a product of the duration of the current charging period and a specified proportion, and the specified proportion is not greater than a proportion removed when a bandwidth cost is settled;
the selection module is used for selecting IDCs with predicted outlet bandwidths larger than a first preset bandwidth and with highest bandwidth available duration larger than preset duration from the IDCs as highest bandwidth available IDCs;
and the IDC calling module is used for calling the IDC with the highest available bandwidth to distribute resources according to the upper limit of the outlet bandwidth in the next sampling time length.
Further, the apparatus further comprises:
a first distribution traffic determining module, configured to calculate, before the IDC invoking module performs the invoking of the highest bandwidth available IDC for resource distribution according to an outlet bandwidth upper limit, a difference between the outlet bandwidth upper limit of the highest bandwidth available IDC and a predicted outlet bandwidth of the highest bandwidth available IDC as a first bandwidth difference, and use a product of the first bandwidth difference and the next sampling duration as a first distribution traffic;
the IDC invoking module is specifically configured to invoke a resource distribution task in which the data size of the highest bandwidth available IDC processing resource is the same as the first distribution traffic size within the next sampling duration.
Further, the selecting module is further configured to select, as the bandwidth limiting IDC, an IDC whose predicted exit bandwidth is not greater than a first preset bandwidth or whose maximum available bandwidth is not greater than a preset duration from among the IDCs;
and the IDC calling module is further used for calling the bandwidth limiting IDC to distribute resources according to the first preset bandwidth in the next sampling time length.
Further, the method also comprises the following steps:
a second distribution traffic determining module, configured to calculate, before the IDC invoking module executes the invoking of the bandwidth limitation IDC to perform resource distribution according to the first preset bandwidth, a difference between the first preset bandwidth and a predicted outlet bandwidth of the bandwidth limitation IDC as a second bandwidth difference, and use a product of the second bandwidth difference and the next sampling duration as a second distribution traffic;
the IDC invoking module is specifically further configured to invoke a resource distribution task in which the data size of the bandwidth-limited IDC processing resource is the same as the second distribution traffic size within the next sampling duration.
Further, the bandwidth collection module is specifically configured to collect egress traffic of each IDC, and determine an egress bandwidth of each IDC based on the egress traffic of each IDC; and/or obtaining each said egress bandwidth through an API of each said IDC.
In a third aspect of the present invention, there is also provided a resource distribution system, including: data server, charging server, flow control server and distribution server, wherein:
the data server is used for collecting the outlet bandwidth of each IDC in real time, predicting the predicted outlet bandwidth of each IDC in the next sampling time length based on the historical outlet bandwidth of each IDC, sending the collected real-time bandwidth to the charging server, and sending the predicted outlet bandwidth to the flow control server;
the charging server is used for updating the highest bandwidth available time length of the IDC in the current charging period in real time by comparing the size of the outlet bandwidth of the IDC with a first preset bandwidth for each IDC in the IDCs, and sending the highest bandwidth available time length of each IDC to the flow control server, wherein the highest bandwidth available time length of one IDC is the time length difference between a specified time length and the peak bandwidth used time length of the IDC, the peak bandwidth used time length of one IDC is the time length when the outlet bandwidth of the IDC is greater than the first preset bandwidth in the current charging period, the specified time length is the product of the time length of the current charging period and a specified duty ratio, and the specified duty ratio is not greater than the duty ratio removed during bandwidth cost settlement;
the flow control server is used for selecting IDCs with predicted outlet bandwidths larger than a first preset bandwidth and with highest bandwidth available duration larger than preset duration from the IDCs as highest bandwidth available IDCs, and sending information of the highest bandwidth available IDCs to the distribution server;
and the distribution server is used for calling the highest bandwidth available IDC to distribute resources according to the upper limit of the outlet bandwidth according to the information of the highest bandwidth available IDC.
Further, the distribution server is specifically configured to calculate, according to the information of the highest bandwidth available IDC, a difference between an upper limit of an outlet bandwidth of the highest bandwidth available IDC and a predicted outlet bandwidth of the highest bandwidth available IDC as a first bandwidth difference, use a product of the first bandwidth difference and the next sampling duration as a first distribution traffic, and call a resource distribution task in which a data size of processing resources of the highest bandwidth available IDC is the same as the first distribution traffic within the next sampling duration.
Further, the traffic control server is further configured to select, from the IDCs, an IDC whose predicted exit bandwidth is not greater than a first preset bandwidth or whose maximum available bandwidth is not greater than a preset duration as a bandwidth limiting IDC, and send information of the bandwidth limiting IDC to the distribution server;
and the distribution server is further configured to call the bandwidth limiting IDC to distribute resources according to the first preset bandwidth within the next sampling duration.
Further, the distribution server is specifically configured to calculate a difference between the first preset bandwidth and the predicted exit bandwidth of the bandwidth limiting IDC as a second bandwidth difference, and use a product of the second bandwidth difference and the next sampling time duration as a second distribution traffic, and call a resource distribution task in which the data size of the processing resource of the bandwidth limiting IDC is the same as the second distribution traffic in the next sampling time duration.
Further, the data server is specifically configured to collect egress traffic of each IDC, and determine an egress bandwidth of each IDC based on the egress traffic of each IDC; and/or obtaining each said egress bandwidth through an API of each said IDC.
In yet another aspect of the present invention, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to execute any of the above-described resource distribution methods.
In yet another aspect of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform any of the above described resource distribution methods.
In the resource distribution method, the apparatus, the system, and the electronic device according to the embodiments of the present invention, since the specified duration is a product of a duration of a current charging period and the specified duty, and the specified duty is not greater than a duty removed in a bandwidth cost settlement, the specified duration of an IDC indicates a non-charging traffic charge available to the IDC in the charging period and a usage duration of an outlet bandwidth greater than a charging bandwidth, further, a used peak bandwidth duration of an IDC indicates a duration of the outlet bandwidth of the IDC in the current charging period greater than a first preset bandwidth, therefore, the used peak bandwidth duration of an IDC indicates a cumulative usage duration of the outlet bandwidth in the current charging period before a current time, and a highest available bandwidth duration calculated by the specified duration and the used peak bandwidth duration indicates a duration after the current time, the flow charge can be used in the current charging period without counting, and the available time of the outlet bandwidth of the charging bandwidth is longer than the available time of the outlet bandwidth of the charging bandwidth, so that the IDC available with the highest bandwidth determined based on the available time of the highest bandwidth can use the outlet bandwidth higher than the charging bandwidth without counting the flow charge, and when the resources are distributed in the next sampling time according to the outlet bandwidth upper limit of the IDC, the efficiency of resource distribution is improved while the flow charge is not increased.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below.
Fig. 1 is a schematic structural diagram of a resource distribution system according to an embodiment of the present invention;
FIG. 2 is an interaction diagram provided by one embodiment of the present invention;
FIG. 3 is a flowchart of a resource distribution method according to an embodiment of the present invention;
FIG. 4 is a flowchart of a resource distribution method according to another embodiment of the present invention;
FIG. 5 is a flowchart of a resource distribution method according to another embodiment of the present invention;
fig. 6 is a schematic structural diagram of a resource distribution apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a resource distribution system according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to provide a scheme for improving efficiency of resource distribution without increasing traffic cost, embodiments of the present invention provide a method, an apparatus, a system, and an electronic device for resource distribution, and the following describes embodiments of the present invention with reference to the accompanying drawings. And the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
In order to more clearly illustrate the embodiments of the present invention, the following technical concept of the present invention will be briefly described. For the 95 bandwidth peak charging mode, the outlet bandwidth corresponding to the removed percentage in the cost settlement is not used as the charging bandwidth value, so that for a charging period, there is a free peak bandwidth usage duration, that is, a specified duration.
Illustratively, one billing cycle is one month (30 days), the sampling duration is 5 minutes, then 12 bandwidth samples are taken in 1 hour, 12 × 24 × 30 bandwidth samples are taken in one month, the first 5% is 8640 × 5% > -432 bandwidth samples, the duration corresponds to 432 × 5 ═ 2160 minutes (36 hours), that is, the specified duration is 36 hours, which indicates that there is a maximum bandwidth usage of 36 hours in one month, not counting the traffic cost.
Because the 95 bandwidth peak charging mode is to remove the 5% bandwidth sampling value with the highest bandwidth, the largest charging bandwidth value is selected from the remaining 95% bandwidth sampling values as the charging bandwidth value, and the charging bandwidth value of one IDC often appears in a time period with a higher bandwidth resource demand, when the bandwidth resource demand is higher at the current moment, the prior art allocates resource requests to all IDCs according to the weight scheduling strategy, and according to the weight of each IDC, the higher bandwidth resource demand is uniformly allocated to all IDCs, so that the bandwidth sampling value of each IDC is higher, and finally the calculated flow cost is higher.
In the prior art, the situation that the outlet bandwidth is abnormally increased is avoided by setting a threshold to limit the resource distribution amount, but the resource distribution amount also needs to be limited in a time period with a small bandwidth requirement by adopting the cutting mode, so that the resource distribution efficiency is low.
In order to improve the efficiency of resource distribution without increasing the traffic cost, in the embodiment of the present invention, the highest bandwidth available duration of each IDC may be determined through the outlet bandwidth of each IDC collected in real time, and since the highest bandwidth available duration represents the non-charging traffic cost that can be used in the current charging period after the current time and is greater than the available duration of the outlet bandwidth of the charging bandwidth, the highest bandwidth available IDC determined based on the highest bandwidth available duration is an IDC that can use the outlet bandwidth that is greater than the charging bandwidth without charging the traffic cost, so when the resource distribution is performed according to the outlet bandwidth upper limit of the IDC in the next sampling duration, the efficiency of resource distribution is improved without increasing the traffic cost.
The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
In an embodiment of the present invention, a resource distribution system is provided, as shown in fig. 1, the system includes a data server 101, a charging server 102, a traffic control server 103, and a distribution server 104, and in an actual use process, the data server 101 and the distribution server 104 are respectively connected to a CDN, where the CDN includes a plurality of IDCs.
As shown in fig. 2, an interaction diagram of a resource distribution system is provided for one embodiment of the present invention, which includes:
step 201: the data server collects the outlet bandwidth of the IDCs in real time and predicts, for each of the IDCs, a predicted outlet bandwidth for the IDC within a next sampling duration based on the historical outlet bandwidth of the IDC.
Step 202: and the data server sends the collected real-time bandwidth to the charging server.
Step 203: and the data server sends the predicted outlet bandwidth of each IDC to the flow control server.
Step 204: and the charging server updates the highest bandwidth available time length of the IDC in the current charging period in real time by comparing the size of the outlet bandwidth of the IDC with the first preset bandwidth aiming at each IDC in each IDC.
Step 205: the charging server sends the highest bandwidth available time of each IDC to the flow control server.
Step 206: and the flow control server selects the IDC of which the predicted outlet bandwidth is greater than the first preset bandwidth and the available time of the highest bandwidth is greater than the preset time from the IDCs as the available IDC of the highest bandwidth.
Step 207: the flow control server sends the information of the highest bandwidth available IDC to the distribution server.
Step 208: and the distribution server calls the highest bandwidth available IDC to distribute resources according to the upper limit of the outlet bandwidth according to the information of the highest bandwidth available IDC.
In the above steps, the data server 101 may collect the egress bandwidth of each IDC in the CDN in real time, where, as known to those skilled in the art, the real-time collection indicates that the real-time collection duration is obtained every other real-time collection duration, where the real-time collection duration may be 1 s.
An exemplary real-time bandwidth to collect IDC _1 at 12 hours, 27 minutes, 45 seconds, 1 month, 15 months, 2020 is 2.5Mbps, and IDC _1 at 12 hours, 27 minutes, 46 seconds, 1 month, 15 days, 2020 is 2.7 Mbps.
After collecting the egress bandwidth of each IDC, the data server 101 aggregates the collected egress bandwidth of each IDC, and sends the aggregated data to the charging server 102.
Further, the data server 101 may also predict, for each IDC of the IDCs, a predicted outlet bandwidth of the IDC for the next sampling duration based on the historical outlet bandwidth of the IDC.
Alternatively, the data server 101 may calculate a change rate of the outlet bandwidth at the current time based on the historical outlet bandwidth, and determine a predicted outlet bandwidth for the IDC within the next sampling duration based on the change rate and the outlet bandwidth.
After the data server 101 determines the predicted egress bandwidth, the predicted egress bandwidth for each IDC may be sent to the traffic control server 103 for subsequent use by the traffic control server 103.
Optionally, to avoid frequent interaction and save resources, the data server 101 may periodically send the data after the outlet bandwidth aggregation of each IDC to the charging server 102 and periodically send the data after the outlet bandwidth aggregation of each IDC to the traffic control server 103, for example, send the aggregated data to the charging server 102 and the traffic control server 103 every 1 minute.
After receiving the egress bandwidth of each IDC sent by the data server 101, the charging server 102 may update the maximum bandwidth available duration of the IDC in the current charging period based on the egress bandwidth of one IDC.
Optionally, the maximum bandwidth available duration of one IDC is a duration difference between the specified duration and the peak bandwidth used duration of the IDC, the peak bandwidth used duration of one IDC is a duration in which the exit bandwidth of the IDC is greater than a first preset bandwidth in the current charging period, the specified duration is a product of the duration of the current charging period and a specified duty ratio, and the specified duty ratio is not greater than the duty ratio removed when the bandwidth cost is settled.
For example, in the conventional 95 bandwidth peak charging method, the proportion removed in the bandwidth cost settlement is 5%, so that the specified proportion is less than or equal to 5%, for example, 5%, and if the charging period is 1 month (30 days), the specified duration can be calculated to be 36 hours.
Optionally, the first preset bandwidth may be determined based on historical bandwidth data and experience, for example, the charging bandwidth value of IDC _2 in month 2 is 3Mbps, the charging bandwidth value in month 3 is 3.2Mbps, and the charging bandwidth value in month 4 is 2.8Mbps, then the average value of the charging bandwidth values in month 2, month 3, and month 4 of 3Mbps may be taken as the first preset bandwidth in month 5, and the charging bandwidth value in this month may be predicted by combining data such as holidays and the like as the first preset bandwidth.
After receiving the outlet bandwidth of each IDC, the charging server 102 compares the outlet bandwidth of the IDC with a first preset bandwidth for each IDC, and if the outlet bandwidth is greater than the first preset bandwidth, the used time of the peak bandwidth of the IDC is counted.
Illustratively, the first preset bandwidth is 5Mbps, the charging server 102 receives that the real-time bandwidth of IDC _3 collected by the data server 101 from 27 minutes and 45 seconds at 12 days 1, 15, 2020 to 28 minutes and 45 seconds at 12 days 1, 15, 2020 is 5.5Mbps, and then the charging server 102 increases the elapsed time of the peak bandwidth of IDC _3 by 1 minute.
After determining the peak bandwidth elapsed time length for each IDC, the billing server 102 may calculate a maximum bandwidth availability time length for each IDC based on the peak bandwidth elapsed time length, the maximum bandwidth availability time length for one IDC being a time length difference between the specified time length for the IDC and the peak bandwidth elapsed time length for the IDC.
Illustratively, the specified duration of IDC _4 is 36 hours, the peak bandwidth used duration is 10 hours, and the highest bandwidth available duration of IDC _4 is 36-10-26 hours.
After the charging server 102 determines the highest bandwidth available duration of each IDC, the highest bandwidth available duration of each IDC may be aggregated and sent to the traffic control server 103.
After receiving the maximum bandwidth available duration of each IDC sent by the charging server 102 and the predicted exit bandwidth of each IDC sent by the data server 101, the traffic control server 103 selects, as the maximum bandwidth available IDC, the IDC whose predicted exit bandwidth is greater than the first preset bandwidth and whose maximum bandwidth available duration is greater than the preset duration from each IDC.
Optionally, the preset time duration may be determined empirically or according to requirements, for example, may be 10 hours, where the highest bandwidth available IDC is the IDC with the highest bandwidth available time duration being greater than 10 hours, and the predicted egress bandwidth is greater than the first preset bandwidth.
For example, if the highest bandwidth available duration of the highest bandwidth available IDC _1 is 15 hours and the preset duration is 10 hours, the highest bandwidth available IDC _1 may continue to be used for 5 hours.
Optionally, the preset time period in the current charging cycle may be a time period with a high bandwidth demand, such as a late peak, a weekend, a holiday, a summer holiday, and the like.
In an embodiment of the present invention, a resource distribution method is provided, as shown in fig. 3, including:
s301: the egress bandwidth of each IDC is collected in real time.
S302: for each of the IDCs, a predicted outlet bandwidth for the IDC is predicted for a next sampling duration based on historical outlet bandwidths of the IDC.
S303: aiming at each IDC in each IDC, updating the highest bandwidth available time length of the IDC in the current charging period in real time by comparing the size of the outlet bandwidth of the IDC with the first preset bandwidth, wherein the highest bandwidth available time length of one IDC is the time length difference between the specified time length and the peak bandwidth used time length of the IDC, the peak bandwidth used time length of one IDC is the time length when the outlet bandwidth of the IDC is larger than the first preset bandwidth in the current charging period, the specified time length is the product of the time length of the current charging period and the specified ratio, and the specified ratio is not larger than the ratio removed when the bandwidth cost is settled.
S304: selecting IDCs with predicted outlet bandwidths larger than a first preset bandwidth and with highest bandwidth available duration larger than a preset duration from the IDCs as highest bandwidth available IDCs;
s305: and calling the highest bandwidth available IDC to distribute the resources according to the upper limit of the outlet bandwidth in the next sampling time length.
In the resource distribution method shown in fig. 3 provided in the embodiment of the present invention, since the specified duration is a product of a duration of a current charging period and the specified proportion, and the specified proportion is not greater than the proportion removed during the bandwidth cost settlement, the specified duration of an IDC indicates a non-charging traffic charge available to the IDC in the charging period and a usage duration of an outlet bandwidth greater than the charging bandwidth, further, a used peak bandwidth duration of an IDC indicates a duration that the outlet bandwidth of the IDC is greater than a first preset bandwidth in the current charging period, therefore, the used peak bandwidth duration of an IDC indicates a cumulative usage duration that the outlet bandwidth is greater than the charging bandwidth in the current charging period before the current time, and further, a highest available bandwidth duration calculated by the specified duration and the used peak bandwidth duration indicates a non-charging traffic charge available to the IDC in the current charging period after the current time, and the available duration of the outlet bandwidth is greater than the charging bandwidth, so that the highest bandwidth available IDC determined based on the highest bandwidth available duration is the IDC which can use the outlet bandwidth higher than the charging bandwidth without counting the traffic cost, and when the resource is distributed according to the outlet bandwidth upper limit of the IDC in the next sampling duration, the traffic cost is not increased, and the resource distribution efficiency is improved.
In one embodiment, the resource distribution method shown in fig. 3 may be applied to any device in the scheduling system, such as a data server and a scheduling server, or the server may be separately configured to perform the above steps.
For the above step S301, the egress bandwidth of each IDC in the CDN may be collected in real time, where, as known to those skilled in the art, the real-time collection indicates that the egress bandwidth is obtained every other collection duration.
For the step S302, optionally, the highest bandwidth available duration of one IDC is a duration difference between the specified duration and the peak bandwidth used duration of the IDC, the peak bandwidth used duration of one IDC is a duration in which the exit bandwidth of the IDC is greater than a first preset bandwidth in the current charging period, the specified duration is a product of the duration of the current charging period and a specified duty ratio, and the specified duty ratio is not greater than the duty ratio removed when the bandwidth cost is settled.
For the above step S303, optionally, the highest bandwidth available IDC is used to distribute the resources according to the upper bound of the egress bandwidth.
Specifically, the implementation manner of the above steps is the same as or similar to that of the above interaction embodiment, and is not described herein again.
Optionally, the step S301 may be implemented in any one of the following two manners, where:
the first mode is as follows: the egress traffic for each IDC is collected and an egress bandwidth for each IDC is determined based on the egress traffic for each IDC.
Optionally, the first method may be executed for an IDC built by a resource provider, and the egress bandwidth of the IDC may be obtained through aggregation calculation based on the traffic of the egress of the acquisition switch.
The second mode is as follows: the egress bandwidth of each is obtained through the API of each IDC.
Optionally, the second method may be executed for an IDC in a commercial CDN leased by a resource service provider, and since the commercial CDN leased by the resource service provider does not have a right to acquire traffic of an outlet of the switch, the outlet bandwidth of the IDC may be acquired in an API (Application Programming Interface) manner, it needs to be noted that there is a time delay, generally about 15 minutes, when the outlet bandwidth of the IDC is acquired in the API manner.
In another embodiment of the present invention, a resource distribution method is provided, as shown in fig. 4, including:
s401: the egress bandwidth of each IDC is collected in real time.
S402: for each of the IDCs, a predicted outlet bandwidth for the IDC is predicted for a next sampling duration based on historical outlet bandwidths of the IDC.
S403: and aiming at each IDC in each IDC, updating the highest bandwidth available duration of the IDC in the current charging period in real time by comparing the size of the outlet bandwidth of the IDC with the first preset bandwidth.
S404: and selecting the IDC with the predicted outlet bandwidth larger than the first preset bandwidth and the highest bandwidth available duration larger than the preset duration from the IDCs as the highest bandwidth available IDC.
The steps S401-404 are the same as or similar to the steps S301-S304, and are not described herein again.
S405: and calculating the difference value of the outlet bandwidth upper limit of the IDC with the highest bandwidth and the predicted outlet bandwidth of the IDC with the highest bandwidth as a first bandwidth difference.
In this step, in order to determine the data size of the resource distribution task that can be allocated to each IDC with the highest bandwidth, the size of the remaining available bandwidth after the outlet bandwidth that maintains the IDC function is calculated first, because the resource distribution task is the next sampling duration, the resource distribution task is used to replace the outlet bandwidth that is actually required to maintain the IDC function in the next sampling duration, because the IDC with the highest bandwidth that can maintain the outlet bandwidth upper limit without increasing the traffic cost, in order to improve the efficiency of resource distribution, the IDC with the highest bandwidth that can be used is taken to operate according to the outlet bandwidth upper limit, so that the first bandwidth difference indicates the largest outlet bandwidth for resource distribution in the next sampling duration.
S406: and taking the product of the first bandwidth difference and the next sampling time length as the first distribution flow.
In this step, the product of the first bandwidth difference and the next sampling duration identifies the amount of data that can be distributed during the next sampling duration when the work is performed according to the first bandwidth difference.
S407: and calling a resource distribution task with the data size of the highest bandwidth available IDC processing resource being the same as the first distribution flow size in the next sampling time length.
In this step, a resource distribution task with the same data size as the first distribution traffic can be created, and then the highest bandwidth available IDC is called to process the resource distribution task.
In the resource distribution method shown in fig. 4 provided in the embodiment of the present invention, because the highest bandwidth available IDC determined based on the highest bandwidth available duration is the IDC that can use the outlet bandwidth higher than the charging bandwidth without counting the traffic cost, when the resource is distributed according to the outlet bandwidth upper limit of the IDC in the next sampling duration, the efficiency of resource distribution is improved without increasing the traffic cost.
Further, on the basis of the resource distribution method shown in fig. 4, as shown in fig. 5, the method may further include the following steps:
s408: and selecting IDCs with predicted exit bandwidth not larger than a first preset bandwidth or with available highest bandwidth not larger than a preset time as bandwidth limiting IDCs in each IDC.
S409: and calculating the difference value of the first preset bandwidth and the predicted outlet bandwidth of the bandwidth limiting IDC as a second bandwidth difference.
S410: and taking the product of the second bandwidth difference and the next sampling time length as a second distribution flow.
S411: and calling the bandwidth limitation IDC to distribute the resources according to the first preset bandwidth in the next sampling time length.
And in the next sampling time length, calling a resource distribution task with the data size of the bandwidth limiting IDC processing resource being the same as the size of the second distribution flow.
In the resource distribution method shown in fig. 5 provided in the embodiment of the present invention, since the bandwidth limiting IDC may be called, and the resource distribution is performed according to the first preset bandwidth, the efficiency of resource distribution is improved without increasing the traffic cost.
Based on the same inventive concept, according to the resource distribution method provided in the embodiments of the present invention, the embodiments of the present invention further provide a resource distribution apparatus, as shown in fig. 6, the apparatus includes:
a bandwidth collecting module 601, configured to collect the egress bandwidth of each IDC in real time;
a bandwidth prediction module 602, configured to predict, for each IDC in the IDCs, a predicted outlet bandwidth of the IDC within a next sampling duration based on a historical outlet bandwidth of the IDC;
an available duration updating module 603, configured to update, in real time, a maximum bandwidth available duration of the IDC in a current charging period by comparing an outlet bandwidth of the IDC with a first preset bandwidth for each IDC, where the maximum bandwidth available duration of one IDC is a difference between a specified duration and a peak bandwidth used duration of the IDC, the peak bandwidth used duration of one IDC is a duration in which the outlet bandwidth of the IDC is greater than the first preset bandwidth in the current charging period, the specified duration is a product of the duration of the current charging period and a specified proportion, and the specified proportion is not greater than the proportion removed when the bandwidth cost is settled;
a selecting module 604, configured to select, from the IDCs, an IDC with a predicted exit bandwidth greater than a first preset bandwidth and a maximum bandwidth available duration greater than a preset duration as a maximum bandwidth available IDC;
and an IDC invoking module 605, configured to invoke the highest bandwidth available IDC to distribute the resources according to the upper limit of the egress bandwidth in the next sampling duration.
Further, the apparatus further comprises:
a first distribution flow determining module, configured to calculate, before the IDC invoking module invokes the highest bandwidth available IDC to perform resource distribution according to the outlet bandwidth upper limit within the next sampling duration, a difference between the outlet bandwidth upper limit of the highest bandwidth available IDC and a predicted outlet bandwidth of the highest bandwidth available IDC as a first bandwidth difference, and take a product of the first bandwidth difference and the next sampling duration as a first distribution flow;
and the IDC calling module is specifically used for calling a resource distribution task with the data size of the highest bandwidth available IDC processing resource being the same as the first distribution flow size in the next sampling time length.
Further, the selection module is further configured to select, as the bandwidth limiting IDC, an IDC whose predicted exit bandwidth is not greater than a first preset bandwidth or whose maximum available bandwidth is not greater than a preset duration from among the IDCs;
and the IDC calling module is also used for calling the bandwidth limiting IDC to distribute resources according to the first preset bandwidth in the next sampling time length.
Further, the method also comprises the following steps:
a second distribution flow determining module, configured to calculate, before the IDC invoking module executes resource distribution in a next sampling duration and invokes the bandwidth limiting IDC according to the first preset bandwidth, a difference between the first preset bandwidth and a predicted outlet bandwidth of the bandwidth limiting IDC as a second bandwidth difference, and take a product of the second bandwidth difference and the next sampling duration as a second distribution flow;
the IDC calling module is specifically used for calling a resource distribution task with the same data size of the bandwidth limitation IDC processing resource as the second distribution flow in the next sampling time length.
Further, the bandwidth collection module is specifically configured to collect the egress traffic of each IDC, and determine the egress bandwidth of each IDC based on the egress traffic of each IDC; and/or, obtaining the egress bandwidth of each IDC through the API of each IDC.
In the resource distribution apparatus shown in fig. 6 provided in the embodiment of the present invention, since the specified duration is a product of a duration of the current charging period and the specified proportion, and the specified proportion is not greater than the proportion removed during the bandwidth cost settlement, the specified duration of an IDC indicates a non-counted traffic charge available to the IDC in the charging period and a usage duration of an exit bandwidth greater than the charging bandwidth, further, a used peak bandwidth duration of an IDC indicates a duration that the exit bandwidth of the IDC is greater than a first preset bandwidth in the current charging period, therefore, the used peak bandwidth duration of an IDC indicates a cumulative usage duration that the exit bandwidth is greater than the charging bandwidth in the current charging period before the current time, and further, a used highest bandwidth duration calculated by the specified duration and the used peak bandwidth duration indicates a used traffic charge available to the IDC in the current charging period after the current time, and the available duration of the outlet bandwidth is greater than the charging bandwidth, so that the highest bandwidth available IDC determined based on the highest bandwidth available duration is the IDC which can use the outlet bandwidth higher than the charging bandwidth without counting the traffic cost, and when the resource is distributed according to the outlet bandwidth upper limit of the IDC in the next sampling duration, the traffic cost is not increased, and the resource distribution efficiency is improved.
Based on the same inventive concept, according to the resource distribution method provided in the embodiment of the present invention, an embodiment of the present invention further provides a resource distribution system, as shown in fig. 7, including: data server 701, charging server 702, flow control server 703 and distribution server 704, wherein:
a data server 701, configured to collect the outlet bandwidth of each IDC in real time, predict, for each IDC in each IDC, a predicted outlet bandwidth of the IDC within a next sampling duration based on a historical outlet bandwidth of the IDC, and send the collected real-time bandwidth to a charging server 702 and send the predicted outlet bandwidth to a traffic control server 703;
the charging server 702 is configured to update, for each IDC, a maximum bandwidth available duration of the IDC in a current charging period in real time by comparing an outlet bandwidth of the IDC with a first preset bandwidth, and send the maximum bandwidth available duration of each IDC to the traffic control server 703, where the maximum bandwidth available duration of one IDC is a duration difference between a specified duration and a peak bandwidth used duration of the IDC, the peak bandwidth used duration of one IDC is a duration in which the outlet bandwidth of the IDC is greater than the first preset bandwidth in the current charging period, the specified duration is a product of the duration of the current charging period and a specified proportion, and the specified proportion is not greater than a proportion removed when the bandwidth cost is settled;
the traffic control server 703 is configured to select, from the IDCs, an IDC whose predicted exit bandwidth is greater than a first preset bandwidth and whose maximum bandwidth available duration is greater than a preset duration as a maximum bandwidth available IDC, and send information of the maximum bandwidth available IDC to the distribution server 704;
and the distribution server 704 is used for calling the highest bandwidth available IDC to distribute the resources according to the upper limit of the outlet bandwidth according to the information of the highest bandwidth available IDC.
Further, the distribution server 704 is specifically configured to calculate, according to the information of the highest bandwidth available IDC, a difference between an upper limit of an outlet bandwidth of the highest bandwidth available IDC and a predicted outlet bandwidth of the highest bandwidth available IDC as a first bandwidth difference, and use a product of the first bandwidth difference and a next sampling duration as a first distribution traffic, and call a resource distribution task in which a data size of a processing resource of the highest bandwidth available IDC is the same as the first distribution traffic within the next sampling duration.
Further, the traffic control server 703 is further configured to select, from the IDCs, an IDC whose predicted outlet bandwidth is not greater than a first preset bandwidth or whose maximum available bandwidth is not greater than a preset duration as a bandwidth limiting IDC, and send information of the bandwidth limiting IDC to the distribution server;
and the distribution server 704 is further configured to invoke the bandwidth limitation IDC to distribute the resources according to the first preset bandwidth in the next sampling duration.
Further, the distribution server 704 is specifically configured to calculate a difference between the first preset bandwidth and the predicted exit bandwidth of the bandwidth limiting IDC as a second bandwidth difference, and use a product of the second bandwidth difference and a next sampling duration as a second distribution traffic, and call a resource distribution task in which the data size of the processing resource of the bandwidth limiting IDC is the same as the size of the second distribution traffic in the next sampling duration.
Further, the data server 701 is specifically configured to collect egress traffic of each IDC, and determine an egress bandwidth of each IDC based on the egress traffic of each IDC; and/or, obtaining the egress bandwidth of each IDC through the API of each IDC.
In the resource distribution system shown in fig. 7 provided in the embodiment of the present invention, since the specified duration is a product of a duration of the current charging period and the specified proportion, and the specified proportion is not greater than the proportion removed during the bandwidth cost settlement, the specified duration of an IDC indicates a non-counted traffic charge available to the IDC in the charging period and a usage duration of an exit bandwidth greater than the charging bandwidth, further, a used peak bandwidth duration of an IDC indicates a duration that the exit bandwidth of the IDC is greater than a first preset bandwidth in the current charging period, therefore, the used peak bandwidth duration of an IDC indicates a cumulative usage duration that the exit bandwidth is greater than the charging bandwidth in the current charging period before the current time, and further, a used highest bandwidth duration calculated by the specified duration and the used peak bandwidth duration indicates a used traffic charge available to the IDC in the current charging period after the current time, and the available duration of the outlet bandwidth is greater than the charging bandwidth, so that the highest bandwidth available IDC determined based on the highest bandwidth available duration is the IDC which can use the outlet bandwidth higher than the charging bandwidth without counting the traffic cost, and when the resource is distributed according to the outlet bandwidth upper limit of the IDC in the next sampling duration, the traffic cost is not increased, and the resource distribution efficiency is improved.
An embodiment of the present invention further provides an electronic device, as shown in fig. 8, which includes a processor 801, a communication interface 802, a memory 803, and a communication bus 804, where the processor 801, the communication interface 802, and the memory 803 complete mutual communication through the communication bus 804,
a memory 803 for storing a computer program;
the processor 801 is configured to implement the following steps when executing the program stored in the memory 803:
collecting the outlet bandwidth of each IDC in real time;
for each IDC in the IDCs, predicting the predicted outlet bandwidth of the IDC in the next sampling time length based on the historical outlet bandwidth of the IDC;
for each IDC in each IDC, updating the highest bandwidth available time length of the IDC in the current charging period in real time by comparing the size of the outlet bandwidth of the IDC with a first preset bandwidth, wherein the highest bandwidth available time length of one IDC is the time length difference between a specified time length and the peak bandwidth used time length of the IDC, the peak bandwidth used time length of one IDC is the time length when the outlet bandwidth of the IDC is greater than the first preset bandwidth in the current charging period, the specified time length is the product of the time length of the current charging period and a specified ratio, and the specified ratio is not greater than the ratio removed when the bandwidth cost is settled;
selecting IDCs with predicted outlet bandwidths larger than a first preset bandwidth and with highest bandwidth available duration larger than a preset duration from the IDCs as highest bandwidth available IDCs;
and calling the IDC with the highest available bandwidth to distribute resources according to the upper limit of the outlet bandwidth in the next sampling time length.
In the electronic device shown in fig. 8 provided in the embodiment of the present invention, since the specified duration is a product of a duration of the current charging period and the specified proportion, and the specified proportion is not greater than the proportion removed in the bandwidth cost settlement, the specified duration of an IDC represents a usage duration of an egress bandwidth that is greater than the charging bandwidth and is available to the IDC during the charging period, further, a used peak duration of an IDC represents a duration that is greater than a first preset bandwidth and is available to the IDC during the current charging period, and therefore, the used peak duration of an IDC represents an accumulated usage duration that is greater than the charging bandwidth during the current charging period before the current time, and further, a used maximum bandwidth duration calculated from the specified duration and the used peak duration represents a usable traffic charge available after the current time and is available to the IDC during the current charging period, and the available duration of the outlet bandwidth is greater than the charging bandwidth, so that the highest bandwidth available IDC determined based on the highest bandwidth available duration is the IDC which can use the outlet bandwidth higher than the charging bandwidth without counting the traffic cost, and when the resource is distributed according to the outlet bandwidth upper limit of the IDC in the next sampling duration, the traffic cost is not increased, and the resource distribution efficiency is improved.
It should be noted that other embodiments of the foregoing electronic device implementing the filtering method are the same as the filtering method mentioned in the foregoing method embodiment, and are not described herein again.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment of the present invention, a computer-readable storage medium is further provided, which has instructions stored therein, and when the instructions are executed on a computer, the instructions cause the computer to execute the resource distribution method described in any of the above embodiments.
In a further embodiment of the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the resource distribution method of any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the invention to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, from one website site, computer, server, or data center to another website site, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the apparatus, the system, the electronic device, the computer-readable storage medium, and the computer program embodiment, since they are substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (13)

1. A method for resource distribution, comprising:
collecting the outlet bandwidth of each IDC in real time;
for each IDC in the IDCs, predicting the predicted outlet bandwidth of the IDC in the next sampling time length based on the historical outlet bandwidth of the IDC;
for each IDC in each IDC, updating the highest bandwidth available time length of the IDC in the current charging period in real time by comparing the size of the outlet bandwidth of the IDC with a first preset bandwidth, wherein the highest bandwidth available time length of one IDC is the time length difference between a specified time length and the peak bandwidth used time length of the IDC, the peak bandwidth used time length of one IDC is the time length when the outlet bandwidth of the IDC is greater than the first preset bandwidth in the current charging period, the specified time length is the product of the time length of the current charging period and a specified ratio, and the specified ratio is not greater than the ratio removed when the bandwidth cost is settled;
selecting IDCs with predicted outlet bandwidths larger than a first preset bandwidth and with highest bandwidth available duration larger than a preset duration from the IDCs as highest bandwidth available IDCs;
and calling the IDC with the highest available bandwidth to distribute resources according to the upper limit of the outlet bandwidth in the next sampling time length.
2. The method according to claim 1, wherein prior to said invoking said highest bandwidth available IDC for distribution of resources per an egress bandwidth cap, said method further comprises:
calculating a difference value of an outlet bandwidth upper limit of the highest bandwidth available IDC and a predicted outlet bandwidth of the highest bandwidth available IDC as a first bandwidth difference;
taking the product of the first bandwidth difference and the next sampling time length as a first distribution flow;
within the next sampling duration, the calling the highest bandwidth available IDC to distribute resources according to the upper limit of the outlet bandwidth includes:
and calling a resource distribution task with the data size of the highest bandwidth available IDC processing resource being the same as the first distribution flow in the next sampling time length.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
selecting IDCs with predicted outlet bandwidth not larger than a first preset bandwidth or with available highest bandwidth not larger than a preset time length from the IDCs as bandwidth limiting IDCs;
and calling the bandwidth limiting IDC to distribute resources according to the first preset bandwidth within the next sampling time length.
4. The method according to claim 3, wherein before said invoking said bandwidth limiting IDC for resource distribution according to said first preset bandwidth, said method further comprises:
calculating a difference value between the first preset bandwidth and a predicted outlet bandwidth of the bandwidth limiting IDC to serve as a second bandwidth difference;
taking the product of the second bandwidth difference and the next sampling time length as a second distribution flow;
within the next sampling duration, calling the bandwidth limiting IDC to distribute resources according to the first preset bandwidth, and further including:
and calling a resource distribution task with the data size of the bandwidth limiting IDC processing resource being the same as the second distribution flow in the next sampling time length.
5. The method according to any of claims 1-2 or 4, wherein the collecting in real time the egress bandwidth of each IDC comprises:
collecting egress traffic for each of the IDCs and determining an egress bandwidth for each of the IDCs based on the egress traffic for each of the IDCs; and/or the presence of a gas in the gas,
and acquiring each outlet bandwidth through the API of each IDC.
6. A resource distribution apparatus, comprising:
the bandwidth collection module is used for collecting the outlet bandwidth of each IDC in real time;
the bandwidth prediction module is used for predicting the predicted outlet bandwidth of each IDC in the IDCs in the next sampling time length based on the historical outlet bandwidth of the IDC;
an available duration updating module, configured to update, in real time, a maximum bandwidth available duration of the IDC in a current charging period by comparing an outlet bandwidth of the IDC with a first preset bandwidth for each IDC, where the maximum bandwidth available duration of one IDC is a difference between a specified duration and a peak bandwidth used duration of the IDC, the peak bandwidth used duration of one IDC is a duration in which the outlet bandwidth of the IDC is greater than the first preset bandwidth in the current charging period, the specified duration is a product of the duration of the current charging period and a specified proportion, and the specified proportion is not greater than a proportion removed when a bandwidth cost is settled;
the selection module is used for selecting IDCs with predicted outlet bandwidths larger than a first preset bandwidth and with highest bandwidth available duration larger than preset duration from the IDCs as highest bandwidth available IDCs;
and the IDC calling module is used for calling the IDC with the highest available bandwidth to distribute resources according to the upper limit of the outlet bandwidth in the next sampling time length.
7. A resource distribution system, the system comprising: data server, charging server, flow control server and distribution server, wherein:
the data server is used for collecting the outlet bandwidth of each IDC in real time, predicting the predicted outlet bandwidth of each IDC in the next sampling time length based on the historical outlet bandwidth of each IDC, sending the collected real-time bandwidth to the charging server, and sending the predicted outlet bandwidth to the flow control server;
the charging server is used for updating the highest bandwidth available time length of the IDC in the current charging period in real time by comparing the size of the outlet bandwidth of the IDC with a first preset bandwidth for each IDC in the IDCs, and sending the highest bandwidth available time length of each IDC to the flow control server, wherein the highest bandwidth available time length of one IDC is the time length difference between a specified time length and the peak bandwidth used time length of the IDC, the peak bandwidth used time length of one IDC is the time length when the outlet bandwidth of the IDC is greater than the first preset bandwidth in the current charging period, the specified time length is the product of the time length of the current charging period and a specified duty ratio, and the specified duty ratio is not greater than the duty ratio removed during bandwidth cost settlement;
the flow control server is used for selecting IDCs with predicted outlet bandwidths larger than a first preset bandwidth and with highest bandwidth available duration larger than preset duration from the IDCs as highest bandwidth available IDCs, and sending information of the highest bandwidth available IDCs to the distribution server;
and the distribution server is used for calling the highest bandwidth available IDC to distribute resources according to the upper limit of the outlet bandwidth according to the information of the highest bandwidth available IDC.
8. The system according to claim 7, wherein the distribution server is specifically configured to calculate, according to the information of the highest bandwidth-available IDC, a difference between an upper outlet bandwidth limit of the highest bandwidth-available IDC and a predicted outlet bandwidth of the highest bandwidth-available IDC as a first bandwidth difference, and use a product of the first bandwidth difference and the next sampling duration as a first distribution traffic, and call a resource distribution task in which a data size of the highest bandwidth-available IDC processing resource is the same as the first distribution traffic size in the next sampling duration.
9. The system according to claim 7 or 8, wherein the traffic control server is further configured to select, as the bandwidth limiting IDC, the IDC whose predicted egress bandwidth is not greater than a first preset bandwidth or whose highest available bandwidth is not greater than a preset duration from among the IDCs, and send information of the bandwidth limiting IDC to the distribution server;
and the distribution server is further configured to call the bandwidth limiting IDC to distribute resources according to the first preset bandwidth within the next sampling duration.
10. The system according to claim 9, wherein said distribution server is specifically configured to calculate a difference between said first preset bandwidth and a predicted exit bandwidth of said bandwidth-limited IDC as a second bandwidth difference, and to take a product of said second bandwidth difference and said next sampling duration as a second distribution traffic, and to invoke a resource distribution task in which a data size of said bandwidth-limited IDC processing resource is the same as a size of said second distribution traffic within said next sampling duration.
11. The system according to any of claims 7-8 or 10, wherein said data server, in particular, is configured to collect egress traffic for each of said IDCs and determine an egress bandwidth for each of said IDCs based on the egress traffic for each of said IDCs; and/or obtaining each said egress bandwidth through an API of each said IDC.
12. An electronic device is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1 to 5 when executing a program stored in the memory.
13. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-5.
CN202010436302.9A 2020-05-21 2020-05-21 Resource distribution method, device and system and electronic equipment Active CN111585824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010436302.9A CN111585824B (en) 2020-05-21 2020-05-21 Resource distribution method, device and system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010436302.9A CN111585824B (en) 2020-05-21 2020-05-21 Resource distribution method, device and system and electronic equipment

Publications (2)

Publication Number Publication Date
CN111585824A true CN111585824A (en) 2020-08-25
CN111585824B CN111585824B (en) 2022-10-25

Family

ID=72126836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010436302.9A Active CN111585824B (en) 2020-05-21 2020-05-21 Resource distribution method, device and system and electronic equipment

Country Status (1)

Country Link
CN (1) CN111585824B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114124819A (en) * 2021-10-22 2022-03-01 北京乐我无限科技有限责任公司 Flow distribution control method and device, storage medium and computer equipment
CN114363139A (en) * 2020-09-30 2022-04-15 北京金山云网络技术有限公司 Planning bandwidth determining method and device, electronic equipment and readable storage medium
CN115065648A (en) * 2022-08-05 2022-09-16 南京大学 Multi-outlet traffic scheduling method and system of cloud network platform
CN117061354A (en) * 2023-10-10 2023-11-14 北京火山引擎科技有限公司 Information processing method, system, equipment and storage medium in CDN

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106936733A (en) * 2015-12-31 2017-07-07 北京金山云网络技术有限公司 A kind of method for allocating bandwidth resources and device
US20180316623A1 (en) * 2015-12-29 2018-11-01 Wangsu Science & Technology Co., Ltd. Method and system for self-adaptive bandwidth control of cdn platform
CN109921950A (en) * 2019-03-28 2019-06-21 北京奇艺世纪科技有限公司 A kind of network bandwidth requirements prediction technique, device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180316623A1 (en) * 2015-12-29 2018-11-01 Wangsu Science & Technology Co., Ltd. Method and system for self-adaptive bandwidth control of cdn platform
CN106936733A (en) * 2015-12-31 2017-07-07 北京金山云网络技术有限公司 A kind of method for allocating bandwidth resources and device
CN109921950A (en) * 2019-03-28 2019-06-21 北京奇艺世纪科技有限公司 A kind of network bandwidth requirements prediction technique, device and electronic equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114363139A (en) * 2020-09-30 2022-04-15 北京金山云网络技术有限公司 Planning bandwidth determining method and device, electronic equipment and readable storage medium
CN114363139B (en) * 2020-09-30 2024-05-03 北京金山云网络技术有限公司 Planning bandwidth determining method, planning bandwidth determining device, electronic equipment and readable storage medium
CN114124819A (en) * 2021-10-22 2022-03-01 北京乐我无限科技有限责任公司 Flow distribution control method and device, storage medium and computer equipment
CN114124819B (en) * 2021-10-22 2024-02-09 北京乐我无限科技有限责任公司 Flow distribution control method and device, storage medium and computer equipment
CN115065648A (en) * 2022-08-05 2022-09-16 南京大学 Multi-outlet traffic scheduling method and system of cloud network platform
CN115065648B (en) * 2022-08-05 2022-12-09 南京大学 Multi-outlet traffic scheduling method and system of cloud network platform
CN117061354A (en) * 2023-10-10 2023-11-14 北京火山引擎科技有限公司 Information processing method, system, equipment and storage medium in CDN
CN117061354B (en) * 2023-10-10 2024-01-12 北京火山引擎科技有限公司 Information processing method, system, equipment and storage medium in CDN

Also Published As

Publication number Publication date
CN111585824B (en) 2022-10-25

Similar Documents

Publication Publication Date Title
CN111585824B (en) Resource distribution method, device and system and electronic equipment
CN111614473B (en) Method, device and system for determining IDC (Internet data center) available at highest bandwidth and electronic equipment
US11277273B2 (en) Computer network service providing system including self adjusting volume enforcement functionality
EP1993231B1 (en) Allocation method, system and device for network resource in communication network
US20130023230A9 (en) System and Methods for Carrier-Centric Mobile Device Data Communications Cost Monitoring and Control
CN110505105B (en) Method, device, equipment and storage medium for controlling network service quality
CN107171839B (en) Bandwidth flow cost control method
US9794421B2 (en) Method, system and apparatus for adaptive quota determination for shared resources
CN110831038B (en) Network slice resource scheduling method and device
CN115421930B (en) Task processing method, system, device, equipment and computer readable storage medium
WO2018028344A1 (en) Method and device for load processing
EP4013087A1 (en) System and method for 5g mobile network management
CN108076443B (en) Flow distribution method in online charging system and online charging system
Raivio et al. Hybrid Cloud Architecture for Short Message Services.
CN106170767A (en) A kind of apparatus and method determining that virtual machine quantity adjusts operation
EP3930285A2 (en) System and method for managing video streaming congestion
CN114219468A (en) Micro-service charging method and device based on private container cloud and related components
CN114124763A (en) Method and system for measuring broadband access rate
WO2022005349A1 (en) Using subscriber event data to control release operations related to communication session in communications network
CN111158899A (en) Data acquisition method, data acquisition device, task management center and task management system
US20160013991A1 (en) Analytics-driven policy control in computer networks
CN111629050A (en) Node scheduling method and device, storage medium and electronic device
CN112491631B (en) Method, device, equipment and storage medium for guaranteeing service QOS
EP4068863A1 (en) Method and system for providing an optimal network slice in a 5g core network
CN114726922A (en) Network resource scheduling method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant