Software upgrading method, device and equipment and readable storage medium

By determining key upgrade software in existing network equipment based on network topology and software energy consumption information, and automatically performing batch upgrades, the problem of equipment software upgrades having a large impact on business in the existing technology is solved, and efficient, low-risk software upgrades are achieved.

CN118535192APending Publication Date: 2024-08-23FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410701226.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Businesses are often affected when the software of existing network equipment is upgraded. In the existing technology, individual or centralized upgrades have a great impact on business, and manual upgrades are cumbersome and time-consuming.

Method used

By determining key upgrade software based on network topology information and software energy consumption information, calculating its comprehensive energy consumption change rate, and automatically performing batch upgrades when it is within the preset range, reducing the amount of calculation and business impact.

Benefits of technology

It achieves efficient upgrade of device software, reduces the impact on business links, and improves upgrade efficiency and security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535192A
    Figure CN118535192A
Patent Text Reader

Abstract

The invention discloses a software upgrading method, device and equipment and a readable storage medium, and relates to the technical field of software upgrading, key upgrading software is determined from to-be-upgraded software based on target information and upgrading task information, and the target information comprises network topology information and software energy consumption information; determining the comprehensive energy consumption change rate of the key upgrading software according to the software energy consumption information; and when the comprehensive energy consumption change rate is within a preset energy consumption change rate range corresponding to the target upgrading time period, controlling the key upgrading software and all to-be-upgraded software on the service link where the key upgrading software is located to be automatically upgraded at the same time. According to the method and the device, batch automatic upgrading of all software objects needing to be upgraded on the service link can be realized, so that the purpose of efficiently upgrading equipment software is achieved, and the influence of software upgrading on the service link is effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of software upgrade, and in particular to a software upgrade method, apparatus, device and readable storage medium. Background Art

[0002] The transmission network is the basic network, and the equipment is the foundation of the network. It is common for equipment software to have bugs (bugs refer to errors, logical problems, or parts that do not conform to the design in the program) as well as changes and additions in requirements. Therefore, it is also a common operation and maintenance work to upgrade equipment software in existing network projects. However, most of the equipment in the existing network carries services, so upgrading equipment software will more or less affect the services, and operators also require that the impact of upgrades on services be as short as possible.

[0003] In the prior art, if there are multiple devices that need to be upgraded for a service link, either each single disk is upgraded individually, or the objects to be upgraded are upgraded together, that is, the same upgrade time is set, and they are automatically upgraded together when the upgrade time point arrives; however, the time required for individual upgrades is relatively long, which has a greater impact on the business, and although centralized upgrades can shorten the upgrade time, they often do not pay attention to the business conditions of the service lines, which will also have a greater impact on the business; in addition, manual upgrades require manual confirmation of the business conditions, which is not only time-consuming but also very cumbersome.

[0004] Therefore, an efficient and low-risk software upgrade technology is urgently needed in existing network operation and maintenance. Summary of the invention

[0005] The present application provides a software upgrade method, apparatus, device and readable storage medium to achieve efficient upgrade of device software while reducing the impact on business.

[0006] In a first aspect, an embodiment of the present application provides a software upgrade method, the software upgrade method comprising:

[0007] Determine key upgrade software from the software to be upgraded based on target information and upgrade task information, wherein the target information includes network topology information and software energy consumption information;

[0008] Determining the comprehensive energy consumption change rate of the key upgrade software according to the software energy consumption information;

[0009] When the comprehensive energy consumption change rate is within a preset energy consumption change rate range corresponding to the target upgrade time period, the key upgrade software and all software to be upgraded on the service link where the key upgrade software and the software to be upgraded are controlled to be automatically upgraded at the same time.

[0010] In combination with the first aspect, in one implementation, determining the key upgrade software from the software to be upgraded based on the target information and the upgrade task information includes:

[0011] For each service link, judging whether there is a target software to be upgraded among all the software to be upgraded on the service link according to the network topology information and the upgrade task information, and the target software to be upgraded is also located on other service links;

[0012] If it exists, the target software to be upgraded is used as the key upgrade software;

[0013] If it does not exist, a software to be upgraded is randomly selected from the service link as the key upgrade software.

