Energy-saving method and device, electronic equipment and storage medium
By monitoring the data channel interface status in the main control board of the core routing device and controlling the power off of related devices, the problem of high power consumption of the core routing device data channel is solved, and the device power consumption is reduced and the service life is extended.
Patent Information
- Application Number
- CN202411578079.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-06
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2044-11-06
AI Technical Summary
The high power consumption of the data channel of the core routing device leads to a large demand for equipment cooling, limiting its application.
In the main control board of the core routing device, by monitoring the interface status of the data channel, it is determined whether the device is in the energy-saving mode. If on, control the relevant devices to power off and record status information to characterize the completion of the energy-saving operation.
It realizes automatic power-off of idle data channel-related devices in core routing equipment, reduces device usage time, reduces device power consumption, and extends the service life of the device.
Smart Images

Figure CN119561892A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an energy-saving method, device, electronic device and storage medium. Background Art
[0002] In modern communication equipment, core routing equipment is well-known for its advantages such as high performance, high reliability and scalability. However, its high power consumption and high heat dissipation requirements have become important defects that restrict its application.
[0003] Core routing devices usually have independent control channels and data channels that do not interfere with each other. The control channel has a smaller bandwidth and fewer devices associated with it, so the power consumption generated is much lower than that of the data channel. Therefore, how to achieve energy saving in the data channel is one of the technical issues that need to be solved at present. Summary of the invention
[0004] In order to overcome the problems existing in the related art, the present application provides an energy-saving method, device, electronic device and storage medium.
[0005] According to a first aspect of an embodiment of the present application, there is provided an energy saving method, the method being applied to a main control board in a core routing device, the method comprising:
[0006] When the current energy-saving monitoring cycle is reached, for each data channel created in the core routing device, if it is monitored that all interfaces corresponding to the data channel are configured to be in shutdown state, it is determined whether the core routing device has turned on the energy-saving mode;
[0007] If the judgment result is yes, output the first channel status information used to indicate that the data channel is performing an energy-saving operation, and control each device associated with the data channel in the service board to which the data channel belongs to be powered off;
[0008] After the components are powered off, the identifier of the service board and the channel identifier of the data channel are recorded, and second channel status information for indicating that the data channel has completed the energy-saving operation is output.
[0009] According to a second aspect of an embodiment of the present application, there is provided an energy-saving device, which is applied to a main control board in a core routing device, and includes:
[0010] A monitoring module, configured to determine whether the core routing device has turned on the energy-saving mode when the current energy-saving monitoring cycle is reached, for each data channel created in the core routing device, if it is monitored that all interfaces corresponding to the data channel are configured as shutdown state;
[0011] an output control module, for outputting first channel status information indicating that the data channel is performing an energy-saving operation if the judgment result is yes, and controlling various components associated with the data channel in the service board to which the data channel belongs to be powered off;
[0012] The recording and outputting module is used to record the identification of the service board and the channel identification of the data channel after the components are powered off, and output the second channel status information used to indicate that the energy-saving operation of the data channel has been completed.
[0013] According to a third aspect of an embodiment of the present application, there is provided an electronic device, comprising a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method steps of the above energy-saving method.
[0014] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps of the above energy-saving method are implemented.
[0015] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0016] In an embodiment of the present application, the main main control board in the core routing device can automatically identify idle data channels in the core routing device, and promptly control the power-off of devices associated with the idle data channels, thereby reducing the use time of these devices and reducing the aging degree of these devices. This can not only reduce the power consumption of the device, but also extend the service life of the core routing device, further reducing maintenance costs.
[0017] In addition, the main control board can automatically identify the data channels that need to be re-enabled in the core routing device and enable them in a timely manner to ensure the normal operation of the corresponding data channels, thereby improving the reliability and stability of the core routing device.
[0018] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] The accompanying drawings, which are incorporated in the specification and constitute a part of this application, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.
[0020] Figure 1 A schematic diagram of a process for energy saving provided in an embodiment of the present application;
[0021] Figure 2A schematic diagram of some components in the core routing device provided for this application;
[0022] Figure 3 A schematic diagram of the structure of an energy-saving device provided in an embodiment of the present application;
[0023] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0025] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. The singular forms of "a", "said" and "the" used in this application and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0026] It should be understood that, although the terms first, second, third, etc. may be used in the present application to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" or "if" as used herein may be interpreted as "at the time of" or "when...".
[0027] Next, the embodiments of the present application are described in detail.
[0028] The embodiment of the present application provides an energy-saving method, which is applied to a main control board in a core routing device, such as Figure 1 As shown, the method may include the following steps:
[0029] S11. When the current energy-saving monitoring cycle is reached, for each data channel created in the core routing device, if it is monitored that all interfaces corresponding to the data channel are configured to be closed, determine whether the core routing device has turned on the energy-saving mode; when the judgment result is yes, execute steps S12 and S13; when the judgment result is no, execute step S14.
[0030] S12: Output first channel status information for indicating that the data channel is performing an energy-saving operation, and control various components associated with the data channel in the service board to which the data channel belongs to be powered off.
[0031] S13. After powering off all components, record the identifier of the service board and the channel identifier of the data channel, and output second channel status information for indicating that the energy-saving operation of the data channel has been completed.
[0032] S14. Do not perform any operation.
[0033] It should be noted that, in the above step S11, the energy-saving monitoring period can be set by the administrator according to the network requirements of the network in which the core routing device is located, and is pre-configured on the main control board.
[0034] Specifically, in the above step S12, when the main control board controls the devices associated with the data channel to power off, it can be implemented by the following steps:
[0035] According to the connection sequence between the devices associated with the data channel in the service board, the devices are controlled to be powered off in sequence.
[0036] It should be noted that the specific control process of the main control board controlling the power-off of the above-mentioned components is a prior art and will not be described in detail here.
[0037] Furthermore, in the embodiment of the present application, the main control board may also perform the following operations:
[0038] Before outputting the second channel status information, determining whether there is a redundant switching network board in the switching network board currently connected to the service board;
[0039] If the judgment result is yes, then the components associated with the data channel in the redundant switching network board are controlled to be powered off;
[0040] After powering off the components associated with the data channel in the redundant switching network board, the identifier of the redundant switching network board is recorded, and the step of outputting the second channel status information is performed.
[0041] It should be noted that by performing this operation process, the power consumption of the equipment can be further reduced, the service life of the core routing equipment can be extended, and the maintenance cost can be further reduced.
[0042] It should be further explained that, in the embodiment of the present application, for the main main control board, when it is determined that there is no redundant switching network board in the switching network board currently connected to the service board, the step of outputting the second channel status information is directly executed.
[0043] Here, the active main control board can use multiple existing judgment methods to judge whether there is a redundant switching network board in the switching network board currently connected to the service board, which will not be described in detail here.
[0044] Furthermore, in the embodiment of the present application, the main control board may also perform the following operations:
[0045] When the current energy-saving monitoring cycle is reached, for each data channel created in the core routing device, if it is detected that there is an interface configured to undo shutdown state among all interfaces corresponding to the data channel, it is determined whether the core routing device has turned on the energy-saving mode;
[0046] If the judgment result is yes, output the third channel status information used to indicate that the data channel is in the process of online operation, and control the power-on of each device associated with the data channel in the service board to which the data channel belongs;
[0047] After each device associated with the data channel in the service board to which the data channel belongs is powered on, fourth channel status information for indicating that the online operation of the data channel has been completed is output.
[0048] It should be noted that in the embodiment of the present application, when it is detected that there is an interface configured as the undo shutdown state among all the interfaces corresponding to the data channel and the core routing device has not turned on the energy-saving mode, the main control board does not perform any operation.
[0049] Furthermore, the specific control process of the main control board controlling the power-on of each device associated with the data channel in the service board to which the data channel belongs is prior art and will not be described in detail here.
[0050] In addition, in the embodiment of the present application, before the main control board outputs the fourth channel status information, it can also perform the following operations:
[0051] If the identifier of the target switching network board corresponding to the service board to which the data channel belongs is recorded locally, then each device associated with the data channel in the target switching network board is controlled to be powered on;
[0052] After each device associated with the data channel in the target switching network board is powered on, the step of outputting fourth channel status information is performed.
[0053] The energy-saving method described above is described in detail below in conjunction with specific embodiments.
[0054] Taking a core routing device in a network as an example, assuming that a certain energy-saving monitoring cycle has been reached, the data channel 0 (referred to as slice0, such as Figure 2Taking the example shown in the figure, it is assumed that the main control board in the core routing device 1 detects that all interfaces corresponding to slice0 (i.e., interface 1 and interface 2) are configured as shutdown state. In this case, the main control board determines whether the core routing device has turned on the energy-saving mode.
[0055] Assuming that the core routing device has turned on the energy-saving mode, the judgment result is yes. At this time, the main control board outputs channel status information 1 for indicating that slice0 is performing an energy-saving operation, so that the administrator can know the relevant status of slice0 in time.
[0056] Furthermore, the main control board controls each device associated with the data channel in the service board (Line Processing Unit, also known as line card board) to which slice0 belongs (for example, Figure 2 The daughter cards, network processors (NP) and fabric access processors (FAP) shown in FIG. 1 are powered off.
[0057] After powering off these components, the active main control board records the identifier of the service board (eg, the LPU slot number) and the channel identifier of the data channel (eg, slice0).
[0058] Afterwards, the active main control board continues to determine whether there is a redundant switch fabric unit (Switch Fabric Unit, SFU) in the switch fabric unit (SFU) currently connected to the service board;
[0059] Assuming that the judgment result is yes, at this time, the active main control board controls each device (for example, fabric element (FE)) associated with the data channel in the redundant switching fabric board to power off.
[0060] Furthermore, after powering off the components associated with the data channel in the redundant switching network board, the identifier of the redundant switching network board is recorded, and the channel status information 2 for indicating that the energy-saving operation of slice0 has been completed is output.
[0061] Next, suppose that another energy-saving monitoring cycle has arrived, with data channel 1 (denoted as slice1, as shown in FIG. 1 ) created in the core routing device 1. Figure 2 As shown in the figure, assume that the main control board detects that there is an interface configured as undo shutdown state (for example, interface 3) among all interfaces corresponding to slice1. In this case, the main control board determines whether the core routing device has turned on the energy-saving mode.
[0062] Since the core routing device has turned on the energy-saving mode, the judgment result is yes. At this time, the main control board outputs the channel status information 3 used to characterize that slice1 is undergoing an online operation, and controls the power-on of each device associated with slice1 (for example, subcard, NP and FAP) in the business board to which slice1 belongs (that is, the business board).
[0063] After the devices associated with slice1 in the business board are powered on, assuming that the main control board finds that the identifier of a switching network board (recorded as the target switching network board) corresponding to the business board is recorded locally, at this time, the main control board controls the devices associated with slice1 in the target switching network board to be powered on.
[0064] Furthermore, after the components associated with slice1 in the target switching network board are powered on, the main control board outputs channel status information 4 for indicating that slice1 has completed the online operation.
[0065] It can be seen from the above technical solutions that in the embodiments of the present application, the main main control board in the core routing device can automatically identify the idle data channels in the core routing device, and promptly control the power-off of the devices associated with the idle data channels, thereby reducing the use time of these devices and the aging degree of these devices, which can not only reduce the power consumption of the device, but also extend the service life of the core routing device, further reducing the maintenance cost.
[0066] In addition, the main control board can automatically identify the data channels that need to be re-enabled in the core routing device and enable them in a timely manner to ensure the normal operation of the corresponding data channels, thereby improving the reliability and stability of the core routing device.
[0067] Based on the same inventive concept, the present application also provides an energy-saving device, which is applied to the main control board in the core routing device, and its structural diagram is as follows: Figure 3 As shown, specifically including:
[0068] The monitoring module 31 is used to determine whether the core routing device has turned on the energy-saving mode when the current energy-saving monitoring cycle is reached, for each data channel created in the core routing device, if it is monitored that all interfaces corresponding to the data channel are configured to be in the shutdown state;
[0069] The energy-saving module 32 is used to output first channel status information indicating that the data channel is undergoing an energy-saving operation if the judgment result is yes, and control each device associated with the data channel in the service board to which the data channel belongs to be powered off; and
[0070] After the components are powered off, the identifier of the service board and the channel identifier of the data channel are recorded, and second channel status information for indicating that the data channel has completed the energy-saving operation is output.
[0071] Preferably, the energy-saving module 32 is specifically used for:
[0072] According to the connection sequence between the devices associated with the data channel in the service board, the devices are controlled to be powered off in sequence.
[0073] Preferably, the energy-saving module 32 is further used for:
[0074] Before outputting the second channel status information, determining whether there is a redundant switching network board in the switching network board currently connected to the service board;
[0075] If the judgment result is yes, then controlling each device associated with the data channel in the redundant switching network board to be powered off;
[0076] After powering off the components associated with the data channel in the redundant switching network board, the identifier of the redundant switching network board is recorded, and the step of outputting the second channel status information is triggered.
[0077] Preferably, the monitoring module 31 is also used for:
[0078] If it is detected that among all interfaces corresponding to the data channel, there is an interface configured to release the undo shutdown state, determining whether the core routing device has enabled the energy saving mode;
[0079] The energy-saving module 32 is also used for:
[0080] When the judgment result of the monitoring module 31 is yes, output the third channel status information used to indicate that the data channel is undergoing an online operation, and control the power-on of each device associated with the data channel in the service board to which the data channel belongs; and
[0081] After each device associated with the data channel in the service board to which the data channel belongs is powered on, fourth channel status information for indicating that the online operation of the data channel has been completed is output.
[0082] Preferably, the energy-saving module 32 is further used for:
[0083] Before outputting the fourth channel status information, if the identifier of the target switching network board corresponding to the service board to which the data channel belongs is recorded locally, then controlling each device associated with the data channel in the target switching network board to be powered on;
[0084] After each device associated with the data channel in the target switching network board is powered on, the step of outputting the fourth channel state information is performed.
[0085] It can be seen from the above technical solutions that in the embodiments of the present application, the main main control board in the core routing device can automatically identify the idle data channels in the core routing device, and promptly control the power-off of the devices associated with the idle data channels, thereby reducing the use time of these devices and the aging degree of these devices, which can not only reduce the power consumption of the device, but also extend the service life of the core routing device, further reducing the maintenance cost.
[0086] In addition, the main control board can automatically identify the data channels that need to be re-enabled in the core routing device and enable them in a timely manner to ensure the normal operation of the corresponding data channels, thereby improving the reliability and stability of the core routing device.
[0087] The present application also provides an electronic device, such as Figure 4 As shown, it includes a processor 41 and a machine-readable storage medium 42, wherein the machine-readable storage medium 42 stores machine-executable instructions that can be executed by the processor 41, and the processor 41 is prompted by the machine-executable instructions to implement the steps of the above energy-saving method.
[0088] The machine-readable storage medium may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. Optionally, the machine-readable storage medium may also be at least one storage device located away from the processor.
[0089] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0090] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of the above energy-saving method are implemented.
[0091] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. An energy saving method, characterized in that: The method is applied to a main control board in a core routing device, and the method comprises: When the current energy-saving monitoring cycle is reached, for each data channel created in the core routing device, if it is monitored that all interfaces corresponding to the data channel are configured to be in shutdown state, it is determined whether the core routing device has turned on the energy-saving mode; If the judgment result is yes, output the first channel status information used to indicate that the data channel is performing an energy-saving operation, and control each device associated with the data channel in the service board to which the data channel belongs to be powered off; After the components are powered off, the identifier of the service board and the channel identifier of the data channel are recorded, and second channel status information for indicating that the data channel has completed the energy-saving operation is output.
2. The method according to claim 1, characterized in that Control the power-off of the devices associated with this data channel, including: According to the connection sequence between the devices associated with the data channel in the service board, the devices are controlled to be powered off in sequence.
3. The method according to claim 1, characterized in that The method further comprises: Before outputting the second channel status information, determining whether there is a redundant switching network board in the switching network board currently connected to the service board; If the judgment result is yes, then controlling each device associated with the data channel in the redundant switching network board to be powered off; After powering off the components associated with the data channel in the redundant switching network board, the identification of the redundant switching network board is recorded, and the step of outputting the second channel status information is performed.
4. The method according to claim 1, characterized in that: The method further comprises: If it is detected that among all interfaces corresponding to the data channel, there is an interface configured to release the undo shutdown state, determining whether the core routing device has enabled the energy saving mode; If the judgment result is yes, output the third channel status information used to indicate that the data channel is in the process of online operation, and control the power-on of each device associated with the data channel in the service board to which the data channel belongs; After each device associated with the data channel in the service board to which the data channel belongs is powered on, fourth channel status information for indicating that the online operation of the data channel has been completed is output.
5. The method according to claim 4, characterized in that The method further comprises: Before outputting the fourth channel status information, if the identifier of the target switching network board corresponding to the service board to which the data channel belongs is recorded locally, then controlling each device associated with the data channel in the target switching network board to be powered on; After each device associated with the data channel in the target switching network board is powered on, the step of outputting the fourth channel state information is performed.
6. An energy-saving device, characterized in that: The device is applied to a main control board in a core routing device, and the device includes: A monitoring module, configured to determine whether the core routing device has turned on the energy-saving mode when the current energy-saving monitoring cycle is reached, for each data channel created in the core routing device, if it is detected that all interfaces corresponding to the data channel are configured to be in the shutdown state; The energy-saving module is used to, if the judgment result is yes, output the first channel status information used to characterize that the data channel is undergoing an energy-saving operation, and control the power-off of each device associated with the data channel in the business board to which the data channel belongs; and after powering off the devices, record the identifier of the business board and the channel identifier of the data channel, and output the second channel status information used to characterize that the data channel has completed the energy-saving operation.
7. The device according to claim 6, characterized in that The energy-saving module is specifically used for: According to the connection sequence between the devices associated with the data channel in the service board, the devices are controlled to be powered off in sequence.
8. The device according to claim 6, characterized in that The energy-saving module is also used for: Before outputting the second channel status information, determining whether there is a redundant switching network board in the switching network board currently connected to the service board; If the judgment result is yes, then controlling each device associated with the data channel in the redundant switching network board to be powered off; After powering off the components associated with the data channel in the redundant switching network board, the identification of the redundant switching network board is recorded, and the step of outputting the second channel status information is performed.
9. The device according to claim 6, characterized in that The monitoring module is also used for: If it is detected that among all interfaces corresponding to the data channel, there is an interface configured to release the undo shutdown state, determining whether the core routing device has enabled the energy saving mode; The energy-saving module is also used for: When the determination result of the monitoring module is yes, outputting third channel status information for indicating that the data channel is undergoing an online operation, and controlling the power-on of various devices associated with the data channel in the service board to which the data channel belongs; and After each device associated with the data channel in the service board to which the data channel belongs is powered on, fourth channel status information for indicating that the online operation of the data channel has been completed is output.
10. The device according to claim 9, characterized in that The energy-saving module is also used for: Before outputting the fourth channel status information, if the identifier of the target switching network board corresponding to the service board to which the data channel belongs is recorded locally, then controlling each device associated with the data channel in the target switching network board to be powered on; After each device associated with the data channel in the target switching network board is powered on, the step of outputting the fourth channel state information is performed.
11. An electronic device, characterized in that: The method comprises a processor and a machine-readable storage medium, wherein the machine-readable storage medium stores machine-executable instructions that can be executed by the processor, and the processor is prompted by the machine-executable instructions to implement the method steps described in any one of claims 1 to 5.
12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
PCI high-speed bus system and energy management method thereof
CN101159649A
Method and device for controlling power supply
CN108809866A
Reusable multipurpose distributed router system and implementation method
CN111343087A
Method and equipment for controlling switching network board power supply state of frame type communication equipment
CN117834317A
Scheme with external channels
CN1490978A