Network equipment power consumption adjusting method and device, electronic equipment, storage medium and program product

By monitoring and controlling access devices to enter sleep mode in real time, and identifying and migrating switchable boards of non-access devices, the problem of excessive overall power consumption of network devices in large-scale networking environments is solved, achieving maximum reduction of overall power consumption and improvement of energy efficiency.

CN120980016APending Publication Date: 2025-11-18MAIPU COMM TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511323116.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-16
Publication Date
2025-11-18

AI Technical Summary

Technical Problem

Existing technologies cannot effectively reduce the overall power consumption of network devices in large-scale networking environments. Furthermore, existing energy-saving strategies lack unified monitoring and coordinated adjustment of the status of all network devices, rely too much on power-down operations at the switching board level, and fail to fully consider the possibility of power-down of interface boards and the entire device.

Method used

By monitoring the operating status of each network device in real time, the system controls access devices to enter a sleep state, identifies switchable boards for non-access devices, and executes differentiated power consumption adjustment strategies based on traffic conditions, including traffic migration and board-level energy-saving control.

Benefits of technology

It achieves maximum reduction in the overall power consumption of network devices in large-scale networking environments. Through dynamic monitoring and adjustment mechanisms, it optimizes the power consumption levels of different types of network devices and boards, significantly improving overall energy efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120980016A_ABST
    Figure CN120980016A_ABST
Patent Text Reader

Abstract

The invention provides a network equipment power consumption adjusting method and device, electronic equipment, a storage medium and a program product. The method comprises the steps that the running state of each network equipment is monitored; the network equipment comprises access equipment and non-access equipment, and the non-access equipment comprises network equipment of a convergence layer and network equipment of a core layer; if monitoring that the access device has no terminal access, controlling the access device to enter a dormant state; and if it is monitored that the non-access device has the board card with the flow to be adjusted, determining a switchable board card for receiving the flow of the board card with the flow to be adjusted, and executing a power consumption adjustment strategy corresponding to the board card with the flow to be adjusted based on the switchable board card. According to the invention, power consumption adjustment of a complete machine level and a board card level can be realized, and the overall power consumption level of a networking environment can be reduced to the greatest extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data communication technology, and more specifically, to a method, apparatus, electronic device, storage medium, and program product for adjusting the power consumption of network equipment. Background Technology

[0002] With the rapid development of big data and artificial intelligence technologies, the workload carried by large-scale network equipment environments such as campus networks and data centers is growing exponentially, and the scale of data processing is also expanding significantly. Against this backdrop, network equipment not only needs to meet the demands of larger-scale networking but also needs to possess higher performance. However, the continuous improvement in network scale and performance has directly led to a sharp increase in energy consumption. According to statistics released by the International Energy Agency, the total global data center electricity consumption reached 460 terawatt-hours (TWh) in 2022; it is predicted that this figure will exceed 1000 TWh by 2026. In the current context of the increasingly widespread adoption of low-carbon development concepts globally, energy conservation and emission reduction not only help reduce carbon emissions but also significantly lower energy costs.

[0003] Currently, the power consumption of modern high-performance network equipment typically reaches thousands to tens of thousands of watts, resulting in significant energy expenditures in large-scale networking applications. Therefore, effectively reducing the power consumption of network equipment in large-scale networking environments has become a critical technical challenge that urgently needs to be addressed. However, existing solutions have significant limitations: firstly, they can only achieve localized energy-saving adjustments within a single device, lacking a unified monitoring and coordinated adjustment mechanism for the entire network's equipment status; secondly, energy-saving strategies rely too heavily on power-down operations at the switching board level, failing to fully consider the possibility of power-down operations on interface boards and the entire device.

[0004] Therefore, how to minimize the overall power consumption of network devices in large-scale networking environments is a technical problem that needs to be solved. Summary of the Invention