[0014] In combination with the first aspect, in one implementation, the software energy consumption information includes software power consumption information and software flow information, and determining the comprehensive energy consumption change rate of the key upgrade software according to the software energy consumption information includes:

[0015] Calculating the power consumption change rate of the key upgrade software according to the software power consumption information, and calculating the flow change rate of the key upgrade software according to the software flow information;

[0016] The comprehensive energy consumption change rate of the key upgrade software is determined based on the power consumption change rate and the traffic change rate.

[0017] In combination with the first aspect, in one implementation, determining the comprehensive energy consumption change rate of the key upgrade software based on the power consumption change rate and the traffic change rate includes:

[0018] Substituting the power consumption change rate and the flow change rate into a first calculation formula to obtain a comprehensive energy consumption change rate of the key upgrade software;

[0019] The first calculation formula is:

[0020] f=α[β·f N +(1-β)·f L ]+(1-α)·f max

[0021] In the formula, f represents the comprehensive energy consumption change rate, f N represents the power consumption change rate, f L represents the flow rate change rate, f max represents the preset maximum energy consumption change rate, β represents the preset power consumption change rate influence weight value, and the value of α is determined to be 1 or 0 based on the software power consumption information and the software traffic information.

[0022] In combination with the first aspect, in one implementation, the method further includes:

[0023] Determine, according to the software power consumption information and the software traffic information, whether the real-time power consumption value of the key software object is less than or equal to a preset maximum power consumption value and whether the real-time traffic value of the key software object is less than or equal to a preset maximum traffic value;

[0024] If so, the control value of α is 1;

[0025] If not, the value of α is controlled to be 0.

[0026] In combination with the first aspect, in one implementation, the method further includes:

[0027] Construct an upgrade energy consumption map based on target information and upgrade task information;

[0028] All software to be upgraded are controlled to be displayed on the upgrade energy consumption map, and the key upgrade software is specially displayed on the upgrade energy consumption map to distinguish the software to be upgraded from the key upgrade software.

[0029] In combination with the first aspect, in one implementation, after the step of determining the comprehensive energy consumption change rate of the key upgrade software according to the software energy consumption information, the method further includes:

[0030] When the comprehensive energy consumption change rate is outside the preset energy consumption change rate range corresponding to the target upgrade time period, the key upgrade software and all software to be upgraded on the business to which it belongs are controlled not to be automatically upgraded.

[0031] In a second aspect, an embodiment of the present application provides a software upgrade device, the software upgrade device comprising:

[0032] A key software determination module, which is used to determine key upgrade software from the software to be upgraded based on target information and upgrade task information, wherein the target information includes network topology information and software energy consumption information;

[0033] A change rate determination module, which is used to determine the comprehensive energy consumption change rate of the key upgrade software according to the software energy consumption information;

[0034] The software upgrade control module is used to control the key upgrade software and all the software to be upgraded on its service link to be automatically upgraded at the same time when the comprehensive energy consumption change rate is within the preset energy consumption change rate range corresponding to the target upgrade time period.

[0035] In conjunction with the second aspect, in one implementation, the key software determination module is specifically used to:

[0036] For each service link, judging whether there is a target software to be upgraded among all the software to be upgraded on the service link according to the network topology information and the upgrade task information, and the target software to be upgraded is also located on other service links;

[0037] If it exists, the target software to be upgraded is used as the key upgrade software;

[0038] If it does not exist, a software to be upgraded is randomly selected from the service link as the key upgrade software.

[0039] In conjunction with the second aspect, in one implementation, the software energy consumption information includes software power consumption information and software flow information, and the change rate determination module is specifically used to:

[0040] Calculating the power consumption change rate of the key upgrade software according to the software power consumption information, and calculating the flow change rate of the key upgrade software according to the software flow information;

[0041] The comprehensive energy consumption change rate of the key upgrade software is determined based on the power consumption change rate and the traffic change rate.

[0042] In conjunction with the second aspect, in one implementation, the change rate determination module is further configured to:

[0043] Substituting the power consumption change rate and the flow change rate into a first calculation formula to obtain a comprehensive energy consumption change rate of the key upgrade software;

[0044] The first calculation formula is:

