Resource scheduling method and device, network equipment, storage medium and computer program product

By giving priority to the use of new energy power supply in network equipment and dynamically scheduling the charging and discharging of batteries, the problem of waste of new energy power in base station resource scheduling is solved, and the efficient utilization of new energy and cost reduction is achieved.

CN119010146APending Publication Date: 2024-11-22CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411321080.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-20
Publication Date
2024-11-22

AI Technical Summary

Technical Problem

The existing base station resource scheduling methods are limited to the base station, and the failure to make full use of the new energy power supply has led to waste of new energy power, and the lack of linkage between the base stations and energy storage resources has led to high electricity consumption costs.

Method used

By realizing dynamic scheduling of new energy power supply and electricity consumption in network equipment, giving priority to the use of new energy processing services, charging the battery when new energy is sufficient, discharging electricity when insufficient, and migrating the service in a timely manner to utilize different network equipment. Resources, reduce electricity costs.

Benefits of technology

It improves the utilization rate of new energy power supply, reduces the waste of new energy power supply, reduces the electricity cost of network equipment, and realizes efficient scheduling of resources between base stations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119010146A_ABST
    Figure CN119010146A_ABST
Patent Text Reader

Abstract

The invention discloses a resource scheduling method and device, network equipment, a storage medium and a computer program product, and the method comprises the steps that first network equipment executes first operation under the condition that first electric quantity is greater than zero; wherein the first electric quantity represents the power supply quantity of new energy of the first network equipment; the first operation comprises the steps of processing a first service and / or a second service and / or charging a first storage battery by using new energy of the first network equipment, and / or charging the first storage battery by using commercial power, and / or controlling the first storage battery to discharge; the first service represents the service of the first network equipment; the second service represents a transferable service of a second network device; the first battery characterizes a battery of the first network device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of new energy technology, and in particular to a resource scheduling method, apparatus, network equipment, storage medium and computer program product. Background Art

[0002] Most of the existing resource scheduling for base stations is to control the battery discharge when the base station's renewable energy power supply is insufficient and / or it is in the peak period of the mains power, and to control the battery charging when the base station's renewable energy power supply is sufficient and / or it is in the trough period of the mains power. However, it is still limited to the power demand and battery capacity within the base station, resulting in limitations in resource scheduling and waste of renewable energy power. Summary of the invention

[0003] To solve related technical problems, embodiments of the present application provide a resource scheduling method, apparatus, network device, storage medium and computer program product.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] The present application provides a resource scheduling method, which is applied to a first network device, and the method includes:

[0006] When the first power level is greater than zero, a first operation is performed; wherein,

[0007] The first electrical quantity represents the power supply of the new energy of the first network device; the first operation includes: using the new energy of the first network device to process the first service and / or the second service and / or charging the first battery, and / or, using AC power to charge the first battery, and / or, controlling the discharge of the first battery; the first service represents the service of the first network device; the second service represents the migratable service of the second network device; the first battery represents the battery of the first network device.

[0008] In the above solution, when the first power level is greater than zero, performing the first operation includes:

[0009] When the first power level is greater than zero, new energy of the first network device is preferentially used to process the first service.

[0010] In the above solution, when the first power level is greater than zero, performing the first operation includes:

[0011] When the first power level is greater than a second power level, new energy of the first network device is used to process the second service and / or charge the first battery; the second power level represents power usage or power consumption of the first network device.

[0012] In the above scheme, the charge capacity of the first battery is the minimum value between the first value and the second value; the first value is the difference between the first power and the second power, and the second value is the difference between the maximum capacity and the current power of the first battery.

[0013] In the above solution, the amount of electricity consumed for processing the second service is less than or equal to a first value; the first value is the difference between the first amount of electricity and the second amount of electricity.

[0014] In the above solution, when the first power level is greater than zero, performing the first operation includes:

[0015] When the first power level is greater than zero and the first power level is less than the second power level during the first power usage period, the first service is processed using new energy of the first network device, and / or the first service is processed by controlling the discharge of the first battery; the second power level represents the power usage or power consumption of the first network device; the discharge amount of the first battery is the minimum value between a third value and a fourth value; the third value is the difference between the second power level and the first power level, and the fourth value is the difference between the current power level of the first battery and the minimum backup capacity; the minimum backup capacity is the power consumed by the first network device within a set period of time.

[0016] In the above solution, when the first power level is greater than zero, performing the first operation includes:

[0017] When the first electric quantity is greater than zero and the first electric quantity is less than the second electric quantity during the second power usage period, and the power generation of the new energy of the first network device is zero during the third power usage period, the new energy of the first network device is used to process the first service, and / or the first battery is charged with AC power; and / or the second service is refused to be received; the second electric quantity represents the power usage or power consumption of the first network device.

[0018] In the above solution, the first electric quantity is obtained based on the third electric quantity and the influence factor of new energy power generation; the third electric quantity is the historical power supply of the new energy of the first network device.

[0019] The embodiment of the present application further provides a resource scheduling method, which is applied to a second network device, and the method includes:

[0020] When the fourth power level is zero, or the fourth power level is less than or equal to the fifth power level, a first request is received or sent; wherein,

[0021] The fourth electrical quantity represents the power supply of the new energy of the second network device, and the fifth electrical quantity represents the power usage or power consumption of the second network device; the first request is used to migrate the service to the first network device, and the power supply of the new energy of the first network device is greater than zero.

[0022] In the above solution, the first request carries a reason value, and the reason value represents the consumption of new energy.

[0023] The embodiment of the present application also provides a resource scheduling device, the device comprising:

[0024] The processing module is used to perform a first operation when the first power is greater than zero; wherein,

[0025] The first electrical quantity represents the power supply of the new energy of the first network device; the first operation includes: using the new energy of the first network device to process the first service and / or the second service and / or charging the first battery, and / or, using AC power to charge the first battery, and / or, controlling the discharge of the first battery; the first service represents the service of the first network device; the second service represents the migratable service of the second network device; the first battery represents the battery of the first network device.

[0026] The embodiment of the present application also provides a resource scheduling device, the device comprising:

[0027] The transceiver module is used to receive or send a first request when the fourth power level is zero or the fourth power level is less than or equal to the fifth power level; wherein,

[0028] The fourth electrical quantity represents the power supply of the new energy of the second network device, and the fifth electrical quantity represents the power usage or power consumption of the second network device; the first request is used to migrate the service to the first network device, and the power supply of the new energy of the first network device is greater than zero.

[0029] The embodiment of the present application further provides a first network device, comprising: a first processor and a first communication interface; wherein,

[0030] The first processor is used to perform a first operation when the first power is greater than zero; wherein,

