Heat dissipation control method of switch, electronic equipment and storage medium

By dynamically controlling the speed of the switch fan assembly, the problems of high energy consumption and unsatisfactory heat dissipation of traditional switches are solved according to the load level and temperature changes, and energy consumption is reduced and heat dissipation efficiency is improved.

CN120416111APending Publication Date: 2025-08-01DONGGUAN QUANZHIKE COMM EQUIP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510648362.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-20
Publication Date
2025-08-01

AI Technical Summary

Technical Problem

The traditional switches have a fixed fan speed or a simple temperature control strategy, which leads to high energy consumption and unsatisfactory heat dissipation effect, which affects working efficiency and increases costs.

Method used

By obtaining the real-time temperature and network traffic parameters of the switch, judging the load level, dynamically adjusting the speed of the fan assembly to adapt to different load states, reducing energy consumption and improving heat dissipation efficiency.

Benefits of technology

It realizes efficient regulation of fan components at different load levels, reduces energy consumption, avoids temperature overshoot, and improves the comfort and heat dissipation efficiency of equipment operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120416111A_ABST
    Figure CN120416111A_ABST
Patent Text Reader

Abstract

The invention discloses a heat dissipation control method of a switch, electronic equipment and a storage medium, and relates to the technical field of switches, and the heat dissipation control method of the switch comprises the steps: obtaining the real-time temperature of the switch, and obtaining the current temperature; network flow parameters of the switch are obtained, the load level of the switch is judged based on the network flow parameters, and the network flow parameters comprise the number of data packets per second, the throughput capacity and the occupancy of a central processing unit; the fan assembly is correspondingly regulated and controlled based on the load level, the load state of the switch is divided according to the number of data packets per second, the throughput capacity and the occupancy amount of the central processing unit of the switch, then the fan assembly is correspondingly regulated and controlled according to the different load states of the switch, and therefore the heat dissipation efficiency is improved; the energy consumption is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of switches, and particularly to a heat dissipation control method, an electronic device, and a storage medium for a switch. Background Art

[0002] With the development of the information age, the processing power of network switches is constantly improving, resulting in a significant increase in the power consumption and heat dissipation requirements of switches. In the prior art, traditional switches use fixed fan speeds or simple temperature control strategies for heat dissipation, resulting in high energy consumption. Summary of the Invention

[0003] This application aims to solve at least one of the technical problems existing in the prior art. For this purpose, this application proposes a heat dissipation control method, an electronic device, and a storage medium for a switch, which can perform corresponding regulation on the fan assembly based on the load level of the switch, thereby reducing energy consumption.

[0004] The heat dissipation control method for a switch according to the first aspect embodiment of this application includes: obtaining the real-time temperature of the switch to obtain the current temperature; obtaining the network traffic parameters of the switch, and based on the network traffic parameters, determining the load level of the switch; determining a target regulation strategy based on the load level, and regulating the fan assembly based on the target regulation strategy and the current temperature.

[0005] According to the control method for heat dissipation of a switch according to the embodiments of this application, it has at least the following beneficial effects: By obtaining the number of packets per second, throughput, and the occupancy of the central processing unit of the switch, the load levels of the switch are divided, which is convenient for performing different regulations on the fan assemblies of switch modules in different load levels, so that the fan assemblies do not have to be in a high-energy-consuming operating state for a long time, thereby reducing the required energy consumption.

[0006] According to some embodiments of this application, the load level includes a high load. The determining a target regulation strategy based on the load level and regulating the fan assembly based on the target regulation strategy and the current temperature includes:

[0007] When it is detected that the load level of the switch is the high load and the current temperature is less than or equal to a preset first temperature threshold, controlling the rotation speed of the fan assembly to be fixed at a preset first rotation speed;

[0008] When it is detected that the load level of the switch is the high load and the current temperature is between the first temperature threshold and a preset second temperature threshold, controlling the rotation speed of the fan assembly to linearly change with the change of the current temperature;

[0009] When it is detected that the load level of the switch is the high load and the current temperature is greater than or equal to the second temperature threshold, control the rotation speed of the fan assembly to be fixed at a preset second rotation speed, where the first temperature threshold is less than the second temperature threshold and the second rotation speed is greater than the first rotation speed.

[0010] According to some embodiments of the present application, the load level further includes a low load, the fan assembly includes a first fan, a second fan, and a third fan, and the determining a target regulation strategy based on the load level and regulating the fan assembly based on the target regulation strategy and the current temperature further includes:

[0011] When it is detected that the load level of the switch is the low load and the current temperature is less than or equal to a preset third temperature threshold, control the first fan and the second fan to stop running, and control the rotation speed of the third fan to be fixed at the first rotation speed;

[0012] When it is detected that the load level of the switch is the low load and the current temperature is between the third temperature threshold and a preset fourth temperature threshold, control the first fan to stop running, and control the rotation speeds of the second fan and the third fan to linearly change with the change of the current temperature, where the rotation speeds of the second fan and the third fan are synchronized;

[0013] When it is detected that the load level of the switch is the low load and the current temperature is greater than or equal to the fourth temperature threshold, control the first fan to stop running, and control the rotation speeds of the second fan and the third fan to be fixed at the second rotation speed, where the third temperature threshold is less than the fourth temperature threshold, the third temperature threshold is greater than the first temperature threshold, and the fourth temperature threshold is greater than the second temperature threshold.

[0014] According to some embodiments of the present application, the load level further includes a medium load, and the determining a target regulation strategy based on the load level and regulating the fan assembly based on the target regulation strategy and the current temperature further includes:

[0015] When it is detected that the load level of the switch is the medium load and the current temperature is less than or equal to the preset third temperature threshold, control the first fan to stop running, and control the rotation speeds of the second fan and the third fan to be fixed at the first rotation speed;

[0016] When it is detected that the load level of the switch is the medium load and the current temperature is between the third temperature threshold and a preset fourth temperature threshold, control the rotation speeds of the first fan, the second fan, and the third fan to linearly change with the change of the current temperature, where the rotation speeds of the first fan, the second fan, and the third fan are synchronized;

[0017] When it is detected that the load level of the switch is the medium load and the current temperature is greater than or equal to the fourth temperature threshold, control the rotation speeds of the first fan, the second fan, and the third fan to be fixed at the second rotation speed.