[0005] In view of this, the purpose of this invention is to provide a method, apparatus, electronic device, storage medium, and program product for adjusting the power consumption of network devices, which can maximize the reduction of the overall power consumption of network devices in large-scale networking environments. To achieve the above objective, the technical solutions adopted in the embodiments of this invention are as follows: In a first aspect, the present invention provides a method for adjusting the power consumption of network devices, the method comprising: monitoring the operating status of each network device; the network devices including access devices and non-access devices; the non-access devices including network devices at the aggregation layer and network devices at the core layer; if it is detected that no terminal is accessing the access device, then controlling the access device to enter a sleep state; if it is detected that there is a traffic adjustment board on the non-access device, then determining a switchable board that receives the traffic from the traffic adjustment board; and executing a power consumption adjustment strategy corresponding to the traffic adjustment board based on the switchable board.

[0006] Secondly, the present invention provides a network device power consumption adjustment device, comprising: a monitoring module and an adjustment module; the monitoring module is used to monitor the operating status of each network device; the network devices include access devices and non-access devices; the non-access devices include network devices at the aggregation layer and network devices at the core layer; the adjustment module is used to control the access device to enter a sleep state if the monitoring module detects that no terminal is connected to the access device; the adjustment module is further used to determine a switchable board that receives the traffic of the traffic-to-adjustment board if it detects that there is a traffic-to-adjustment board on the non-access device; and to execute the power consumption adjustment strategy corresponding to the traffic-to-adjustment board based on the switchable board.

[0007] Thirdly, the present invention provides an electronic device including a processor and a memory, wherein the memory stores machine-executable instructions that can be executed by the processor, and the processor can execute the machine-executable instructions to implement the network device power consumption adjustment method described in any of the foregoing embodiments.

[0008] Fourthly, the present invention provides a storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the network device power consumption adjustment method as described in any of the foregoing embodiments.

[0009] Fifthly, the present invention provides a program product having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the network device power consumption adjustment method as described in any of the foregoing embodiments.

[0010] The network device power consumption adjustment method, apparatus, electronic device, storage medium, and program product provided in this invention monitor the operating status of each network device in the control domain in real time (including access devices, aggregation layer network devices, and core layer network devices), providing a basis for subsequent dynamic adjustment. When it is detected that an access device is not connected to any terminal, it is controlled to enter a sleep state, thereby effectively reducing the power consumption of idle devices without affecting network functions, achieving power consumption adjustment at the whole device level. For non-access devices such as aggregation layer network devices or core layer network devices, if a card with traffic to be adjusted is detected, a switchable card with the ability to receive additional traffic is identified. Then, based on the switchable card, the power consumption adjustment strategy corresponding to the card with traffic to be adjusted is executed. It can flexibly adjust the power consumption according to different traffic conditions and card status, further optimizing the power consumption level of the entire network device. The whole process realizes the power consumption adjustment of different types of network devices and cards through dynamic monitoring and adjustment mechanism, reducing the overall power consumption level of the networking environment.

[0011] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0012] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 This is a schematic diagram of a large-scale networking architecture provided in an embodiment of the present invention; Figure 2 A schematic flowchart illustrating a network device power consumption adjustment method provided in an embodiment of the present invention; Figure 3 A power consumption adjustment process diagram for a low-load board provided in an embodiment of the present invention; Figure 4 A power consumption adjustment process diagram for a high-load board provided in an embodiment of the present invention; Figure 5 A functional block diagram of the network device power consumption adjustment device provided in an embodiment of the present invention; Figure 6 This is a structural block diagram of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0014] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. The components of the embodiments of the present invention described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.

[0015] Therefore, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely to illustrate selected embodiments of the invention. All other embodiments obtained by those skilled in the art based on the embodiments of the invention without inventive effort are within the scope of protection of the invention.

[0016] It should be noted that relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0017] First, the relevant terms involved in the embodiments of this invention will be explained.

[0018] 1. Instantaneous flow load factor: The ratio of actual flow rate to rated flow rate.

[0019] 2. Idle flow load: The difference between the rated flow and the actual flow carried.

[0020] 3. Average flow load rate: The average value of instantaneous flow load rate over a period of time.

[0021] 4. Low load threshold: A threshold used to determine whether the current traffic load rate is too low.

