Control method and device for cooling fan of switch, equipment and storage medium

By acquiring optical module temperature data through the switch's DDM function and dynamically calculating the fan duty cycle, the problem of inaccurate fan speed control in traditional switches is solved, achieving efficient heat dissipation and fault early warning, and improving equipment stability and optical module lifespan.

CN120830645APending Publication Date: 2025-10-24SHEN ZHOU SHU MA WANG LUO BEI JING YOU XIAN GONG SI
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202511242238.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-09-02
Publication Date
2025-10-24

AI Technical Summary

Technical Problem

Traditional switches have inaccurate fan speed control, resulting in poor heat dissipation and an inability to effectively suppress the temperature rise of optical modules, affecting device performance and the service life of optical modules.

Method used

By acquiring real-time temperature data of optical modules through the DDM function of the switch, and combining factors such as the type and quantity of optical modules, the compensation value of the fan duty cycle is dynamically calculated to achieve dynamic adaptation of fan speed, replacing the traditional fixed-speed adjustment.

Benefits of technology

It improves heat dissipation efficiency, reduces energy waste, detects potential faults in a timely manner, ensures the stability and reliability of the switch, and extends the service life of the optical module.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120830645A_ABST
    Figure CN120830645A_ABST
Patent Text Reader

Abstract

The invention discloses a control method and device for a cooling fan of a switch, equipment and a storage medium, and relates to the technical field of computers. The method comprises the steps of firstly obtaining a first temperature value of each optical module of the switch, and screening out a first optical module set with the first temperature value in a first temperature interval; classifying the first optical module set according to the optical power level, calculating the duty ratio compensation value corresponding to each category of optical modules, and summarizing to obtain a target compensation value; and then correcting the duty ratio initial value by using the target compensation value to obtain a duty ratio correction value so as to control the cooling fan. Besides, a second optical module set is screened out by obtaining second temperature values of the optical modules, the second number of the optical modules in the second optical module set and the first number of the optical modules in the first optical module set are compared, and if the second number is larger than or equal to the first number, a fault prompt is generated. According to the method, the cooling fan can be accurately controlled, and normal operation of the cooling system is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of computers, and particularly relates to a control method and device for a heat dissipation fan of a switch, equipment and a storage medium. BACKGROUND

[0002] In a data center and a communication network device, a switch is a core component, and stable operation of the switch is crucial to system performance. Since a large number of high-power-density electronic devices such as a switching chip and a CPU are integrated in the switch, heat is generated in the devices during operation, and if the heat cannot be dissipated in time and effectively, the performance of the devices will be reduced or even damaged.

[0003] Currently, temperature sensing chips are deployed at one or more key positions of a PCB board in the switch to obtain temperature data of positions such as a switching chip, a CPU, an air inlet and an air outlet, and the fan speed is adjusted according to the feedback temperature values. For example, the switch generally sets multiple fan speed gears such as low, medium and high to cope with the heat dissipation requirements in different temperature scenarios.

[0004] However, the conventional scheme has the problem of inaccurate fan speed control, which leads to poor heat dissipation effect. SUMMARY

[0005] The present application provides a control method and device for a heat dissipation fan of a switch, equipment and a storage medium, which can accurately control the heat dissipation fan.

[0006] To achieve the above object, the present application adopts the following technical scheme: In a first aspect, the present application provides a control method for a heat dissipation fan of a switch, comprising: obtaining first temperature values of each optical module of the switch; According to the first temperature values of the optical modules, a first optical module set is selected, and the first temperature values of the optical modules in the first optical module set are in a first temperature interval; classifying the optical modules in the first optical module set to obtain multiple categories; For the optical modules corresponding to each category, a compensation value of a duty cycle corresponding to each category of optical modules is calculated respectively; The sum of the compensation values of the duty cycles corresponding to all categories of optical modules is taken as a target compensation value of the duty cycle; The initial value of the duty cycle is corrected by using the target compensation value to obtain a corrected value of the duty cycle; According to the corrected value of the duty cycle, the heat dissipation fan is controlled.

[0007] Optionally, the light module corresponding to each category is configured to calculate a compensation value of a duty cycle corresponding to each category of light module, comprising: obtaining the number of in-service light modules of the ith category, the number of interfaces of the ith category, the average temperature of the ith category, the type coefficient corresponding to the ith category, and the quantity coefficient corresponding to the ith category; calculating the compensation value of the duty cycle corresponding to the ith category according to the number of in-service light modules of the ith category, the number of interfaces of the ith category, the average temperature of the ith category, the type coefficient corresponding to the ith category, and the quantity coefficient corresponding to the ith category.

[0008] Optionally, the compensation value of the duty cycle corresponding to the ith category is calculated according to the number of in-service light modules of the ith category, the number of interfaces of the ith category, the average temperature of the ith category, the type coefficient corresponding to the ith category, and the quantity coefficient corresponding to the ith category, comprising:

