CN110213131B - Bandwidth determination method and device, computer equipment and storage medium - Google Patents

Bandwidth determination method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN110213131B
CN110213131B CN201910484728.9A CN201910484728A CN110213131B CN 110213131 B CN110213131 B CN 110213131B CN 201910484728 A CN201910484728 A CN 201910484728A CN 110213131 B CN110213131 B CN 110213131B
Authority
CN
China
Prior art keywords
bandwidth
data
application program
edge server
service
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.)
Active
Application number
CN201910484728.9A
Other languages
Chinese (zh)
Other versions
CN110213131A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910484728.9A priority Critical patent/CN110213131B/en
Publication of CN110213131A publication Critical patent/CN110213131A/en
Application granted granted Critical
Publication of CN110213131B publication Critical patent/CN110213131B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level

Abstract

The application discloses a bandwidth determining method, a bandwidth determining device, computer equipment and a storage medium, and relates to the technical field of networks. The method can determine reference application programs of at least two different service types according to at least two service types of the target application program, and can determine the bandwidth required by the edge server when the edge server transmits the service data of each reference application program according to a group of bandwidth data when the edge server transmits the service data of the target application program in a reference time period. Because the service type of each reference application program is the same as one service type of the target application program, the bandwidth required by the edge server for transmitting the service data of the target application program can be accurately determined according to the bandwidth data of the at least two reference application programs, and the accuracy of the estimated bandwidth can be improved.

Description