[0022] 5. Switchable load threshold: Determines whether the current traffic load rate meets the threshold for switching adjustment.

[0023] 6. High load threshold: The threshold for determining whether the current traffic load rate is too high.

[0024] 7. Low-load boards: Boards whose current traffic load rate is lower than the low-load threshold.

[0025] 8. High-load boards: Boards whose current traffic load rate is higher than the high-load threshold.

[0026] 9. Switchable board: A board whose traffic load rate is below the switchable load threshold and has the ability to receive traffic from other boards.

[0027] 10. Excessive Traffic: Traffic exceeding the switchable load threshold of a high-load board.

[0028] Please see Figure 1 , Figure 1 This is a schematic diagram of a large-scale network architecture provided by an embodiment of the present invention. Multiple network devices, namely network devices 1 to 7, are deployed in this network environment. Network device 7 in the core layer is network-connected to network devices 5 to 6 in the aggregation layer, and network devices 5 and 6 are respectively network-connected to network devices 1 to 4 in the access layer. Network devices 1 to 4 are network-connected to terminals 1 to 8.

[0029] In this embodiment of the invention, the core layer network device 7 is used to provide high-speed forwarding capabilities, is responsible for aggregating traffic from various aggregation layer network devices, and makes global forwarding decisions to ensure efficient traffic scheduling in large-scale networking environments. The aggregation layer network devices 5 and 6 are used to centrally process and schedule traffic from access layer network devices, serving as intermediate aggregation points for traffic. The access layer network devices 1 to 4 are used to provide terminal access services, serving as network edge nodes, responsible for establishing direct connections with terminals 1 to 8 (such as servers, client devices, etc.), and forwarding the traffic generated by terminals 1 to 8 to the upper-layer network devices.

[0030] Optionally, terminals 1 to 8 can be, but are not limited to, servers, personal computers, mobile terminals, IoT devices, edge computing nodes, or any electronic device capable of data interaction via a network. In practical applications, the type of terminal can be flexibly configured according to specific business needs to adapt to various large-scale networking scenarios such as data centers, campus networks, and enterprise networks.

[0031] See also Figure 1 In current large-scale networking environments, the number of network devices is large, resulting in excessive total power consumption. Considering the limitations of existing power consumption adjustment schemes, this invention provides a network device power consumption adjustment method that can comprehensively monitor and uniformly schedule all network devices within the control domain. It supports power consumption adjustment at the switching board, interface board, and system level, thereby significantly improving overall energy efficiency.

[0032] For ease of description and distinction, this embodiment of the invention refers to network devices located at the access layer as "access devices." These devices will not adjust power consumption based on traffic load during subsequent energy-saving control. Network devices at the core layer and aggregation layer are collectively referred to as "non-access devices," which will dynamically adjust power consumption based on traffic load. It should be understood that this classification of network devices in this embodiment of the invention is not absolute, but rather a relative classification based on corresponding power consumption adjustment strategies.

[0033] Please see Figure 2 , Figure 2 This is a schematic flowchart illustrating a network device power consumption adjustment method provided in an embodiment of the present invention. The execution subject of this method can be an electronic device (e.g., a PC), which can be connected to any network device in the networking environment. The method provided in this embodiment of the present invention includes steps S201 to S204, as described below: S201: Monitor the operating status of each network device; network devices include access devices and non-access devices; S202: If no terminal is detected to be connected to the access device, control the access device to enter a sleep state; S203: If a non-access device is detected to have a traffic adjustment board, then the switchable board that receives the traffic of the traffic adjustment board is determined, and the differentiated power consumption adjustment strategy corresponding to the traffic adjustment board is executed based on the switchable board.