[0009] wherein, the compensation value of the duty cycle corresponding to the ith category, the number of in-service light modules of the ith category, the number of interfaces of the ith category, the quantity coefficient corresponding to the ith category, the average temperature of the ith category, the minimum value of the first temperature interval, the type coefficient corresponding to the ith category.

[0010] Optionally, the initial value of the duty cycle is corrected by using the target compensation value to obtain a corrected value of the duty cycle, comprising: summing the target compensation value of the duty cycle and the initial value of the duty cycle, and taking the sum as the corrected value of the duty cycle.

[0011] Optionally, the type coefficient corresponding to the ith category is positively correlated with the optical power of the ith category.

[0012] Optionally, the method further comprises: obtaining a second temperature value of each light module of the switch; screening a second light module set according to the second temperature value of each light module of the switch, wherein the second temperature value of the light module in the second light module set is in a first temperature interval; respectively obtaining a first number of light modules in the first light module set and a second number of light modules in the second light module set; If the second quantity is greater than or equal to the first quantity, a fault prompt is generated.

[0013] Optionally, the classifying the optical modules in the first optical module set comprises: According to the optical power level, the optical modules in the first optical module set are classified.

[0014] In a second aspect, the present application provides a control device of a cooling fan of a switch, comprising: An acquisition module is configured to acquire first temperature values of optical modules of the switch. A data processing module is configured to: filter out a first optical module set according to the first temperature values of the optical modules, the first optical module set comprising optical modules with first temperature values in a first temperature interval; classify the optical modules in the first optical module set to obtain multiple categories; calculate compensation values of duty cycles of the optical modules in each category respectively; sum the compensation values of the duty cycles of the optical modules in all categories to obtain a target compensation value of the duty cycle; and correct an initial value of the duty cycle by using the target compensation value to obtain a corrected value of the duty cycle. A control module is configured to control the cooling fan according to the corrected value of the duty cycle.

[0015] In a third aspect, the present application provides a computing device comprising a memory and a processor. The memory stores one or more computer programs, and the one or more computer programs comprise instructions; when the instructions are executed by the processor, the computing device performs the method of any one of the first aspect.

[0016] In a fourth aspect, the present application provides a computer readable storage medium for storing a computer program, the computer program being used to perform the method of any one of the first aspect.

[0017] According to the above technical solution, the present application has at least the following beneficial effects: In the present application, first, by acquiring the first temperature values of the optical modules and filtering out the first optical module set in the first temperature interval, a more comprehensive and detailed perception of the internal thermal environment of the switch is achieved, which makes up for the thermal load judgment deviation caused by the single monitoring dimension of the traditional monitoring, and provides more actual thermal state-based data for subsequent fan control.

[0018] Secondly, by classifying the first optical module set according to optical power levels, and combining the in-place number, interface number, average temperature, type coefficient and number coefficient of the optical module of each type, the duty cycle compensation value corresponding to each type of optical module is calculated, and then the target compensation value is used to modify the duty cycle initial value, replacing the traditional fixed gear coarse adjustment mode, so that the fan speed can be dynamically adapted according to the actual heat contribution of different optical modules, which not only effectively avoids the problem of delayed heat dissipation and device performance degradation caused by insufficient adjustment, but also reduces the energy waste caused by excessive adjustment, and improves the heat dissipation efficiency.

[0019] Finally, the method can also generate a fault prompt when the second number is greater than or equal to the first number by comparing the number of optical modules in the first temperature interval screened at different time points, so as to timely find the potential fault of abnormal optical module temperature, provide a fault warning basis for maintenance personnel, help to quickly troubleshoot and solve the problem, and further guarantee the stability and reliability of the switch operation, thereby providing strong support for the overall system performance of the data center and communication network equipment.

[0020] It should be understood that the description of technical features, technical solutions, beneficial effects or similar language in this application does not imply that all features and advantages can be achieved in any single embodiment. On the contrary, it can be understood that the description of a feature or beneficial effect means that the specific technical feature, technical solution or beneficial effect is included in at least one embodiment. Therefore, the description of technical features, technical solutions or beneficial effects in this specification does not necessarily refer to the same embodiment. Further, the technical features, technical solutions and beneficial effects described in this embodiment can be combined in any appropriate manner. Those skilled in the art will understand that the embodiments can be implemented without one or more specific technical features, technical solutions or beneficial effects of a particular embodiment. In other embodiments, additional technical features and beneficial effects can be identified in specific embodiments that do not embody all embodiments. BRIEF DESCRIPTION OF DRAWINGS

[0021] Figure 1 A flowchart of a control method of a heat dissipation fan of a switch provided by an embodiment of the present application; Figure 2 A schematic diagram of a control device of a heat dissipation fan of a switch provided by an embodiment of the present application; Figure 3 A schematic diagram of a computing device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0022] The terms "first", "second" and "third" and the like in the specification and drawings of the present application are used to distinguish different objects, and are not used to limit a specific order.

[0023] In the embodiments of the present application, the word "exemplary" or "for example" is used to indicate an example, an illustration, or a description. Any embodiment or design solution described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or having more advantages than other embodiments or design solutions. Rather, the word "exemplary" or "for example" is used in the sense of "by way of example", to present the related concepts in a particular manner.