[0018] According to some embodiments of the present application, the network traffic parameters include the number of packets per second, throughput, and the occupancy of the central processing unit. Based on the network traffic parameters, determining the load level of the switch includes:

[0019] If the number of packets per second is less than a preset first threshold, the throughput is less than a preset second threshold, and the occupancy of the central processing unit is less than a preset third threshold, then determine that the switch is in a low load state;

[0020] If the number of packets per second is greater than or equal to the first threshold, or the throughput is greater than or equal to the second threshold, or the occupancy of the central processing unit is greater than or equal to the third threshold, and the number of packets per second is less than or equal to a preset fourth threshold, the throughput is less than or equal to a preset fifth threshold, and the occupancy of the central processing unit is less than or equal to a preset sixth threshold, then determine that the switch is in a medium load state;

[0021] If the number of packets per second is greater than the fourth threshold, or the throughput is greater than the fifth threshold, or the occupancy of the central processing unit is greater than the sixth threshold, then determine that the switch is in a high load state.

[0022] According to some embodiments of the present application, the switch further includes a temperature control module. After determining the load level of the switch, it further includes:

[0023] Obtain the change rate of the current temperature through the temperature control module;

[0024] When it is detected that the load level of the switch is the low load, the change rate is greater than the preset temperature change threshold, and the current temperature is less than or equal to the third temperature threshold, control the rotation speeds of the second fan and the third fan to linearly change with the change of the current temperature until the rotation speeds of the second fan and the third fan reach the second rotation speed;

[0025] When it is detected that the load level of the switch is the medium load, and the change rate is greater than the preset temperature change threshold, and the current temperature is less than or equal to the third temperature threshold, control the rotation speeds of the first fan, the second fan, and the third fan to linearly change with the change of the current temperature until the rotation speeds of the first fan, the second fan, and the third fan reach the second rotation speed;

[0026] When it is detected that the load level of the switch is the high load, and the change rate is greater than the preset temperature change threshold, and the current temperature is less than or equal to the first temperature threshold, control the rotation speeds of the first fan, the second fan, and the third fan to linearly change with the change of the current temperature until the rotation speeds of the first fan, the second fan, and the third fan reach the second rotation speed.

[0027] According to some embodiments of the present application, after determining the target regulation strategy based on the load level and regulating the fan assembly based on the target regulation strategy and the current temperature, it further includes:

[0028] Obtain the type of the measured module of the switch;

[0029] Based on the type of the measured module of the switch, perform corresponding regulation on the fan assembly.

[0030] According to some embodiments of the present application, the switch includes multiple modules. After determining the target regulation strategy based on the load level and regulating the fan assembly based on the target regulation strategy and the current temperature, it further includes:

[0031] Compare the current temperatures of the multiple modules with a preset fifth temperature threshold respectively;

[0032] When the current temperatures of the multiple modules are all greater than the fifth temperature threshold, control the rotation speeds of the first fan, the second fan, and the third fan corresponding to the multiple modules to be fixed at the second rotation speed.

[0033] An electronic device according to an embodiment of the second aspect of the present application, the electronic device includes a memory and a processor, the memory stores a computer program, and when the processor executes the computer program, it implements the control method for switch heat dissipation according to the embodiment of the first aspect of the present application.

[0034] A computer-readable storage medium according to an embodiment of the third aspect of the present application, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the control method for switch heat dissipation according to the embodiment of the first aspect of the present application.

[0035] Additional aspects and advantages of the present application will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present application. Description of the Drawings

[0036] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood from the description of the embodiments in conjunction with the following drawings, where:

[0037] Figure 1 is a flowchart of the steps of the heat dissipation control method of the switch according to an embodiment of the present application;

[0038] Figure 2 is a specific flow schematic diagram of step S102;

[0039] Figure 3 is a partial schematic diagram of a specific flow of step S103;

[0040] Figure 4 is a partial schematic diagram of a specific flow of step S103;

[0041] Figure 5 is a partial schematic diagram of a specific flow of step S103;

[0042] Figure 6 is a flowchart of steps S401 to S404 according to an embodiment of the present application;

[0043] Figure 7 is a flowchart of steps S501 to S502 according to an embodiment of the present application;

[0044] Figure 8 is a flowchart of steps S601 to S602 according to an embodiment of the present application;

[0045] Figure 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application. Detailed Description of the Embodiments

[0046] Embodiments of the present application will be described in detail below. Examples of the embodiments are shown in the drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for explaining the present application and should not be construed as limiting the present application.

[0047] In the description of the present application, it should be understood that for the orientation description, such as the orientation or positional relationship indicated by up, down, front, back, left, right, etc., it is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation. Therefore, it should not be construed as a limitation to the present application.

[0048] In the description of the present application, the meaning of "several" is one or more, the meaning of "multiple" is more than two, and "greater than", "less than", "exceeding", etc. are understood not to include the recited number, while "above", "below", "within", etc. are understood to include the recited number. If the first and second are described, it is only for the purpose of distinguishing technical features and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of the indicated technical features or implicitly indicating the sequence relationship of the indicated technical features.

[0049] In the description of the present application, unless otherwise clearly defined, terms such as "set", "installed", "connected", etc. should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present application in combination with the specific content of the technical solution.

[0050] Currently, the processing power of switches is increasing day by day, and their heat dissipation requirements and energy consumption also increase significantly. The heat dissipation method of traditional switches is still implemented with a fixed fan speed or a simple temperature control strategy, making it easy for the heat dissipation module of traditional switches to have problems such as high energy consumption or unsatisfactory heat dissipation effect, which not only affects the working efficiency of the switch but also increases the cost expenditure.

[0051] Based on this, the present application proposes a heat dissipation control method, an electronic device, and a storage medium for a switch, aiming to correspondingly regulate the heat dissipation module of the switch for switches at different load levels, improving the heat dissipation efficiency while reducing the power consumption.

[0052] In the first aspect of the present application, an embodiment provides a heat dissipation control method for a switch based on the switch. Refer to Figure 1 , Figure 1 which is the flowchart of the steps of the heat dissipation control method for the switch in the embodiment of the present application. Figure 1 The schematic process steps include but are not limited to steps S101 to S103.

[0053] Step S101, obtain the real-time temperature of the switch to obtain the current temperature.