[0045] f=α[β·f N +(1-β)·f L ]+(1-α)·f max

[0046] In the formula, f represents the comprehensive energy consumption change rate, f N represents the power consumption change rate, f L represents the flow rate change rate, f max represents the preset maximum energy consumption change rate, β represents the preset power consumption change rate influence weight value, and the value of α is determined to be 1 or 0 based on the software power consumption information and the software traffic information.

[0047] In conjunction with the second aspect, in one implementation, the change rate determination module is further configured to:

[0048] Determine, according to the software power consumption information and the software traffic information, whether the real-time power consumption value of the key software object is less than or equal to a preset maximum power consumption value and whether the real-time traffic value of the key software object is less than or equal to a preset maximum traffic value;

[0049] If so, the control value of α is 1;

[0050] If not, the value of α is controlled to be 0.

[0051] In conjunction with the second aspect, in one implementation, the software upgrade device further includes an energy consumption spectrum processing module, which is used to:

[0052] Construct an upgrade energy consumption map based on target information and upgrade task information;

[0053] All software to be upgraded are controlled to be displayed on the upgrade energy consumption map, and the key upgrade software is specially displayed on the upgrade energy consumption map to distinguish the software to be upgraded from the key upgrade software.

[0054] In combination with the second aspect, in one embodiment, the software upgrade control module is also used to: when the comprehensive energy consumption change rate is outside the preset energy consumption change rate range corresponding to the target upgrade time period, control the key upgrade software and all software to be upgraded on its business to not be automatically upgraded.

[0055] In a third aspect, an embodiment of the present application provides a software upgrade device, which includes a processor, a memory, and a software upgrade program stored in the memory and executable by the processor, wherein when the software upgrade program is executed by the processor, the steps of the aforementioned software upgrade method are implemented.

[0056] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a software upgrade program is stored, wherein when the software upgrade program is executed by a processor, the steps of the software upgrade method as described above are implemented.

[0057] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0058] The key upgrade software is determined from the software to be upgraded through target information and upgrade task information including network topology information and software energy consumption information, so as to determine the upgrade status of the software to be upgraded on the business link where it is located through the key upgrade software, thereby reducing the amount of calculation required in the upgrade process; then the comprehensive energy consumption change rate of the key upgrade software is determined according to the software energy consumption information, so as to reflect the idle and busy status of the business link where the key upgrade software is located through the comprehensive energy consumption change rate; wherein, when the comprehensive energy consumption change rate is within the preset energy consumption change rate range corresponding to the target upgrade time period, it means that the business link where the key upgrade software is located is relatively idle, then the key upgrade software and all the software to be upgraded on the business link where it is located are controlled to be automatically upgraded at the same time, so as to realize batch automatic upgrade of all software objects that need to be upgraded on the business link, thereby achieving the purpose of efficient upgrade of equipment software and effectively reducing the impact of software upgrade on the business link. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 This is a flowchart of an embodiment of the software upgrade method of the present application;

[0060] Figure 2 A schematic diagram of the comprehensive energy consumption change rate involved in the embodiment of the present application;

[0061] Figure 3 A schematic diagram of a scenario corresponding to the association between the upgrade task and the network topology involved in the embodiment of the present application;

[0062] Figure 4 A schematic diagram of the process of constructing an upgraded energy consumption map involved in the embodiment of the present application;

[0063] Figure 5 This is a schematic diagram of the hardware structure of the software upgrade device involved in the embodiment of the present application. DETAILED DESCRIPTION

[0064] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0065] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0066] In a first aspect, an embodiment of the present application provides a software upgrade method.

[0067] In one embodiment, referring to Figure 1 , Figure 1 This is a flow chart of an embodiment of the software upgrade method of this application. Figure 1 As shown, the software upgrade method includes:

[0068] Step S10: determining key upgrade software from the software to be upgraded based on target information and upgrade task information, wherein the target information includes network topology information and software energy consumption information.

[0069] Exemplarily, in this embodiment, the software objects that need to be upgraded are selected according to the needs, and the corresponding software packages are imported; then an upgrade task is created to generate upgrade task information, which includes but is not limited to the task name, task ID and task object (i.e., the object to be upgraded), and the activation mode is selected as "do not activate", and then the software package is copied to the corresponding device in advance, waiting for activation.