[0024] For the sake of clear and concise description of the following embodiments, a brief introduction to the related art is first given: The digital diagnostic monitoring (DDM) function of the switch is a key technology to ensure stable operation of the optical module and to realize device temperature control, and can perform real-time, dynamic and all-round testing and monitoring on the working state of the optical module.

[0025] From the monitoring capability, the DDM can collect high-precision data on the key operating parameters of various types of pluggable optical modules on the switch panel, covering the working temperature, working voltage, working current, and core indicators such as the transmitting optical power and the receiving optical power of the optical module. Among them, the monitoring of the working temperature of the optical module is particularly crucial. With the real-time sensing capability of the DDM, the subtle fluctuations and trend changes of the temperature of the optical module in long-time load operation can be captured, and this feature exactly provides a breakthrough for solving the inherent defects of the traditional fan speed regulation strategy.

[0026] In the traditional heat dissipation scheme of the switch, the fan speed regulation only relies on the temperature data of the PCB (such as the switch chip, CPU, air inlet, and air outlet) collected by the LM75 temperature sensing chip, and completely ignores the temperature information of the optical module as a heat source. With the continuous load operation of the optical module, its temperature gradually rises but cannot be sensed by the traditional monitoring system, which significantly increases the risk of performance damage of the optical module in a high-temperature environment. Not only are problems such as emission wavelength shift, inter-channel crosstalk, and rising bit error rate likely to occur, but the module also ages faster and its service life is shortened. With the introduction of the DDM function, the switch can directly obtain real-time temperature data of the optical module, filling the gap in the traditional monitoring dimension.

[0027] From the functional configuration and data value, the DDM function is easy and flexible to operate. The administrator only needs to make a simple configuration to the optical port of the switch, and the DDM monitoring of the corresponding optical port can be quickly started or stopped. After the function is started, the switch can continuously communicate with the optical module through the I2C interface to read the internal operating information of the module in real time: not only can the dynamic parameters such as the current working temperature and working voltage of the optical module be intuitively displayed, but also the safe interval of each parameter of the optical module in normal operation can be synchronously displayed, providing a clear basis for judging whether the optical module is in a healthy state.

[0028] Existing switch fan speed control strategies fail to consider optical module temperature and are unable to effectively suppress module temperature increases. This increases the risk of damage, which in turn impacts device performance and module lifespan. Specifically, rising optical module temperatures can cause wavelength shifts, leading to crosstalk between channels and increased bit error rates. Long-term high temperatures also accelerate optical module aging, shortening its lifespan.

[0029] In view of this, an embodiment of the present application provides a method for controlling a cooling fan of a switch, which can be executed by a processing device. The processing device can be a terminal or a server. Terminals include, but are not limited to, smartphones, tablets, laptops, personal digital assistants, or smart wearable devices. The server can be a cloud server, such as a central server in a central cloud computing cluster or an edge server in an edge cloud computing cluster. Of course, the server can also be a server in a local data center. A local data center refers to a data center directly controlled by a user.

[0030] To address the defects of traditional switch fan speed regulation strategies that do not consider the temperature of optical modules and use a rough adjustment method, we fully utilize the dynamic data of optical modules collected by the switch's DDM function (such as real-time temperature, model type, number of modules in place, etc.), combined with the individual differences of optical modules. Individual differences are different in the heating efficiency of different types of optical modules and the different heat dissipation requirements of different numbers of optical modules. We build a fan speed regulation logic based on temperature classification judgment and dynamic compensation calculation, realizing the transition from fixed-speed rough adjustment to accurate on-demand dynamic heat dissipation.

[0031] In order to make the technical solution of the present application clearer and easier to understand, the following describes a method for controlling a cooling fan of a switch provided by an embodiment of the present application in conjunction with the accompanying drawings. Figure 1 As shown in FIG, this figure is a flow chart of a method for controlling a cooling fan of a switch provided in an embodiment of the present application. The method further includes: S201: A processing device obtains a first temperature value of each optical module of a switch.

[0032] A switch is a core connection and data forwarding device in a data communication network. Its primary function is to receive data frames from various devices and forward them to the target device based on the MAC address contained in the data frame, enabling efficient communication between devices within the network. Switches integrate numerous high-power electronic components, such as switching chips, CPUs, and optical modules. These components generate heat during operation, necessitating a cooling system (such as a fan) to maintain normal operating temperatures and ensure stable operation.

[0033] The optical module is a key component for the switch to realize the mutual conversion between optical signals and electrical signals, belongs to the pluggable semiconductor laser device, and common types include small form-factor pluggable optical module SPF, enhanced small form-factor pluggable optical module SPF+, four-channel small form-factor pluggable optical module QSPF, 28G four-channel small form-factor pluggable optical module QSFP28, etc. Different types correspond to different optical transmission rates, such as 10G, 40G, 100G, etc. The working principle is to convert the electrical signals output by the switch into optical signals that can be transmitted over a long distance, and at the same time, the received external optical signals are restored into electrical signals and transmitted back to the switch; the optical module will continuously generate heat during long-time load operation, and the temperature change will directly affect the transmission performance and service life of the optical module.