[0031] The first electrical quantity represents the power supply of the new energy of the first network device; the first operation includes: using the new energy of the first network device to process the first service and / or the second service and / or charging the first battery, and / or, using AC power to charge the first battery, and / or, controlling the discharge of the first battery; the first service represents the service of the first network device; the second service represents the migratable service of the second network device; the first battery represents the battery of the first network device.

[0032] The embodiment of the present application further provides a second network device, including: a second processor and a second communication interface; wherein,

[0033] The second communication interface is used to receive or send a first request when the fourth power level is zero or the fourth power level is less than or equal to the fifth power level; wherein,

[0034] The fourth electrical quantity represents the power supply of the new energy of the second network device, and the fifth electrical quantity represents the power usage or power consumption of the second network device; the first request is used to migrate the service to the first network device, and the power supply of the new energy of the first network device is greater than zero.

[0035] The embodiment of the present application further provides a first network device, including a processor and a memory for storing a computer program that can be run on the processor.

[0036] Wherein, when the processor is used to run the computer program, it executes the steps of any one of the above-mentioned methods on the first network device side.

[0037] The embodiment of the present application further provides a second network device, including a processor and a memory for storing a computer program that can be run on the processor.

[0038] Wherein, when the processor is used to run the computer program, it executes the steps of any method on the second network device side.

[0039] An embodiment of the present application further provides a storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the computer program implements the steps of any of the above-mentioned methods on the first network device side, or implements the steps of any of the above-mentioned methods on the second network device side.

[0040] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of any method on the first network device side or the steps of any method on the second network device side.

[0041] In the resource scheduling method, apparatus, network device, storage medium and computer program product provided by the present application, the first network device performs a first operation when the first power is greater than zero; the first power represents the power supply of the new energy of the first network device; the first operation includes: using the new energy of the first network device to process the first service and / or the second service and / or charging the first battery, and / or, using the mains to charge the first battery, and / or, controlling the discharge of the first battery; the first service represents the service of the first network device; the second service represents the migratable service of the second network device; the first battery represents the battery of the first network device. In the above scheme, when the power supply of the new energy of the first network device is greater than zero, the new energy of the first network device can be used to process the second service migrated from the second network device to the first network device. On the basis of making full use of the new energy, the resource scheduling between different network devices is taken into account, and the utilization rate of the power supply of the new energy can be improved, the waste of the power supply of the new energy can be reduced, and the electricity cost of the network equipment can be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1 This is an example diagram of the relationship between base station energy consumption and service load applicable to the embodiments of the present application in the related art;

[0043] Figure 2 A schematic diagram of photovoltaic deployment applicable to the embodiment of the present application in the related art;

[0044] Figure 3 A schematic diagram of the power generation of a solar panel on the winter solstice provided in an embodiment of the present application;

[0045] Figure 4 A schematic diagram of a resource scheduling method flow in an embodiment of the present application;

[0046] Figure 5 This is a schematic diagram of another resource scheduling method flow in an embodiment of the present application;

[0047] Figure 6 A schematic diagram of the relationship between the power supply of new energy and the power consumption of network equipment provided in the embodiment of the present application;

[0048] Figure 7 This is a schematic diagram of service migration between the first network device and the second network device in an embodiment of the present application;

[0049] Figure 8 This is a schematic diagram of message interaction in Example 1 of the present application;

[0050] Fig. 9 This is another message interaction diagram of an embodiment of the present application;

[0051] Fig.10This is a schematic diagram of the structure of a resource scheduling device according to an embodiment of the present application;

[0052] Fig.11 This is a schematic diagram of another resource scheduling device structure according to an embodiment of the present application;

[0053] Fig.12 This is a schematic diagram of the structure of the first network device in the embodiment of the present application;

[0054] Fig.13 This is a schematic diagram of the second network device structure of an embodiment of the present application. DETAILED DESCRIPTION

[0055] At present, the whole society has a strong demand for digitalization. As the infrastructure supporting the digital transformation of the whole society, the fifth generation mobile communication technology (5G) is being built on a large scale, which will bring serious high energy consumption problems. The energy consumption of 5G network is mainly composed of 5G base stations, air conditioners and total power supply; among them, the energy consumption of 5G base stations accounts for about 60%.

[0056] Figure 1 An example of the relationship between base station energy consumption and service load is given. Figure 1 The middle vertical axis represents the energy consumption of the base station, which includes the energy consumption of the transceiver, the energy consumption of the digital intermediate frequency, the energy consumption of the baseband upshift, the energy consumption of the power supply and the energy consumption of the power amplifier; Figure 1 The base station energy consumption in can be the 5G base station energy consumption; the service load is characterized by the physical resource block (PRB) utilization, and the PRB utilization is 100%, 70%, 50%, 30% and 0% respectively. Figure 1 It is not difficult to see that there is an obvious dynamic relationship between base station energy consumption and service load. Specifically, base station energy consumption increases with the increase of PRB utilization.

[0057] New energy is seen as an important means to solve the problem of high energy consumption. Therefore, new energy is widely used in 5G networks. For areas with suitable climatic conditions, it is encouraged to build small wind power, rooftop photovoltaic and other power generation devices; in areas where green electricity prices are advantageous, it is encouraged to purchase low-cost green electricity through electricity trading to promote the green and sustainable development of 5G networks.

[0058] For example, if a base station photovoltaic deployment is carried out in a certain area, the photovoltaic deployment diagram is as follows: Figure 2 shown. Figure 2The figure shows that solar panels are installed on the roof of the base station room in this area to provide new energy for the base station; there are 12 solar panels in total, and the peak power of each solar panel is 450 watts (Wp, Wpeak). According to statistics, the photovoltaic power supply of these solar panels is about 9 to 11 degrees per day, and the power supply is highest during the noon period. Here is a schematic diagram of the power generation of these solar panels on the winter solstice, as shown in the figure below. Figure 3 shown. Figure 3 The unit of power generation is kWh. Figure 3 It shows that the power generation at 9 o'clock (09:00), 10 o'clock (10:00), 11 o'clock (11:00), 12 o'clock (12:00), 13 o'clock (13:00), 14 o'clock (14:00), 15 o'clock (15:00), 16 o'clock (16:00) and 17 o'clock (17:00) are 0.13 degrees, 0.62 degrees, 1.29 degrees, 1.58 degrees, 1.7 degrees, 1.31 degrees, 0.83 degrees, 0.42 degrees and 0.05 degrees respectively.