[0034] The network device power consumption adjustment method provided in this invention monitors the operating status of each network device (including access devices and non-access devices including aggregation layer network devices and core layer network devices) within the control domain in real time, providing a basis for subsequent dynamic adjustment. When an access device is detected not connected to any terminal, it is controlled to enter a sleep state, thereby effectively reducing the power consumption of idle devices without affecting network functions, achieving power consumption adjustment at the whole device level. For non-access devices, if a card with traffic to be adjusted is detected, a switchable card with the ability to receive additional traffic is identified. Subsequently, the power consumption adjustment strategy corresponding to the card with traffic to be adjusted is executed based on the switchable card. Power consumption can be flexibly adjusted according to different traffic conditions and card status, further optimizing the power consumption level of the entire network device. The entire process, through dynamic monitoring and adjustment mechanism, realizes power consumption adjustment for different types of network devices and cards, reducing the overall power consumption level of the entire network environment.

[0035] Next, the embodiments of the present invention will be described in conjunction with the relevant accompanying drawings. Figure 2 Each step in the process is clearly explained.

[0036] In step S201, the electronic device can monitor the operating status of each network device within the control domain in real time through the controller. For access devices, the operating status may include terminal access status, interface status, basic power consumption status, and other status information. For non-access devices, the operating status may include the instantaneous traffic load rate of the service card (for centralized devices, the service card is the device itself), which can be calculated based on the actual carried traffic / rated traffic. The average traffic load rate within a preset time period is calculated based on the monitored instantaneous traffic load rate, and will be referred to hereafter as "traffic load rate".

[0037] In this embodiment of the invention, for both access devices and non-access devices, it can be determined whether power consumption adjustment is needed and the corresponding adjustment strategy based on the monitoring results, as shown in steps S202 and S203.

[0038] In step S202, for the access device, if the controller detects that the device is not currently connected to a terminal, it controls the device to enter a sleep state instead of directly powering it off. This avoids the situation where the device cannot detect new terminal access in time due to a complete power-off. In the sleep state, the device only retains the basic functional modules used to detect the interface status to continuously monitor whether a new terminal is connected; other unnecessary hardware modules can be turned off to reduce power consumption. When a terminal is detected to be connected, the controller will trigger the device wake-up mechanism, start all hardware modules, and restore the device to normal operating status.

[0039] In step S203, for non-accessible devices, it is first determined whether the device has a traffic adjustment board. This traffic adjustment board includes switching boards and service boards. For centralized devices, the traffic adjustment board is the device itself. In other words, this embodiment of the invention not only supports energy-saving adjustment of switching boards but also achieves energy-saving control at the service board and system level, thereby significantly improving overall energy efficiency.

[0040] In this embodiment of the invention, the implementation of step S203 is as shown in steps a1 to a5, and is explained below: Step a1: Identify low-load boards with a current traffic load rate lower than the preset low-load threshold and high-load boards with a current traffic load rate higher than the preset high-load threshold as boards whose traffic needs to be adjusted; In this embodiment of the invention, both the low load threshold and the high load threshold can be flexibly set by relevant personnel according to actual needs. For ease of description and distinction, in this embodiment of the invention, the traffic adjustment board with a current traffic load rate less than the preset low load threshold will be referred to as a "low load board", and the traffic adjustment board with a current traffic load rate greater than the preset high load threshold will be referred to as a "high load board".

[0041] Understandably, the power increase caused by increased traffic is negligible compared to the board's base power consumption after power-on. In other words, the increased power consumption from switching this traffic to other running boards or devices is minimal compared to the power reduction from shutting down the board, resulting in significant power savings. Therefore, both low-load and high-load boards can reduce power consumption through traffic switching.

[0042] Step a2: Identify candidate boards whose current traffic load rate is less than the preset switchable load threshold and which can receive traffic from the board to be adjusted. In this embodiment of the invention, the switchable load threshold can be flexibly set by relevant personnel according to actual needs. The same board can be both a low-load board and a switchable board for other boards. For example, if the traffic load rate of board B is lower than the switchable load threshold, and the traffic of board A can be switched to board B, then board B is a candidate board for board A.