[0034] The first temperature value refers to the real-time working temperature data of each optical module on the switch at the current time point collected by the processing device for the first time.

[0035] The processing device will obtain the temperature data through the pre-set communication path and interaction logic, and the specific process is as follows: first, the switch uses the I2C interface as the data transmission channel through the built-in DDM function to realize the real-time communication between the switch and the optical module, so that the switch can continuously read the running parameters of the optical module; then, the processing device interacts with the switch with which an effective connection has been established through two commonly used device management methods, namely, simple network management protocol or command line interface; finally, the processing device collects the real-time working temperature of each optical module inserted on the panel of the switch and in the normal working state at the current time point, and these collected real-time working temperatures are the first temperature values.

[0036] S202, the processing device screens out a first optical module set according to the first temperature values of the optical modules.

[0037] The first optical module set is a specific subset of all optical modules of the switch screened by the processing device, and the feature of the subset is that the first temperature values of all optical modules in the set meet the preset first temperature interval condition.

[0038] The first temperature interval is set based on the alarm threshold of the DDM function of the switch, and specifically, it is an interval between a first threshold value and a second threshold value of the temperature of the optical module. The first threshold value is a warning threshold value when the temperature of the optical module exceeds the safe range, and the second threshold value is an emergency threshold value when the temperature of the optical module is seriously high, both of which can be customized and configured by the processing device according to the model of the optical module and the use scenario.

[0039] The processing device compares the first temperature value of each optical module with the preset first temperature interval one by one. If the first temperature value of an optical module falls within the interval, it indicates that the temperature of the optical module has exceeded the safe range, but has not reached the emergency alarm level, and subsequent dynamic adjustment of the fan speed is needed to suppress temperature rise. Therefore, the first temperature value is included in the first optical module set to be processed. If the first temperature value of the optical module is lower than the first threshold or higher than the second threshold, it is not included in the first optical module set. Through this screening, the processing device finally obtains the first optical module set.

[0040] S203, the processing device classifies the optical modules in the first optical module set to obtain multiple categories.

[0041] Specifically, the processing device classifies the optical modules in the first optical module set according to the optical power level to obtain multiple categories.

[0042] The processing device reads the model information of each optical module in the first optical module set. The model information is obtained through the switch DDM function. The model information of the optical module corresponds to the optical power level one by one. For example, the QSFP28 model corresponds to the 100G optical power level. The optical modules with the same optical power level corresponding to the model information are classified into the same group, and finally multiple independent categories identified by the optical power level are obtained.

[0043] For example, if the first optical module set contains 5 10G SFP+ optical modules, 3 40G QSFP+ optical modules, and 2 100G QSFP28 optical modules, the processing device will identify them through the model information and classify the 5 10G modules into the 10G category, the 3 40G modules into the 40G category, and the 2 100G modules into the 100G category, forming a total of 3 categories.

[0044] S204, the processing device calculates the compensation value of the duty cycle corresponding to each optical module of each category.

[0045] Specifically, the processing device first obtains the number of in-place optical modules of the i-th category, the number of interfaces of the i-th category, the average temperature of the i-th category, the type coefficient corresponding to the i-th category, and the number coefficient corresponding to the i-th category.

[0046] The i-th category of optical modules refers to a specific category in the multiple categories obtained by the processing device after classifying the first optical module set according to the optical power level. Optical modules of the same category have the same optical power level, and their heat generation characteristics and heat dissipation requirements are consistent.

[0047] The number of in-situ optical modules of the i-th type refers to the total number of optical modules of the i-th type that are currently actually inserted into the switch and in a normal working state. For example, the switch interface corresponding to the 10G optical module has a total of 8, and currently 5 are inserted and working, so the number of in-situ optical modules of the i-th type is 5.

[0048] The number of interfaces of the i-th type optical module refers to the total number of physical interfaces of the switch that support the i-th type optical module. For example, the switch supports 8 interfaces of the 10G optical module, so the number of interfaces of the 10G optical module is 8.

[0049] The average temperature of the i-th type optical module refers to the arithmetic mean of the first temperature values of all in-situ optical modules of the i-th type. For example, the first type optical module is a 10G optical module, the number of in-situ 10G optical modules is 3, and the corresponding first temperature values are 55°C, 57°C and 59°C, respectively. The expression of the average temperature is:

[0050] Among them, represents the average temperature of the first type optical module.

[0051] The type coefficient corresponding to the i-th type optical module is positively correlated with the optical power of the i-th type optical module. The higher the optical power level, the larger the value of the type coefficient. Its role is to quantify the difference in heat generation efficiency of different optical power modules. High-power modules generate more heat and require higher compensation.