[0054] Step S102, obtain the network traffic parameters of the switch, and based on the network traffic parameters, determine the load level of the switch.

[0055] Step S103: Determine the target regulation strategy based on the load level, and regulate the fan assembly based on the target regulation strategy and the current temperature.

[0056] According to the heat dissipation control method of the switch in the embodiments of the present application, it has at least the following beneficial effects: By obtaining the number of packets per second, throughput, and the occupancy of the central processing unit of the switch, the load level of the switch is divided, which is convenient for different regulation of the fan assemblies of switch modules in different load levels, so that the fan assemblies do not have to be in a high-energy-consuming operation state for a long time, thereby reducing the required energy consumption.

[0057] In step S101 of some embodiments, the switch includes a temperature sensor, and the temperature sensor detects the real-time temperature of the switch to obtain the current temperature.

[0058] In some embodiments, with reference to Figure 2 , step S102 may include but is not limited to steps S201 to S203.

[0059] Step S201: If the number of packets per second is less than a preset first threshold, the throughput is less than a preset second threshold, and the occupancy of the central processing unit is less than a preset third threshold, it is determined that the switch is in a low-load state.

[0060] Step S202: If the number of packets per second is greater than or equal to the first threshold, or the throughput is greater than or equal to the second threshold, or the occupancy of the central processing unit is greater than or equal to the third threshold, and the number of packets per second is less than or equal to a preset fourth threshold, the throughput is less than or equal to a preset fifth threshold, and the occupancy of the central processing unit is less than or equal to a preset sixth threshold, it is determined that the switch is in a medium-load state.

[0061] Step S203: If the number of packets per second is greater than the fourth threshold, or the throughput is greater than the fifth threshold, or the occupancy of the central processing unit is greater than the sixth threshold, it is determined that the switch is in a high-load state.

[0062] In step S201 of some embodiments, the situation where the network traffic parameters, that is, the number of packets per second, throughput, and the occupancy of the central processing unit, simultaneously satisfy that the number of packets per second is less than the first threshold, the throughput is less than the second threshold, and the occupancy of the central processing unit is less than the third threshold is determined as the switch being in a low-load state at this time.

[0063] In step S202 of some embodiments, a switch whose number of packets per second is less than or equal to a preset fourth threshold, throughput is less than or equal to a fifth threshold, and the occupancy of the central processing unit is less than or equal to a sixth threshold, and whose number of packets per second, throughput, and the occupancy of the central processing unit satisfy at least one of the conditions that the number of packets per second is greater than or equal to a first threshold, or the throughput is greater than or equal to a second threshold, or the occupancy of the central processing unit is greater than or equal to a third threshold, is determined to be in a medium load state at this time.

[0064] In step S203 of some embodiments, a switch whose number of packets per second, throughput, and the occupancy of the central processing unit satisfy at least one of the conditions that the number of packets per second is greater than the fourth threshold, or the throughput is greater than the fifth threshold, or the occupancy of the central processing unit is greater than the sixth threshold, is determined to be in a high load state at this time.

[0065] Steps S201 to S203 of the embodiments of the present application determine the number of packets per second, throughput, and CPU occupancy of the switch, and then classify the switch into three different load levels, which facilitates subsequent corresponding regulation of the fan assembly of the switch according to different load levels. When the load is low, the rotation speed of the fan assembly can be reduced, thereby reducing energy consumption. When the load is high, the rotation speed of the fan assembly can be increased to ensure the heat dissipation efficiency and avoid damage to the switch caused by overheating. Specific examples of classifying the switch's load level according to the number of packets per second, throughput, and CPU occupancy are as follows: When the number of packets per second of the switch is less than 100,000 PPS, the throughput is less than 5 Gbps, and the CPU occupancy is less than 30%, it can be considered that the switch is in a low-load state at this time; when the number of packets per second of the switch is less than or equal to 500,000 PPS, the throughput is less than or equal to 50 Gbps, and the CPU occupancy is less than or equal to 70%, and at least one of the following conditions is met: the number of packets per second is between 10 PPS and 500,000 PPS, or the throughput is between 5 Gbps and 20 Gbps, or the CPU occupancy is between 30% and 70%, it can be considered that the switch is in a medium-load state at this time; when the switch meets at least one of the following conditions: the number of packets per second is greater than 500,000 PPS, or the throughput is greater than 20 Gbps, or the CPU occupancy is greater than 70%, it can be considered that the switch is in a high-load state. For example, if the number of packets per second, throughput, and CPU occupancy of the switch are 50,000 PPS, 7 Gbps, and 50% respectively, then the switch is in a medium-load state at this time; if the number of packets per second, throughput, and CPU occupancy of the switch are 50,000 PPS, 3 Gbps, and 20% respectively, then the switch is in a low-load state at this time; if the number of packets per second, throughput, and CPU occupancy of the switch are 50,000 PPS, 7 Gbps, and 90% respectively, then the switch is in a high-load state.

[0066] In some embodiments, referring to Figure 3 , step S103 may include, but is not limited to, steps S301 to S303.

[0067] Step S301, when it is detected that the load level of the switch is high load and the current temperature is less than or equal to a preset first temperature threshold, control the rotation speed of the fan assembly to be fixed at a preset first rotation speed.

[0068] Step S302, when it is detected that the load level of the switch is high load and the current temperature is between the first temperature threshold and a preset second temperature threshold, control the rotation speed of the fan assembly to linearly change with the change of the current temperature.

[0069] Step S303: When it is detected that the load level of the switch is high and the current temperature is greater than or equal to the second temperature threshold, control the rotation speed of the fan assembly to be fixed at a preset second rotation speed, where the first temperature threshold is less than the second temperature threshold and the second rotation speed is greater than the first rotation speed.

[0070] In step S301 of some embodiments, the fan assembly includes a first fan, a second fan, and a third fan. When the current temperature of the switch in a high-load state is less than or equal to the first temperature threshold, control the rotation speeds of the first fan, the second fan, and the third fan to be fixed at the first rotation speed. For example, when the temperature of the high-load switch is less than 60 degrees, control the rotation speeds of the first fan, the second fan, and the third fan of the switch to be fixed at 800 RPM.

