Resource adjustment method and device, equipment, medium and product
By using the bandwidth usage data prediction model and the analysis of dedicated line transfer frequency and failure rate, precise adjustment of bandwidth resources is achieved, solving the problems of low flexibility and accuracy in the existing technology, reducing costs and improving business response. efficiency.
Patent Information
- Application Number
- CN202411537362.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-01-24
AI Technical Summary
When adjusting bandwidth resources, the existing technology has low flexibility and accuracy, which cannot meet the high response time requirements of diversified services, resulting in increased costs and extended service response time.
By using the data prediction model corresponding to the bandwidth corresponding to the target business, the target bandwidth of the target time period is accurately predicted, and whether the dedicated line needs to be replaced according to the closing frequency and failure rate of the dedicated line. resource.
The scope of the adjustment of bandwidth resources has been expanded, the flexibility and accuracy are improved, the cost is reduced, and the high requirements of the business on the response time are met.
Smart Images

Figure CN119363595A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and in particular, relates to a resource adjustment method, device, equipment, medium and product. Background Art
[0002] With the development of the communications and Internet industries, the types of services are increasing. Services not only include information data, but also audio and video data, and users have higher and higher requirements for service response time. For diversified services, if the bandwidth resources used by the services are not adjusted accurately, on the one hand, it may generate unnecessary costs due to the expansion of bandwidth resources, and on the other hand, it may increase the service response time. Therefore, in order to meet business needs, how to accurately adjust the bandwidth is an issue that needs to be solved urgently.
[0003] In the prior art, the peak traffic time period and the low-peak traffic time period of the dedicated line are predicted through historical bandwidth usage data, and the bandwidth resource adjustment strategy is formulated according to the peak traffic time period and the low-peak traffic time period of the dedicated line. Although the bandwidth resources can be adjusted according to the business volume, the flexibility of bandwidth resource adjustment is not high and the accuracy is low. Summary of the invention
[0004] The embodiments of the present application provide a resource adjustment method, apparatus, device, medium and product, which use a bandwidth usage data prediction model corresponding to a target service to accurately predict target bandwidth usage data in a target time period, and determine whether to replace a dedicated line based on the dedicated line cutover frequency and failure rate of the dedicated line used by the target service. If the dedicated line needs to be replaced, after the dedicated line is replaced, the bandwidth resources of the replaced dedicated line in the target time period are adjusted based on the predicted target bandwidth usage data. That is to say, the dedicated line and the bandwidth resources of the dedicated line can be adjusted at the same time, which expands the scope of bandwidth resource adjustment, improves flexibility, and thus improves the accuracy of bandwidth resource adjustment.
[0005] In a first aspect, an embodiment of the present application provides a method for adjusting resources, including:
[0006] Obtain a service identifier of a target service and a first dedicated line cutover frequency and a first failure rate of the target service in a historical time period;
[0007] Selecting a target bandwidth usage data prediction model corresponding to the service identifier from the preset bandwidth usage data prediction models;
[0008] Determine the target bandwidth usage data for the target time period by using the target relationship information between the preset time and the preset bandwidth usage data in the target bandwidth usage data prediction model;
[0009] When the first dedicated line cutover frequency and the first failure rate meet preset conditions, the dedicated line used by the target service is replaced with the target dedicated line;
[0010] According to the target bandwidth usage data, adjust the bandwidth resources of the target dedicated line in the target time period.
[0011] In a possible implementation, before obtaining the service identifier of the target service and the first dedicated line cutover frequency and the first failure rate of the target service in the historical time period, the method further includes:
[0012] Obtain historical bandwidth usage data and target holiday information for target services in historical time periods;
[0013] The historical bandwidth usage data is input into the initial bandwidth usage data prediction model, and the historical bandwidth usage data is fitted to obtain a target bandwidth usage data prediction model. The target bandwidth usage data prediction model includes target relationship information between preset time and preset bandwidth usage data, and the target relationship information includes sub-relationship information between target holiday information and preset bandwidth usage data.
[0014] In a possible implementation, obtaining target holiday information of a target business in a historical time period includes:
[0015] Obtain holiday configuration information of the target business, which includes relationship information between time periods and holiday information;
[0016] According to the holiday configuration information, determine the target holiday information corresponding to the historical time period.
[0017] In a possible implementation, when the first dedicated line cutover frequency and the first failure rate meet preset conditions, replacing the dedicated line used by the target service with the target dedicated line includes:
[0018] When the first dedicated line cutover frequency is greater than the first preset value and the first failure rate is greater than the second preset value, the dedicated line used by the target service is replaced with the target dedicated line. The target dedicated line includes a first sub-target dedicated line and a second sub-target dedicated line. The second dedicated line cutover frequency of the first sub-target dedicated line in the historical time period is not greater than the first preset value, and the second failure rate of the second sub-target dedicated line in the historical time period is not greater than the second preset value.
[0019] In a possible implementation, when the first dedicated line cutover frequency and the first failure rate meet preset conditions, replacing the dedicated line used by the target service with the target dedicated line includes:
[0020] Obtain the third dedicated line cutover frequency and third failure rate of the target dedicated line in the historical time period;
[0021] When the third dedicated line cutover frequency is lower than the first dedicated line cutover frequency and the third failure rate is lower than the first failure rate, the dedicated line used by the target service is replaced with the target dedicated line.
[0022] In a possible implementation, adjusting the bandwidth resources of the target dedicated line in the target time period according to the target bandwidth usage data includes:
[0023] Send a permission request for the target dedicated line to the target device;
[0024] When the adjustment authority information sent by the target device is received, the bandwidth resources of the target dedicated line in the target time period are adjusted according to the target bandwidth usage data.
[0025] In a possible embodiment, it also includes:
[0026] When the first dedicated line cutover frequency and the first failure rate do not meet preset conditions, the bandwidth resources of the dedicated line used by the target service in the target time period are adjusted according to the target bandwidth usage data.
[0027] In a second aspect, an embodiment of the present application provides a resource adjustment device, including:
[0028] An acquisition module, used to acquire a service identifier of a target service and a first dedicated line cutover frequency and a first failure rate of the target service in a historical time period;
[0029] A selection module, used to select a target bandwidth usage data prediction model corresponding to the service identifier from preset bandwidth usage data prediction models;
[0030] A determination module, configured to determine target bandwidth usage data for a target time period by using target relationship information between a preset time and preset bandwidth usage data in the target bandwidth usage data prediction model;
[0031] A replacement module, used for replacing the dedicated line used by the target service with a target dedicated line when the first dedicated line cutover frequency and the first failure rate meet preset conditions;
[0032] The adjustment module is used to adjust the bandwidth resources of the target dedicated line in the target time period according to the target bandwidth usage data.
[0033] In a third aspect, an embodiment of the present application provides an electronic device, the device comprising:
[0034] a processor and a memory storing computer program instructions;
[0035] The method for adjusting resources described in any one of the above is implemented when the processor executes computer program instructions.
[0036] In a fourth aspect, an embodiment of the present application provides a computer storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, any of the above-mentioned resource adjustment methods is implemented.
[0037] In a fifth aspect, an embodiment of the present application provides a computer program product, characterized in that when instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute any one of the above-mentioned resource adjustment methods.
[0038] The resource adjustment method, device, equipment, medium and product of the embodiments of the present application include: obtaining a service identifier of a target service and a first dedicated line cutover frequency and a first failure rate of the target service in a historical time period; selecting a target bandwidth usage data prediction model corresponding to the service identifier from a preset bandwidth usage data prediction model; determining target bandwidth usage data for a target time period by using target relationship information between a preset time and preset bandwidth usage data in the target bandwidth usage data prediction model; replacing a dedicated line used by the target service with a target dedicated line when the first dedicated line cutover frequency and the first failure rate meet preset conditions; and adjusting bandwidth resources of the target dedicated line for the target time period according to the target bandwidth usage data.
[0039] In this way, the target bandwidth usage data prediction model corresponding to the target business is used to accurately predict the target bandwidth usage data of the target time period, and based on the dedicated line connection frequency and failure rate of the dedicated line used by the target business, it is determined whether the dedicated line needs to be replaced. If the dedicated line needs to be replaced, after the dedicated line is replaced, the bandwidth resources of the replaced dedicated line in the target time period are adjusted based on the predicted target bandwidth usage data. In other words, the bandwidth resources of the dedicated line and the dedicated line can be adjusted at the same time, which expands the scope of bandwidth resource adjustment, improves flexibility, and thus improves the accuracy of bandwidth resource adjustment. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0041] Figure 1 It is a flowchart of a resource adjustment method provided by an embodiment of the present application;
[0042] Figure 2 is a flowchart of a resource adjustment method provided by another embodiment of the present application;
[0043] Figure 3 is a flowchart of a resource adjustment method provided by another embodiment of the present application;
[0044] Figure 4 is a flowchart of a resource adjustment method provided in yet another embodiment of the present application;
[0045] Figure 5 is a flowchart of a resource adjustment method provided in yet another embodiment of the present application;
[0046] Figure 6 is a flowchart of a resource adjustment method provided in yet another embodiment of the present application;
[0047] Figure 7 is a structural diagram of a resource adjustment device provided in yet another embodiment of the present application;
[0048] Figure 8 It is a structural diagram of an electronic device provided in yet another embodiment of the present application. DETAILED DESCRIPTION
[0049] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.
[0050] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0051] It should be noted that the acquisition, storage, use and processing of data in the embodiments of the present application are in compliance with the relevant provisions of national laws and regulations.
[0052] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0053] With the development of the communications and Internet industries, there are more and more types of services. Services not only include information data, but also audio and video data, and users have higher and higher requirements for service response time. For diversified services, if the bandwidth resources used by the services are not adjusted accurately, on the one hand, it may generate unnecessary costs due to the expansion of bandwidth resources, and on the other hand, it may increase the service response time. Therefore, in order to meet business needs and improve business processing efficiency while saving costs, how to accurately adjust the bandwidth is an urgent problem to be solved.
[0054] In the prior art, the peak traffic time period and the low-peak traffic time period of the dedicated line are predicted through historical bandwidth usage data, and the bandwidth resource adjustment strategy is formulated according to the peak traffic time period and the low-peak traffic time period of the dedicated line. Although the bandwidth resources can be adjusted according to the business volume, the flexibility of bandwidth resource adjustment is not high and the accuracy is low.
[0055] Among them, a dedicated line is a dedicated channel provided between two points or between multiple points to transmit high-volume voice, data, audio or video services.
[0056] In order to solve the problems of the prior art, the embodiments of the present application provide a resource adjustment method, device, equipment, medium and product. The resource adjustment method provided in the embodiments of the present application uses the bandwidth usage data prediction model corresponding to the target business to accurately predict the target bandwidth usage data of the target time period, and judges whether to replace the dedicated line based on the dedicated line cutover frequency and failure rate of the dedicated line used by the target business. If the dedicated line needs to be replaced, after replacing the dedicated line, adjust the bandwidth resources of the replaced dedicated line in the target time period based on the predicted target bandwidth usage data, that is, the dedicated line and the bandwidth resources of the dedicated line can be adjusted at the same time, which expands the scope of bandwidth resource adjustment, improves flexibility, and thus improves the accuracy of bandwidth resource adjustment.
[0057] The following first introduces the resource adjustment method provided by the embodiment of the present application. Figure 1 As shown, the resource adjustment method provided in the embodiment of the present application includes the following steps.
[0058] S110: Obtain a service identifier of a target service and a first dedicated line cutover frequency and a first failure rate of the target service in a historical time period.
[0059] Here, the service identifier includes the service name.
[0060] In some embodiments, the service identifier may be an identifier of a type of service. The same service identifier may be used for the same type of service. It is understandable that the service volume change trend of the same type of service is the same. A type of service may include at least one service.
[0061] In some embodiments, the service identifier may also be an identifier of a service. The same service may use the same service identifier, and each service identifier corresponds to a service.
[0062] In some embodiments, the historical time period may be multiple time periods. The first dedicated line cutover frequency may be the total number of dedicated line cutovers that occurred in the historical time period, or the average number of dedicated line cutovers that occurred in multiple time periods. The first failure rate may be the total number of dedicated line failures that occurred in the historical time period, or the average number of dedicated line failures that occurred in multiple time periods. As an example, one time period is one month.
[0063] It should be noted that dedicated line migration refers to the process of replacing, migrating or adjusting existing dedicated lines in a communication network. This operation is usually done to meet the needs of network upgrades, equipment replacements, and equipment room relocations to ensure network stability and business continuity.
[0064] S120: Select a target bandwidth usage data prediction model corresponding to the service identifier from preset bandwidth usage data prediction models.
[0065] Here, the preset bandwidth usage data prediction model is set in advance and is a model trained in advance using historical bandwidth usage data of different services. The target bandwidth usage data prediction model is a model trained using historical bandwidth usage data of the target service.
[0066] In some embodiments, the historical bandwidth usage data needs to meet the requirements of the preset network dedicated line bandwidth.
[0067] It should be noted that different services have different requirements for bandwidth resources. For example, video data and voice data require more broadband resources than information data, but they do not need to be as stable. For payment services, broadband resources are required to be highly stable, but not necessarily more. Stability and real-time performance must be guaranteed. In addition, different services have different peak and off-peak time periods for bandwidth resource use. For some services, more or more stable broadband resources may be required during national holidays or special festivals.
[0068] S130: Determine target bandwidth usage data for a target time period by using target relationship information between preset time points and preset bandwidth usage data in a target bandwidth usage data prediction model.
[0069] Here, the target time period may be one time period or multiple time periods. The target bandwidth usage data needs to meet the requirement of the preset network dedicated line bandwidth.
[0070] In some embodiments, the target bandwidth usage data prediction model includes a prophet prediction model, which includes at least a trend item, a season item, and a holiday item. The target relationship information between the preset time and the preset bandwidth usage data can be obtained by summing the trend item, the season item, and the holiday item. The target relationship information includes function relationship information.
[0071] In some embodiments, the target time period is determined by the time period length and the number of time periods input by the user. The user can flexibly adjust the forecast time period by adjusting the time period length and the number of time periods.
[0072] It is understandable that the target bandwidth usage data is a time series and changes over time.
[0073] S140: When the first dedicated line cutover frequency and the first failure rate meet preset conditions, replace the dedicated line used by the target service with the target dedicated line.
[0074] Here, the preset condition is set in advance, such as the preset condition being not less than the dedicated line cutover frequency and failure rate specified by the target business.
[0075] In some embodiments, when the first dedicated line cutover frequency and the first failure rate meet preset conditions, the dedicated line used by the target service is immediately replaced with the target dedicated line.
[0076] In some embodiments, when the first dedicated line cutover frequency and the first failure rate meet preset conditions, the dedicated line used by the target service in the target time period is replaced with the target dedicated line.
[0077] In some embodiments, the target dedicated line is a pre-set dedicated line. When the first dedicated line cutover frequency and the first failure rate meet the preset conditions, the dedicated line used by the target service is replaced with the target dedicated line. When the first dedicated line cutover frequency and the first failure rate do not meet the preset conditions, the target dedicated line used by the target service can also be replaced with the original dedicated line.
[0078] In some embodiments, the dedicated line cutting frequency of the target dedicated line is less than the first dedicated line cutting frequency and / or the failure rate of the target dedicated line is less than the first failure rate. When the first dedicated line cutting frequency and the first failure rate meet the preset conditions, the dedicated line used by the target service is replaced with a target dedicated line whose dedicated line cutting frequency is less than the first dedicated line cutting frequency and / or the failure rate of the target dedicated line is less than the first failure rate. When the dedicated line cutting frequency and the failure rate of the target dedicated line meet the preset conditions, the target dedicated line used by the target service can also be replaced with other dedicated lines, or the original dedicated line. Here, the other dedicated lines do not meet the preset conditions.
[0079] S150: Adjust the bandwidth resources of the target dedicated line in the target time period according to the target bandwidth usage data.
[0080] In some embodiments, according to the target bandwidth usage data, the bandwidth resources of the target dedicated line in the target time period are expanded or reduced, and the adjusted bandwidth resources of the target dedicated line can meet the normal operation of the target business within the target bandwidth usage data.
[0081] In this way, the target bandwidth usage data prediction model corresponding to the target business is used to accurately predict the target bandwidth usage data of the target time period, and based on the dedicated line connection frequency and failure rate of the dedicated line used by the target business, it is determined whether the dedicated line needs to be replaced. If the dedicated line needs to be replaced, after the dedicated line is replaced, the bandwidth resources of the replaced dedicated line in the target time period are adjusted based on the predicted target bandwidth usage data. In other words, the bandwidth resources of the dedicated line and the dedicated line can be adjusted at the same time, which expands the scope of bandwidth resource adjustment, improves flexibility, and thus improves the accuracy of bandwidth resource adjustment.
[0082] Based on this, in some embodiments, Figure 2 As shown, before the above S110, the method may further include:
[0083] S101, obtaining historical bandwidth usage data of a target service in a historical time period and target holiday information;
[0084] S102: Input the historical bandwidth usage data into the initial bandwidth usage data prediction model, fit the historical bandwidth usage data, and obtain a target bandwidth usage data prediction model, wherein the target bandwidth usage data prediction model includes target relationship information between a preset time and preset bandwidth usage data, and the target relationship information includes sub-relationship information between target holiday information and preset bandwidth usage data.
[0085] Here, the initial bandwidth usage data prediction model includes a prophet prediction model, which includes at least a trend item, a season item and a holiday item. The holiday item is sub-relationship information between target holiday information and preset bandwidth usage data.
[0086] It should be noted that the Prophet forecasting model fits and forecasts time series data by combining factors such as trend, seasonality and holiday effects through time series decomposition and additive regression. It can not only handle some outliers in the time series, but also handle some missing values, and can almost automatically predict the future trend of the time series. It is based on the fitting of time series decomposition and machine learning, and uses the pyStan open source tool when fitting the model, so it can get the required prediction results in a relatively fast time.
[0087] By inputting the timestamp and corresponding value of a known time series into the Prophet prediction model, the future time series trend and necessary statistical indicators, including fitting curves, upper and lower bounds, etc., can be output. The Prophet prediction model can also input holiday information, which can be a specific date. Here, the timestamp and corresponding value of the input known time series refer to the historical bandwidth usage data of the target business in the historical time period, and the input holiday information refers to the target holiday information.
[0088] In some embodiments, the season item refers to sub-relationship information between a time period and preset bandwidth usage data. The trend item refers to a change trend of historical bandwidth usage data.
[0089] In this way, the target relationship information includes sub-relationship information of target holiday information and preset bandwidth usage data. Based on the trained target bandwidth usage data prediction model, the target bandwidth usage data of the target time period is predicted, that is, the bandwidth resources are adjusted based on the target bandwidth usage data. The impact of holidays is taken into account, and the problem of irregular peaks during holidays is solved. The bandwidth resources are adjusted according to actual business scenarios and business characteristics, which further improves the accuracy of bandwidth resource adjustment.
[0090] Based on this, in some embodiments, obtaining target holiday information of a target business in a historical time period includes:
[0091] Obtain holiday configuration information of the target business, which includes relationship information between time periods and holiday information;
[0092] According to the holiday configuration information, determine the target holiday information corresponding to the historical time period.
[0093] Here, each business or each type of business has fixed holiday configuration information.
[0094] In some embodiments, the holiday configuration information includes relationship information between multiple time periods in a year and holiday information. The historical time period is multiple months in a year, and then according to the holiday configuration information, the target holiday information corresponding to the historical time period can be determined.
[0095] It should be noted that the holidays in the holiday configuration information are related to the bandwidth usage data and affect the bandwidth usage data.
[0096] In this way, by setting holiday configuration information for a certain business or a certain type of business, the holiday information of the historical time period can be automatically marked, and the model can be trained based on the determined holiday information, saving labor costs and improving efficiency and accuracy.
[0097] Based on this, in some embodiments, Figure 3 As shown, the above S140 may specifically include:
[0098] S141. When the first dedicated line cutover frequency is greater than the first preset value and the first failure rate is greater than the second preset value, the dedicated line used by the target service is replaced with a target dedicated line, the target dedicated line includes a first sub-target dedicated line and a second sub-target dedicated line, the second dedicated line cutover frequency of the first sub-target dedicated line in the historical time period is not greater than the first preset value, and the second failure rate of the second sub-target dedicated line in the historical time period is not greater than the second preset value.
[0099] Here, the first sub-target dedicated line and the second sub-target dedicated line are two different dedicated lines. The first preset value and the second preset value are set in advance.
[0100] In some embodiments, when the first dedicated line cutover frequency is greater than a first preset value and the first failure rate is not greater than a second preset value, the use of a first sub-target dedicated line is increased on the basis of the dedicated line used by the target business, and a portion of data can be transferred to the first sub-target dedicated line.
[0101] In some embodiments, when the frequency of first dedicated line cutting is not greater than a first preset value and the first failure rate is not greater than a second preset value, a second sub-target dedicated line is used in addition to the dedicated line used by the target business, and part of the data can be transferred to the second sub-target dedicated line.
[0102] In some embodiments, when the first dedicated line cutover frequency is greater than a first preset value and the first failure rate is greater than a second preset value, the dedicated line used by the target service is replaced with a first sub-target dedicated line and a second sub-target dedicated line.
[0103] In some embodiments, when the frequency of first dedicated line cutover is greater than the first preset value, and the first failure rate is greater than the second preset value, the dedicated line used by the target business is replaced with a third sub-target dedicated line, and the frequency of dedicated line cutover of the third sub-target dedicated line in the historical time period is not greater than the first preset value, and the failure rate is not greater than the second preset value.
[0104] In this way, when the dedicated line used by the target business does not meet the business needs, the dedicated line can be adjusted based on the dedicated line connection frequency and failure rate. The target business can use two better dedicated lines to transmit business data, achieving high availability of the dedicated line, improving the stability of bandwidth resources, and improving business processing efficiency.
[0105] Based on this, in some embodiments, Figure 4 As shown, the above S140 may specifically include:
[0106] S142. Obtain the third dedicated line connection frequency and the third failure rate of the target dedicated line in the historical time period;
[0107] S143: When the third dedicated line cutover frequency is lower than the first dedicated line cutover frequency and the third failure rate is lower than the first failure rate, replace the dedicated line used by the target service with the target dedicated line.
[0108] In some embodiments, when the third dedicated line cutover frequency is less than the first dedicated line cutover frequency and the third failure rate is not less than the first failure rate, the use of the target dedicated line is increased based on the dedicated line used by the target business, and part of the data can be transferred to the target dedicated line.
[0109] In some embodiments, when the third dedicated line cutover frequency is not less than the first dedicated line cutover frequency, and the third failure rate is not less than the first failure rate, the use of the target dedicated line is increased on the basis of the dedicated line used by the target business, and part of the data can be transferred to the target dedicated line.
[0110] In this way, the dedicated line connection frequency and failure rate of the target dedicated line are compared with the dedicated line used by the target business, and the target dedicated line with lower dedicated line connection frequency and failure rate is selected, and the dedicated line used by the target business is replaced with the target dedicated line, thereby achieving high availability of the dedicated line, improving the stability of bandwidth resources, and improving business processing efficiency.
[0111] Based on this, in some embodiments, Figure 5 As shown, the above S150 may specifically include:
[0112] S151, sending a request for obtaining the target dedicated line's authority to the target device;
[0113] S152: When the adjustment authority information sent by the target device is received, the bandwidth resources of the target dedicated line in the target time period are adjusted according to the target bandwidth usage data.
[0114] Here, the target device is set in advance and is the device to which bandwidth resources are allocated.
[0115] In some embodiments, when adjusting bandwidth resources, it is necessary to obtain adjustment permission information sent by the target device, and only after obtaining the adjustment permission information can the bandwidth resources be obtained from the target device. The permission acquisition request and the adjustment permission information include the capacity of the bandwidth resources.
[0116] In some embodiments, the target device may be a device of an operator.
[0117] In this way, when bandwidth resources need to be adjusted, a permission acquisition request is sent to the target device to which the bandwidth resources are allocated to obtain adjustment permission information, and the usage of bandwidth resources is adjusted from the source of the bandwidth resources. When bandwidth resources are reduced, costs can be reduced; when bandwidth resources are expanded, extra bandwidth resources can be obtained. Effective adjustment of bandwidth resources can save costs while improving the stability of bandwidth resources.
[0118] Based on this, in some embodiments, Figure 6 As shown, corresponding to the above S140, the method may further include:
[0119] S210: When the first dedicated line cutover frequency and the first failure rate do not meet preset conditions, adjust the bandwidth resources of the dedicated line used by the target service in the target time period according to the target bandwidth usage data.
[0120] In some embodiments, when the first dedicated line cutover frequency and the first failure rate do not meet preset conditions, the bandwidth resources of the dedicated line used by the target business in the target time period are adjusted according to the target bandwidth usage data, including: when the first dedicated line cutover frequency is not greater than the first preset value and the first failure rate is not greater than the second preset value, the bandwidth resources of the dedicated line used by the target business in the target time period are adjusted according to the target bandwidth usage data.
[0121] In some embodiments, when the first dedicated line cutover frequency and the first failure rate do not meet preset conditions, the bandwidth resources of the dedicated line used by the target business in the target time period are adjusted according to the target bandwidth usage data, including: when the third dedicated line cutover frequency is not less than the first dedicated line cutover frequency, and the third failure rate is not less than the first failure rate, the bandwidth resources of the dedicated line used by the target business in the target time period are adjusted according to the target bandwidth usage data.
[0122] In this way, if the first dedicated line connection frequency and the first failure rate do not meet the preset conditions, it means that the dedicated line used by the target business is already the optimal dedicated line. At this time, there is no need to adjust the dedicated line. You only need to adjust the bandwidth resources of the dedicated line used by the target business in the target time period to ensure the stability of the business.
[0123] The embodiments provided in this application can be applied to the financial field, such as the adjustment of bank network dedicated lines, through business requirements such as payment services, which need to be guaranteed to be real-time and non-congested; such as face scanning verification, which requires the transmission of videos and pictures, and the bandwidth resources require a certain guarantee, but the real-time requirements are not so high. These different businesses have different characteristics and different requirements for bandwidth resources, so it is necessary to form a scaling strategy based on business requirements and the cutover and fault characteristics of dedicated lines, and flexibly scale bandwidth resources based on prediction results, ensuring business efficiency while saving costs.
[0124] In the embodiments provided in the present application, the business characteristics are taken into consideration and the stability characteristics of the dedicated line are integrated. The actual dedicated line bandwidth data is learned through the prophet prediction model. By predicting the bandwidth usage data of the next cycle, the stability characteristics of the dedicated line are linked to form a bandwidth resource expansion and contraction strategy. By obtaining the dedicated line bandwidth resource adjustment authority, the dedicated line bandwidth resources are expanded and contracted in advance, which ensures normal business services while saving costs.
[0125] Based on the resource adjustment method provided in the above embodiment, the present application also provides a specific implementation of a resource adjustment device. Please refer to the following embodiment.
[0126] See also Figure 7 The resource adjustment device 300 provided in the embodiment of the present application includes:
[0127] An acquisition module 310 is used to acquire a service identifier of a target service and a first dedicated line cutover frequency and a first failure rate of the target service in a historical time period;
[0128] A selection module 320, configured to select a target bandwidth usage data prediction model corresponding to the service identifier from preset bandwidth usage data prediction models;
[0129] A determination module 330, configured to determine target bandwidth usage data for a target time period by using target relationship information between a preset time and preset bandwidth usage data in the target bandwidth usage data prediction model;
[0130] A replacement module 340 is used to replace the dedicated line used by the target service with a target dedicated line when the first dedicated line cutover frequency and the first failure rate meet preset conditions;
[0131] The adjustment module 350 is configured to adjust the bandwidth resources of the target dedicated line in the target time period according to the target bandwidth usage data.
[0132] Based on this, in some embodiments, the apparatus 300 may further include:
[0133] The acquisition module 310 is further configured to acquire historical bandwidth usage data and target holiday information of the target service in the historical time period before acquiring the service identifier of the target service and the first dedicated line cutover frequency and the first failure rate of the target service in the historical time period;
[0134] The fitting module is used to input the historical bandwidth usage data into the initial bandwidth usage data prediction model, fit the historical bandwidth usage data, and obtain the target bandwidth usage data prediction model. The target bandwidth usage data prediction model includes the target relationship information between the preset time and the preset bandwidth usage data, and the target relationship information includes the sub-relationship information between the target holiday information and the preset bandwidth usage data.
[0135] Based on this, in some embodiments, the acquisition module 310 may be specifically used for:
[0136] Obtain holiday configuration information of the target business, which includes relationship information between time periods and holiday information;
[0137] According to the holiday configuration information, determine the target holiday information corresponding to the historical time period.
[0138] Based on this, in some embodiments, the replacement module 340 can be specifically used for:
[0139] When the first dedicated line cutover frequency is greater than the first preset value and the first failure rate is greater than the second preset value, the dedicated line used by the target service is replaced with the target dedicated line. The target dedicated line includes a first sub-target dedicated line and a second sub-target dedicated line. The second dedicated line cutover frequency of the first sub-target dedicated line in the historical time period is not greater than the first preset value, and the second failure rate of the second sub-target dedicated line in the historical time period is not greater than the second preset value.
[0140] Based on this, in some embodiments, the replacement module 340 can be specifically used for:
[0141] Obtain the third dedicated line cutover frequency and third failure rate of the target dedicated line in the historical time period;
[0142] When the third dedicated line cutover frequency is lower than the first dedicated line cutover frequency and the third failure rate is lower than the first failure rate, the dedicated line used by the target service is replaced with the target dedicated line.
[0143] Based on this, in some embodiments, the adjustment module 350 may be specifically used to:
[0144] Send a permission request for the target dedicated line to the target device;
[0145] When the adjustment authority information sent by the target device is received, the bandwidth resources of the target dedicated line in the target time period are adjusted according to the target bandwidth usage data.
[0146] Based on this, in some embodiments, the apparatus 300 may further include:
[0147] The adjustment module 350 is further configured to adjust the bandwidth resources of the dedicated line used by the target service in the target time period according to the target bandwidth usage data when the first dedicated line cutover frequency and the first failure rate do not meet the preset conditions.
[0148] The various modules of the resource adjustment device provided in the embodiment of the present application can realize the functions of the various steps of the resource adjustment method provided above and achieve the corresponding technical effects, which will not be repeated here for the sake of concise description.
[0149] Based on the same inventive concept, an embodiment of the present application also provides an electronic device.
[0150] Figure 8 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.
[0151] The electronic device may include a processor 401 and a memory 402 storing computer program instructions.
[0152] Specifically, the processor 401 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.
[0153] Memory 402 may include a large capacity memory for data or instructions. By way of example and not limitation, memory 402 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, memory 402 may include a removable or non-removable (or fixed) medium. In appropriate cases, memory 402 may be inside or outside of an integrated gateway disaster recovery device. In a specific embodiment, memory 402 is a non-volatile solid-state memory.
[0154] The memory may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical or other physical / tangible memory storage device. Therefore, generally, the memory includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the method according to one aspect of the present disclosure.
[0155] The processor 401 implements any one of the resource adjustment methods in the above embodiments by reading and executing computer program instructions stored in the memory 402 .
[0156] In one example, the electronic device may further include a communication interface 403 and a bus 410. Figure 8 As shown, the processor 401, the memory 402, and the communication interface 403 are connected via a bus 410 and communicate with each other.
[0157] The communication interface 403 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.
[0158] The bus 410 includes hardware, software or both, coupling the components of the electronic device to each other. For example, but not limitation, the bus may include an accelerated graphics port (Accelerated Graphics Port, AGP) or other graphics bus, an enhanced industry standard architecture (Extended Industry Standard Architecture, EISA) bus, a front side bus (Front Side Bus, FSB), a hypertransport (Hyper Transport, HT) interconnection, an industry standard architecture (Industry Standard Architecture, ISA) bus, an infinite bandwidth interconnection, a low pin count (Linear Predictive Coding, LPC) bus, a memory bus, a micro channel architecture (MicroChannel Architecture, MCA) bus, a peripheral component interconnect (Peripheral Component Interconnect, PCI) bus, a PCI-Express (Peripheral Component Interconnect-X, PCI-X) bus, a serial advanced technology attachment (Serial Advanced Technology Attachment, SATA) bus, a video electronics standard association local (VESA Local Bus, VLB) bus or other suitable buses or a combination of two or more of these. Where appropriate, the bus 410 may include one or more buses. Although the embodiments of the present application describe and illustrate a specific bus, the present application considers any suitable bus or interconnection. The electronic device can execute the resource adjustment method in the embodiments of the present invention, thereby realizing the above-mentioned resource adjustment method.
[0159] In addition, in combination with the resource adjustment method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any resource adjustment method in the above embodiment is implemented.
[0160] The present application also provides a computer program product. When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device executes each process of implementing any one of the above-mentioned resource adjustment method embodiments.
[0161] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.
[0162] The functional blocks shown in the structural block diagram described above can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), appropriate firmware, plug-in, function card, etc. When implemented in software, the elements of the present application are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or communication link by a data signal carried in a carrier. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, read-only memory (Read-Only Memory, ROM), flash memory, erasable read-only memory (Erasable ReadOnly Memory, EROM), floppy disks, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical discs, hard disks, optical fiber media, radio frequency (Radio Frequency, RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.
[0163] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.
[0164] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.
[0165] The above are only specific implementation methods of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.
Claims
1. A resource adjustment method, characterized in that: include: Obtaining a service identifier of a target service and a first dedicated line cutover frequency and a first failure rate of the target service in a historical time period; Selecting a target bandwidth usage data prediction model corresponding to the service identifier from preset bandwidth usage data prediction models; Determine the target bandwidth usage data for the target time period by using the target relationship information between the preset time and the preset bandwidth usage data in the target bandwidth usage data prediction model; When the first dedicated line cutover frequency and the first failure rate meet preset conditions, replacing the dedicated line used by the target service with a target dedicated line; According to the target bandwidth usage data, the bandwidth resources of the target dedicated line in the target time period are adjusted.
2. The resource adjustment method according to claim 1, characterized in that: Before obtaining the service identifier of the target service and the first dedicated line cutover frequency and the first failure rate of the target service in the historical time period, the method further includes: Obtain historical bandwidth usage data and target holiday information of the target service in the historical time period; The historical bandwidth usage data is input into an initial bandwidth usage data prediction model, and the historical bandwidth usage data is fitted to obtain the target bandwidth usage data prediction model, wherein the target bandwidth usage data prediction model includes target relationship information between the preset time and the preset bandwidth usage data, and the target relationship information includes sub-relationship information between the target holiday information and the preset bandwidth usage data.
3. The resource adjustment method according to claim 2, characterized in that: Acquiring the target holiday information of the target business in the historical time period includes: Acquire holiday configuration information of the target service, wherein the holiday configuration information includes relationship information between time periods and holiday information; According to the holiday configuration information, target holiday information corresponding to the historical time period is determined.
4. The resource adjustment method according to claim 1, characterized in that: When the first dedicated line cutover frequency and the first failure rate meet preset conditions, replacing the dedicated line used by the target service with a target dedicated line includes: When the first dedicated line cutover frequency is greater than the first preset value and the first failure rate is greater than the second preset value, the dedicated line used by the target service is replaced with a target dedicated line, and the target dedicated line includes a first sub-target dedicated line and a second sub-target dedicated line. The second dedicated line cutover frequency of the first sub-target dedicated line in the historical time period is not greater than the first preset value, and the second failure rate of the second sub-target dedicated line in the historical time period is not greater than the second preset value.
5. The resource adjustment method according to claim 1, characterized in that: When the first dedicated line cutover frequency and the first failure rate meet preset conditions, replacing the dedicated line used by the target service with a target dedicated line includes: Obtain the third dedicated line cutover frequency and the third failure rate of the target dedicated line in the historical time period; When the third dedicated line cutover frequency is lower than the first dedicated line cutover frequency and the third failure rate is lower than the first failure rate, the dedicated line used by the target service is replaced with the target dedicated line.
6. The resource adjustment method according to claim 1, characterized in that: The adjusting the bandwidth resources of the target dedicated line in the target time period according to the target bandwidth usage data includes: Sending a request for obtaining the permission of the target dedicated line to the target device; When the adjustment authority information sent by the target device is received, the bandwidth resource of the target dedicated line in the target time period is adjusted according to the target bandwidth usage data.
7. The resource adjustment method according to claim 1, characterized in that: Also includes: When the first dedicated line cutover frequency and the first failure rate do not satisfy the preset condition, the bandwidth resources of the dedicated line used by the target service in the target time period are adjusted according to the target bandwidth usage data.
8. A resource adjustment device, characterized in that: include: An acquisition module, used to acquire a service identifier of a target service and a first dedicated line cutover frequency and a first failure rate of the target service in a historical time period; A selection module, used to select a target bandwidth usage data prediction model corresponding to the service identifier from preset bandwidth usage data prediction models; A determination module, configured to determine target bandwidth usage data for a target time period by using target relationship information between a preset time and preset bandwidth usage data in the target bandwidth usage data prediction model; A replacement module, used for replacing the dedicated line used by the target service with a target dedicated line when the first dedicated line cutover frequency and the first failure rate meet preset conditions; The adjustment module is used to adjust the bandwidth resources of the target dedicated line in the target time period according to the target bandwidth usage data.
9. An electronic device, characterized in that: The device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the resource adjustment method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by a processor, the resource adjustment method according to any one of claims 1 to 7 is implemented.
11. A computer program product, characterized in that When the instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute the resource adjustment method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Decision-making method, apparatus and device for service private line and computer readable medium
CN110516928A
Optical fiber line protection method and system based on OLP
CN115589253A
Automatic adjusting method and adjusting device for special line rate and electronic equipment
CN116016350A
Internet private line speed regulation method and device, electronic equipment and medium
CN116599908A
Transmission cutover data service conflict judgment method and system, electronic equipment and medium
CN117792931A