[0052] The quantity coefficient corresponding to the i-th type optical module is a parameter for quantifying the influence of the number of in-situ optical modules of the i-th type on heat dissipation requirements. The more in-situ modules, the more heat the module generates as a whole. The quantity coefficient can reflect the relationship between the number of in-situ modules and heat generation through a pre-set weight.

[0053] Secondly, the processing device calculates the compensation value of the duty cycle corresponding to the i-th type optical module according to the number of in-situ optical modules of the i-th type, the number of interfaces of the i-th type optical module, the average temperature of the i-th type optical module, the type coefficient corresponding to the i-th type optical module, and the quantity coefficient corresponding to the i-th type optical module.

[0054] The compensation value of the duty cycle corresponding to the i-th type optical module is the additional fan duty cycle that the processing device calculates for the i-th type optical module, expressed in percentage. Its role is to add this compensation value to the initial fan duty cycle, so that the fan speed is adaptively matched to the heat dissipation requirements of the i-th type optical module.

[0055] The compensation value of the duty cycle corresponding to the i-th type optical module is calculated as follows:

[0056] Among them, a compensation value of a duty cycle corresponding to the i-th type of optical module, a number of in-place optical modules of the i-th type, a number of interfaces of the i-th type of optical module, a quantity coefficient corresponding to the i-th type of optical module, an average temperature of the i-th type of optical module, a minimum value of the first temperature interval, a type coefficient corresponding to the i-th type of optical module.

[0057] S205, the processing device sums up the compensation values of the duty cycles corresponding to all types of optical modules as a target compensation value of the duty cycle.

[0058] The target compensation value of the duty cycle is the total increment obtained by the processing device after aggregating the compensation values of the duty cycles corresponding to all types of optical modules, and is the basis for subsequently correcting the initial value of the fan duty cycle. It integrates the overall heat dissipation demand of all optical modules that need to be adjusted in the first optical module set, rather than the demand of a single type, ensuring that the fan speed adjustment can cover all modules to be cooled.

[0059] The processing device sums up the compensation values of the duty cycles corresponding to all types of optical modules obtained after classifying the first optical module set.

[0060] For example, if the first optical module set is classified into the first type 10G, the compensation value of the duty cycle corresponding to the 10G type of optical module is 3%, the compensation value of the duty cycle corresponding to the second type 40G type of optical module is 6%, and the compensation value of the duty cycle corresponding to the third type 100G type of optical module is 9%. The total compensation value is 3%+6%+9%=18%, and 18% is the target compensation value of the current duty cycle.

[0061] S206, the processing device corrects the initial value of the duty cycle using the target compensation value to obtain a corrected value of the duty cycle.

[0062] The initial value of the duty cycle is the fan duty cycle reference value determined by the processing device when not considering the temperature influence factors of the optical module, based only on the traditional temperature monitoring data. The core data source is the real-time collection of the temperatures of key positions such as switch chips, CPUs, air inlets, and air outlets on the PCB board of the switch by the LM75 series digital temperature sensor deployed on the switch PCB board. The processing device then compares these temperature data with the pre-set fixed gear strategy to finally determine the initial value of the fan duty cycle.

[0063] Specifically, the conventional strategy matches the corresponding fan gear and fixed duty cycle for different temperature intervals in advance: for example, when the temperature at the key position of the PCB of the switch collected by the LM75 series digital temperature sensor is in the medium temperature interval, the processing device sets the fan gear to medium gear, and the corresponding duty cycle preset value of this gear is 50%, so the initial value of the fan duty cycle is 50%. In actual application, the common gear and initial duty cycle corresponding relationship has been fixed in advance, for example, low gear corresponds to 30% duty cycle, medium gear corresponds to 50% duty cycle, and high gear corresponds to 80% duty cycle. These duty cycle values are all fixed values pre-configured and will not be adjusted due to changes in the temperature of the optical module.

[0064] The processing device sums the target compensation value of the duty cycle and the initial value of the duty cycle, and takes the sum as the correction value of the duty cycle. The calculation expression is:

[0065] Among them, the correction value of the duty cycle, the initial value of the duty cycle, the target compensation value of the duty cycle.

[0066] S207, the processing device controls the cooling fan according to the correction value of the duty cycle.

[0067] The processing device converts the correction value of the duty cycle into a control instruction recognizable by the fan, for example, the correction value of the duty cycle is 68%, since the fan usually adjusts the speed through a pulse width modulation (PWM) signal, and the duty cycle of the PWM signal directly corresponds to the speed of the fan, the processing device generates a PWM signal control instruction with a duty cycle of 68%.

[0068] The processing device transmits the generated PWM signal control instruction to the driving circuit of the fan through a pre-set hardware interface or communication protocol. The driving circuit of the fan is an intermediate component connected between the control signal and the motor of the fan, and is responsible for converting the control signal into motor operating power.

[0069] After receiving the PWM control instruction, the fan driving circuit adjusts the power supply of the motor according to the duty cycle in the control instruction. For example, when the correction value of the duty cycle is 68%, the driving circuit controls the motor to be powered on for 68% of the time and powered off for 32% of the time in each working cycle, so that the speed of the fan is finally stabilized at a level matched with the 68% duty cycle, and the corresponding intensity of heat dissipation is achieved.