[0070] In addition, this embodiment will also collect and obtain target information such as network topology information and software energy consumption information in the engineering network; among them, network topology information includes the fiber connection relationship between services and network elements, the corresponding relationship between network elements and single disks, the corresponding relationship between single disks and software, etc., and software energy consumption information includes power consumption information and flow information of each software, etc. The software energy consumption information can effectively reflect the idle and busy status of each software and each service. It can be understood that the software to be upgraded may be located on a single disk of a network element on a service link, or on different single disks of different network elements on a service link, or on different single disks of the same network element on different service links, etc.

[0071] In this embodiment, key upgrade software is screened out from all software to be upgraded through upgrade task information and network topology information, so that the upgrade status of all software to be upgraded on its business link is determined by the key upgrade software, thereby eliminating the need to perform upgrade judgment calculations on all software to be upgraded on its business link, effectively reducing the amount of calculations.

[0072] Step S20: determining the comprehensive energy consumption change rate of the key upgraded software according to the software energy consumption information.

[0073] Exemplarily, it can be understood that in order to minimize the impact of the upgrade behavior on the business link where the upgrade object is located, it is necessary to batch upgrade all objects that need to be upgraded on the business link at the same time when there is no business, so as to reduce the impact on the business. In this embodiment, the idle and busy state of the key upgrade software will be reflected by the comprehensive energy consumption change rate, and then the idle and busy state of the business link where the key upgrade software is located will be reflected. Among them, the comprehensive energy consumption change rate of the key upgrade software can be calculated based on software energy consumption information such as power consumption information and traffic information.

[0074] Step S30: When the comprehensive energy consumption change rate is within the preset energy consumption change rate range corresponding to the target upgrade time period, the key upgrade software and all the software to be upgraded on the service link where the key upgrade software is located are controlled to be automatically upgraded simultaneously.

[0075] In this embodiment, when the comprehensive energy consumption change rate is outside the preset energy consumption change rate range corresponding to the target upgrade time period, the key upgrade software and all software to be upgraded on the business to which it belongs are controlled not to be automatically upgraded.

[0076] For example, in this embodiment, the specific value of the preset energy consumption change rate range can be set according to the actual energy consumption of the target upgrade time period corresponding to the object to be upgraded in the network, and of course can also be set according to the experience value, which is not limited here. Figure 2 As shown, according to the upgrade requirements, it is hoped that the software upgrade can be carried out within a specified time period, that is, the time period [t1, t2] is set as the target upgrade time period, and the preset energy consumption change rate range can be set according to the actual energy consumption of the network within the target upgrade time period [t1, t2] (-f min ,f max ).

[0077] This embodiment will reflect the idle and busy status of the key upgrade software according to whether the comprehensive energy consumption change rate of the key upgrade object is within the preset energy consumption change rate range, so as to further reflect the idle and busy status of the business link where it is located, and then determine whether software upgrade processing is required. Specifically, when the comprehensive energy consumption change rate is not within the preset energy consumption change rate range, it means that the business link where the key upgrade software is located is relatively busy, then the key upgrade software and all the software to be upgraded on the business where it is located are controlled not to be automatically upgraded; and when the comprehensive energy consumption change rate is within the preset energy consumption change rate range, it means that the business link where the key upgrade software is located is relatively idle, then the key upgrade software and all the software to be upgraded on the business link where it is located are controlled to be automatically upgraded in batches at the same time, and then realize the batch automatic upgrade of all software objects that need to be upgraded on the business link, so as to achieve the purpose of efficient upgrade of equipment software and effectively reduce the impact of software upgrade on business links.

[0078] Further, in one embodiment, determining the key upgrade software from the software to be upgraded based on the target information and the upgrade task information includes:

[0079] For each service link, judging whether there is a target software to be upgraded among all the software to be upgraded on the service link according to the network topology information and the upgrade task information, and the target software to be upgraded is also located on other service links;

[0080] If it exists, the target software to be upgraded is used as the key upgrade software;

[0081] If it does not exist, a software to be upgraded is randomly selected from the service link as the key upgrade software.