[0043] Step a3: Select candidate boards that, after receiving traffic from the board to be adjusted, do not have a current traffic load rate exceeding the switchable load threshold as switchable boards; In this embodiment of the invention, since there may be multiple candidate boards, in the process of determining the switchable board for a low-load board or a high-load board, the idle traffic load corresponding to each candidate board can be determined first. Based on this, for a low-load board, the idle traffic load can be determined in ascending order to determine whether the current traffic load rate of each candidate board after receiving traffic from the low-load board exceeds the switchable load threshold, thereby determining whether the candidate board is a switchable board corresponding to the low-load board; for a high-load board, the idle traffic load can be determined in descending order to determine whether the current traffic load rate of each candidate board after receiving traffic exceeding the preset high-load threshold from the high-load board exceeds the switchable load threshold, thereby determining whether the candidate board is a switchable board corresponding to the high-load board.

[0044] It is understandable that if a candidate board receives traffic from a low-load board or a high-load board and the current traffic load rate exceeds the switchable load threshold, it indicates that the board has a low traffic carrying capacity and does not have the capacity to receive traffic from other boards. Therefore, in this embodiment of the invention, candidate boards whose current traffic load rate does not exceed the switchable load threshold after receiving other traffic are used as switchable boards. This helps to make full use of board resources and ensures a more balanced load distribution after traffic switching.

[0045] It should be noted that the switchable card corresponding to the traffic adjustment card of a distributed device (such as a high-end distributed router or switch) can be a card on another distributed device or another centralized device. That is, the traffic on a card in a distributed device can be switched to another card in the same distributed device, or it can be switched to a card in a centralized device. For centralized devices (such as centralized routers or switches), the switchable card is a card in another centralized device or another distributed device.

[0046] It should also be noted that if the traffic adjustment card in this embodiment of the invention does not have a corresponding switchable card, for example, for network devices located in the core layer, if there is no redundant device or backup path deployed, and traffic cannot be switched to other devices or cards, then if the core layer network device has a traffic adjustment card but no switchable card, no action needs to be taken. This avoids forcibly migrating traffic in the absence of available switching paths, which could lead to service interruption or network performance degradation.

[0047] Step a4: For low-load boards, migrate all traffic to the switchable board and then power off the low-load board; Step a5: For high-load boards, migrate traffic exceeding the preset high-load threshold to switchable boards.

[0048] In this embodiment of the invention, during the traffic switching process, for high-load boards, when switching traffic to a switchable board, the excessive traffic on the board to be adjusted can be identified first, and then the excessive traffic can be switched to the switchable board. This ensures that the traffic load of the board is within a reasonable range, preventing prolonged high-load operation. At this time, the high-load board still has a significant amount of traffic, preventing power loss to the high-load board. For low-load boards, all traffic can be switched to the switchable board, effectively improving the overall system energy efficiency ratio.

[0049] In one embodiment of the present invention, if multiple low-load boards or multiple high-load boards exist simultaneously, the processing can be tailored to the specific situation. Specifically, for low-load boards, the switchable boards corresponding to each low-load board can be determined sequentially according to the traffic load rate from low to high, and then traffic switching can be performed. For a clearer understanding of the power consumption adjustment process for low-load boards, please refer to the figure. Figure 3 This diagram illustrates the low-load board power consumption adjustment process provided in an embodiment of the present invention.

[0050] For high-load cards, the switchable cards corresponding to each high-load card can be determined in descending order of traffic load rate, and then traffic switching can be performed. Figure 4 As shown, Figure 4The diagram illustrates the power consumption adjustment process for high-load boards provided in this embodiment of the invention. This allows for priority processing of boards with the lightest or heaviest loads, thereby achieving more efficient and orderly traffic scheduling and power consumption optimization on a global scale, and avoiding resource waste or load imbalance caused by improper scheduling order.

[0051] Through the above implementation methods, switching traffic between low-load and high-load boards can save power consumption. For switchable boards, the increased traffic is still relatively small compared to the basic power consumption and will not significantly increase the overall power consumption level, thereby achieving a net reduction in power consumption at the overall system level and ultimately achieving the goal of reducing power consumption.