[0059] In order to further solve the problem of high energy consumption, the time-of-use electricity price mechanism is improved to guide power users to reduce peak loads and fill valley loads, promote the rapid development of energy storage, and serve the construction of a new power system with new energy as the main body. For example, the peak is adjusted to 3 hours during the day (10:00-13:00) and 5 hours at night (17:00-20:00); and / or, when the power consumption is less than 1,000 volts, the peak-to-valley price ratio is adjusted to 1.71:1:0.36, the peak price is 71% higher than the flat price, and the valley price is only 36% of the flat price, increasing the price gap of 1,000 volts and above.

[0060] However, with the continuous development of 5G networks and 5G services, the power consumption of 5G networks is still growing in scale. Therefore, resource scheduling methods for 5G base stations are particularly important. For example, 5G base stations are encouraged to use electricity during peak and valley periods of electricity prices to reduce electricity costs; and / or, 5G base stations are encouraged to make full use of energy storage batteries to store electricity during periods of excess supply of new energy or valley periods of electricity prices, and release the stored electricity during peak demand periods to further reduce electricity costs.

[0061] However, most existing base station resource scheduling methods still control battery discharge when the base station's renewable energy power supply is insufficient and / or it is in the peak period of the city power supply, and control battery charging when the base station's renewable energy power supply is sufficient and / or it is in the valley period of the city power supply. This is limited to the power demand and battery capacity within the base station, and lacks consideration for the linkage between services and energy storage resources between base stations, which will cause waste of renewable energy power. For example, one existing base station resource scheduling method is to adjust the battery charge and discharge ratio in each time period to meet the power supply index requirements based on the base station's power demand, green power supply, city power price and battery power; another existing base station resource scheduling method is to aggregate the base station energy storage batteries to participate in the power system scheduling, obtain power peak regulation benefits, and coordinate the control of the energy storage power of each base station participating in the scheduling, but does not consider the renewable energy power supply and business power characteristics of the base station itself.

[0062] Based on this, in various embodiments of the present application, the first network device performs a first operation when the first power supply is greater than zero; the first power supply represents the power supply of the new energy of the first network device; the first operation includes: using the new energy of the first network device to process the first service and / or the second service and / or charging the first battery, and / or, using the mains to charge the first battery, and / or, controlling the discharge of the first battery; the first service represents the service of the first network device; the second service represents the migratable service of the second network device; the first battery represents the battery of the first network device. In the above scheme, when the power supply of the new energy of the first network device is greater than zero, the new energy of the first network device can be used to process the second service migrated from the second network device to the first network device. On the basis of making full use of the new energy, it takes into account the resource scheduling between different network devices, can improve the utilization rate of the power supply of the new energy, reduce the waste of the power supply of the new energy, and reduce the electricity cost of the network equipment.

[0063] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments.

[0064] The embodiment of the present application provides a resource scheduling method, which is applied to a first network device, the first network device can use new energy generated by a power generation device, and the first network device can be a base station. Figure 4 As shown, the method includes:

[0065] Step 401: When the first power level is greater than zero, perform a first operation.

[0066] Among them, the first power represents the power supply of the new energy of the first network device; the first operation includes: using the new energy of the first network device to process the first service and / or the second service and / or charging the first battery, and / or, using AC power to charge the first battery, and / or, controlling the discharge of the first battery; the first service represents the service of the first network device; the second service represents the migratable service of the second network device; the first battery represents the battery of the first network device.

[0067] Here, the first network device obtains or determines the first power, and performs the first operation when the first power is greater than zero. The first power can be obtained by device collection or based on historical data prediction, which is not specifically limited. The power supply of new energy can also be described as the power supply of new energy, the power of new energy, or the power generation of new energy.

[0068] In one embodiment, the first electric quantity is obtained based on a third electric quantity and an impact factor of new energy power generation; the third electric quantity is a historical power supply of new energy of the first network device.

[0069] Here, the third electric quantity and the new energy power generation impact factor are obtained or determined, and the first electric quantity is determined based on the third electric quantity and the new energy power generation impact factor. Among them, the new energy power generation impact factor can be determined based on the new energy power generation method. For example, the new energy power generation method is photovoltaic power generation, and the new energy power generation impact factor is affected by the weather. When the weather is clear, the new energy power generation impact factor is 1, and when the weather is not clear, the new energy power generation impact factor is 0. It should be understood that the value of the new energy power generation impact factor can be set according to actual needs.

[0070] In actual application, the minimum value of the average value of the third electric quantity and the new energy power generation influencing factor can be used as the first electric quantity. For example, the first electric quantity can be determined by the following formula:

[0071]

[0072] Among them, E' green-gen,t is the first power quantity at the current time t; i∈[1,N], N represents the historical N days, and N is the number of the third power quantity, for example, N is 7 or 30, and the specific value of N is not limited; is the third electricity quantity at time t on the i-th day in history; Wt is the impact factor of new energy power generation at the current time t.

[0073] In this embodiment, since the first electric quantity is usually affected by the environment and climate and has a certain seasonality, the accuracy of the first electric quantity can be ensured by using the third electric quantity and the influencing factor of new energy power generation to obtain or determine the first electric quantity.

[0074] Here, when the first power is greater than zero, performing the first operation may be: when the first power is greater than zero, preferentially using the new energy of the first network device to process the first service; when the first power is greater than the power usage or power consumption of the first network device, using the new energy of the first network device to process the first service, and using the new energy of the first network device to charge the first battery and / or process the second service, the second service may include computing power services such as artificial intelligence (AI, Artificial Intelligence) video analysis, and / or delay-insensitive communication services; when the first power is greater than zero, and the first power is less than the power usage or power consumption of the first network device, using the new energy of the first network device to process the first service, and controlling the discharge of the first battery and / or using the mains to charge the first battery. Of course, when the first power is greater than zero, the mains can also be used to charge the first battery, and / or control the discharge of the first battery. For example, when the first power is greater than zero and the first power is less than the power usage or power consumption of the first service, the mains is used to charge the first battery, and / or the discharge of the first battery is controlled.

[0075] In this embodiment, when the power supply of the new energy of the first network device is greater than zero, the new energy of the first network device can be used to process the first service and / or the second service and / or charge the first battery, so that the new energy is fully utilized, and the new energy of the first network device can be used to process the second service, thereby realizing resource scheduling between the first network device and the second network device, and further reducing the waste of the new energy power supply.

[0076] In one embodiment, when the first power level is greater than zero, performing the first operation includes:

[0077] When the first power level is greater than zero, new energy of the first network device is preferentially used to process the first service.

[0078] In this embodiment, when the first power level is greater than zero, the new energy of the first network device is preferentially used to process the first service, which can ensure the maximum use of the new energy power supply and improve the utilization rate of the new energy power supply.