[0071] In step S302 of some embodiments, when the current temperature of the switch in a high-load state is between the first temperature threshold and the second temperature threshold, control the rotation speeds of the first fan, the second fan, and the third fan to vary linearly with the current temperature. For example: for every 1-degree increase in temperature, the rotation speeds of the first fan, the second fan, and the third fan all increase by 800 RPM. That is, when the current temperature is 90 degrees, the rotation speeds of the first fan, the second fan, and the third fan are all 800 RPM; when the current temperature is 91 degrees, the rotation speeds of the first fan, the second fan, and the third fan all increase to 1600 RPM. Among them, the rotation speeds of the first fan, the second fan, and the third fan gradually increase from 800 RPM to 1600 RPM, rather than directly mutating from 800 RPM to 1600 RPM, but there is a process of gradual acceleration.

[0072] In step S303 of some embodiments, when the current temperature of the switch in a high-load state is greater than or equal to the second temperature threshold, control the rotation speeds of the first fan, the second fan, and the third fan to be fixed at the second rotation speed. For example, when the current temperature of the high-load switch is greater than 95 degrees, control the rotation speeds of the first fan, the second fan, and the third fan of the switch to be fixed at 8000 RPM.

[0073] In the steps S301 to S303 of the embodiment of the present application, when the current temperature of the switch is less than or equal to the first temperature threshold, the rotation speeds of the first fan, the second fan, and the third fan are all fixed at the first rotation speed. When the current temperature of the switch is greater than or equal to the second temperature threshold, the rotation speeds of the first fan, the second fan, and the third fan are all fixed at the second rotation speed. This is convenient for reducing the rotation speeds of the first fan, the second fan, and the third fan when the current temperature is low under high load, thus saving energy consumption. When the current temperature is high, the rotation speeds of the first fan, the second fan, and the third fan are increased, thereby improving the heat dissipation efficiency of the switch. When the current temperature of the switch is between the first temperature threshold and the second temperature threshold, the rotation speeds of the first fan, the second fan, and the third fan all change linearly with the current temperature. Among them, when the rotation speeds of the first fan, the second fan, and the third fan all start to change linearly with the current temperature, the first rotation speed is used as the starting rotation speed of the first fan, the second fan, and the third fan, and the second rotation speed is used as the ending rotation speed of the first fan, the second fan, and the third fan. For example, the first temperature threshold is 70 degrees. When the current temperature is less than 70 degrees, the rotation speeds of the first fan, the second fan, and the third fan are all 800 RPM. The second temperature threshold is 100 degrees. When the current temperature is greater than 100 degrees, the rotation speeds of the first fan, the second fan, and the third fan are all 8000 RPM. When the current temperature is between 70 degrees and 100 degrees, the rotation speeds of the first fan, the second fan, and the third fan all change linearly with the current temperature. When the current temperature is 70 degrees, the rotation speeds of the first fan, the second fan, and the third fan are all 800 RPM; when the current temperature is 71 degrees, the rotation speeds of the first fan, the second fan, and the third fan are all 1040 RPM; when the current temperature is 72 degrees, the rotation speeds of the first fan, the second fan, and the third fan are all 1280 RPM; when the current temperature is 99 degrees, the rotation speeds of the first fan, the second fan, and the third fan are all 7760 RPM; when the current temperature is 100 degrees, the rotation speeds of the first fan, the second fan, and the third fan are all 8000 RPM. The linear change in the rotation speeds of the first fan, the second fan, and the third fan makes the heat dissipation efficiency more balanced, and there will be no problem of short-term temperature overshoot. At the same time, in the stage of linear change of the rotation speeds of the first fan, the second fan, and the third fan, the first rotation speed and the second rotation speed are used as the starting rotation speed and the ending rotation speed respectively. When the current temperature of the switch is close to the first temperature threshold or the second temperature threshold, the change in the rotation speeds of the first fan, the second fan, and the third fan of the switch is also relatively slow and gentle, avoiding the situation where the rotation speeds of the first fan, the second fan, and the third fan cause the fan noise to fluctuate suddenly due to large changes, thereby reducing the noise fluctuation and improving the comfort of the device operation.

[0074] In some embodiments, referring to Figure 4 , step S103 may further include but is not limited to steps S304 to S306.

[0075] In step S304, when it is detected that the load level of the switch is low load and the current temperature is less than or equal to a preset third temperature threshold, control the first fan and the second fan to stop running, and control the rotation speed of the third fan to be fixed at a first rotation speed.

[0076] In step S305, when it is detected that the load level of the switch is low load and the current temperature is between the third temperature threshold and a preset fourth temperature threshold, control the first fan to stop running, and control the rotation speeds of the second fan and the third fan to linearly change with the change of the current temperature, wherein the rotation speeds of the second fan and the third fan are synchronized.

[0077] In step S306, when it is detected that the load level of the switch is low load and the current temperature is greater than or equal to the fourth temperature threshold, control the first fan to stop running, and control the rotation speeds of the second fan and the third fan to be fixed at a second rotation speed, wherein the third temperature threshold is less than the fourth temperature threshold, the third temperature threshold is greater than the first temperature threshold, and the fourth temperature threshold is greater than the second temperature threshold.

[0078] In step S304 of some embodiments, for a switch in a low-load state, when the current temperature is less than or equal to the third temperature threshold, control the first fan and the second fan to stop running, and control the rotation speed of the third fan to be fixed at the first rotation speed. For example, when the temperature of the low-load switch is less than 70 degrees, control the rotation speeds of the first fan and the second fan of the switch to be 0 RPM, while the rotation speed of the third fan is fixed at 800 RPM.

[0079] In step S305 of some embodiments, for a switch in a low-load state, when the current temperature is between the third temperature threshold and the fourth temperature threshold, control the first fan to stop running, and control the rotation speeds of the second fan and the third fan to linearly change with the change of the current temperature. For example: the rotation speed of the first fan is 0 RPM, and for every 1-degree increase in temperature, the rotation speeds of the second fan and the third fan increase by 800 RPM. That is, when the current temperature is 90 degrees, the rotation speeds of the second fan and the third fan are both 800 RPM; when the current temperature is 91 degrees, the rotation speeds of the second fan and the third fan both increase to 1600 RPM. Among them, the rotation speeds of the second fan and the third fan gradually increase from 800 RPM to 1600 RPM, rather than directly mutating from 800 RPM to 1600 RPM, but there is a process of gradual acceleration. Among them, the rotation speeds of the second fan and the third fan are synchronized.