[0070] The method further includes the following cases: First, the processing device obtains the second temperature value of each optical module of the switch.

[0071] The second temperature value is a real-time working temperature value of each optical module collected by the processing device again after the first temperature value is acquired and the subsequent fan control operation is performed. The core attribute is consistent with the first temperature value, and both are the current actual temperature of the optical module. However, the collection time sequence lags behind the first temperature value, and is mainly used for comparison with the first temperature value and the corresponding control effect to determine whether the optical module temperature is effectively inhibited or whether there is an abnormality, and is a data basis for subsequent fault warning.

[0072] Secondly, the processing device screens out a second optical module set according to the second temperature value of each optical module of the switch, and the second temperature value of the optical module in the second optical module set is in the first temperature interval.

[0073] The second optical module set is a specific subset screened out by the processing device from all optical modules of the switch based on the second temperature value. The screening logic is consistent with that of the first optical module set, but the temperature data for screening is different. The second optical module set is based on the second temperature value collected twice, and the first optical module set is based on the first temperature value collected for the first time. It is mainly used for comparative analysis of the actual effect of the fan control strategy.

[0074] Then, the processing device respectively acquires a first number of optical modules in the first optical module set and a second number of optical modules in the second optical module set.

[0075] The first number refers to the total number of optical modules in the first optical module set, i.e., the optical module subset whose temperature is in the first temperature interval based on the first temperature value, obtained after the processing device counts the optical modules in the set. For example, after the first temperature collection, 10 optical modules whose temperature is in the first temperature interval are screened out to form the first optical module set, and the first number corresponding to the set is 10.

[0076] The second number refers to the total number of optical modules in the second optical module set, i.e., the optical module subset whose temperature is still in the first temperature interval based on the second temperature value, obtained after the processing device counts the optical modules in the set. For example, after the first fan speed regulation, the second temperature collection and screening out of 7 optical modules whose temperature is in the first temperature interval form the second optical module set, and the second number corresponding to the set is 7.

[0077] If the second number is greater than or equal to the first number, a fault prompt is generated.

[0078] The second quantity is equal to the first quantity, indicating that after the first round of fan speed adjustment, the number of optical modules in the first temperature interval has not decreased, that is, the fan speed adjustment has not reduced the temperature of any optical module to the safe range. This means that the current cooling strategy does not achieve the desired effect, and there may be insufficient compensation value calculation, such as setting the type coefficient too low, not matching the cooling demand of high-power optical modules; fan hardware response abnormalities, such as the fan speed not actually increasing after the control command is issued, etc.

[0079] The second quantity is greater than the first quantity, indicating that after the first round of fan speed adjustment, the number of optical modules in the first temperature interval has increased, that is, part of the optical modules whose temperature was originally in the safe range has risen to the first temperature interval. This is a more serious abnormal situation, which may exist fan failure, such as fan stall, speed decay, resulting in a decrease in overall cooling capacity; optical module abnormal heating, such as optical module internal circuit failure, heat surge, etc. If not handled in time, it may cause more optical modules to rise to the emergency threshold, causing equipment performance degradation or hardware damage.

[0080] By comparing the first quantity and the second quantity, the cooling abnormality can be quickly captured, and the prompt can be triggered before the optical module temperature rises to the emergency threshold, leaving the administrator time to troubleshoot, preventing the consequences of continuous abnormality leading to high-temperature damage to optical modules, and overall performance degradation of the switch.

[0081] The fault prompt is associated with the first quantity, the second quantity and the corresponding temperature data, so the administrator does not need to troubleshoot all devices one by one, but can directly focus on the three directions of cooling strategy parameters, fan hardware and optical module state, improving the troubleshooting efficiency and shortening the abnormal operation time of the device.

[0082] Based on the above content description, the present application has the following beneficial effects: In the present application, first, by obtaining the first temperature values of each optical module and screening out the first optical module set in the first temperature interval, a more comprehensive and detailed perception of the internal thermal environment of the switch is achieved, which makes up for the heat load judgment deviation caused by the single monitoring dimension of the traditional method, and provides more actual thermal state-based data for subsequent fan control.

[0083] Secondly, by classifying the first optical module set according to the optical power level, and combining the in-place quantity, interface quantity, average temperature, type coefficient and quantity coefficient of each type of optical module which is positively correlated with optical power, the duty cycle compensation value corresponding to each type of optical module is calculated, and then the target compensation value is used to modify the initial value of the duty cycle, replacing the traditional fixed gear rough adjustment method, so that the fan speed can be dynamically adapted according to the actual thermal contribution of different optical modules, effectively avoiding the problems of delayed cooling and device performance degradation caused by insufficient adjustment, reducing energy waste caused by excessive adjustment, and improving the cooling efficiency and energy utilization rationality.