[0079] In one embodiment, when the first power level is greater than zero, performing the first operation includes:

[0080] When the first power level is greater than a second power level, new energy of the first network device is used to process the second service and / or charge the first battery; the second power level represents power usage or power consumption of the first network device.

[0081] Here, the second power quantity can be obtained by collecting data from a device or by predicting based on historical data, and there is no specific limitation. Since the second power quantity is affected by the regional business distribution and has a certain regularity, it can be predicted based on historical data. For example, the second power quantity can be determined by the following formula:

[0082]

[0083] Among them, E c ' ons,t is the second power at the current time t; M represents the history of M days, for example, M is 7 or 30, and the specific value of M is not limited; j∈[1,M]; is the power usage or power consumption of the first network device at time t on the jth day in history. In practical applications, the value of M is the same as the value of N.

[0084] In actual application, when the first power level is greater than the second power level, the new energy of the first network device can be used preferentially to charge the first storage battery.

[0085] In this embodiment, when the first power is greater than the second power, using the new energy of the first network device to process the second business can increase business power consumption, reduce electricity costs, make resource scheduling more reasonable, and further improve the utilization rate of new energy power supply.

[0086] When using the new energy processing service of the first network device and charging the first battery, in one embodiment, the charge capacity of the first battery is the minimum value between a first value and a second value; the first value is the difference between the first power and the second power, and the second value is the difference between the maximum capacity of the first battery and the current power.

[0087] Here, the first value is a value obtained by subtracting the second power from the first power; the second value is a value obtained by subtracting the current power of the first battery from the maximum capacity of the first battery.

[0088] Specifically, the charge capacity of the first storage battery is determined by the following formula:

[0089] E battery_char =min(E' green_gen,t -E c ' ons,t ,E battery_max -E battery_cur ),

[0090] Among them, E battery_char is the charge capacity of the first battery, E' green_gen,t is the first electric quantity at the current moment t, E c ' ons,tis the second electric quantity at the current time t, E battery_max is the maximum capacity of the first battery, E battery_cur is the current charge of the first battery.

[0091] In this embodiment, the charge capacity of the first battery is the minimum of the first value and the second value, which can ensure that the new energy power supply is fully utilized to charge the first battery, and can ensure that the maximum capacity of the first battery is not exceeded, thereby avoiding continuous charging of the first battery and causing waste of new energy power supply, and can also ensure the power safety of the first battery.

[0092] When the new energy of the first network device is used to process the first service and the second service, in one embodiment, the amount of electricity consumed to process the second service is less than or equal to a first value; the first value is the difference between the first amount of electricity and the second amount of electricity.

[0093] Here, the first value is a value obtained by subtracting the second power from the first power.

[0094] In this embodiment, the amount of electricity consumed for processing the second service is less than or equal to the difference between the amount of power supplied by the new energy of the first network device and the amount of electricity used or consumed by the first network device, thereby avoiding a situation where insufficient electricity is available for processing the first service due to processing the second service. Resource scheduling is performed on the basis of ensuring the amount of electricity used or consumed by the first network device, thereby making resource scheduling more reasonable.

[0095] In one embodiment, when the first power level is greater than zero, performing the first operation includes:

[0096] When the first power level is greater than zero and the first power level is less than the second power level during the first power usage period, the first service is processed using new energy of the first network device, and / or the first service is processed by controlling the discharge of the first battery; the second power level represents the power usage or power consumption of the first network device; the discharge amount of the first battery is the minimum value between a third value and a fourth value; the third value is the difference between the second power level and the first power level, and the fourth value is the difference between the current power level of the first battery and the minimum backup capacity; the minimum backup capacity is the power consumed by the first network device within a set period of time.

[0097] The first electricity consumption period is a peak electricity price period or a time period corresponding to the highest electricity price. The minimum backup capacity of the first battery is used to ensure the working stability of the first network device in extreme scenarios such as power outages. The set duration can be set according to actual needs. For example, the set duration is 2 hours.

[0098] Here, the third value is a value obtained by subtracting the first power from the second power; and the fourth value is a value obtained by subtracting the minimum backup capacity of the first battery from the current power of the first battery.

[0099] Specifically, the discharge capacity of the first storage battery is determined by the following formula:

[0100] E battery_dischar =min(E c ' ons,t -E' green_gen,t ,E battery_cur -E battery_backup ),

[0101] Among them, E battery_dischar is the discharge capacity of the first battery, E c ' ons,t is the second electric quantity at the current time t, E' green_gen,t is the first electric quantity at the current moment t, E battery_cur is the current charge of the first battery, E battery_backup It is the minimum backup capacity of the first battery.

[0102] In this embodiment, when the first power level is greater than zero and the first power level is less than the second power level during the first power usage period, the first battery is controlled to discharge to process the first service, so that the normal processing of the first service can be guaranteed, and the discharge amount of the first battery is the minimum value between the third value and the fourth value, so that the current power level of the first battery is not less than the minimum backup power capacity of the first battery, thereby ensuring the working stability of the first network device in extreme scenarios.

[0103] In one embodiment, when the first power level is greater than zero, performing the first operation includes:

[0104] When the first electric quantity is greater than zero and the first electric quantity is less than the second electric quantity during the second power usage period, and the power generation of the new energy of the first network device is zero during the third power usage period, the new energy of the first network device is used to process the first service, and / or the first battery is charged with AC power; and / or the second service is refused to be received; the second electric quantity represents the power usage or power consumption of the first network device.

[0105] The second electricity consumption period is a period corresponding to the valley electricity price or the lowest electricity price. The electricity price of the second electricity consumption period is lower than the electricity price of the first electricity consumption period. The third electricity consumption period is a period corresponding to the peak electricity price or the highest electricity price, and is located after the first electricity consumption period.

[0106] In this embodiment, when the first power amount is greater than zero and the first power amount is less than the second power amount in the second power consumption period, and the power generation of the new energy of the first network device is zero in the third power consumption period, the first battery is charged with municipal electricity. Since the electricity price in the second power consumption period is lower, the electricity cost can be reduced, and power can be reserved for entering the third power consumption period to ensure the resource scheduling effect.

[0107] Corresponding to the resource scheduling method on the first network device side described above, the embodiment of the present application further provides a resource scheduling method applied to a second network device, wherein the second network device has no new energy supply, or the power supply of the new energy is less than or equal to the power usage or power consumption of the second network device; the second network device may be a base station. Figure 5 As shown, the method includes:

[0108] Step 501: When the fourth power level is zero, or the fourth power level is less than or equal to the fifth power level, receive or send a first request.