[0082] Exemplarily, in this embodiment, for each service link, it can be determined based on the network topology information and the upgrade task information whether there is a software to be upgraded on the service link that is also located on other service links. If so, the target software to be upgraded serves as both the key upgrade software for the service link and the key upgrade software for the other service links. If not, any software to be upgraded on the service link is selected as the key upgrade software.

[0083] For details, see Figure 3 As shown, for scenario 1, there is no business for software A to be upgraded, so software A to be upgraded is directly used as the key upgrade software. For scenario 2, there are software A to be upgraded and software B to be upgraded on the business link where software A to be upgraded is located, so any one of software A to be upgraded and software B to be upgraded can be used as the key upgrade software. For scenario 3, there are software A to be upgraded and software B to be upgraded on one business link where software A to be upgraded is located, and there are software A to be upgraded and software C to be upgraded on another business link, so software A to be upgraded is used as the key upgrade object of the business link where it is located. For scenario 4, software A to be upgraded, software C to be upgraded, and software F to be upgraded are all located on multiple business links at the same time, so software A to be upgraded, software C to be upgraded, and software F to be upgraded are respectively used as the key upgrade objects of the business links where they are located.

[0084] It should be noted that when a service link has multiple key upgrade objects, as long as there is at least one key upgrade object indicating that the service link where it is located is relatively busy, the software to be upgraded on the service link where it is located is controlled not to be automatically upgraded.

[0085] Furthermore, in one embodiment, the software energy consumption information includes software power consumption information and software flow information, and determining the comprehensive energy consumption change rate of the key upgrade software according to the software energy consumption information includes:

[0086] Calculating the power consumption change rate of the key upgrade software according to the software power consumption information, and calculating the flow change rate of the key upgrade software according to the software flow information;

[0087] The comprehensive energy consumption change rate of the key upgrade software is determined based on the power consumption change rate and the flow change rate. Specifically, the power consumption change rate and the flow change rate are substituted into a first calculation formula to obtain the comprehensive energy consumption change rate of the key upgrade software; the first calculation formula is:

[0088] f=α[β·f N +(1-β)·f L ]+(1-α)·f max

[0089] In the formula, f represents the comprehensive energy consumption change rate, f N represents the power consumption change rate, f L represents the flow rate change rate, f max represents the preset maximum energy consumption change rate, β represents the preset power consumption change rate influence weight value, and the value of α is determined to be 1 or 0 based on the software power consumption information and the software traffic information.

[0090] Exemplarily, in this embodiment, the comprehensive energy consumption change rate f is a combination of the power consumption change rate and the flow change rate of the key upgrade object. The power consumption change rate f of the key upgrade software can be calculated based on the software power consumption information by using big data analysis methods such as data mining. N , and calculate the traffic change rate f of the key upgrade software based on the software traffic information L At the same time, the energy consumption changes of the upgraded objects in the business link can also be analyzed through big data analysis methods such as data mining to predict the weight value that affects the energy consumption change rate (that is, the power consumption change rate affects the weight value β); then the power consumption change rate f N and flow rate change rate f L Substituting f = α[β·f N +(1-β)·f L ]+(1-α)·f max In the formula, the comprehensive energy consumption change rate of the key upgrade software can be calculated. It should be noted that α is used to characterize the energy consumption of the key upgrade object, and the value of α can be determined to be 1 or 0 according to the software power consumption information and software flow information of the key upgrade object.

[0091] Further, in one embodiment, it is determined whether the real-time power consumption value of the key software object is less than or equal to a preset maximum power consumption value and whether the real-time traffic value of the key software object is less than or equal to a preset maximum traffic value according to the software power consumption information and the software traffic information;

[0092] If so, the control value of α is 1;

[0093] If not, the value of α is controlled to be 0.

[0094] Exemplarily, in this embodiment, the maximum power consumption value and maximum traffic value of the key software object can be determined through the analysis results of big data analysis methods such as data mining; then, based on the software power consumption information and software traffic information, it is determined whether the real-time power consumption value of the key software object is less than or equal to the maximum power consumption value and whether the real-time traffic value of the key software object is less than or equal to the maximum traffic value; if both are satisfied at the same time, the value of α is set to 1, and if at least one is not satisfied, the value of α is set to 0.