[0080] In step S306 of some embodiments, for a switch in a low-load state, when the current temperature is greater than or equal to the fourth temperature threshold, control the first fan to stop running, and control the rotation speeds of the second fan and the third fan to be fixed at the second rotation speed. For example, when the current temperature of the low-load switch is greater than 95 degrees, control the rotation speed of the first fan to be 0 RPM, and control the rotation speeds of the second fan and the third fan to be fixed at 8000 RPM.

[0081] In steps S304 to S306 of the embodiments of the present application, for a switch in a low-load state, the first fan always stops running, which helps save energy consumption in the low-load state. When the current temperature of the switch is less than or equal to the third temperature threshold, the second fan also stops running, and the rotation speed of the third fan is fixed at the first rotation speed. When the current temperature of the switch is greater than or equal to the fourth temperature threshold, the rotation speeds of both the second fan and the third fan are fixed at the second rotation speed. This is convenient for saving energy consumption when the current temperature is relatively low during low load by stopping the operation of the first fan and the second fan and reducing the rotation speed of the third fan. When the current temperature is relatively high, the second fan is enabled, and the rotation speeds of both the second fan and the third fan are synchronously increased to improve the heat dissipation efficiency of the switch. When the current temperature of the switch is between the third temperature threshold and the fourth temperature threshold, the second fan is enabled, and the rotation speeds of both the second fan and the third fan change linearly with the change of the current temperature. When the rotation speeds of both the second fan and the third fan start to change linearly with the current temperature, the first rotation speed is used as the starting rotation speed of the second fan and the third fan, and the second rotation speed is used as the ending rotation speed of the second fan and the third fan. For example, the first temperature threshold is 90 degrees. When the current temperature is less than 90 degrees, the rotation speeds of both the second fan and the third fan are 800 RPM. The second temperature threshold is 120 degrees. When the current temperature is greater than 120 degrees, the rotation speeds of both the second fan and the third fan are 8000 RPM. When the current temperature is between 90 degrees and 120 degrees, the rotation speeds of both the second fan and the third fan change linearly with the current temperature. When the current temperature is 90 degrees, the rotation speeds of both the second fan and the third fan are 800 RPM; when the current temperature is 91 degrees, the rotation speeds of both the second fan and the third fan are 1040 RPM; when the current temperature is 92 degrees, the rotation speeds of both the second fan and the third fan are 1280 RPM; when the current temperature is 99 degrees, the rotation speeds of both the second fan and the third fan are 7760 RPM; when the current temperature is 120 degrees, the rotation speeds of both the second fan and the third fan are 8000 RPM. The linear change in the rotation speeds of the second fan and the third fan makes the heat dissipation efficiency more balanced and avoids the problem of short-term temperature overshoot. At the same time, the linear change stage of the rotation speeds of the second fan and the third fan uses the first rotation speed and the second rotation speed as the starting rotation speed and the ending rotation speed respectively, so that when the current temperature of the switch is close to the third temperature threshold or the fourth temperature threshold, the change in the rotation speeds of the second fan and the third fan of the switch is also relatively slow and gentle, avoiding the situation where the rotation speeds of the second fan and the third fan fluctuate greatly due to large changes, thereby reducing the noise fluctuation and improving the comfort of the device operation.The third temperature threshold is greater than the first temperature threshold, enabling the fan assembly of the switch in a high-load state to start increasing its rotation speed earlier, facilitating timely heat dissipation of the switch. The fourth temperature threshold is greater than the second temperature threshold, causing the rotation speed of the fan assembly of the switch in a high-load state to reach the maximum value faster, thereby ensuring that the temperature of the switch in a high-load state does not become too high and guaranteeing the stable operation of each module within the switch.

[0082] In some embodiments, referring to Figure 5 , step S103 may further include, but is not limited to, steps S307 to S309.

[0083] Step S307, when it is detected that the load level of the switch is medium load and the current temperature is less than or equal to a preset third temperature threshold, control the first fan to stop running, and control the rotation speeds of the second fan and the third fan to be fixed at a first rotation speed.

[0084] Step S308, when it is detected that the load level of the switch is medium load and the current temperature is between the third temperature threshold and a preset fourth temperature threshold, control the rotation speeds of the first fan, the second fan, and the third fan to vary linearly with the current temperature, where the rotation speeds of the first fan, the second fan, and the third fan are synchronized.

[0085] Step S309, when it is detected that the load level of the switch is medium load and the current temperature is greater than or equal to the fourth temperature threshold, control the rotation speeds of the first fan, the second fan, and the third fan to be fixed at a second rotation speed.

[0086] In step S307 of some embodiments, for a switch in a medium-load state, when the current temperature is less than or equal to the third temperature threshold, control the first fan to stop running, and control the rotation speeds of the second fan and the third fan to be fixed at the first rotation speed. For example, when the temperature of a medium-load switch is less than 70 degrees, control the rotation speed of the first fan of the switch to be 0 RPM, while the rotation speeds of the second fan and the third fan are both fixed at 800 RPM.

[0087] In step S308 of some embodiments, for the switch in the medium load state, when the current temperature is between the third temperature threshold and the fourth temperature threshold, the rotation speeds of the first fan, the second fan, and the third fan are all linearly changed with the current temperature. For example, when the temperature rises by 1 degree, the rotation speeds of the first fan, the second fan, and the third fan all increase by 800 RPM. That is, when the current temperature is 90 degrees, the rotation speeds of the first fan, the second fan, and the third fan are all 800 RPM. When the current temperature is 91 degrees, the rotation speeds of the first fan, the second fan, and the third fan all increase to 1600 RPM. Among them, the rotation speeds of the first fan, the second fan, and the third fan gradually increase from 800 RPM to 1600 RPM, rather than directly jumping from 800 RPM to 1600 RPM, but there is a process of gradual acceleration. Among them, the rotation speeds of the first fan, the second fan, and the third fan are synchronized.