[0109] Among them, the fourth electrical quantity represents the power supply of the new energy of the second network device, and the fifth electrical quantity represents the power usage or power consumption of the second network device; the first request is used to migrate services to the first network device, and the power supply of the new energy of the first network device is greater than zero.

[0110] Here, when the fourth power level is zero, or the fourth power level is less than or equal to the fifth power level, the second network device receives the first request sent by the first network device, or the second network device sends the first request to the first network device.

[0111] In this embodiment, when the fourth power level is zero, or the fourth power level is less than or equal to the fifth power level, receiving or sending the first request can help reduce the power usage or power consumption of the second network device, realize resource scheduling between the second network device and the first network device, thereby helping to reduce the power usage cost of the second network device.

[0112] In one embodiment, the first request carries a reason value, and the reason value represents the consumption of new energy.

[0113] In this embodiment, the first request carries a reason value representing the consumption of new energy, which can help the first network device quickly determine that the new energy can be used to process the service migrated by the second network device, thereby improving the utilization rate of the new energy.

[0114] The present application is described in further detail below in conjunction with application examples.

[0115] Before introducing the resource scheduling method provided by the present application, a schematic diagram of the relationship between the power supply of new energy and the power consumption of network equipment is provided, such as Figure 6 shown. Figure 6The solid line in the middle represents the power supply of the new energy, and the dotted line represents the power consumption (or power usage) of the network equipment. Figure 6 The horizontal axis represents time, and the vertical axis represents power; the peak period corresponds to 10:00 to 13:00 and 17:00 to 22:00; the trough period corresponds to 0:00 to 7:00 and 23:00 to 24:00. Figure 6 It is not difficult to conclude that resource scheduling mainly aims to minimize the electricity cost of network equipment and help alleviate the peak pressure of the power system.

[0116] The electricity cost of network equipment is determined based on the power consumption of network equipment and the unit price of electricity (which can be referred to as electricity price). The power consumption of network equipment includes the mains power consumption and renewable energy power consumption during peak, flat and valley periods.

[0117] Specifically, the electricity cost of network equipment is determined by the following formula:

[0118] Cost all =E valley_cons ×C valley +E level_cons ×C level +E peak_cons ×C peak +E green_cons ×C green ,

[0119] Among them, Cost all is the electricity cost of network equipment, E valley_cons is the total power consumption during the trough period, C valley is the electricity price during the trough period, E level_cons is the total power consumption during the flat period, C level is the electricity price during the normal period, E peak_cons is the total power consumption during the peak period, C peak is the electricity price during the peak period, E green_cons is the total electricity consumption of renewable energy, C green The price of electricity from renewable energy.

[0120] It is worth noting that the relationship between the electricity prices during peak hours, flat hours, valley hours, and renewable energy electricity prices is C peak >C level >C valley >C green The electricity price of new energy is determined by the following formula:

[0121] C green =Cost green / (N battery ×E' battery_max ),

[0122] Among them, Costgreen is the cost of new energy construction, N battery is the number of charge and discharge times supported by the battery, E' battery_max is the maximum capacity of the battery.

[0123] To reduce the electricity cost of network equipment, you can reduce the electricity consumption during the peak electricity price period and / or increase the use of new energy power supply. Specifically, you can set different resource scheduling strategies based on whether the network equipment is powered by new energy:

[0124] For network devices powered by renewable energy, the power supply of renewable energy is maximized, i.e. Min(Cost) all )≈Max(E green_cons ) to reduce the electricity cost of network equipment;

[0125] For network devices without renewable energy supply, the power consumption during the peak electricity price period is minimized, i.e. Min(Cost all )≈Min(E peak_cons ) to reduce the electricity cost of network equipment.

[0126] The resource scheduling method provided by this application is introduced below.

[0127] First, for the first network device, that is, the network device powered by a new energy source, when the first power is greater than zero, the first network device preferentially uses the new energy source of the first network device to process the first service; wherein the first power represents the power supply of the new energy source of the first network device, and the first service represents the service of the first network device. When the first power is greater than the second power, the new energy source of the first network device is preferentially used to charge the first storage battery, and the charge amount of the first storage battery is monitored to be the minimum value of the first value and the second value; wherein the second power represents the power usage or power consumption of the first network device, the first storage battery represents the storage battery of the first network device, the first value is the difference between the first power and the second power, and the second value is the difference between the maximum capacity of the first storage battery and the current power. Of course, when the first power level is greater than zero and less than the second power level during the first power consumption period, i.e., the peak power price period, the first network device may also use the new energy of the first network device to process the first service; and / or, process the first service by controlling the discharge of the first battery, and monitor the discharge amount of the first battery to be the minimum of the third value and the fourth value; wherein the third value is the difference between the second power level and the first power level, and the fourth value is the difference between the current power level of the first battery and the minimum backup capacity; the minimum backup capacity is the power consumed by the first network device within a set period of time.

[0128] Secondly, when the first power level is greater than the second power level, the first network device uses the new energy of the first network device to process the second service and / or charge the first battery; the second service represents the migratable service of the second network device, and the second power level represents the power usage or power consumption of the first network device.

[0129] Here, the first network device can actively send a first request to an adjacent network device (i.e., the second network device) that is not powered by new energy, or receive a first request sent by the second network device, use the new energy of the first network device to process the second service, and monitor that the power consumed by processing the second service is less than or equal to the first value; wherein the first request is used to migrate services to the first network device, the second service represents the migrateable services of the second network device, and the first value is the difference between the first power and the second power. For example, a schematic diagram of service migration between the first network device and the second network device, such as Figure 7 shown. Figure 7 It shows that when the first power is greater than the second power, the first network device sends a first request to the second network device, the second network device migrates the second service to the first network device, and the first network device uses the new energy to process the second service.

[0130] Here, in the scenario where the first network device actively sends a first request to an adjacent network device (i.e., the second network device) that is not powered by a new energy source, the first request includes a resource status request (RESOURCE STATUS REQUEST) message; in the scenario where the second network device actively sends a first request to the first network device, the first request includes a handover request (HANDOVER REQUEST) message. The process of service migration between the first network device and the second network device is as follows:

[0131] like Figure 8 As shown, the first network device sends a resource status request message to the adjacent second network device through the Xn interface; the message carries a Report Characteristics information element, and 1 bit of information can be defined in the Report Characteristics information element, indicating that this is a resource status request based on new energy consumption; when the second network device receives the resource status request message, if there is a second service that can be migrated and it is agreed to migrate the second service to the first network device, then the second network device sends a resource status response (RESOURCE STATUS RESPONSE) message to the first network device;