[0095] It can be understood that, based on the calculation results of the comprehensive energy consumption change rate, if the comprehensive energy consumption change rate corresponding to the key upgrade object is detected to be within the set range within a certain period of time, and the energy consumption of the key upgrade object is below the set energy consumption threshold, then an activation command will be automatically given to all associated software objects to be upgraded to automatically perform batch upgrades.

[0096] Furthermore, in one embodiment, the method further includes:

[0097] Construct an upgrade energy consumption map based on target information and upgrade task information;

[0098] All software to be upgraded are controlled to be displayed on the upgrade energy consumption map, and the key upgrade software is specially displayed on the upgrade energy consumption map to distinguish the software to be upgraded from the key upgrade software.

[0099] For example, it is understandable that in the current engineering network, due to the complex network topology, engineering personnel can often only focus on the objects that need to be upgraded, but it is difficult to intuitively view the business links affected by the upgraded objects, and the idle and busy status of the business links in the network cannot be intuitively reflected.

[0100] In this embodiment, an energy consumption map is first constructed based on network topology information and software energy consumption information; then an upgrade energy consumption map is constructed based on the energy consumption map and upgrade task information to highlight key upgrade objects. The upgrade energy consumption map is used to intuitively display the service links affected by each software to be upgraded and the idle and busy status of the service links.

[0101] Among them, see Figure 4As shown, the software to be upgraded that is waiting to be activated is obtained according to the upgrade task information, and it is determined whether the software to be upgraded has any business. If there is no business, it is used as the key upgrade software and is highlighted; if there is business, all objects of the associated business are obtained, and each object is determined whether it is an object of the software to be upgraded that is to be activated. If not, the object is not displayed on the upgrade energy consumption map; if so, it is continued to be determined whether the object has been displayed on the upgrade energy consumption map. If so, it is used as the key upgrade software and is highlighted. If not, the object is normally displayed on the upgrade energy consumption map; after all objects of the associated business are traversed, it is determined whether all the software to be upgraded that are waiting to be activated have been traversed. If not, new software to be upgraded that are waiting to be activated are continued to be obtained for display determination; if so, it is continued to be determined whether there is a highlighted object in the business link (that is, whether the key upgrade object has been highlighted). If so, it ends; if not, any software to be upgraded on the business link is highlighted, that is, any software to be upgraded on the business link is highlighted as a key upgrade object.

[0102] It should be noted that after the upgrade is successful, the upgrade energy consumption map will be updated to remove the successfully upgraded objects, that is, the successfully upgraded objects will not be displayed in the upgrade energy consumption map. It can be seen that this embodiment associates the upgrade task with the network topology map to make the relationship between the device upgrade and the service line more intuitive.

[0103] In summary, in order to reduce the impact of the upgrade behavior of the upgrade object on the business link where the upgrade object is located, this embodiment can combine the upgrade task and the energy consumption map, and then use the big data analysis method to analyze the energy consumption changes of the upgrade object in the business link, and calculate the business idle and busy status of the business link where the upgrade object is located according to the energy consumption change law. Finally, according to the idle and busy status of the business, it is determined whether the upgrade object can be automatically upgraded, and then the automatic upgrade of the upgrade object is realized to reduce human participation and reduce the impact of the object upgrade on the business link.

[0104] In a second aspect, an embodiment of the present application also provides a software upgrading device.

[0105] In one embodiment, the software upgrade device includes:

[0106] A key software determination module, which is used to determine key upgrade software from the software to be upgraded based on target information and upgrade task information, wherein the target information includes network topology information and software energy consumption information;

[0107] A change rate determination module, which is used to determine the comprehensive energy consumption change rate of the key upgrade software according to the software energy consumption information;

[0108] The software upgrade control module is used to control the key upgrade software and all the software to be upgraded on its service link to be automatically upgraded at the same time when the comprehensive energy consumption change rate is within the preset energy consumption change rate range corresponding to the target upgrade time period.

[0109] Furthermore, in one embodiment, the key software determination module is specifically used to:

[0110] For each service link, judging whether there is a target software to be upgraded among all the software to be upgraded on the service link according to the network topology information and the upgrade task information, and the target software to be upgraded is also located on other service links;