[0052] In one embodiment of the present invention, in order to achieve fast and reliable switching of traffic in the network, the following steps b1 to b2 may be performed before the traffic switching is executed, as explained below: Step b1: Shut down the main link of the card whose traffic needs to be adjusted and activate the backup link of the switchable card; In this embodiment of the invention, by blocking the original port on the card whose traffic needs to be adjusted, the main link is disabled, which prepares for traffic switching. After the main link is disabled, the backup port of the switchable card is enabled, the backup link is activated, and the backup port is set as the designated port before entering the forwarding state.

[0053] Step b2: Update the network topology, forwarding table entries of network devices, and forwarding paths.

[0054] In this embodiment of the invention, the switchable board can actively send control messages to notify other network devices in the network that the network topology has changed. It can also trigger an update of the entire network's MAC table through flooding on a designated port. All network devices can recalculate the shortest path tree based on the latest network topology, completing the shortest path tree convergence. This ensures that all network devices in the network synchronize topology change information, clears old path information, and prevents forwarding anomalies. At this time, the backup link of the switchable board officially carries traffic, ensuring service continuity.

[0055] In one embodiment of the present invention, the electronic device can also monitor the real-time power consumption of each device within the control domain. The real-time power consumption can be directly read from the hardware, thereby determining the total power consumption of the devices within the control domain. For example, suppose there are n network devices within the control domain, denoted as D1 to D2. n The real-time power consumption of each network device is P1 to P. n Therefore, the total power consumption of the device is: This allows for a quantitative evaluation of the effectiveness of the current energy-saving strategy based on the total power consumption value, enabling more refined energy management and energy-saving control.

[0056] In this embodiment of the invention, after power consumption adjustment is achieved through the above-mentioned traffic migration strategy, the power consumption change data of each device can be recorded and analyzed to confirm whether the strategy can successfully achieve power consumption adjustment. That is, in this embodiment of the invention, steps c1 to c2 can be executed immediately, as explained below: Step c1: Monitor the real-time power consumption of each network device; Step c2: If the real-time power consumption of a network device is below the minimum power consumption threshold or above the maximum power consumption threshold and the duration of the state reaches the preset duration, generate a prompt message to adjust the network topology.

[0057] Understandably, if after traffic migration there are still devices in the control domain that are in a low-power or zero-power state for a long time, or in a high-power state for a long time, it indicates that there are unreasonable aspects to the existing networking method. Therefore, it is possible to report to the user and prompt them to readjust the networking method of these devices in order to optimize the network topology, further explore the energy-saving potential, and avoid performance bottlenecks or shortened lifespan problems caused by long-term uneven load on the devices.

[0058] In summary, the network device power consumption adjustment method provided by this invention has the following advantages: First, this invention can comprehensively monitor and uniformly schedule all network devices within the control domain. Network devices are divided into access devices and non-access devices (including aggregation layer and core layer devices). Differentiated energy-saving strategies are adopted for different types of devices, making energy-saving control more targeted and effective. When no terminal access is detected on an access device, it is controlled to enter a sleep state, retaining only the basic interface detection function, thereby significantly reducing idle power consumption. This reflects energy saving at the whole device level and directly reduces the overall energy consumption of devices within the control domain. When traffic adjustment boards (including low-load boards and high-load boards) are detected on non-access devices, switchable boards that can receive their traffic are further identified, and corresponding differentiated power consumption adjustment strategies are matched based on the load status. That is, low-load boards are powered off after traffic migration, and high-load boards have their excess traffic exceeding the preset high-load threshold migrated, thereby achieving power consumption optimization at the board level. This avoids resource waste, prevents device overload, and extends device life. Through the energy-saving mechanism of the above-mentioned system and board-level linkage, unified monitoring, on-demand adjustment and efficient energy saving of all devices in a large-scale network environment are realized, ultimately achieving the technical effect of maximizing the reduction of the overall power consumption level of the network environment.