Bandwidth determination method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of network technologies, and in particular, to a bandwidth determining method and apparatus, a computer device, and a storage medium.
Background
A Content Delivery Network (CDN) includes a content origin server and a plurality of edge servers. The edge server can cache the service data provided by the content source server of the application program, so that the terminal which installs the application program can directly acquire the service data from the edge server, and the efficiency of acquiring the service data is improved.
In the related art, when a developer of an application rents an edge server in the CDN, it is necessary to estimate a bandwidth when the edge server transmits service data of the application to a terminal, and then estimate a transmission cost for the edge server to transmit the service data of the application to the terminal according to the bandwidth. In general, the bandwidth of the edge server transmitting the service data of other applications having the same service type as the application to the terminal may be estimated as the bandwidth required by the edge server to transmit the service data of the application to the terminal.
However, the accuracy of the estimated bandwidth in the related art is low.
Disclosure of Invention
The application provides a bandwidth determining method, a bandwidth determining device, a computer device and a storage medium, which can solve the problem of low accuracy of estimated bandwidth in the related art. The technical scheme is as follows:
in one aspect, a bandwidth determination method is provided, and the method includes:
determining at least two reference application programs with different service types, wherein the service type of each reference application program is the same as one service type of a target application program;
acquiring a group of bandwidth data when the edge server transmits the service data of each reference application program in a reference time interval to obtain at least two groups of bandwidth data;
and determining the bandwidth required by the edge server when transmitting the service data of the target application program according to the at least two groups of bandwidth data.
In another aspect, there is provided a bandwidth determining apparatus, the apparatus comprising:
the system comprises a first determining module, a second determining module and a third determining module, wherein the first determining module is used for determining reference application programs of at least two different service types, and the service type of each reference application program is the same as one service type of a target application program;
the first acquisition module is used for acquiring a group of bandwidth data when the edge server transmits the service data of each reference application program in a reference time interval to obtain at least two groups of bandwidth data;
and the second determining module is used for determining the bandwidth required by the edge server when transmitting the service data of the target application program according to the at least two groups of bandwidth data.
Optionally, the second determining module includes:
a first determining submodule, configured to accumulate, for each of the multiple time instants, the bandwidth at the time instant in the at least two sets of bandwidth data to obtain a bandwidth required by the edge server when transmitting the service data of the target application program at the time instant.
Optionally, the second determining module further includes:
a second determining submodule, configured to determine an idle time period in the reference time period and a first scaling factor;
and the first scaling submodule is used for scaling the bandwidth at the moment of the idle time period by adopting the first scaling coefficient.
Optionally, the second determining module further includes:
a first obtaining sub-module, configured to obtain, for each reference application, a target bandwidth of the reference application;
a third determining submodule, configured to determine a second scaling factor according to a ratio of a target bandwidth of the reference application to a peak bandwidth in a group of bandwidth data when the edge server transmits service data of the reference application;
and the second scaling submodule is used for scaling the bandwidth of each moment in a group of bandwidth data when the edge server transmits the service data of the reference application program by adopting the second scaling coefficient.
Optionally, the first obtaining module is further configured to determine a type of the bandwidth data, where the type includes network card bandwidth data or log bandwidth data; and acquiring a set of bandwidth data of the type when the edge server transmits the service data of each reference application program in the reference time period from the edge server according to the type of the bandwidth data.
Optionally, the apparatus further comprises:
a third determining module, configured to determine a cost parameter according to a bandwidth required by the edge server when transmitting the service data of the target application;
the display module is used for displaying the cost parameter;
the cost parameters comprise one or more of edge settlement bandwidth, mean bandwidth, 95 bandwidth, daily mean 95 bandwidth, busy hour mean bandwidth, idle hour mean bandwidth, total flow, busy hour flow, idle hour flow, return rate and over-sell ratio;
the edge settlement bandwidth is a bandwidth required by the edge server when the edge server transmits the service data of the target application program at the settlement time, and the settlement time is a time corresponding to a peak value of accumulated bandwidth when the edge server transmits the service data of each application program in the reference time interval;
the resell ratio is proportional to a ratio of the mean bandwidth to the edge settlement bandwidth.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring the reference time period of the reference application program input in the configuration interface for each reference application program;
wherein the reference periods of at least two of the reference applications are the same in duration.
In yet another aspect, a computer device is provided, the computer device 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, which is loaded and executed by the processor to implement the bandwidth determination method as described in the above aspect.
In a further aspect, there is provided 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 determination method as described in the above aspect.
The beneficial effect that technical scheme that this application provided brought includes at least:
the method can determine reference application programs with at least two different service types according to at least two service types of a target application program, and can determine the bandwidth required by an edge server when the edge server transmits the service data of the target application program according to a group of bandwidth data when the edge server transmits the service data of each reference application program in a reference time period. Because the service type of each reference application program is the same as one service type of the target application program, the bandwidth required by the edge server for transmitting the service data of the target application program can be accurately determined according to the bandwidth data of the at least two reference application programs, and the accuracy of the estimated bandwidth can be improved.
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 structural diagram of an implementation environment related to a bandwidth-based determination method according to an embodiment of the present invention;
fig. 2 is a flowchart of a bandwidth determining method according to an embodiment of the present invention;
fig. 3 is a flowchart of another bandwidth determining method provided by the embodiment of the present invention;
FIG. 4 is a schematic diagram of a configuration interface provided by an embodiment of the present invention;
FIG. 5 is a schematic diagram of another configuration interface provided by embodiments of the present invention;
FIG. 6 is a schematic diagram of yet another configuration interface provided by embodiments of the present invention;
FIG. 7 is a diagram of a set of bandwidth data provided by an embodiment of the present invention;
fig. 8 is a schematic diagram illustrating scaling of a bandwidth of an idle period according to an embodiment of the present invention;
FIG. 9 is a diagram illustrating scaling of bandwidth of a reference time period according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of bandwidth of a reference application at various times according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of bandwidth of another reference application at various times provided by embodiments of the present invention;
FIG. 12 is a schematic diagram of a reference application after accumulating bandwidth at various times according to an embodiment of the present invention;
fig. 13 is a schematic structural diagram of a bandwidth determining apparatus according to an embodiment of the present invention;
FIG. 14 is a block diagram of a second determining module according to an embodiment of the present invention;
fig. 15 is a schematic structural diagram of another bandwidth determining apparatus provided in the embodiment of the present invention;
fig. 16 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a schematic structural diagram of an implementation environment related to a bandwidth-based determination method according to an embodiment of the present invention. The enforcement environment may be built based on a content distribution network. As shown in fig. 1, the implementation environment may include a terminal 01, a content source server 02, a plurality of edge servers 03, and a data processing server 04. The terminal 01 can be a computer, a tablet computer, a smart phone, a vehicle-mounted navigator, a multimedia player or a wearable device. Each of the content source server 02, the plurality of edge servers 03 and the data processing server 04 may be a server, a server cluster composed of a plurality of servers, or a cloud computing service center.
Referring to fig. 1, it can be seen that the connection between the terminal 01 and each edge server 03, between the content source server 02 and each edge server 03, and between the data processing server 04 and each edge server 03 can be established through a wired or wireless network.
The content source server 02 may store service data of an application (may also be referred to as a resource of the application), and may send the service data to the edge server 03, where the edge server 03 may cache the service data. The application program may be installed in the terminal 01. When the terminal 01 starts the application program and needs to acquire the service data of the application program, the service data can be directly acquired from the edge server 03. That is, the edge server 03 may transmit service data of the application to the terminal 01.
In the embodiment of the present invention, when a developer of a target application needs to rent the edge server 03 and the target application can provide services of multiple service types, if it needs to estimate a bandwidth required by the edge server 03 to transmit service data of the target application, the data processing server 04 may select multiple reference applications with determined transmission costs according to the multiple service types of the target application. And determining each reference application program to be capable of providing a service of one service type, wherein the service type of each reference application program is the same as one service type of the target application program.
Then, the data processing server 04 may merge the bandwidths of the multiple reference applications with the determined transmission costs, and determine the merged bandwidth as the bandwidth required by the edge server 03 to transmit the service data of the target application. Further, the data processing server 04 may determine a transmission cost for the edge server 03 to transmit the service data of the target application to the terminal 01 according to the estimated bandwidth.
Because the service type of each reference application program is the same as one service type of the target application program, the bandwidth required by the edge server for transmitting the service data of the target application program can be accurately determined according to the bandwidth data of the at least two reference application programs, and the accuracy of the estimated bandwidth can be improved.
Referring to fig. 2, a flowchart of a bandwidth determining method according to an embodiment of the present invention is shown. The method may be applied to the data processing server 04 shown in fig. 1. Referring to fig. 2, the method may include:
step 101, determining at least two reference applications of different service types.
In the embodiment of the present invention, if a developer of a target application needs to lease an edge server, at least two different service types of the target application may be determined first, so as to estimate a bandwidth required by the edge server to transmit service data of the target application according to the service types. In performing bandwidth estimation, the data processing server may determine, based on the at least two traffic types of the target application, reference applications of at least two different traffic types. The service type of each reference application is the same as one of the service types of the target application, and the service types of the respective reference applications are different.
The service type may refer to a data type of service data that can be provided by a content source server of the application program. The service types may include: video, audio, graphics and text, compressed files and the like. For example, the service type of the video playing application program may be a video type, the service type of the audio playing application program may be an audio type, the service type of the instant messaging application program may be a graphics and text type, the service type of the information application program may include a graphics and text type and a video type, and the service type of the application downloading application program may be a compressed file type.
Step 102, acquiring a group of bandwidth data when the edge server transmits the service data of each reference application program in a reference time interval, and acquiring at least two groups of bandwidth data.
In the embodiment of the present invention, the edge server may store bandwidth data when transmitting the service data of the reference application, and the data processing server may obtain, from the edge server, a set of bandwidth data when the edge server transmits the service data of each reference application within the reference time period.
Alternatively, the reference time period may be set by an estimator according to actual conditions, or may be a fixed time period stored in the data processing server in advance.
Step 103, determining the bandwidth required by the edge server to transmit the service data of the target application program according to the at least two groups of bandwidth data.
In the embodiment of the present invention, the data processing server may perform fusion processing on the at least two sets of acquired bandwidth data, so as to determine the bandwidth required by the edge server when transmitting the service data of the target application program. The fusion process may be an accumulation process.
In summary, embodiments of the present invention provide a bandwidth determining method, which may determine, according to at least two service types of a target application, reference applications of at least two different service types, and may determine, according to a set of bandwidth data when an edge server transmits service data of each reference application in a reference time period, a bandwidth required when the edge server transmits the service data of the target application. Because the service type of each reference application program is the same as one service type of the target application program, the bandwidth required by the edge server for transmitting the service data of the target application program can be accurately determined according to the bandwidth data of the at least two reference application programs, and the accuracy of the estimated bandwidth can be improved.
Fig. 3 is a flowchart of another bandwidth determining method provided in an embodiment of the present invention, and as can be seen from fig. 3, the method may be applied to the data processing server 04 shown in fig. 1, and the method may include:
step 201, determining at least two reference applications of different service types.
In the embodiment of the present invention, if a developer of a target application needs to lease an edge server, at least two different service types of the target application may be determined first, so as to estimate a bandwidth required by the edge server to transmit service data of the target application according to the service types. In performing bandwidth estimation, the data processing server may determine, based on the at least two traffic types of the target application, reference applications of at least two different traffic types. The service type of each reference application is the same as one of the service types of the target application, and the service types of the respective reference applications are different.
As an alternative implementation, the data processing server may provide a configuration interface that includes an identification input box for the identification of the application. The evaluator may enter the identification of the application in the identification entry box. The data processing server may obtain the identifiers of the at least two applications in the configuration interface, and may further determine the application indicated by the obtained identifiers of the at least two applications as reference applications of at least two different service types corresponding to the target application.
Wherein the identification of the application can be used to uniquely indicate an application. For example, the identifier may be an application software number (APPID), or may be a Unit Identification Number (UIN). The identification of the application may be a string of characters, for example the identification may be a plurality of numbers.
Fig. 4 is a schematic diagram of a configuration interface according to an embodiment of the present invention. Referring to fig. 4, the configuration interface may include an APPID input box, and a UIN input box. The evaluator may enter the APPID of the reference application in the APPID input box and may enter the UIN of the reference application in the UIN input box. The data processing server, in turn, can obtain the APPID of the application from the APPID entry box and can obtain the UIN of the application from the UIN entry box. Wherein, the APPID of each application program corresponds to one UIN.
For the same reference application program, an estimator can input one of the APPID and the UIN of the reference application program, and the data processing server can acquire the bandwidth of the edge server when the edge server transmits the service data of the reference application program. Alternatively, the evaluator may enter the APPID and UIN of the reference application simultaneously.
For example, assume that the service type of the target application determined by the evaluator comprises: the method comprises the steps of image-text and video, and the reference application program of the image-text selected by an estimator is APP1, and the reference application program of the video is APP 2. Then, referring to fig. 5, the evaluator may enter the APPID of APP1 in the APPID input box of the configuration interface: 1253437192. in addition, the configuration interface may further include an add button, and after the data processing server receives a click operation for the add button, a new APPID input box and a new UIN input box may be displayed. Further, referring to fig. 6, the evaluator may enter the UIN of APP2 in the new UIN entry box: abcdefg.
After the human input is evaluated, the data processing server obtains the identifiers of the applications 1253437192 and abcdefg, and then the data processing server may determine the application identified as 1253437192 as the first reference application APP1 and may determine the application identified as abcdefg as the second reference application APP 2.
It should be noted that, since the content source server of each reference application may include a plurality of domain names, in order to obtain the bandwidth when the edge server transmits the service data of a certain domain name of the content source server of the reference application, a domain name input box may be further included in the configuration interface. The evaluator may enter the domain name of the content source server of the reference application in the domain name entry box. After the data processing server obtains the domain name, the bandwidth of the edge server when transmitting the service data of the domain name can be obtained.
As another alternative implementation, after determining at least two different service types of the target application, the evaluator may input the at least two service types into the data processing server, and the data processing server may determine at least two reference applications according to the at least two service types input by the evaluator, where a service type of each reference application is the same as one service type input by the evaluator.
As another alternative implementation, the estimator may directly input the identifier of the target application program into the data processing server, and the data processing server may determine at least two service types corresponding to the identifier input by the estimator, that is, at least two service types of the target application program, according to the correspondence between the identifier of the application program and the service type. And the data processing server can determine the reference application programs of at least two different service types according to the at least two service types. The service type of each reference application is the same as one of the service types of the target application.
Step 202, for each reference application, obtaining the reference time period of the reference application input in the configuration interface.
In the embodiment of the present invention, the reference time periods of the respective reference applications may be the same or different, but the duration of the reference time period of the respective reference applications should be the same, so that the data processing server can perform the fusion processing on the bandwidth data of the two reference applications in the reference time periods.
Referring to fig. 4 to 6, the configuration interface provided by the data processing server may further include a reference period input box in which the evaluator may input the reference period of the reference application, and the data processing server may acquire the reference period of the reference application in the configuration interface. Alternatively, the configuration interface provided by the data processing server may include a plurality of period options, for example, the period options may include: yesterday, last 7 days, last 30 days, etc. period options, the estimator may select one of the period options. The data processing server, upon receiving a selection operation for a certain period option, may determine a period indicated by the period option as a reference period.
For example, referring to fig. 5, for the first reference application APP1, if the evaluator can input the reference time period of the first reference application APP1 in the reference time period input box as 2019 year 3 month 1 day to 2019 year 3 month 1 day, the data processing server can obtain the reference time period of the first reference application APP1 in the configuration interface as 2019 year 3 month 1 day to 2019 year 3 month 1 day. Referring to fig. 6, for the second reference application APP2, if the evaluator can input the reference time period of the second reference application APP2 in the reference time period input box from 2019 year 3 month 2 to 2019 year 3 and 2, the data processing server can obtain the reference time period of the second reference application APP2 in the configuration interface from 2019 year 3 month 2 to 2019 year 3 month 2.
It should be noted that the reference time period of each reference application program may also be a fixed time period pre-stored in the data processing server, and may be, for example, the last 7 days or the last 30 days. And, in order to ensure the accuracy of the estimated bandwidth when the edge server transmits the service data of the target application, the shortest duration of the reference period may be one day.
Step 203, determine the type of bandwidth data.
In the embodiment of the present invention, the type of the bandwidth data may include network card bandwidth data or log bandwidth data. The log bandwidth data may refer to bandwidth data determined by the edge server according to a record of an access log requested by the terminal, and the bandwidth data may include a bandwidth required when transmitting the service data. The network card bandwidth data may include a bandwidth required for transmitting the traffic data and a bandwidth required for transmitting the data related to the communication protocol. The communication protocol may include a Transmission Control Protocol (TCP), a hypertext transfer protocol (HTTP), and the like. Since the bandwidth data of the network card also includes the bandwidth required for transmitting the data related to the communication protocol, compared with the log bandwidth data, the bandwidth data of the network card may be higher than the log bandwidth data by 5% to 20% in a normal case.
As an alternative implementation, the type of bandwidth data may be determined by an evaluator, according to the requirements of the developer of the target application. For example, the configuration interface of the data processing server may further include a data type option, where the data type option includes: network card bandwidth data and log bandwidth data. The evaluator may select one data type option from the plurality of data type options. After receiving the selection operation for a certain data type option, the data processing server may determine the data type indicated by the data type option as the type of the bandwidth data.
For example, referring to fig. 5 and 6, the evaluator may select log bandwidth data in the data type option. The data processing server may determine the log bandwidth data as the type of the bandwidth data after receiving the selection operation of the data type option for the log bandwidth data.
As another alternative implementation, the type of the bandwidth data may also be a type of fixed bandwidth data pre-stored in the data processing server, for example, the bandwidth data may be log bandwidth data.
And step 204, according to the type of the bandwidth data, acquiring a set of bandwidth data of the type when the edge server transmits the service data of each reference application program in a reference time period from the edge server.
In this embodiment of the present invention, the data processing server may obtain, from the edge server, a set of bandwidth data of the type when the edge server transmits the service data of each reference application program in the reference time period according to the reference time period determined in step 202 and the type of the bandwidth data determined in step 203. Wherein the reference period may include a plurality of time instants, and each set of bandwidth data may include a bandwidth for each of the plurality of time instants.
Fig. 7 is a schematic diagram of a set of bandwidth data provided by an embodiment of the present invention. Assuming that the duration of the reference period is one day, the edge server records one bandwidth every five minutes when transmitting the traffic data, and the reference period may include 288 times. Accordingly, referring to fig. 7, the set of bandwidth data acquired by the data processing server from the edge server when the edge server transmits the service data of the reference application program in the reference period may include the bandwidth of 288 time instants.
Step 205, determining the idle time period in the reference time period and the first scaling factor.
In the embodiment of the present invention, the configuration interface provided by the data processing server may further include an idle time period input box and a first scaling factor input box. The estimator can input the idle time period in the display time period input box, input the first zoom factor in the first zoom factor input box, and the data processing server can obtain the idle time period and the first zoom factor in the configuration interface.
For example, referring to fig. 5 and 6, assuming that the reference periods of the respective reference applications are all one day, the 24 hours included in one day may be represented by 0 to 23, where 0 may represent 0 am to 1 am, and 23 may represent 23 pm to 0 am on the next day. And if the idle time periods corresponding to each reference application program determined by the estimation personnel are all from 0 am to 8 am. The estimator can input the idle time period in the idle time period input box of the configuration interface with the starting point of 0 and the ending point of 7. The data processing server may determine that the idle period is from 0 a.m. to 8 a.m.
The idle time period may be a fixed time period pre-stored in the data processing server, and may be, for example, 0 am to 8 am. The first scaling factor may be a fixed factor pre-stored in the data processing server, and may be any value between 10% and 50%, for example.
And step 206, scaling the bandwidth at the time of the idle time period by using the first scaling factor.
In the embodiment of the present invention, since the ratio of the bandwidth when the edge server transmits the service data of the reference application program in the idle time period and the busy time period may be different from the ratio of the bandwidth when the edge server transmits the service data of the target application program in the idle time period and the busy time period, the data processing server may perform scaling processing on each bandwidth of the reference application program located at the time of the idle time period among a plurality of times in the reference time period by using the first scaling coefficient, so as to improve the accuracy of the bandwidth estimated by the data processing server.
The scaling of the bandwidth by the first scaling factor may be to increase the bandwidth by the first scaling factor. The scaling process can be represented by the following formula:
a [ i ] ═ a [ i ] × (1+ k) formula (1)
In the above formula (1), a [ i ] may refer to a bandwidth at an ith time instant, and k is a first scaling factor.
Assuming that the duration of the reference period is one day, the edge server records one bandwidth every five minutes when transmitting the traffic data, and can record the bandwidth at 12 times every hour. If the starting point of the idle time period is a and the ending point is b, after the bandwidth in the reference time period is scaled, the bandwidth at each moment in the reference time period may satisfy:
Figure BDA0002085018030000111
for example, assuming that the first scaling factor is 50%, the idle time period is from 0 am to 8 am, i.e., a may be 0 and b may be 7. Then, according to the above formula (2), it can be obtained that the bandwidth at each time in the reference period satisfies:
Figure BDA0002085018030000112
that is, the bandwidth from the 0 th time to the 95 th time in the bandwidth data may be increased by 0.5 times. The bandwidth from the 96 th time point to the 287 th time point in the bandwidth data is not scaled.
For example, fig. 8 is a schematic diagram for scaling the bandwidth of the idle time period according to the embodiment of the present invention. Referring to fig. 8, the bandwidth of the idle time period may be scaled to form a set of bandwidth data with the bandwidth of the busy time period. The busy hour period may refer to a period other than the idle hour period within the reference period.
Step 207, for each reference application, obtaining the target bandwidth of the reference application.
In the embodiment of the present invention, the configuration interface may further include a target bandwidth input box, and the estimator may input the target bandwidth of each reference application in the target bandwidth input box. The data processing server may obtain the target bandwidth for each reference application in the configuration interface.
For example, referring to fig. 6, for the second reference application, the estimator can input the target bandwidth of the second reference application in the target bandwidth input box as 50Mbps (megabits per second), and the data processing server can obtain the target bandwidth of the second reference application in the configuration interface as 50 Mbps.
It should be noted that the target bandwidth of each reference application may also be a fixed bandwidth stored in the data processing server in advance. And, the target bandwidths of different reference applications may be the same or different.
Step 208, determining a second scaling factor according to a ratio of the target bandwidth of the reference application to a peak bandwidth in a set of bandwidth data when the edge server transmits the service data of the reference application.
The peak bandwidth may refer to a maximum bandwidth among bandwidth data when the edge server transmits traffic data of the reference application. That is, F1 ═ max (a [ i ]), where F1 is the peak bandwidth, a [ i ] is the bandwidth at the ith time instant, i may range from [0, n-1], n is the number of time instants included in the reference period, and n is an integer greater than 1. max () represents taking the maximum value. Assuming that the edge server records a bandwidth every five minutes when transmitting the service data, the bandwidth of 12 time points can be recorded every hour, and if the duration of the reference time period is one day, n can be 288.
Alternatively, the second scaling factor may be equal to a ratio of the target bandwidth F2 of the reference application to the peak bandwidth F1 in a set of bandwidth data when the edge server transmits the traffic data of the reference application. I.e. the second scaling factor m may satisfy: and m is F2/F1.
For example, assuming that the bandwidth of the edge server for transmitting the traffic data of the first reference application is as shown in fig. 7, it can be seen from fig. 7 that the peak bandwidth F1 when the edge server transmits the traffic data of the first reference application in the reference period is 1400000 Mbps. Assuming that the target bandwidth of the first reference application inputted by the estimator is 10000Mbps, the data processing server may determine that the second scaling factor m of the first reference application is 10000/1400000 or 1/140.
Step 209, scaling the bandwidth of each time in a set of bandwidth data when the edge server transmits the service data of the reference application program by using the second scaling factor.
In this embodiment of the present invention, for each reference application, the data processing server may perform scaling processing on the bandwidth at each time in a group of bandwidth data when the edge server transmits the service data of the reference application by using the corresponding second scaling factor. Because the sizes of the bandwidths required by the target application program and the reference application program are different, the second scaling coefficient is adopted to scale the bandwidth at each moment, and the accuracy of the estimated bandwidth can be improved.
The scaling the bandwidth by the second scaling factor may be to set the bandwidth to be a bandwidth multiplied by the second scaling factor. The scaling process can be represented by the following formula:
a [ i ] ═ a [ i ] × m formula (3)
Assuming that the duration of the reference period is one day and the edge server records one bandwidth every five minutes while transmitting traffic data, the range of i may be [0, 287 ]. If the second scaling factor m is 1/140, referring to fig. 7, the bandwidth a [100] at the 100 th time in the reference period when the first reference application is not scaled is 565000Mbps, and referring to fig. 9, the bandwidth a [100] at the 100 th time after the first reference application is scaled by the second scaling factor is: and A [100] ≈ 565000/140 ≈ 4036 Mbps.
Step 210, for each time of the plurality of times, accumulating the bandwidth of the time in the at least two sets of bandwidth data to obtain the bandwidth required by the edge server when transmitting the service data of the target application program at the time.
In the embodiment of the present invention, the data processing server may accumulate the bandwidth of each time in at least two groups of bandwidth data of at least two determined reference applications, to obtain the bandwidth required by the edge server when transmitting the service data of the target application at the time. That is, the data processing server may finally estimate the bandwidth required by the edge server to transmit the service data of the target application at each of the plurality of time instants.
Optionally, the edge server transmits the required bandwidth N [ i ] at the ith time of the multiple times when the service data of the target application program is transmitted]Can satisfy the following conditions:
Figure BDA0002085018030000131
wherein the content of the first and second substances,Xj[i]may be the bandwidth of the ith time instant in the bandwidth data of the jth reference application. J is the number of reference applications, and J is a positive integer no greater than J.
For example, assume that a reference application corresponding to a target application includes: a first reference application APP1, and a second reference application APP2, and the duration of the reference period of each reference application is one day. Wherein the bandwidth of the first reference application APP1 at each time is shown in fig. 10, the bandwidth of the second reference application APP2 at each time is shown in fig. 11, and the bandwidth of the first reference application APP1 and the second reference application APP2 after being accumulated at each time can be shown in fig. 12. Referring to fig. 10 to fig. 12, the bandwidth of the 254 th time in the bandwidth data of the first reference application APP1 is 1400000Mbps, and the bandwidth of the 254 th time in the bandwidth data of the second reference application APP2 is 2540000Mbps, so that the bandwidth required by the edge server to transmit the service data of the target application at the 254 th time is 1400000Mbps +2540000Mbps 3940000 Mbps.
Step 211, determining a cost parameter according to the bandwidth required by the edge server when transmitting the service data of the target application program.
The cost parameter is a parameter for estimating a transmission cost when the edge server transmits the service data of the target application, and may generally include: one or more of an edge settlement bandwidth, a mean bandwidth, a 95 bandwidth, a daily mean 95 bandwidth, a busy hour mean bandwidth, an idle hour mean bandwidth, a total traffic, a busy hour traffic, an idle hour traffic, a backtracking rate, and a resell rate.
The edge settlement bandwidth may be a bandwidth required by the edge server when the edge server transmits the service data of the target application program at the settlement time, and the settlement time may be a time corresponding to a peak value of an accumulated bandwidth when the edge server transmits the service data of each application program within a reference time period. Wherein the respective application programs include an application program for transmitting the service data by the edge server in the reference period.
In the embodiment of the present invention, the reference period may include one or more statistical cycles, and the duration of each statistical cycle may be one day. The average bandwidth may be a value obtained by dividing a sum of peak bandwidths of the at least two reference applications in each statistical period by the number of statistical periods included in the reference period. Optionally, after acquiring a group of bandwidth data of each reference application program, the data processing server may first determine a peak bandwidth of each statistical period in each group of bandwidth data, then accumulate a plurality of determined peak bandwidths of each statistical period, and divide the number of statistical periods included in the reference time period by the number of statistical periods, thereby obtaining the average bandwidth.
If the duration of the statistical period is one day and the duration of the reference period is one day, the average bandwidth is the sum of the peak bandwidths of the at least two reference applications in the reference period.
The busy hour mean bandwidth may be a value obtained by dividing a sum of peak bandwidths of the at least two reference applications in the busy hour period of each statistical cycle by the number of statistical cycles included in the reference period. Optionally, after obtaining a group of bandwidth data of each reference application program, the data processing server may first determine a peak bandwidth of a busy hour period of each statistical cycle in each group of bandwidth data, then accumulate the determined peak bandwidths of a plurality of busy hour periods of each statistical cycle, and divide the accumulated peak bandwidths by the number of statistical cycles included in the reference period, thereby obtaining the busy hour mean bandwidth.
If the duration of the statistical cycle is one day and the duration of the reference period is one day, the busy hour mean bandwidth is the sum of peak bandwidths of the busy hours of the at least two reference applications in the reference period.
The idle time average bandwidth may be a value obtained by dividing a sum of peak bandwidths of the at least two reference applications in the idle time period of each statistical period by the number of statistical periods included in the reference period. Optionally, after obtaining a group of bandwidth data of each reference application program, the data processing server may first determine a peak bandwidth of an idle time period of each statistical period in each group of bandwidth data, then accumulate the determined peak bandwidths of the idle time periods of each statistical period, and divide the accumulated peak bandwidths by the number of statistical periods included in the reference period, thereby obtaining the idle time average bandwidth.
If the duration of the statistical period is one day and the duration of the reference period is one day, the idle time average bandwidth is the sum of peak bandwidths of the idle time periods of the at least two reference applications in the reference period.
The 95 bandwidth may refer to a maximum value of bandwidths that are left by the edge server after removing a maximum 5% of bandwidths required when the edge server transmits the service data of the target application at the plurality of times.
The calculation process of the daily average 95 bandwidth can be as follows: the maximum value of the residual bandwidths in each statistical period is obtained after the maximum bandwidth of 5% is removed from the bandwidths required by the edge server for transmitting the service data of the target application program in each statistical period in the reference period, and the maximum values in the residual bandwidths of the statistical periods are accumulated and then divided by the number of the statistical periods included in the reference period.
If the duration of the statistical period is one day and the duration of the reference time interval is one day, the daily average 95 bandwidth is the 95 bandwidth.
The total traffic may refer to traffic required by the edge server to transmit the traffic data of the target application in the reference period, and the traffic may be calculated based on the bandwidth of the reference period. The busy hour traffic may refer to traffic required by the edge server to transmit traffic data of the target application during the busy hour period, and the traffic may be calculated based on a bandwidth of the busy hour period. The idle traffic may refer to traffic required by the edge server when transmitting the service data of the target application program in the idle period, and the traffic may be calculated based on a bandwidth of the idle period.
The source return rate may be a ratio of service data acquired from the content source server in service data sent to the terminal by the edge server based on the resource request sent by the terminal. The reselling ratio may be proportional to the ratio of the mean bandwidth to the edge settlement bandwidth, e.g., the reselling ratio may be equal to the ratio of the mean bandwidth to the edge settlement bandwidth minus 1.
Step 212, displaying the cost parameter.
In an embodiment of the present invention, the configuration interface provided by the data processing server may include a cost parameter display box. The data processing server can obtain the type of the system, and according to the type of the system, the determined cost parameters are displayed in a cost parameter display frame of the configuration interface, so that the transmission cost of the edge server for transmitting the service data of the target application program can be conveniently estimated by an estimator.
As an alternative implementation, the type of the system may be determined by the evaluator, according to the requirements of the developer of the target application. For example, referring to fig. 4-6, the configuration interface of the data processing server may further include a carry type option, which may include 1000 carry and 1024 carry. The evaluator may select one of the plurality of bin type options. The data processing server can display the cost parameter in the cost parameter display frame by adopting a certain system type after receiving the selection operation aiming at the option of the system type.
For example, referring to fig. 5 and 6, for ease of calculation, the evaluator may select the 1000-ary option among the binary-type options. The data processing server, upon receiving a selection operation for the 1000 system type option, may display the cost parameter in a cost parameter display box using the 1000 system. The edge settlement bandwidth in the cost parameter is 730223.08Mbps, the mean bandwidth is 730243.56Mbps, the 95 bandwidth is 1300862.9Mbps, the daily 95 mean bandwidth is 694629.83Mbps, the busy hour mean bandwidth is 730243.56Mbps, the idle mean bandwidth is 46634.74Mbps, the traffic is 6712243.42G (gigabit), the busy hour traffic is 6573047.01G, the idle traffic is 139196.4G, the recovery rate is 4.54%, and the over-selling ratio is 0%.
As another alternative implementation, the type of the system may also be a fixed system type stored in the data processing server in advance, for example, the type may be 1000 systems.
Optionally, as shown in fig. 4 to 6, a calculation button may be further displayed in the configuration interface. The data processing server may calculate and display the cost parameter according to the determined bandwidth required by the edge server to transmit the service data of the target application program after receiving the click operation for the calculation button.
It should be noted that, in the embodiment of the present invention, each parameter input box or parameter option in the configuration interface provided by the data processing server may be divided into a global input class and an intra-item input class. The parameters determined by the data processing server based on the input boxes or parameter options of the global input class are applicable to all reference applications. The parameters determined by the data processing server based on the input boxes or parameter options of the input classes within the project of a certain reference application are only applicable to the reference application.
For example, the data type option, the binary type option, the first reference period input box, the idle period input box, and the first scaling factor input box may all be global input classes. The second reference period input box, APPID input box, UIN input box, domain name input box, and target bandwidth input box may all be in-item input classes.
Referring to fig. 4 to 6, the configuration interface includes a first reference period input box and a second reference period input box, and a period input by the evaluator in the first reference period input box can be used as a reference period of all the reference applications, so that when the number of the reference applications is large, the reference periods can be configured for the plurality of reference applications by inputting the period in the first reference period input box. That is, the data processing server may determine the period acquired from the first reference period input box as the reference period of the plurality of reference applications. If the reference time interval of a certain reference application program needs to be adjusted independently, the estimator can input the reference time interval of the reference application program in a second reference time interval input box of the reference application program, and the data processing server can acquire the reference time interval of the reference application program in the second reference time interval input box in the configuration interface.
For a reference application, if the time period in the first reference time period input box is different from the time period in the second reference time period input box, the data processing server may use the time period in the second reference time period as the reference time period of the reference application. That is, the time period in the second reference time period input box may cover the time period in the first reference time period input box.
For example, referring to fig. 6, the reference period input by the evaluator in the first reference period input box is from 2019 year 3 month 1 to 2019 year 3 month 1, the reference period input in the second reference period input box is from 2019 year 3 month 2 to 2019 year 3 month 2, and the data processing server may determine that the reference period of the second reference application APP2 is from 2019 year 3 month 2 to 2019 year 3 month 2.
It should be further noted that, the order of the steps of the bandwidth determining method provided in the embodiment of the present invention may be appropriately adjusted, and the steps may also be increased or decreased according to the situation, for example, step 203 may be executed before step 202, and step 207 to step 209 may be executed before step 206. Step 202, step 203, step 205 to step 206, step 207 to step 209, and step 211 and step 212 may be deleted as appropriate. Any method that can be easily conceived by those skilled in the art within the technical scope of the present disclosure is covered by the protection scope of the present disclosure, and thus, the detailed description thereof is omitted.
In summary, embodiments of the present invention provide a bandwidth determining method, which may determine, according to at least two service types of a target application, reference applications of at least two different service types, and may determine, according to a set of bandwidth data when an edge server transmits service data of each reference application in a reference time period, a bandwidth required when the edge server transmits the service data of the target application. Because the service type of each reference application program is the same as one service type of the target application program, the bandwidth required by the edge server for transmitting the service data of the target application program can be accurately determined according to the bandwidth data of the at least two reference application programs, and the accuracy of the estimated bandwidth can be improved.
Fig. 13 is a schematic structural diagram of a bandwidth determining apparatus according to an embodiment of the present invention. As can be seen with reference to fig. 13, the apparatus may comprise:
a first determining module 301, configured to determine at least two reference applications with different service types, where each service type of the reference application is the same as one service type of the target application.
The first obtaining module 302 is configured to obtain a set of bandwidth data when the edge server transmits the service data of each reference application in a reference time period, so as to obtain at least two sets of bandwidth data.
A second determining module 303, configured to determine, according to the at least two sets of bandwidth data, a bandwidth required by the edge server to transmit the service data of the target application.
Alternatively, the reference period may include a plurality of time instants, and each set of bandwidth data includes a bandwidth of each of the plurality of time instants. Fig. 14 is a schematic structural diagram of a second determining module according to an embodiment of the present invention. As can be seen with reference to fig. 14, the second determining module 303 may include:
the first determining submodule 3031 is configured to, for each of the multiple time instants, accumulate the bandwidth at the time instant in the at least two sets of bandwidth data to obtain the bandwidth required by the edge server when transmitting the service data of the target application program at the time instant.
A second determining submodule 3032 is configured to determine an idle time period in the reference time period and the first scaling factor.
The first scaling submodule 3033 is configured to scale the bandwidth of the idle time period by using the first scaling factor.
The first obtaining submodule 3034 is configured to obtain, for each of the reference applications, a target bandwidth of the reference application.
A third determining submodule 3035, configured to determine a second scaling factor according to a ratio of the target bandwidth of the reference application to a peak bandwidth in a set of bandwidth data when the edge server transmits the service data of the reference application.
A second scaling submodule 3036, configured to scale, by using the second scaling factor, a bandwidth at each time in a set of bandwidth data when the edge server transmits the service data of the reference application.
Optionally, the first obtaining module 302 may be configured to determine a type of the bandwidth data, where the type includes network card bandwidth data or log bandwidth data, and obtain, from the edge server, a set of bandwidth data of the type when the edge server transmits the service data of each reference application program in the reference time period according to the type of the bandwidth data.
Fig. 15 is a schematic structural diagram of another bandwidth determining apparatus according to an embodiment of the present invention, and as shown in fig. 15, the apparatus may further include:
a third determining module 304, configured to determine the cost parameter according to a bandwidth required by the edge server when transmitting the service data of the target application.
A display module 305 for displaying the cost parameter.
Wherein the cost parameter includes one or more of an edge settlement bandwidth, a mean bandwidth, a 95 bandwidth, a daily mean 95 bandwidth, a busy hour mean bandwidth, an idle hour mean bandwidth, a total traffic, a busy hour traffic, an idle hour traffic, a backtracking rate, and a reselling ratio, the reselling ratio being proportional to a ratio of the mean bandwidth to the edge settlement bandwidth.
Optionally, referring to fig. 15, the apparatus may further include:
a second obtaining module 306, configured to obtain, for each of the reference applications, a reference time period of the reference application input in the configuration interface.
Wherein the reference time periods of at least two of the reference applications are the same in duration.
Optionally, the first determining module 301 is configured to obtain identifiers of at least two application programs input in the configuration interface, and determine the application program indicated by the identifiers of the at least two application programs as reference application programs of at least two different service types corresponding to the target application program.
In summary, the embodiments of the present invention provide a bandwidth determining apparatus, which can determine, according to at least two service types of a target application, reference applications of at least two different service types, and can determine, according to a set of bandwidth data when an edge server transmits service data of each reference application in a reference time period, a bandwidth required when the edge server transmits the service data of the target application. Because the service type of each reference application program is the same as one service type of the target application program, the bandwidth required by the edge server for transmitting the service data of the target application program can be accurately determined according to the bandwidth data of the at least two reference application programs, and the accuracy of the estimated bandwidth can be improved.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 16 is a schematic structural diagram of a computer device according to an embodiment of the present invention. The computer device 400 may be: a notebook computer or a desktop computer. Computer device 400 may also be referred to by other names such as user equipment, portable terminals, laptop terminals, desktop terminals, and the like. Alternatively, the computer device 400 may also be a server.
Generally, the computer device 400 includes: a processor 401 and a memory 402.
Processor 401 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 401 may be implemented in at least one hardware form of Digital Signal Processing (DSP), field-programmable gate array (FPGA), Programmable Logic Array (PLA). The processor 401 may also include a main processor and a coprocessor, where the main processor is a processor for processing data in an awake state, and is also called a Central Processing Unit (CPU); a coprocessor is a low power processor for processing data in a standby state. In some embodiments, the processor 401 may be integrated with a Graphics Processing Unit (GPU) which is responsible for rendering and drawing the content required to be displayed by the display screen. In some embodiments, processor 401 may also include an Artificial Intelligence (AI) processor for processing computational operations related to machine learning.
Memory 402 may include one or more computer-readable storage media, which may be non-transitory. Memory 402 may also include high speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 402 is used to store at least one instruction for execution by processor 401 to implement the bandwidth determination methods provided by the method embodiments herein.
In some embodiments, the computer device 400 may also optionally include: a peripheral interface 403 and at least one peripheral. The processor 401, memory 402 and peripheral interface 403 may be connected by bus or signal lines. Each peripheral may be connected to the peripheral interface 403 via a bus, signal line, or circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 404, touch screen display 405, camera 406, audio circuitry 407, positioning components 408, and power supply 409.
The peripheral interface 403 may be used to connect at least one input/output (I/O) related peripheral to the processor 401 and the memory 402. In some embodiments, processor 401, memory 402, and peripheral interface 403 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 401, the memory 402 and the peripheral interface 403 may be implemented on a separate chip or circuit board, which is not limited by this embodiment.
The radio frequency circuit 404 is used for receiving and transmitting Radio Frequency (RF) signals, also called electromagnetic signals. The radio frequency circuitry 404 communicates with communication networks and other communication devices via electromagnetic signals. The rf circuit 404 converts an electrical signal into an electromagnetic signal to transmit, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 404 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a subscriber identity module card, and so forth. The radio frequency circuitry 404 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocols include, but are not limited to: metropolitan area networks, various generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or wireless fidelity (WiFi) networks. In some embodiments, the rf circuit 404 may further include a Near Field Communication (NFC) related circuit, which is not limited in this application.
The display screen 405 is used to display a User Interface (UI). The UI may include graphics, text, icons, video, and any combination thereof. When the display screen 405 is a touch display screen, the display screen 405 also has the ability to capture touch signals on or over the surface of the display screen 405. The touch signal may be input to the processor 401 as a control signal for processing. At this point, the display screen 405 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display screen 405 may be one, providing the front panel of the computer device 400; in other embodiments, the display screen 405 may be at least two, respectively disposed on different surfaces of the computer device 400 or in a folded design; in still other embodiments, the display screen 405 may be a flexible display screen disposed on a curved surface or on a folded surface of the computer device 400. Even further, the display screen 405 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The display screen 405 may be made of Liquid Crystal Display (LCD), organic light-emitting diode (OLED), or the like.
The camera assembly 406 is used to capture images or video. Optionally, camera assembly 406 includes a front camera and a rear camera. Generally, a front camera is disposed on a front panel of a computer apparatus, and a rear camera is disposed on a rear surface of the computer apparatus. In some embodiments, the number of the rear cameras is at least two, and each of the rear cameras is any one of a main camera, a depth-of-field camera, a wide-angle camera and a telephoto camera, so that the main camera and the depth-of-field camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting function and a Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, camera assembly 406 may also include a flash. The flash lamp can be a monochrome temperature flash lamp or a bicolor temperature flash lamp. The double-color-temperature flash lamp is a combination of a warm-light flash lamp and a cold-light flash lamp, and can be used for light compensation at different color temperatures.
The audio circuit 407 may include a microphone and a speaker. The microphone is used for collecting sound waves of a user and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 401 for processing, or inputting the electric signals to the radio frequency circuit 404 for realizing voice communication. For stereo capture or noise reduction purposes, the microphones may be multiple and located at different locations on the computer device 400. The microphone may also be an array microphone or an omni-directional pick-up microphone. The speaker is used to convert electrical signals from the processor 401 or the radio frequency circuit 404 into sound waves. The loudspeaker can be a traditional film loudspeaker or a piezoelectric ceramic loudspeaker. When the speaker is a piezoelectric ceramic speaker, the speaker can be used for purposes such as converting an electric signal into a sound wave audible to a human being, or converting an electric signal into a sound wave inaudible to a human being to measure a distance. In some embodiments, audio circuitry 407 may also include a headphone jack.
The location component 408 is used to locate the current geographic location of the computer device 400 for navigation or Location Based Services (LBS). The positioning component 408 may be a positioning component based on the Global Positioning System (GPS) of the united states, the beidou system of china, the graves system of russia, or the galileo system of the european union.
The power supply 409 is used to supply power to the various components in the computer device 400. The power source 409 may be alternating current, direct current, disposable or rechargeable. When power source 409 comprises a rechargeable battery, the rechargeable battery may support wired or wireless charging. The rechargeable battery may also be used to support fast charge technology.
In some embodiments, the computer device 400 also includes one or more sensors 410. The one or more sensors 410 include, but are not limited to: acceleration sensor 411, gyro sensor 412, pressure sensor 413, fingerprint sensor 414, optical sensor 415, and proximity sensor 416.
The acceleration sensor 411 may detect the magnitude of acceleration in three coordinate axes of a coordinate system established with the computer apparatus 400. For example, the acceleration sensor 411 may be used to detect components of the gravitational acceleration in three coordinate axes. The processor 401 may control the touch display screen 405 to display the user interface in a landscape view or a portrait view according to the gravitational acceleration signal collected by the acceleration sensor 411. The acceleration sensor 411 may also be used for acquisition of motion data of a game or a user.
The gyro sensor 412 may detect a body direction and a rotation angle of the computer device 400, and the gyro sensor 412 may cooperate with the acceleration sensor 411 to acquire a 3D motion of the user on the computer device 400. From the data collected by the gyro sensor 412, the processor 401 may implement the following functions: motion sensing (such as changing the UI according to a user's tilting operation), image stabilization at the time of photographing, game control, and inertial navigation.
The pressure sensors 413 may be disposed on the side bezel of the computer device 400 and/or on the lower layer of the touch screen display 405. When the pressure sensor 413 is arranged on the side frame of the computer device 400, the holding signal of the user to the computer device 400 can be detected, and the processor 401 performs left-right hand identification or shortcut operation according to the holding signal collected by the pressure sensor 413. When the pressure sensor 413 is disposed at the lower layer of the touch display screen 405, the processor 401 controls the operability control on the UI interface according to the pressure operation of the user on the touch display screen 405. The operability control comprises at least one of a button control, a scroll bar control, an icon control and a menu control.
The fingerprint sensor 414 is used for collecting a fingerprint of the user, and the processor 401 identifies the identity of the user according to the fingerprint collected by the fingerprint sensor 414, or the fingerprint sensor 414 identifies the identity of the user according to the collected fingerprint. Upon recognizing that the user's identity is a trusted identity, processor 401 authorizes the user to perform relevant sensitive operations including unlocking the screen, viewing encrypted information, downloading software, paying, and changing settings, etc. The fingerprint sensor 414 may be disposed on the front, back, or side of the computer device 400. When a physical key or vendor Logo is provided on the computer device 400, the fingerprint sensor 414 may be integrated with the physical key or vendor Logo.
The optical sensor 415 is used to collect the ambient light intensity. In one embodiment, the processor 401 may control the display brightness of the touch display screen 405 based on the ambient light intensity collected by the optical sensor 415. Specifically, when the ambient light intensity is high, the display brightness of the touch display screen 405 is increased; when the ambient light intensity is low, the display brightness of the touch display screen 405 is turned down. In another embodiment, the processor 401 may also dynamically adjust the shooting parameters of the camera assembly 406 according to the ambient light intensity collected by the optical sensor 415.
Proximity sensors 416, also known as distance sensors, are typically provided on the front panel of the computer device 400. The proximity sensor 416 is used to capture the distance between the user and the front of the computer device 400. In one embodiment, the processor 401 controls the touch display screen 405 to switch from the bright screen state to the rest screen state when the proximity sensor 416 detects that the distance between the user and the front surface of the computer device 400 is gradually decreased; the touch display screen 405 is controlled by the processor 401 to switch from a breath-screen state to a bright-screen state when the proximity sensor 416 detects that the distance between the user and the front surface of the computer device 400 is gradually increasing.
Those skilled in the art will appreciate that the configuration shown in FIG. 16 is not intended to be limiting of the computer device 400, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components may be used.
An embodiment of the present invention further provides a computer-readable storage medium, where at least one instruction, at least one program, a code set, or a set of instructions is stored in the storage medium, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement the bandwidth determination method provided in the foregoing method embodiment.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for bandwidth determination, the method comprising:
determining at least two reference applications of different service types, wherein each of the reference applications is capable of providing a service of one service type, and the service type of each of the reference applications is the same as one service type of a target application, and the target application is different from the reference applications;
acquiring a group of bandwidth data when the edge server transmits the service data of each reference application program in a reference time interval to obtain at least two groups of bandwidth data, wherein the time lengths of the reference time intervals of at least two reference application programs are the same;
and accumulating the at least two groups of bandwidth data to obtain the bandwidth required by the edge server when transmitting the service data of the target application program.
2. The method of claim 1, wherein the reference period comprises a plurality of time instances, each set of the bandwidth data comprising a bandwidth for each of the plurality of time instances; the accumulating the at least two groups of bandwidth data to obtain the bandwidth required by the edge server when transmitting the service data of the target application program includes:
and accumulating the bandwidth of the time in the at least two groups of bandwidth data for each time of the multiple times to obtain the bandwidth required by the edge server when the edge server transmits the service data of the target application program at the time.
3. The method of claim 2, wherein prior to accumulating the bandwidth at the time in the at least two sets of bandwidth data, the method further comprises:
determining an idle time period within the reference time period, and a first scaling factor;
and scaling the bandwidth at the moment of the idle time period by adopting the first scaling coefficient.
4. The method of claim 2, wherein prior to accumulating the bandwidth at the time in the at least two sets of bandwidth data, the method further comprises:
for each reference application program, acquiring a target bandwidth of the reference application program;
determining a second scaling factor according to the ratio of the target bandwidth of the reference application program to the peak bandwidth in a group of bandwidth data when the edge server transmits the service data of the reference application program;
and scaling the bandwidth of each moment in a group of bandwidth data when the edge server transmits the service data of the reference application program by adopting the second scaling coefficient.
5. The method according to any one of claims 1 to 4, wherein the obtaining bandwidth data when the edge server transmits the service data of each reference application comprises:
determining the type of bandwidth data, wherein the type comprises network card bandwidth data or log bandwidth data;
and acquiring a set of bandwidth data of the type when the edge server transmits the service data of each reference application program in the reference time period from the edge server according to the type of the bandwidth data.
6. The method according to any one of claims 1 to 4, wherein after obtaining the bandwidth required by the edge server to transmit the service data of the target application, the method further comprises:
determining a cost parameter according to the bandwidth required by the edge server when transmitting the service data of the target application program;
displaying the cost parameter;
the cost parameters comprise one or more of edge settlement bandwidth, mean bandwidth, 95 bandwidth, daily mean 95 bandwidth, busy hour mean bandwidth, idle hour mean bandwidth, total flow, busy hour flow, idle hour flow, return rate and over-sell ratio;
the edge settlement bandwidth is a bandwidth required by the edge server when the edge server transmits the service data of the target application program at the settlement time, and the settlement time is a time corresponding to a peak value of accumulated bandwidth when the edge server transmits the service data of each application program in the reference time interval;
the resell ratio is proportional to a ratio of the mean bandwidth to the edge settlement bandwidth.
7. The method according to any one of claims 1 to 4, wherein before the obtaining of the set of bandwidth data when the edge server transmits the service data of each of the reference applications in the reference period, the method comprises:
for each reference application program, acquiring the reference time period of the reference application program input in the configuration interface.
8. A bandwidth determining apparatus, the apparatus comprising:
the first determining module is used for determining at least two reference application programs with different service types, wherein each reference application program can provide services of one service type, the service type of each reference application program is the same as one service type of a target application program, and the target application program is different from the reference application program;
the first acquisition module is used for acquiring a group of bandwidth data when the edge server transmits the service data of each reference application program in a reference time interval to obtain at least two groups of bandwidth data, wherein the reference time intervals of at least two reference application programs are the same in duration;
and the second determining module is used for accumulating the at least two groups of bandwidth data to obtain the bandwidth required by the edge server when the edge server transmits the service data of the target application program.
9. A computer device comprising a processor and a memory, the memory having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by the processor to implement the bandwidth determination method according to any one of claims 1 to 7.
10. A computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the bandwidth determination method according to any one of claims 1 to 7.
CN201910484728.9A 2019-06-05 2019-06-05 Bandwidth determination method and device, computer equipment and storage medium Active CN110213131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910484728.9A CN110213131B (en) 2019-06-05 2019-06-05 Bandwidth determination method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910484728.9A CN110213131B (en) 2019-06-05 2019-06-05 Bandwidth determination method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110213131A CN110213131A (en) 2019-09-06
CN110213131B true CN110213131B (en) 2022-01-11

Family

ID=67790936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910484728.9A Active CN110213131B (en) 2019-06-05 2019-06-05 Bandwidth determination method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110213131B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111698262B (en) * 2020-06-24 2021-07-16 北京达佳互联信息技术有限公司 Bandwidth determination method, device, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859195A (en) * 2006-02-23 2006-11-08 华为技术有限公司 Method and system for control bandwidth
CN106357559A (en) * 2016-09-21 2017-01-25 东软集团股份有限公司 Bandwidth allocation method and device
CN108449613A (en) * 2018-03-09 2018-08-24 北京数码视讯软件技术发展有限公司 It is a kind of to merge multiple services CDN system, fusion method and device
CN109361622A (en) * 2018-11-30 2019-02-19 网宿科技股份有限公司 The method and CDN system of bandwidth control are carried out to the service connection of CDN system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141284B (en) * 2007-01-31 2011-01-19 中兴通讯股份有限公司 Service bandwidth configuring method and network management system
US8880666B2 (en) * 2010-10-29 2014-11-04 At&T Intellectual Property I, L.P. Method, policy request router, and machine-readable hardware storage device to select a policy server based on a network condition to receive policy requests for a duration
CN109165343B (en) * 2018-08-02 2019-10-11 北京小蓦机器人技术有限公司 Content acquisition method, device, equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1859195A (en) * 2006-02-23 2006-11-08 华为技术有限公司 Method and system for control bandwidth
CN106357559A (en) * 2016-09-21 2017-01-25 东软集团股份有限公司 Bandwidth allocation method and device
CN108449613A (en) * 2018-03-09 2018-08-24 北京数码视讯软件技术发展有限公司 It is a kind of to merge multiple services CDN system, fusion method and device
CN109361622A (en) * 2018-11-30 2019-02-19 网宿科技股份有限公司 The method and CDN system of bandwidth control are carried out to the service connection of CDN system

Also Published As

Publication number Publication date
CN110213131A (en) 2019-09-06

Similar Documents

Publication Publication Date Title
CN110569220B (en) Game resource file display method and device, terminal and storage medium
CN108805560B (en) Numerical value integration method and device, electronic equipment and computer readable storage medium
CN111479120A (en) Method, device, equipment and storage medium for issuing virtual red packet in live broadcast room
CN110380904B (en) Bandwidth allocation method and device, electronic equipment and storage medium
CN111125436A (en) Data management method, device and system
CN110147503B (en) Information issuing method and device, computer equipment and storage medium
CN109889858B (en) Information processing method and device for virtual article and computer readable storage medium
CN112770177B (en) Multimedia file generation method, multimedia file release method and device
CN110912830A (en) Method and device for transmitting data
CN110971840B (en) Video mapping method and device, computer equipment and storage medium
CN110213131B (en) Bandwidth determination method and device, computer equipment and storage medium
CN109688064B (en) Data transmission method and device, electronic equipment and storage medium
CN111881423A (en) Method, device and system for limiting function use authorization
CN112597417B (en) Page updating method and device, electronic equipment and storage medium
CN110971692B (en) Method and device for opening service and computer storage medium
CN110365545B (en) Distribution rate processing method, device, server and storage medium
CN113935678A (en) Method, device, equipment and storage medium for determining multiple distribution terminals held by distributor
CN111064657B (en) Method, device and system for grouping concerned accounts
CN110336881B (en) Method and device for executing service processing request
CN110519319B (en) Method and device for splitting partitions
CN107948171B (en) User account management method and device
CN111191254A (en) Access verification method and device, computer equipment and storage medium
CN111158780A (en) Method, device, electronic equipment and medium for storing application data
CN113064537B (en) Media resource playing method, device, equipment, medium and product
CN113098781B (en) Session list processing method, device, server 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