[0111] If it exists, the target software to be upgraded is used as the key upgrade software;

[0112] If it does not exist, a software to be upgraded is randomly selected from the service link as the key upgrade software.

[0113] Furthermore, in one embodiment, the software energy consumption information includes software power consumption information and software flow information, and the change rate determination module is specifically used to:

[0114] Calculating the power consumption change rate of the key upgrade software according to the software power consumption information, and calculating the flow change rate of the key upgrade software according to the software flow information;

[0115] The comprehensive energy consumption change rate of the key upgrade software is determined based on the power consumption change rate and the traffic change rate.

[0116] Furthermore, in one embodiment, the change rate determination module is further configured to:

[0117] Substituting the power consumption change rate and the flow change rate into a first calculation formula to obtain a comprehensive energy consumption change rate of the key upgrade software;

[0118] The first calculation formula is:

[0119] f=α[β·f N +(1-β)·f L ]+(1-α)·f max

[0120] In the formula, f represents the comprehensive energy consumption change rate, f N represents the power consumption change rate, f L represents the flow rate change rate, f max represents the preset maximum energy consumption change rate, β represents the preset power consumption change rate influence weight value, and the value of α is determined to be 1 or 0 based on the software power consumption information and the software traffic information.

[0121] Furthermore, in one embodiment, the change rate determination module is further used to:

[0122] Determine, according to the software power consumption information and the software traffic information, whether the real-time power consumption value of the key software object is less than or equal to a preset maximum power consumption value and whether the real-time traffic value of the key software object is less than or equal to a preset maximum traffic value;

[0123] If so, the control value of α is 1;

[0124] If not, the value of α is controlled to be 0.

[0125] Furthermore, in one embodiment, the software upgrade device further includes an energy consumption spectrum processing module, which is used to:

[0126] Construct an upgrade energy consumption map based on target information and upgrade task information;

[0127] All software to be upgraded are controlled to be displayed on the upgrade energy consumption map, and the key upgrade software is specially displayed on the upgrade energy consumption map to distinguish the software to be upgraded from the key upgrade software.

[0128] Furthermore, in one embodiment, the software upgrade control module is also used to: when the comprehensive energy consumption change rate is outside the preset energy consumption change rate range corresponding to the target upgrade time period, control the key upgrade software and all software to be upgraded on its business not to be automatically upgraded.

[0129] Among them, the functional implementation of each module in the above-mentioned software upgrading device corresponds to each step in the above-mentioned software upgrading method embodiment, and its functions and implementation processes are no longer repeated here.

[0130] In a third aspect, an embodiment of the present application provides a software upgrade device, which may be a personal computer (PC), a laptop computer, a server, or other device with data processing capabilities.

[0131] Reference Figure 5 , Figure 5 The hardware structure diagram of the software upgrade device involved in the embodiment of the present application is shown in FIG. In the embodiment of the present application, the software upgrade device may include a processor, a memory, a communication interface, and a communication bus.

[0132] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.

[0133] The communication interface includes input / output (I / O) interface, physical interface and logical interface, etc., which are used to realize the interconnection of devices inside the software upgrade device, and the interface used to realize the interconnection between the software upgrade device and other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, a fiber optic interface, an ATM interface, etc.; the user device can be a display, a keyboard, etc.

[0134] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.

[0135] The processor may be a general-purpose processor, and the general-purpose processor may call the software upgrade program stored in the memory and execute the software upgrade method provided in the embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the software upgrade program is called may refer to the various embodiments of the software upgrade method of the present application, and will not be repeated here.

[0136] Those skilled in the art will understand that Figure 5 The hardware structure shown in the figure does not constitute a limitation on the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0137] In a fourth aspect, an embodiment of the present application also provides a computer-readable storage medium.

[0138] The readable storage medium of the present application stores a software upgrade program, wherein when the software upgrade program is executed by the processor, the steps of the software upgrade method as described above are implemented.

[0139] Among them, the method implemented when the software upgrade program is executed can refer to the various embodiments of the software upgrade method of the present application, and will not be repeated here.

[0140] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.

[0141] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.

[0142] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.

[0143] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0144] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.

[0145] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.