[0132] like Fig. 9As shown, when there is a second service that can be migrated on the second network device and it is agreed to migrate the second service to the first network device, the second network device sends a switching request message to the first network device through the Xn interface; the message carries a cause (Cause) information element, and new energy consumption (New Energy Consumption) information can be added to the enumeration value of the Cause information element, or the enumeration value of the existing Cause information element can be reused, such as reducing the load of the service unit (Reduce Load in Serving Cell) information, indicating that this is a switching request in response to new energy consumption; the first network device receives the switching request message sent by the second network device, and when the first network device agrees to migrate the second service of the second network device to the first network device, it sends a switching request confirmation (HANDOVER REQUESTACKNOWLEDGE) message to the second network device, and the second network device migrates the second service to the first network device, and the first network device uses new energy to process the second service.

[0133] In the scenario where the second network device actively sends a first request to an adjacent network device (i.e., the first network device) powered by a new energy source, the first network device receives the first request sent by the second network device. At this time, the first request includes a switching request message. The process of service migration between the first network device and the second network device is as follows:

[0134] When the fourth power is zero, or the fourth power is less than or equal to the fifth power, and the second network device has a second service that can be migrated, the second network device sends a switching request message to the first network device through the Xn interface, where the fourth power is the power supply of the new energy of the second network device, and the fifth power is the power usage or power consumption of the second network device; the message carries a Cause cell, and new energy consumption information can be added to the enumeration value of the Cause cell, or the enumeration value of the existing Cause cell can be reused, such as reducing the load information of the service unit, indicating that this is a switching request for absorbing new energy; when the first network device agrees to migrate the second service of the second network device to the first network device, a switching request confirmation message is sent to the second network device, and the second network device migrates the second service to the first network device, so that the first network device uses the new energy to process the second service.

[0135] In addition, when the first power amount is greater than zero and the first power amount is less than the second power amount during the second power consumption period, i.e., the valley power price period, and the power generation of the new energy of the first network device is zero during the third power consumption period, i.e., the next peak power price period, the first network device can use the new energy of the first network device to process the first service, and / or use the city power to charge the first battery; and / or, upon receiving the first request, refuse to receive the second service, and carry the reason that there is no new energy power.

[0136] For the second network device, that is, the network device without new energy power supply, first, during the first power consumption period, that is, the peak power price period, the second network device preferentially sends a first request to the adjacent network device with new energy power supply, that is, the first network device, the first request carries a reason value, and the reason value represents the consumption of new energy; in the case of receiving the first request sent by the first network device, respond to the first request to perform service migration. Secondly, control the discharge of the second battery until the current power of the second battery is lower than the minimum backup capacity of the second battery; wherein the second battery is the battery of the second network device, and the minimum backup capacity of the second battery is the power consumed by the second network device within a set time, such as 2 hours. During the second power consumption period, that is, the valley power price period, use the mains electricity to charge the second battery until the maximum capacity of the second battery is reached; in the case of receiving the first request sent by the first network device, respond to the first request to perform service migration.

[0137] The resource scheduling method provided in this application can coordinate the power supply of renewable energy, the services of network equipment, and the power of batteries. It is not limited to the business needs of the network equipment itself and the battery capacity. It can maximize the use of renewable energy power supply, effectively reduce electricity costs, and has a wide range of application scenarios.

[0138] In order to implement the resource scheduling method on the first network device side of the embodiment of the present application, the embodiment of the present application also provides a resource scheduling device, which is arranged on the first network device, such as Fig.10 As shown, the device comprises:

[0139] The processing module 1001 is used to perform a first operation when the first power is greater than zero; wherein:

[0140] The first electrical quantity represents the power supply of the new energy of the first network device; the first operation includes: using the new energy of the first network device to process the first service and / or the second service and / or charging the first battery, and / or, using AC power to charge the first battery, and / or, controlling the discharge of the first battery; the first service represents the service of the first network device; the second service represents the migratable service of the second network device; the first battery represents the battery of the first network device.

[0141] In one embodiment, the processing module 1001 is specifically configured to preferentially use the new energy of the first network device to process the first service when the first power level is greater than zero.

[0142] In one embodiment, the processing module 1001 is specifically used to use the new energy of the first network device to process the second service and / or charge the first battery when the first power level is greater than the second power level; the second power level represents the power usage or power consumption of the first network device.

[0143] In one embodiment, the charge capacity of the first battery is the minimum value between a first value and a second value; the first value is the difference between the first charge and the second charge, and the second value is the difference between the maximum capacity and the current charge of the first battery.

[0144] In one embodiment, the amount of electricity consumed for processing the second service is less than or equal to a first value; the first value is the difference between the first amount of electricity and the second amount of electricity.

[0145] In one embodiment, the processing module 1001 is specifically used to use the new energy of the first network device to process the first service, and / or to process the first service by controlling the discharge of the first battery when the first power level is greater than zero and the first power level is less than the second power level during a first power usage period; the second power level represents the power usage or power consumption of the first network device; the discharge amount of the first battery is the minimum value between a third value and a fourth value; the third value is the difference between the second power level and the first power level, and the fourth value is the difference between the current power level of the first battery and the minimum backup capacity; the minimum backup capacity is the power consumed by the first network device within a set period of time.

[0146] In one embodiment, the processing module 1001 is specifically used to use the new energy of the first network device to process the first service, and / or use AC power to charge the first battery when the first power amount is greater than zero and the first power amount is less than the second power amount in the second power usage period, and the new energy of the first network device has a power generation amount of zero in the third power usage period; and / or refuse to receive the second service; the second power amount represents the power usage or power consumption of the first network device.

[0147] In one embodiment, the first electric quantity is obtained based on a third electric quantity and an impact factor of new energy power generation; the third electric quantity is a historical power supply of new energy of the first network device.

[0148] In actual application, the processing module 1001 can be implemented by a processor and a communication interface of a resource scheduling device.

[0149] In order to implement the resource scheduling method on the second network device side of the embodiment of the present application, the embodiment of the present application also provides a resource scheduling device, which is arranged on the second network device, such as Fig.11As shown, the device comprises:

[0150] The transceiver module 1101 is used to receive or send a first request when the fourth power level is zero or the fourth power level is less than or equal to the fifth power level; wherein,

[0151] The fourth electrical quantity represents the power supply of the new energy of the second network device, and the fifth electrical quantity represents the power usage or power consumption of the second network device; the first request is used to migrate the service to the first network device, and the power supply of the new energy of the first network device is greater than zero.

[0152] In one embodiment, the first request carries a reason value, and the reason value represents the consumption of new energy.

[0153] In actual application, the above-mentioned transceiver module 1101 can be implemented by a processor of the resource scheduling device in combination with a communication interface.