[0059] Based on and Figure 2 Using the same inventive concept, and in order to perform the corresponding steps in the above embodiments and various possible methods, an implementation of a network device power consumption adjustment device 50 is given below. Please refer to [link / reference]. Figure 5 , Figure 5This is a functional block diagram of a network device power consumption adjustment device provided in an embodiment of the present invention. The network device power consumption adjustment device 50 includes: a monitoring module 501 and an adjustment module 502; Monitoring module 501 is used to monitor the operating status of each network device; network devices include access devices and non-access devices; non-access devices include network devices in the aggregation layer and network devices in the core layer. The adjustment module 502 is used to control the access device to enter a sleep state if the monitoring module detects that no terminal is connected to the access device; The adjustment module 502 is also used to determine the switchable board that receives the traffic of the non-access device if a traffic adjustment board is detected, and to execute the power consumption adjustment strategy corresponding to the traffic adjustment board based on the switchable board.

[0060] It is understandable that the monitoring module 501 and the adjustment module 502 can work together. Figure 2 Each step is taken to achieve the corresponding technical effect.

[0061] It should be noted that the network device power consumption adjustment device 50 provided in this embodiment has the same basic principle and technical effect as the above embodiments. For the sake of brevity, any parts not mentioned in this embodiment can be referred to the corresponding content in the above embodiments. Further details will not be elaborated here.

[0062] This invention also provides an electronic device 60, please refer to [link / reference]. Figure 6 , Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. The electronic device 60 includes a memory 601, a processor 602, and a communication interface 603. The memory 601, processor 602, and communication interface 603 are electrically connected directly or indirectly to each other to achieve data transmission or interaction. For example, these components can be electrically connected to each other through one or more communication buses or signal lines.

[0063] Optionally, the bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 6 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0064] The processor 602 can also be a general-purpose processor, a digital signal processor, an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor. The software modules can be located in the memory 601, and the processor 602 reads the program instructions from the memory 601 and, in conjunction with its hardware, completes the steps of the above methods.

[0065] In this embodiment of the invention, the memory 601 can be a non-volatile memory, such as a hard disk drive (HDD) or a solid-state drive (SSD), or it can be volatile memory, such as RAM. The memory can also be any other medium capable of carrying or storing desired executable program code having an instruction or data structure form and accessible by a computer, but is not limited thereto. The memory in this embodiment of the invention can also be a circuit or any other device capable of implementing a storage function for storing instructions and / or data.

[0066] The memory 601 can be used to store software programs and modules, such as the instructions / modules of the network device power adjustment device 50 provided in this embodiment of the invention. These can be stored in the memory 601 in the form of software or firmware, or embedded in the operating system (OS) of the electronic device 60. The processor 602 executes various functional applications and data processing by executing the software programs and modules stored in the memory 601. The communication interface 603 can be used to communicate with other node devices for signaling or data.

[0067] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working process of the above-described apparatus and unit can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0068] Understandable. Figure 6 The structure shown is for illustrative purposes only; the electronic device 60 may also include components that are more advanced than those shown. Figure 6 The more or fewer components shown, or having the same Figure 6 The different configurations shown. Figure 6 The components shown can be implemented using hardware, software, or a combination thereof.

[0069] Based on the above embodiments, this application also provides a storage medium storing a computer program. When the computer program is executed by a computer, it causes the computer to perform the network device power consumption adjustment method provided in the above embodiments.

[0070] Based on the above embodiments, this invention also provides a computer program that, when run on a computer, causes the computer to execute the message forwarding method provided in the above embodiments.

[0071] Based on the above embodiments, this invention also provides a chip for reading a computer program stored in a memory and for executing the network device power consumption adjustment method provided in the above embodiments.

[0072] This invention also provides a computer program product, including instructions that, when run on a computer, cause the computer to execute the network device power consumption adjustment method provided in the above embodiments.

[0073] Embodiments of the present invention are described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by instructions. These instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0074] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0075] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0076] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for adjusting the power consumption of a network device, characterized in that, The method includes: Monitor the operational status of each network device; the network devices include access devices and non-access devices; the non-access devices include network devices in the aggregation layer and network devices in the core layer; If no terminal is detected to be connected to the access device, the access device is controlled to enter a sleep state. If a non-accessible device is detected to have a traffic adjustment board, a switchable board that receives the traffic from the traffic adjustment board is determined, and the power consumption adjustment strategy corresponding to the traffic adjustment board is executed based on the switchable board.