[0084] Finally, the method can also generate a fault prompt when the second number is greater than or equal to the first number by comparing the number of optical modules in the first temperature interval screened at different time points, so as to timely find potential faults of optical module temperature abnormalities, provide fault warning basis for maintenance personnel, help to quickly troubleshoot and solve problems, and further guarantee the stability and reliability of the switch operation, thereby providing strong support for the overall system performance of the data center and communication network equipment.

[0085] The above Figure 1 The control method of the heat dissipation fan of the switch provided by the embodiments of the present application is described in detail, and the device and equipment provided by the embodiments of the present application will be introduced below with reference to the accompanying drawings.

[0086] As Figure 2 shown, the figure is a schematic diagram of a control device of a heat dissipation fan of a switch provided by an embodiment of the present application, and the device comprises: The acquisition module 301 is configured to acquire the first temperature values of the optical modules of the switch. The data processing module 302 is configured to: filter out a first optical module set according to the first temperature values of the optical modules, the first temperature values of the optical modules in the first optical module set being in a first temperature interval; classify the optical modules in the first optical module set to obtain a plurality of categories; calculate a compensation value of a duty cycle corresponding to each category of optical modules respectively; take the sum of the compensation values of the duty cycles corresponding to all categories of optical modules as a target compensation value of the duty cycle; and correct an initial value of the duty cycle by using the target compensation value to obtain a corrected value of the duty cycle. The control module 303 is configured to control the heat dissipation fan according to the corrected value of the duty cycle.

[0087] Optionally, the acquisition module 301 is specifically configured to acquire the in-place number of the ith category of optical modules, the interface number of the ith category of optical modules, the average temperature of the ith category of optical modules, the type coefficient corresponding to the ith category of optical modules, and the number coefficient corresponding to the ith category of optical modules; the type coefficient corresponding to the ith category of optical modules is positively correlated with the optical power of the ith category of optical modules.

[0088] The data processing module 302 is specifically configured to calculate the compensation value of the duty cycle corresponding to the ith category of optical modules according to the in-place number of the ith category of optical modules, the interface number of the ith category of optical modules, the average temperature of the ith category of optical modules, the type coefficient corresponding to the ith category of optical modules, and the number coefficient corresponding to the ith category of optical modules. Including:

[0089] Wherein, Duty cycle compensation value corresponding to the ith category of optical modules represents the number of in-situ optical modules of the i-th type, represents the number of interfaces of the i-th type optical module, represents the number coefficient corresponding to the i-th type optical module, represents the average temperature of the i-th type optical module, represents the minimum value of the first temperature interval, represents the type coefficient corresponding to the i-th type optical module.

[0090] Optionally, the data processing module 302 is specifically configured to sum the target compensation value of the duty cycle and an initial value of the duty cycle, and take the sum result as a correction value of the duty cycle.

[0091] Optionally, the acquisition module 301 is further configured to acquire second temperature values of the optical modules of the switch; acquire a first number of optical modules in the first optical module set and a second number of optical modules in the second optical module set respectively; The data processing module 302 is further configured to filter out the second optical module set according to the second temperature values of the optical modules of the switch, the second temperature values of the optical modules in the second optical module set being in the first temperature interval; and generate a fault prompt if the second number is greater than or equal to the first number.

[0092] Optionally, the data processing module 302 is specifically configured to classify the optical modules in the first optical module set according to optical power levels.

[0093] The control device of the cooling fan of the switch according to the embodiments of the present application can correspond to the method described in the embodiments of the present application, and the above-mentioned other operations and / or functions of each module / unit of the control device of the cooling fan of the switch are respectively implemented to realize Figure 1 the corresponding flow of each method in the illustrated embodiments. For the sake of brevity, they will not be repeated here.

[0094] The embodiments of the present application also provide a computing device. As Figure 3 shown, the figure is a schematic diagram of a computing device provided by the embodiments of the present application. The computing device 700 includes a bus 701, a processor 702, a communication interface 703 and a memory 704. The processor 702, the memory 704 and the communication interface 703 communicate through the bus 701.

[0095] The bus 701 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 3 Only one thick line is used in the figure to represent the bus, but it does not mean that there is only one bus or only one type of bus.

[0096] The processor 702 can be any one or more of a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP), or a digital signal processor (DSP), etc.

[0097] The communication interface 703 is configured to communicate with the outside.

[0098] The memory 704 can include a volatile memory (volatile memory), such as a random access memory (RAM). The memory 704 can also include a non-volatile memory (non-volatile memory), such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid state drive (SSD).

[0099] The memory 704 stores executable code, and the processor 702 executes the executable code to perform the foregoing control method of the heat dissipation fan of the switch.

[0100] Specifically, in the case of implementing Figure 2 the embodiment shown, and Figure 2 In the case of implementing the control device of the heat dissipation fan of the switch described in the embodiment by software, the software or program code required to implement the functions of each module / unit in Figure 2 The software or program code required to implement the functions of each module / unit in the foregoing control method of the heat dissipation fan of the switch can be stored in the memory 704 in part or in whole. The processor 702 executes the program code corresponding to each unit stored in the memory 704 to perform the foregoing control method of the heat dissipation fan of the switch.