[0154] It should be noted that the resource scheduling device provided in the above embodiment only uses the division of the above program modules as an example when performing resource scheduling. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the resource scheduling device provided in the above embodiment and the resource scheduling method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0155] Based on the hardware implementation of the above program module, and in order to implement the method of the first network device side of the embodiment of the present application, the embodiment of the present application also provides a first network device, such as Fig.12 As shown, the first network device 1200 includes:

[0156] The first communication interface 1201 is capable of exchanging information with other network nodes;

[0157] The first processor 1202 is connected to the first communication interface 1201 to implement information exchange with other network nodes, and is used to execute the method provided by one or more technical solutions of the first network device side when running a computer program. The computer program is stored in the first memory 1203.

[0158] Specifically, the first processor 1202 is configured to execute a first operation when the first power is greater than zero; wherein,

[0159] The first electrical quantity represents the power supply of the new energy of the first network device; the first operation includes: using the new energy of the first network device to process the first service and / or the second service and / or charging the first battery, and / or, using AC power to charge the first battery, and / or, controlling the discharge of the first battery; the first service represents the service of the first network device; the second service represents the migratable service of the second network device; the first battery represents the battery of the first network device.

[0160] In one embodiment, the first processor 1202 is further configured to preferentially use new energy of the first network device to process the first service when the first power level is greater than zero.

[0161] In one embodiment, the first processor 1202 is further used to use new energy of the first network device to process the second service and / or charge the first battery when the first power level is greater than a second power level; the second power level represents power usage or power consumption of the first network device.

[0162] In one embodiment, the charge capacity of the first battery is the minimum value between a first value and a second value; the first value is the difference between the first charge and the second charge, and the second value is the difference between the maximum capacity and the current charge of the first battery.

[0163] In one embodiment, the amount of electricity consumed for processing the second service is less than or equal to a first value; the first value is the difference between the first amount of electricity and the second amount of electricity.

[0164] In one embodiment, the first processor 1202 is further used to use the new energy of the first network device to process the first service, and / or to process the first service by controlling the discharge of the first battery when the first power level is greater than zero and the first power level is less than the second power level during the first power usage period; the second power level represents the power usage or power consumption of the first network device; the discharge amount of the first battery is the minimum value between a third value and a fourth value; the third value is the difference between the second power level and the first power level, and the fourth value is the difference between the current power level of the first battery and the minimum backup capacity; the minimum backup capacity is the power consumed by the first network device within a set period of time.

[0165] In one embodiment, the first processor 1202 is further used to use the new energy of the first network device to process the first service, and / or use AC power to charge the first battery; and / or refuse to receive the second service when the first power level is greater than zero and the first power level is less than the second power level in the second power usage period, and the new energy of the first network device generates zero power in the third power usage period; the second power level represents the power usage or power consumption of the first network device.

[0166] In one embodiment, the first electric quantity is obtained based on a third electric quantity and an impact factor of new energy power generation; the third electric quantity is a historical power supply of new energy of the first network device.

[0167] It should be noted that the specific processing process of the first processor 1202 and the first communication interface 1201 can be understood by referring to the above method.

[0168] Of course, in actual application, the various components in the first network device 1200 are coupled together through the bus system 1204. It can be understood that the bus system 1204 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1204 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.12 Various buses are labeled as bus system 1204.

[0169] The first memory 1203 in the embodiment of the present application is used to store various types of data to support the operation of the first network device 1200. Examples of such data include: any computer program used to operate on the first network device 1200.

[0170] The method disclosed in the above embodiment of the present application can be applied to the first processor 1202, or implemented by the first processor 1202. The first processor 1202 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by an integrated logic circuit of the hardware in the first processor 1202 or an instruction in the form of software. The above-mentioned first processor 1202 may be a general-purpose processor, a digital signal processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The first processor 1202 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the first memory 1203, and the first processor 1202 reads the information in the first memory 1203 and completes the steps of the above method in combination with its hardware.

[0171] In an exemplary embodiment, the first network device 1200 may be implemented by one or more application specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to execute the aforementioned method.

[0172] Based on the hardware implementation of the above program module, and in order to implement the method of the second network device side of the embodiment of the present application, the embodiment of the present application also provides a second network device, such as Fig.13 As shown, the second network device 1300 includes:

[0173] The second communication interface 1301 is capable of exchanging information with other network nodes;

[0174] The second processor 1302 is connected to the second communication interface 1301 to implement information exchange with other network nodes, and is used to execute the method provided by one or more technical solutions of the second network device side when running a computer program. The computer program is stored in the second memory 1303.

[0175] Specifically, the second communication interface 1301 is used to receive or send a first request when the fourth power is zero or the fourth power is less than or equal to the fifth power; wherein,

[0176] The fourth electrical quantity represents the power supply of the new energy of the second network device, and the fifth electrical quantity represents the power usage or power consumption of the second network device; the first request is used to migrate the service to the first network device, and the power supply of the new energy of the first network device is greater than zero.

[0177] In one embodiment, the first request carries a reason value, and the reason value represents the consumption of new energy.

[0178] It should be noted that the specific processing process of the second processor 1302 and the second communication interface 1301 can be understood by referring to the above method.

[0179] Of course, in actual application, the various components in the second network device 1300 are coupled together through the bus system 1304. It can be understood that the bus system 1304 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 1304 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.13 Various buses are labeled as bus system 1304 .

[0180] The second memory 1303 in the embodiment of the present application is used to store various types of data to support the operation of the second network device 1300. Examples of such data include: any computer program used to operate on the second network device 1300.

[0181] The method disclosed in the above embodiment of the present application can be applied to the second processor 1302, or implemented by the second processor 1302. The second processor 1302 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the second processor 1302. The above-mentioned second processor 1302 may be a general-purpose processor, DSP, or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The second processor 1302 can implement or execute the methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the second memory 1303. The second processor 1302 reads the information in the second memory 1303 and completes the steps of the above method in combination with its hardware.

[0182] In an exemplary embodiment, the second network device 1300 may be implemented by one or more ASICs, DSPs, PLDs, CPLDs, FPGAs, general processors, controllers, MCUs, Microprocessors, or other electronic components to perform the aforementioned methods.

[0183] It can be understood that the memory (first memory 1203, second memory 1303) of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a ferromagnetic random access memory, a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM, SyncLink Dynamic Random Access Memory), and direct RAM bus random access memory (DRRAM, Direct Rambus Random Access Memory).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.

[0184] The embodiment of the present application further provides a first network device, including a processor and a memory for storing a computer program that can be run on the processor.