[0146] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A software upgrade method, characterized in that: The software upgrade method comprises: Determine key upgrade software from the software to be upgraded based on target information and upgrade task information, wherein the target information includes network topology information and software energy consumption information; Determining the comprehensive energy consumption change rate of the key upgrade software according to the software energy consumption information; When the comprehensive energy consumption change rate is within a preset energy consumption change rate range corresponding to the target upgrade time period, the key upgrade software and all software to be upgraded on the service link where the key upgrade software is located are controlled to be automatically upgraded simultaneously.

2. The software upgrade method according to claim 1, characterized in that: The step of determining the key upgrade software from the software to be upgraded based on the target information and the upgrade task information includes: For each service link, judging whether there is a target software to be upgraded among all the software to be upgraded on the service link according to the network topology information and the upgrade task information, and the target software to be upgraded is also located on other service links; If it exists, the target software to be upgraded is used as the key upgrade software; If it does not exist, a software to be upgraded is randomly selected from the service link as the key upgrade software.

3. The software upgrade method according to claim 1, characterized in that: The software energy consumption information includes software power consumption information and software flow information. Determining the comprehensive energy consumption change rate of the key upgrade software according to the software energy consumption information includes: Calculating the power consumption change rate of the key upgrade software according to the software power consumption information, and calculating the flow change rate of the key upgrade software according to the software flow information; The comprehensive energy consumption change rate of the key upgrade software is determined based on the power consumption change rate and the traffic change rate.

4. The software upgrade method according to claim 3, characterized in that: The determining the comprehensive energy consumption change rate of the key upgrade software based on the power consumption change rate and the traffic change rate includes: Substituting the power consumption change rate and the flow change rate into a first calculation formula to obtain a comprehensive energy consumption change rate of the key upgrade software; The first calculation formula is: f=α[β·f N +(1-β)·f L ]+(1-a)·f max In the formula, f represents the comprehensive energy consumption change rate, f N represents the power consumption change rate, f L represents the flow rate change rate, f max represents the preset maximum energy consumption change rate, β represents the preset power consumption change rate influence weight value, and the value of α is determined to be 1 or 0 based on the software power consumption information and the software traffic information.

5. The software upgrade method according to claim 4, characterized in that: The method further comprises: Determine, according to the software power consumption information and the software traffic information, whether the real-time power consumption value of the key software object is less than or equal to a preset maximum power consumption value and whether the real-time traffic value of the key software object is less than or equal to a preset maximum traffic value; If so, the control value of α is 1; If not, the value of α is controlled to be 0.

6. The software upgrade method according to claim 1, characterized in that: The method further comprises: Construct an upgrade energy consumption map based on target information and upgrade task information; All software to be upgraded are controlled to be displayed on the upgrade energy consumption map, and the key upgrade software is specially displayed on the upgrade energy consumption map to distinguish the software to be upgraded from the key upgrade software.

7. The software upgrade method according to claim 1, characterized in that: After the step of determining the comprehensive energy consumption change rate of the key upgraded software according to the software energy consumption information, the method further includes: When the comprehensive energy consumption change rate is outside the preset energy consumption change rate range corresponding to the target upgrade time period, the key upgrade software and all software to be upgraded on the business to which it belongs are controlled not to be automatically upgraded.

8. A software upgrade device, characterized in that: The software upgrade device comprises: A key software determination module, which is used to determine key upgrade software from the software to be upgraded based on target information and upgrade task information, wherein the target information includes network topology information and software energy consumption information; A change rate determination module, which is used to determine the comprehensive energy consumption change rate of the key upgrade software according to the software energy consumption information; The software upgrade control module is used to control the key upgrade software and all the software to be upgraded on its service link to be automatically upgraded at the same time when the comprehensive energy consumption change rate is within the preset energy consumption change rate range corresponding to the target upgrade time period.

9. A software upgrade device, characterized in that: The software upgrade device comprises a processor, a memory, and a software upgrade program stored in the memory and executable by the processor, wherein when the software upgrade program is executed by the processor, the steps of the software upgrade method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a software upgrade program, wherein when the software upgrade program is executed by the processor, the steps of the software upgrade method according to any one of claims 1 to 7 are implemented.