2. The network device power consumption adjustment method according to claim 1, characterized in that, The step of determining a switchable board that receives traffic from the non-accessible device if a traffic adjustment board is detected, and executing the power consumption adjustment strategy corresponding to the traffic adjustment board based on the switchable board, includes: Low-load boards with a current traffic load rate lower than the preset low-load threshold and high-load boards with a current traffic load rate higher than the preset high-load threshold are identified as boards whose traffic needs to be adjusted. Identify candidate boards whose current traffic load rate is less than a preset switchable load threshold and which can receive traffic from the board whose traffic needs to be adjusted. Candidate boards that receive traffic from the board to be adjusted and whose current traffic load rate does not exceed the switchable load threshold are selected as the switchable boards. For the low-load board, after migrating all traffic to the switchable board, power off the low-load board. For the high-load board, traffic exceeding the preset high-load threshold is migrated to the switchable board.

3. The network device power consumption adjustment method according to claim 2, characterized in that, The step of selecting candidate boards that, after receiving traffic from the traffic adjustment board, do not have a current traffic load rate exceeding the switchable load threshold as the switchable boards includes: Determine the idle traffic load corresponding to each of the candidate boards; According to the order of idle traffic load from low to high, it is determined whether the current traffic load rate of each candidate board exceeds the switchable load threshold after receiving traffic from the low-load board, thereby determining whether the candidate board is the switchable board corresponding to the low-load board. According to the order of idle traffic load from high to low, it is determined whether the current traffic load rate of each candidate board exceeds the switchable load threshold after receiving excessive traffic from the high-load board. This determines whether the candidate board is the switchable board corresponding to the high-load board.

4. The network device power consumption adjustment method according to claim 1, characterized in that, Before the step of executing the power consumption adjustment strategy corresponding to the flow adjustment board based on the switchable board, the method further includes: Shut down the main link of the card whose traffic needs to be adjusted and activate the backup link of the switchable card; Update the network topology, forwarding table entries of network devices, and forwarding paths.

5. The network device power consumption adjustment method according to any one of claims 1 to 4, characterized in that, The method further includes: Monitor the real-time power consumption of each of the network devices; If the real-time power consumption of a network device is below the minimum power consumption threshold or above the maximum power consumption threshold and the state lasts for a preset duration, a prompt message to adjust the network topology will be generated.

6. A network device power consumption adjustment device, characterized in that, include: Monitoring module and adjustment module; The monitoring module is used to monitor the operating status of each network device; the network devices include access devices and non-access devices; the non-access devices include network devices in the aggregation layer and network devices in the core layer; The adjustment module is used to control the access device to enter a sleep state if the monitoring module detects that no terminal is connected to the access device. The adjustment module is further configured to determine a switchable board that receives the traffic from the non-access device if it is detected that the non-access device has a traffic adjustment board. The power consumption adjustment strategy corresponding to the flow rate adjustment board is executed based on the switchable board.

7. The network device power consumption adjustment device according to claim 6, characterized in that, The adjustment module is specifically used for: Low-load boards with a current traffic load rate lower than the preset low-load threshold and high-load boards with a current traffic load rate higher than the preset high-load threshold are identified as boards whose traffic needs to be adjusted. Identify candidate boards whose current traffic load rate is less than a preset switchable load threshold and which can receive traffic from the board whose traffic needs to be adjusted; Candidate boards whose current traffic load rate does not exceed the switchable load threshold after receiving traffic from the board to be adjusted are selected as the switchable boards. For the low-load board, after migrating all traffic to the switchable board, power off the low-load board. For the high-load board, traffic exceeding the preset high-load threshold is migrated to the switchable board.

8. An electronic device, characterized in that, The device includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the network device power consumption adjustment method according to any one of claims 1-5.

9. A storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the network device power consumption adjustment method as described in any one of claims 1-5.

10. A program product, characterized in that, It stores a computer program, which, when executed by a processor, implements the network device power consumption adjustment method as described in any one of claims 1-5.