[0101] The embodiment of the present application further provides a computer readable storage medium. The computer readable storage medium can be any available medium or data storage device that can be used to store instructions that can be executed by a computing device. The computer readable storage medium can be a magnetic medium (e.g., a floppy diskette, a hard disk drive), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state hard drive) or any suitable combination of these. The computer readable storage medium includes instructions that are executable by a computing device to perform the method of controlling the cooling fan of the switch.

[0102] The embodiment of the present application further provides a computer program product including one or more computer instructions. When the computer instructions are loaded and executed on a computing device, the computer instructions generate, in whole or in part, the processes or functions described in the embodiment of the present application.

[0103] The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transmitted from one website, computer or data center to another website, computer or data center through a wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) manner.

[0104] The computer program product is executed by a computer, and the computer executes any of the methods of controlling the cooling fan of the switch. The computer program product can be a software installation package, and when any of the methods of controlling the cooling fan of the switch is needed, the computer program product can be downloaded and executed on the computer.

[0105] The description of the processes or structures corresponding to the above respective figures focuses on different aspects, and the parts not described in detail in a certain process or structure can be referred to the related description of other processes or structures.

[0106] The above is merely a specific implementation of the present application, but the protection scope of the present application is not limited to this. Any change or replacement within the technical scope disclosed in the present application should be covered in the protection scope of the present application.

Claims

1. A control method of a cooling fan of a switch, characterized by, The method comprises: obtaining first temperature values of respective optical modules of an exchange; screening a first optical module set according to the first temperature values of the respective optical modules, the first optical module set comprising optical modules with first temperature values in a first temperature interval; classifying the optical modules in the first optical module set to obtain multiple categories; calculating compensation values of duty cycles corresponding to the optical modules in each category respectively; summing the compensation values of the duty cycles corresponding to all categories as a target compensation value of the duty cycle; correcting an initial value of the duty cycle by using the target compensation value to obtain a corrected value of the duty cycle; controlling a cooling fan according to the corrected value of the duty cycle.

2. The method of claim 1, wherein, The method comprises: obtaining the number of optical modules in the i-th category, the number of interfaces of the optical modules in the i-th category, the average temperature of the optical modules in the i-th category, the type coefficient corresponding to the optical modules in the i-th category, and the number coefficient corresponding to the optical modules in the i-th category; calculating the compensation value of the duty cycle corresponding to the optical modules in the i-th category according to the number of optical modules in the i-th category, the number of interfaces of the optical modules in the i-th category, the average temperature of the optical modules in the i-th category, the type coefficient corresponding to the optical modules in the i-th category, and the number coefficient corresponding to the optical modules in the i-th category.

3. The method of claim 2, wherein, The method comprises: wherein, represents a compensation value of the duty cycle corresponding to the i-th optical module, represents the number of in-place of the i-th optical module, represents the number of interfaces of the i-th optical module, represents a quantity coefficient corresponding to the i-th optical module, represents the average temperature of the i-th optical module, represents the minimum value of the first temperature interval, represents a type coefficient corresponding to the i-th optical module.

4. The method of claim 1, wherein, The method comprises: The method comprises:

5. The method of claim 1, wherein, The method comprises:

6. The method of claim 1, wherein, The type coefficient corresponding to the optical modules in the i-th category is positively correlated with the optical power of the optical modules in the i-th category. The method further comprises: obtaining second temperature values of respective optical modules of the exchange; screening a second optical module set according to the second temperature values of the respective optical modules of the exchange, the second optical module set comprising optical modules with second temperature values in the first temperature interval; obtaining a first number of optical modules in the first optical module set and a second number of optical modules in the second optical module set respectively; 7. The method according to any one of claims 1 to 6, characterized in that, generating a fault prompt if the second number is greater than or equal to the first number. The method comprises:

8. A control device for a cooling fan of a switch, characterized in that: The method comprises: The device comprises: an obtaining module, configured to obtain first temperature values of respective optical modules of an exchange; The data processing module is configured to: filter out a first optical module set according to the first temperature values of the optical modules, the first temperature values of the optical modules in the first optical module set being in a first temperature interval; classify the optical modules in the first optical module set to obtain a plurality of categories; calculate compensation values of duty cycles corresponding to the optical modules in each category respectively; sum the compensation values of the duty cycles corresponding to all the categories as a target compensation value of the duty cycle; and correct an initial value of the duty cycle by using the target compensation value to obtain a corrected value of the duty cycle. The control module is configured to control the heat dissipation fan according to the corrected value of the duty cycle.

9. A computing device, comprising: comprise a memory and a processor; The memory stores one or more computer programs comprising instructions, which, when executed by the processor, cause the computing device to perform the method of any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, The computer readable storage medium is configured to store a computer program for performing the method of any one of claims 1 to 7.

Citation Information

Cited By

  • Equipment control method and device, electronic equipment and storage medium

    CN122227569A