[0088] In step S309 of some embodiments, for the switch in the medium load state, when the current temperature is greater than or equal to the fourth temperature threshold, the rotation speeds of the first fan, the second fan, and the third fan are all fixed at the second rotation speed. For example, when the current temperature of the switch in the medium load is greater than 95 degrees, the rotation speeds of the first fan, the second fan, and the third fan are all fixed at 8000 RPM.

[0089] In step S307 to step S309 of the embodiments of the present application, when the current temperature of the switch is less than or equal to the third temperature threshold, the first fan stops running, and the rotation speeds of the second fan and the third fan are both fixed at the first rotation speed. When the current temperature of the switch is greater than or equal to the fourth temperature threshold, the rotation speeds of the first fan, the second fan, and the third fan are all fixed at the second rotation speed. This is convenient for medium load. When the current temperature is relatively low, the first fan stops running, and the rotation speeds of the second fan and the third fan are reduced, saving energy consumption. When the current temperature is relatively high, the first fan is enabled, and the rotation speeds of the first fan, the second fan, and the third fan are synchronously increased, thereby improving the heat dissipation efficiency of the switch. When the current temperature of the switch is between the third temperature threshold and the fourth temperature threshold, the first fan is enabled, and the rotation speeds of the first fan, the second fan, and the third fan all change linearly with the change of the current temperature. Among them, when the rotation speeds of the first fan, the second fan, and the third fan all start to change linearly with the current temperature, the first rotation speed is used as the starting rotation speed of the first fan, the second fan, and the third fan, and the second rotation speed is used as the ending rotation speed of the first fan, the second fan, and the third fan. For example: the first temperature threshold is 90 degrees. When the current temperature is less than 90 degrees, the rotation speeds of the first fan, the second fan, and the third fan are all 800 RPM. The second temperature threshold is 120 degrees. When the current temperature is greater than 120 degrees, the rotation speeds of the first fan, the second fan, and the third fan are all 8000 RPM. When the current temperature is between 90 degrees and 120 degrees, the rotation speeds of the first fan, the second fan, and the third fan all change linearly with the change of the current temperature. When the current temperature is 90 degrees, the rotation speeds of the first fan, the second fan, and the third fan are all 800 RPM; when the current temperature is 91 degrees, the rotation speeds of the first fan, the second fan, and the third fan are all 1040 RPM; when the current temperature is 92 degrees, the rotation speeds of the first fan, the second fan, and the third fan are all 1280 RPM; when the current temperature is 99 degrees, the rotation speeds of the first fan, the second fan, and the third fan are all 7760 RPM; when the current temperature is 120 degrees, the rotation speeds of the first fan, the second fan, and the third fan are all 8000 RPM. The linear change of the rotation speeds of the first fan, the second fan, and the third fan makes the heat dissipation efficiency more balanced, and there will be no problem of short-term temperature overshoot. At the same time, the starting rotation speed and the ending rotation speed of the linear change stage of the rotation speeds of the first fan, the second fan, and the third fan are the first rotation speed and the second rotation speed respectively. When the current temperature of the switch is close to the third temperature threshold or the fourth temperature threshold, the change of the rotation speeds of the first fan, the second fan, and the third fan of the switch is also relatively slow and gentle, avoiding the situation that the rotation speeds of the first fan, the second fan, and the third fan cause the fan noise to fluctuate greatly, thereby reducing the noise fluctuation and improving the comfort of the equipment operation.

[0090] In some embodiments, referring to Figure 6, after step S102, it may further include but is not limited to steps S401 to S404.

[0091] Step S401, obtaining the change rate of the current temperature through the temperature control module.

[0092] Step S402, when it is detected that the load level of the switch is low load, the change rate is greater than the preset temperature change threshold, and the current temperature is less than or equal to the third temperature threshold, controlling the rotation speeds of the second fan and the third fan to linearly change with the change of the current temperature until the rotation speeds of the second fan and the third fan reach the second rotation speed.

[0093] Step S403, when it is detected that the load level of the switch is medium load, the change rate is greater than the preset temperature change threshold, and the current temperature is less than or equal to the third temperature threshold, controlling the rotation speeds of the first fan, the second fan and the third fan to linearly change with the change of the current temperature until the rotation speeds of the first fan, the second fan and the third fan reach the second rotation speed.

[0094] Step S404, when it is detected that the load level of the switch is high load, the change rate is greater than the preset temperature change threshold, and the current temperature is less than or equal to the first temperature threshold, controlling the rotation speeds of the first fan, the second fan and the third fan to linearly change with the change of the current temperature until the rotation speeds of the first fan, the second fan and the third fan reach the second rotation speed.

[0095] In step S401 of some embodiments, the temperature sensor data is collected through the temperature control module, and then the change rate of the current temperature per unit time is obtained.

[0096] In step S402 of some embodiments, when the switch is in a low load state, when it is detected that the change rate is greater than the temperature change threshold and the current temperature has not reached the third temperature threshold, controlling the rotation speeds of the second fan and the third fan to start linearly changing with the change of the current temperature until the rotation speeds of the second fan and the third fan both reach the maximum rotation speed, that is, the second rotation speed.

[0097] In step S403 of some embodiments, when the switch is in a medium load state, when it is detected that the change rate is greater than the temperature change threshold and the current temperature has not reached the third temperature threshold, controlling the rotation speeds of the first fan, the second fan and the third fan to start linearly changing with the change of the current temperature until the rotation speeds of the first fan, the second fan and the third fan both reach the maximum rotation speed, that is, the second rotation speed.

[0098] In step S404 of some embodiments, when the switch is in a high-load state and it detects that the change rate is greater than the temperature change threshold and the current temperature has not reached the first temperature threshold, it controls the rotation speeds of the first fan, the second fan, and the third fan to start changing linearly with the current temperature until the rotation speeds of the first fan, the second fan, and the third fan reach the maximum rotation speed, i.e., the second rotation speed.

[0099] In steps S401 to S404 of the embodiments of the present application, by setting the temperature change threshold, when the temperature change rate of the switch is too large, the rotation speeds of the first fan, the second fan, and the third fan enter the stage of changing linearly with the current temperature in advance, thereby dissipating heat from the switch in a timely manner and preventing the switch from heating up too quickly and causing damage to each module inside the switch.

[0100] In some embodiments, referring to FIG. 7, after step S103, it may further include but is not limited to steps S501 to S502.

[0101] Step S501, obtain the type of the module to be measured of the switch.