[0185] Wherein, when the processor is used to run the computer program, it executes the steps of any one of the above-mentioned methods on the first network device side.

[0186] The embodiment of the present application further provides a second network device, including a processor and a memory for storing a computer program that can be run on the processor.

[0187] Wherein, when the processor is used to run the computer program, it executes the steps of any method on the second network device side.

[0188] An embodiment of the present application further provides a storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the computer program implements the steps of any of the above-mentioned methods on the first network device side, or implements the steps of any of the above-mentioned methods on the second network device side.

[0189] In an exemplary embodiment, the embodiment of the present application further provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory 1203 storing a computer program, and the computer program can be executed by the first processor 1202 of the first network device 1200 to complete the steps of the aforementioned first network device side method. For another example, a second memory 1303 storing a computer program can be executed by the second processor 1302 of the second network device 1300 to complete the steps of the aforementioned second network device side method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.

[0190] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements the steps of any method on the first network device side or the steps of any method on the second network device side.

[0191] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0192] The term "and / or" in this article 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.

[0193] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict.

[0194] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application.

Claims

1. A resource scheduling method, It is characterized in that Applied to a first network device, the method comprises: When the first power level is greater than zero, a first operation is performed; wherein, The first electrical quantity represents the power supply of the new energy of the first network device; the first operation includes: using the new energy of the first network device to process the first service and / or the second service and / or charging the first battery, and / or, using AC power to charge the first battery, and / or, controlling the discharge of the first battery; the first service represents the service of the first network device; the second service represents the migratable service of the second network device; the first battery represents the battery of the first network device.

2. The method according to claim 1, It is characterized in that When the first power level is greater than zero, performing the first operation includes: When the first power level is greater than zero, new energy of the first network device is preferentially used to process the first service.

3. The method according to claim 1, It is characterized in that When the first power level is greater than zero, performing the first operation includes: When the first power level is greater than a second power level, new energy of the first network device is used to process the second service and / or charge the first battery; the second power level represents power usage or power consumption of the first network device.

4. The method according to claim 3, It is characterized in that The charge capacity of the first storage battery is the minimum value between the first value and the second value; the first value is the difference between the first power and the second power, and the second value is the difference between the maximum capacity and the current power of the first storage battery.

5. The method according to claim 3, It is characterized in that The amount of electricity consumed to process the second service is less than or equal to a first value; the first value is the difference between the first amount of electricity and the second amount of electricity.

6. The method according to claim 1, It is characterized in that When the first power level is greater than zero, performing the first operation includes: When the first power level is greater than zero and the first power level is less than the second power level during the first power usage period, the first service is processed using new energy of the first network device, and / or the first service is processed by controlling the discharge of the first battery; the second power level represents the power usage or power consumption of the first network device; the discharge amount of the first battery is the minimum value between a third value and a fourth value; the third value is the difference between the second power level and the first power level, and the fourth value is the difference between the current power level of the first battery and the minimum backup capacity; the minimum backup capacity is the power consumed by the first network device within a set period of time.

7. The method according to claim 1, It is characterized in that When the first power level is greater than zero, performing the first operation includes: When the first electric quantity is greater than zero and the first electric quantity is less than the second electric quantity during the second power usage period, and the power generation of the new energy of the first network device is zero during the third power usage period, the new energy of the first network device is used to process the first service, and / or the first battery is charged with AC power; and / or the second service is refused to be received; the second electric quantity represents the power usage or power consumption of the first network device.

8. The method according to any one of claims 1 to 7, It is characterized in that The first electric quantity is obtained based on the third electric quantity and the new energy power generation influencing factor; the third electric quantity is the historical power supply of the new energy of the first network device.

9. A resource scheduling method, It is characterized in that Applied to the second network device, the method comprises: When the fourth power level is zero, or the fourth power level is less than or equal to the fifth power level, a first request is received or sent; wherein, The fourth electrical quantity represents the power supply of the new energy of the second network device, and the fifth electrical quantity represents the power usage or power consumption of the second network device; the first request is used to migrate the service to the first network device, and the power supply of the new energy of the first network device is greater than zero.

10. The method according to claim 9, It is characterized in that The first request carries a reason value, and the reason value represents the consumption of new energy.

11. A resource scheduling device, It is characterized in that The device comprises: The processing module is used to perform a first operation when the first power is greater than zero; wherein, The first electrical quantity represents the power supply of the new energy of the first network device; the first operation includes: using the new energy of the first network device to process the first service and / or the second service and / or charging the first battery, and / or, using AC power to charge the first battery, and / or, controlling the discharge of the first battery; the first service represents the service of the first network device; the second service represents the migratable service of the second network device; the first battery represents the battery of the first network device.

12. A resource scheduling device, It is characterized in that The device comprises: The transceiver module is used to receive or send a first request when the fourth power level is zero or the fourth power level is less than or equal to the fifth power level; wherein, The fourth electrical quantity represents the power supply of the new energy of the second network device, and the fifth electrical quantity represents the power usage or power consumption of the second network device; the first request is used to migrate the service to the first network device, and the power supply of the new energy of the first network device is greater than zero.

13. A first network device, It is characterized in that include: A first processor and a first communication interface; wherein, The first processor is used to perform a first operation when the first power is greater than zero; wherein, The first electrical quantity represents the power supply of the new energy of the first network device; the first operation includes: using the new energy of the first network device to process the first service and / or the second service and / or charging the first battery, and / or, using AC power to charge the first battery, and / or, controlling the discharge of the first battery; the first service represents the service of the first network device; the second service represents the migratable service of the second network device; the first battery represents the battery of the first network device.

14. A second network device, It is characterized in that include: A second processor and a second communication interface; wherein, The second communication interface is used to receive or send a first request when the fourth power level is zero or the fourth power level is less than or equal to the fifth power level; wherein, The fourth electrical quantity represents the power supply of the new energy of the second network device, and the fifth electrical quantity represents the power usage or power consumption of the second network device; the first request is used to migrate the service to the first network device, and the power supply of the new energy of the first network device is greater than zero.

15. A first network device, It is characterized in that comprising a processor and a memory for storing a computer program capable of being executed on the processor, Wherein, when the processor is used to run the computer program, it executes the steps of the method described in any one of claims 1 to 8.

16. A second network device, It is characterized in that comprising a processor and a memory for storing a computer program capable of being executed on the processor, Wherein, when the processor is used to run the computer program, it executes the steps of the method described in any one of claims 9 to 10.

17. A storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented, or the steps of the method according to any one of claims 9 to 10 are implemented.

18. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented, or the steps of the method according to any one of claims 9 to 10 are implemented.