[0102] Step S502, based on the type of the module to be measured of the switch, perform corresponding regulation on the fan assembly.

[0103] In step S501 of some embodiments, various modules are included in the switch, such as optical modules, CPU modules, etc., and the current temperature reflects the real-time temperature of the module to be measured.

[0104] In step S502 of some embodiments, based on the type of the module to be measured of the switch, regulate the fan assembly. There are multiple fan assemblies, and the multiple fan assemblies correspond to multiple modules of the switch one by one. For example: when in a high-load state, when the current temperature of the CPU module is greater than 80 degrees, the fan assembly of the CPU module is accelerated preferentially, that is, the fan assembly of the CPU module is accelerated first and then the fan assemblies of other modules are accelerated; when the current temperature of the optical module is greater than 70 degrees, the corresponding fan assembly of the optical module increases its speed, that is, when the current temperature of the optical module is less than 70 degrees, for every 1-degree increase, the rotation speed of the fan assembly corresponding to the optical module increases by 800 RPM, and when the current temperature of the optical module is greater than 70 degrees, for every 1-degree increase, the rotation speed of the fan assembly corresponding to the optical module increases by 1200 RPM until the fan assembly corresponding to the optical module reaches the maximum rotation speed, i.e., the second rotation speed.

[0105] In steps S501 to S502 of the embodiments of the present application, according to the characteristics of different modules inside the switch, perform corresponding regulation on the fan assembly of the module specifically. For example: when the CPU module calculates, it generates a large amount of heat and requires stronger heat dissipation, so it needs to be accelerated preferentially, and when the optical module has a high throughput, the temperature of the optical module rises relatively fast and requires additional heat dissipation, so it needs to increase its rotation speed, thereby improving the heat dissipation efficiency of the switch.

[0106] It should be noted that according to the characteristics of different modules, the fan assembly of the module is correspondingly regulated, which is also applicable under low load and high load.

[0107] In some embodiments, referring to Figure 8 , after step S103, it may further include but is not limited to steps S601 to S602.

[0108] Step S601: Compare the current temperatures of multiple modules with a preset fifth temperature threshold respectively.

[0109] Step S602: If the current temperatures of multiple modules are all greater than the fifth temperature threshold, control the rotation speeds of the first fan, the second fan, and the third fan corresponding to the multiple modules to be fixed at the second rotation speed.

[0110] In step S601 of some embodiments, compare the current temperatures of multiple modules with the fifth temperature threshold one by one.

[0111] In step S602 of some embodiments, when the current temperature of each module is greater than the fifth temperature threshold, increase the rotation speeds of the first fan, the second fan, and the third fan to the maximum, that is, the second rotation speed.

[0112] In steps S601 to S602 of the embodiments of the present application, by comparing the temperatures of each module of the switch with the fifth temperature threshold, it is further determined whether the global temperature of the switch is too high. If the temperatures of each module are all greater than the fifth threshold temperature, it means that the global temperature of the switch is too high at this time. At this time, the first fan, the second fan, and the third fan output at full power, so that the rotation speeds of the first fan, the second fan, and the third fan are quickly increased to the second rotation speed, preventing the global temperature of the switch from being too high and damaging each module inside the switch.

[0113] An embodiment of the second aspect of the present application further provides an electronic device, which includes a memory 902 and a processor 901. The memory 902 stores a computer program, and when the processor 901 executes the computer program, it implements the control method for switch heat dissipation in the embodiment of the first aspect above. This electronic device can be any intelligent terminal including a tablet computer, an in-vehicle computer, etc.

[0114] Referring to Figure 9 , Figure 9 is a schematic structural diagram of an electronic device in an embodiment. The electronic device includes:

[0115] The processor 901 can be implemented in the form of a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, etc., and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0116] The memory 902 can be implemented in the form of a read-only memory, a static storage device, a dynamic storage device, or a random access memory (RAM), etc. The memory 902 can store an operating system and other application programs. When implementing the technical solutions provided in the embodiments of this specification through software or firmware, the relevant program codes are stored in the memory 902 and are called by the processor 901 to execute the laser method for the TV frame in the embodiments of the present application;

[0117] The input / output interface 903 is used to implement information input and output;

[0118] The communication interface 904 is used to implement communication interaction between this device and other devices, and can communicate through wired or wireless means;

[0119] The bus 905 transmits information between various components of the device;

[0120] Among them, the processor 901, the memory 902, the input / output interface 903, and the communication interface 904 are communicatively connected to each other inside the device through the bus 905.

[0121] The third aspect embodiment of the present application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the control method for the switch heat dissipation in the first aspect embodiment above.

[0122] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory can include a high-speed random access memory, and can also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory optionally includes a memory remotely provided relative to the processor, and these remote memories can be connected to the processor through a network. Examples of the above networks include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.

[0123] The embodiments described in the embodiments of the present application are to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application. Those skilled in the art will know that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0124] Those skilled in the art can understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or combine certain steps, or different steps.

[0125] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0126] Those of ordinary skill in the art can understand that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, and their appropriate combinations.

[0127] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.

[0128] It should be understood that in this application, "at least one (item)" means one or more, and "a plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that there can be three relationships. For example, "A and / or B" can mean: only A exists, only B exists, and both A and B exist at the same time. Among them, A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one (item) of the following" or its similar expression refers to any combination of these items, including any combination of single item (item) or plural items (items). For example, at least one (item) of a, b, or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0129] In several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the above division of units is only a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of devices or units can be in electrical, mechanical or other forms.

[0130] The units described above as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0131] In addition, each functional unit in various embodiments of this application can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.

[0132] When an integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes: various media that can store programs, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks, or optical discs.

[0133] The preferred embodiments of the embodiments of this application have been described above with reference to the accompanying drawings, but this does not limit the scope of the rights of the embodiments of this application. Any modifications, equivalent replacements, and improvements made by those skilled in the art without departing from the scope and essence of the embodiments of this application shall fall within the scope of the rights of the embodiments of this application.

Claims

1. A heat dissipation control method for a switch, characterized in that Applied to a switch, the switch includes a fan assembly; The method includes: Obtaining the real-time temperature of the switch to obtain the current temperature; Obtaining the network traffic parameters of the switch, and based on the network traffic parameters, determining the load level of the switch; Determining a target regulation strategy based on the load level, and regulating the fan assembly based on the target regulation strategy and the current temperature.

2. The heat dissipation control method of the switch according to claim 1, characterized in that The load level includes high load. Determining a target regulation strategy based on the load level, and regulating the fan assembly based on the target regulation strategy and the current temperature includes: When it is detected that the load level of the switch is the high load and the current temperature is less than or equal to a preset first temperature threshold, controlling the rotation speed of the fan assembly to be fixed at a preset first rotation speed; When it is detected that the load level of the switch is the high load and the current temperature is between the first temperature threshold and a preset second temperature threshold, controlling the rotation speed of the fan assembly to linearly change with the change of the current temperature; When it is detected that the load level of the switch is the high load and the current temperature is greater than or equal to the second temperature threshold, controlling the rotation speed of the fan assembly to be fixed at a preset second rotation speed, where the first temperature threshold is less than the second temperature threshold, and the second rotation speed is greater than the first rotation speed.

3. The heat dissipation control method of the switch according to claim 2, characterized in that The load level further includes low load. The fan assembly includes a first fan, a second fan, and a third fan. Determining a target regulation strategy based on the load level, and regulating the fan assembly based on the target regulation strategy and the current temperature further includes: When it is detected that the load level of the switch is the low load and the current temperature is less than or equal to a preset third temperature threshold, controlling the first fan and the second fan to stop running, and controlling the rotation speed of the third fan to be fixed at the first rotation speed; When it is detected that the load level of the switch is the low load and the current temperature is between the third temperature threshold and a preset fourth temperature threshold, controlling the first fan to stop running, and controlling the rotation speeds of the second fan and the third fan to linearly change with the change of the current temperature, where the rotation speeds of the second fan and the third fan are synchronized; When it is detected that the load level of the switch is the low load and the current temperature is greater than or equal to the fourth temperature threshold, controlling the first fan to stop running, and controlling the rotation speeds of the second fan and the third fan to be fixed at the second rotation speed, where the third temperature threshold is less than the fourth temperature threshold, the third temperature threshold is greater than the first temperature threshold, and the fourth temperature threshold is greater than the second temperature threshold.

4. The heat dissipation control method of the switch according to claim 3, wherein The load level further includes medium load. Determining a target regulation strategy based on the load level, and regulating the fan assembly based on the target regulation strategy and the current temperature further includes: When it is detected that the load level of the switch is the medium load and the current temperature is less than or equal to a preset third temperature threshold, control the first fan to stop running, and control the rotation speeds of the second fan and the third fan to be fixed at the first rotation speed; When it is detected that the load level of the switch is the medium load and the current temperature is between the third temperature threshold and a preset fourth temperature threshold, control the rotation speeds of the first fan, the second fan, and the third fan to linearly change with the change of the current temperature, wherein the rotation speeds of the first fan, the second fan, and the third fan are synchronized; When it is detected that the load level of the switch is the medium load and the current temperature is greater than or equal to the fourth temperature threshold, control the rotation speeds of the first fan, the second fan, and the third fan to be fixed at the second rotation speed.

5. The heat dissipation control method of the switch according to claim 4, characterized in that, The network traffic parameters include the number of packets per second, the throughput, and the occupancy of the central processing unit. Based on the network traffic parameters, determining the load level of the switch includes: If the number of packets per second is less than a preset first threshold, the throughput is less than a preset second threshold, and the occupancy of the central processing unit is less than a preset third threshold, then determine that the switch is in a low load state; If the number of packets per second is greater than or equal to the first threshold, or the throughput is greater than or equal to the second threshold, or the occupancy of the central processing unit is greater than or equal to the third threshold, and the number of packets per second is less than or equal to a preset fourth threshold, the throughput is less than or equal to a preset fifth threshold, and the occupancy of the central processing unit is less than or equal to a preset sixth threshold, then determine that the switch is in a medium load state; If the number of packets per second is greater than the fourth threshold, or the throughput is greater than the fifth threshold, or the occupancy of the central processing unit is greater than the sixth threshold, then determine that the switch is in a high load state.

6. The heat dissipation control method of the switch according to claim 4, characterized in that The switch further includes a temperature control module. After determining the load level of the switch, it further includes: Obtain the change rate of the current temperature through the temperature control module; When it is detected that the load level of the switch is the low load, the change rate is greater than a preset temperature change threshold, and the current temperature is less than or equal to the third temperature threshold, control the rotation speeds of the second fan and the third fan to linearly change with the change of the current temperature until the rotation speeds of the second fan and the third fan reach the second rotation speed; When it is detected that the load level of the switch is the medium load, the change rate is greater than a preset temperature change threshold, and the current temperature is less than or equal to the third temperature threshold, control the rotation speeds of the first fan, the second fan, and the third fan to linearly change with the change of the current temperature until the rotation speeds of the first fan, the second fan, and the third fan reach the second rotation speed; When it is detected that the load level of the switch is the high load level, and the change rate is greater than the preset temperature change threshold, and the current temperature is less than or equal to the first temperature threshold, control the rotation speeds of the first fan, the second fan, and the third fan to linearly change with the change of the current temperature until the rotation speeds of the first fan, the second fan, and the third fan reach the second rotation speed.

7. The heat dissipation control method of the switch according to claim 1, characterized in that After determining the target regulation strategy based on the load level and regulating the fan assembly based on the target regulation strategy and the current temperature, it further includes: Obtain the type of the module to be measured of the switch; Based on the type of the module to be measured of the switch, perform corresponding regulation on the fan assembly.

8. The heat dissipation control method of the switch according to claim 3, characterized in that The switch includes multiple modules. After determining the target regulation strategy based on the load level and regulating the fan assembly based on the target regulation strategy and the current temperature, it further includes: Compare the current temperatures of the multiple modules with a preset fifth temperature threshold respectively; When the current temperatures of the multiple modules are all greater than the fifth temperature threshold, control the rotation speeds of the first fan, the second fan, and the third fan corresponding to the multiple modules to be fixed at the second rotation speed.

9. An electronic device, characterized in that, The electronic device includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, it implements the heat dissipation control method of the switch according to any one of claims 1 to 8.

10. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the heat dissipation control method of the switch according to any one of claims 1 to 8.