Ethernet traffic detection processing method, device, computer equipment and storage medium

By detecting and adjusting Ethernet traffic according to thresholds, communication failures and processor resource occupation in rail transit due to large traffic are solved, and the security and robustness of the equipment are improved.

CN115941554BActive Publication Date: 2024-11-26CRRC ZHUZHOU ELECTRIC LOCOMOTIVE RESEARCH INSTITUTE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111128581.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-26
Publication Date
2024-11-26
Estimated Expiration
2041-09-26

AI Technical Summary

Technical Problem

Communication failures and processor resource occupation caused by excessive traffic of Ethernet equipment in rail transit affect the normal operation of the equipment.

Method used

By detecting Ethernet traffic, if it is greater than the preset threshold, the controller's broadcast packet reception function is turned off and re-activated at an appropriate time, discarding unicast messages to avoid excessive processor load and triggering reset operations to deal with traffic abnormalities.

Benefits of technology

It effectively avoids the impact of large traffic on Ethernet devices, prevents communication failures and excessive processor resource use, and improves the safety of train operation and the robustness of equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115941554B_ABST
    Figure CN115941554B_ABST
Patent Text Reader

Abstract

The present invention provides an Ethernet traffic detection and processing method, device, computer equipment and storage medium, the method comprising obtaining Ethernet traffic; detecting the size of the Ethernet traffic; when the Ethernet traffic is greater than a preset broadcast packet traffic threshold, turning off the broadcast packet receiving function of the controller. By detecting the Ethernet traffic, the broadcast packet receiving function of the controller is turned off when the Ethernet traffic is greater than the preset broadcast packet traffic threshold, thereby avoiding the propagation of a large number of broadcast data packets, avoiding the impact of large traffic on Ethernet devices, avoiding Ethernet device anomalies caused by large traffic, and effectively improving the safety of train operation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Ethernet detection, and in particular to an Ethernet flow detection processing method, device, computer equipment and storage medium. Background Art

[0002] With the continuous development of rail transit, industrial Ethernet is gradually applied to train networks. Ethernet devices in rail transit often face communication failures due to the impact of excessive traffic, which leads to Ethernet communication failures. In addition, large traffic will also occupy a large amount of processor resources of Ethernet devices, affecting the normal operation of Ethernet devices.

[0003] How to avoid the impact of large traffic flows causing abnormalities in Ethernet devices and communication failures is an urgent problem that needs to be solved. Summary of the invention

[0004] Based on this, it is necessary to provide an Ethernet traffic detection and processing method, device, computer equipment and storage medium to address the above technical problems.

[0005] An Ethernet traffic detection and processing method, comprising:

[0006] Get Ethernet traffic;

[0007] Detecting the size of the Ethernet traffic;

[0008] When the Ethernet traffic is greater than a preset broadcast packet traffic threshold, the broadcast packet receiving function of the controller is turned off.

[0009] In one embodiment, when the Ethernet traffic is greater than a preset broadcast packet traffic threshold, the step of disabling the broadcast packet receiving function of the controller includes:

[0010] When the Ethernet traffic is greater than the preset broadcast packet traffic threshold, turning off the broadcast packet receiving function of the controller;

[0011] After a first preset time has passed since the broadcast packet receiving function of the controller was turned off, the broadcast packet receiving function of the controller is turned on.

[0012] In one embodiment, when the Ethernet traffic is greater than a preset broadcast packet traffic threshold, the step of disabling the broadcast packet receiving function of the controller further includes:

[0013] Obtaining Ethernet traffic within a second preset time;

[0014] Detecting whether the Ethernet traffic within the second preset time is greater than a preset unicast packet traffic threshold;

[0015] When the Ethernet traffic within the second preset time is greater than the preset unicast packet traffic threshold, the unicast messages thereafter are discarded.

[0016] In one embodiment, the step of obtaining Ethernet traffic includes:

[0017] The Ethernet traffic within the third preset time is acquired once at intervals of the third preset time.

[0018] In one embodiment, the step of obtaining Ethernet traffic includes:

[0019] Read the register of the controller to obtain the Ethernet traffic.

[0020] In one embodiment, after the step of detecting the size of the Ethernet traffic, the step further includes:

[0021] When the Ethernet traffic is equal to zero, a reset operation is triggered.

[0022] An Ethernet traffic detection and processing device, comprising:

[0023] Ethernet traffic acquisition module, used to acquire Ethernet traffic;

[0024] A flow size detection module, used to detect the size of the Ethernet flow;

[0025] The broadcast receiving closing module is used to close the broadcast packet receiving function of the controller when the Ethernet traffic is greater than a preset broadcast packet traffic threshold.

[0026] In one embodiment, the broadcast reception closing module includes:

[0027] A broadcast receiving shut-down unit, configured to shut down the broadcast packet receiving function of the controller when the Ethernet traffic is greater than the preset broadcast packet traffic threshold;

[0028] The broadcast receiving start unit is used to start the broadcast packet receiving function of the controller after a first preset time after the broadcast packet receiving function of the controller is turned off.

[0029] A computer device comprises a memory and a processor, wherein the memory stores a computer program, and wherein the processor implements the following steps when executing the computer program:

[0030] Get Ethernet traffic;

[0031] Detecting the size of the Ethernet traffic;

[0032] When the Ethernet traffic is greater than a preset broadcast packet traffic threshold, the broadcast packet receiving function of the controller is turned off.

[0033] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0034] Get Ethernet traffic;

[0035] Detecting the size of the Ethernet traffic;

[0036] When the Ethernet traffic is greater than a preset broadcast packet traffic threshold, the broadcast packet receiving function of the controller is turned off.

[0037] The above-mentioned Ethernet traffic detection and processing method, device, computer equipment and storage medium detect the Ethernet traffic and shut down the broadcast packet receiving function of the controller when the Ethernet traffic is greater than the preset broadcast packet traffic threshold, thereby avoiding the propagation of a large number of broadcast data packets, avoiding the impact of large traffic on Ethernet devices, avoiding Ethernet device abnormalities caused by large traffic, and effectively improving the safety of train operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 A schematic diagram of a flow chart of an Ethernet traffic detection and processing method in one embodiment;

[0039] Figure 2 It is a structural block diagram of an Ethernet traffic detection and processing device in one embodiment;

[0040] Figure 3 is an internal structure diagram of a computer device in one embodiment;

[0041] Figure 4 FIG. 4 is a flow chart of an Ethernet traffic detection and processing method in another embodiment. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0043] Embodiment 1

[0044] In this embodiment, Figure 1 As shown, a method for detecting and processing Ethernet traffic is provided, which includes:

[0045] Step 110, obtaining Ethernet traffic.

[0046] In this step, the current Ethernet traffic is obtained. The Ethernet traffic can be obtained by reading the register of the Ethernet controller or by detecting with a network sniffer.

[0047] In one embodiment, the step of obtaining the Ethernet traffic includes: reading a register of a controller to obtain the Ethernet traffic. In this embodiment, the register of an Ethernet controller (MAC) is read to obtain and calculate the PPS (Pulse Per Second) level of the Ethernet traffic, and the PPS level of the Ethernet traffic is used to reflect the size of the Ethernet traffic.

[0048] Step 120, detecting the size of the Ethernet traffic.

[0049] In this embodiment, the size of the Ethernet traffic obtained in the above steps is detected to detect whether the Ethernet traffic is greater than a preset broadcast packet traffic threshold.

[0050] Step 130: When the Ethernet traffic is greater than a preset broadcast packet traffic threshold, the broadcast packet receiving function of the controller is turned off.

[0051] In this embodiment, the controller is an Ethernet controller. When the Ethernet controller turns on the broadcast packet receiving function, it can receive broadcast packets in the Ethernet. When the Ethernet controller turns off the broadcast packet receiving function, the Ethernet controller stops receiving broadcast packets. In this embodiment, when the Ethernet traffic is greater than the preset broadcast packet traffic threshold, it indicates that the Ethernet traffic is too large at this time. Therefore, the broadcast packet receiving function of the Ethernet controller is turned off to reduce the impact of the large traffic on the Ethernet controller.

[0052] In the above embodiment, by detecting Ethernet traffic, the broadcast packet receiving function of the controller is turned off when the Ethernet traffic is greater than the preset broadcast packet traffic threshold, thereby avoiding the propagation of a large number of broadcast data packets, avoiding the impact of large traffic on Ethernet devices, and avoiding Ethernet device abnormalities caused by large traffic, thereby effectively improving the safety of train operation.

[0053] In one embodiment, when the Ethernet traffic is greater than a preset broadcast packet traffic threshold, the step of turning off the broadcast packet receiving function of the controller includes: when the Ethernet traffic is greater than the preset broadcast packet traffic threshold, turning off the broadcast packet receiving function of the controller; after a first preset time after turning off the broadcast packet receiving function of the controller, turning on the broadcast packet receiving function of the controller.

[0054] In this embodiment, after the broadcast packet receiving function of the controller is turned off, the broadcast packet receiving function of the controller is turned on again after a first preset time, so that the impact of a large flow on the Ethernet controller can be avoided, and the broadcast packet receiving function can be turned on again so that the Ethernet controller receives the broadcast packet and avoids the loss of the broadcast packet. In this way, the impact of a large flow can be reduced and the loss of the broadcast packet can be avoided.

[0055] In one embodiment, the first preset time is 1 second. In this embodiment, when the Ethernet traffic is greater than the preset broadcast packet traffic threshold, the broadcast packet receiving function of the controller is turned off, and 1 second after the broadcast packet receiving function of the controller is turned off, the broadcast packet receiving function of the controller is turned on. In this way, the impact of large traffic can be reduced and the loss of broadcast packets can be avoided.

[0056] In one embodiment, when the Ethernet traffic is greater than a preset broadcast packet traffic threshold, the step of shutting down the broadcast packet receiving function of the controller also includes: obtaining the Ethernet traffic within a second preset time; detecting whether the Ethernet traffic within the second preset time is greater than a preset unicast packet traffic threshold; when the Ethernet traffic within the second preset time is greater than the preset unicast packet traffic threshold, discarding the unicast messages thereafter.

[0057] In this embodiment, Ethernet traffic is periodically obtained. After the broadcast packet receiving function of the controller is turned off, the Ethernet traffic in the next cycle, that is, the Ethernet traffic in the second preset time, is obtained. The second preset time is the time interval or cycle for obtaining the Ethernet traffic. After the broadcast packet receiving function of the controller is turned off, the Ethernet controller does not receive broadcast packets, but can receive unicast packets. Therefore, after obtaining the Ethernet traffic in the second preset time, it is detected whether the Ethernet traffic in the second preset time is greater than the preset unicast packet traffic threshold. When the Ethernet traffic in the second preset time is greater than the preset unicast packet traffic threshold, it indicates that the unicast packet traffic is large. Therefore, the subsequent unicast messages are discarded and not processed, so that the Ethernet data does not occupy a large amount of processor load. Since the preset unicast packet traffic threshold is greater than the preset broadcast packet traffic threshold, when the Ethernet traffic in the second preset time is greater than the preset unicast packet traffic threshold, it indicates that the unicast packet traffic of the Ethernet in this cycle is large. Therefore, the unicast messages need to be discarded to avoid excessive equipment load.

[0058] In one embodiment, the second preset time is 1 second. In this embodiment, after turning off the broadcast packet receiving function of the controller, the Ethernet traffic within the previous second is obtained, and it is detected whether the Ethernet traffic within the previous second is greater than the preset unicast packet traffic threshold. When the Ethernet traffic within the previous second is greater than the preset unicast packet traffic threshold, it indicates that the unicast packet traffic is large. Therefore, the subsequent unicast messages are discarded and not processed, so that the Ethernet data does not occupy a large amount of processor load.

[0059] In one embodiment, the step of acquiring Ethernet traffic includes: acquiring the Ethernet traffic within the third preset time once at intervals of a third preset time.

[0060] In this embodiment, Ethernet traffic is periodically obtained, and the interval for obtaining Ethernet traffic each time is the third preset time, and the Ethernet traffic obtained each time is the sum of the traffic within the third preset time period. In this embodiment, the third preset time is the time interval or period for obtaining Ethernet traffic. In one embodiment, the third preset time is 1 second, so that the register of the Ethernet controller is read every 1 second, and the Ethernet traffic within 1 second is obtained once, so that the Ethernet traffic can be detected in real time, making the detection of Ethernet traffic more timely and accurate.

[0061] In one embodiment, the step of detecting the size of the Ethernet traffic further includes: when the Ethernet traffic is equal to zero, triggering a reset operation.

[0062] In this embodiment, the size of the Ethernet traffic is detected to detect whether the Ethernet traffic is zero, and when the Ethernet traffic is equal to zero, a reset operation is triggered. The reset operation is an operation on the PHY transceiver, so that the PHY transceiver is reset.

[0063] In this embodiment, when it is detected that the Ethernet traffic acquired this time is 0, it indicates that the Ethernet data reception is abnormal, and a reset strategy is triggered to perform a reset operation on a PHY (Physical, physical interface) transceiver.

[0064] Embodiment 2

[0065] In this embodiment, the program is mainly used to control the MAC (Ethernet controller) and PHY (physical interface transceiver). Figure 4 :

[0066] In this embodiment, Ethernet traffic is calculated at the PPS level, that is, the acquisition and detection of Ethernet traffic is performed periodically, that is, once per second, and the policy is determined based on the number of Ethernet data packets received per second. Figure 4 Detailed description of the Ethernet traffic detection and processing process of the terminal device:

[0067] First, read the MAC Ethernet controller register to obtain and calculate the Ethernet traffic PPS level;

[0068] Subsequently, the diagnosis is made based on the PPS level, and the strategy is implemented based on the following test results:

[0069] ① If the PPS flow rate in the previous second is 0, the Ethernet data reception is abnormal, triggering the reset strategy and resetting the PHY transceiver;

[0070] ② If the PPS traffic exceeds the broadcast packet traffic threshold within 1 second, the broadcast packet receiving function of the MAC controller is turned off and the broadcast packet receiving function is turned on again at the beginning of the next second;

[0071] ③ If the broadcast packet receiving function is turned off, and the PPS traffic within 1 second exceeds the unicast packet traffic threshold (unicast packet traffic threshold > broadcast packet traffic threshold), the subsequent unicast messages will be discarded and not processed, ensuring that Ethernet data will not occupy a large amount of processor load.

[0072] In the above embodiment, it can be ensured that the terminal device will not have an Ethernet communication failure when it is impacted by a large flow, or that the normal operation of other functions of the device will not be affected due to a large amount of processor load, thereby improving the safety of train operation. By monitoring the Ethernet flow level, recovery measures can be taken when an Ethernet communication failure occurs, thereby improving the robustness of the device.

[0073] It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0074] Embodiment 4

[0075] In this embodiment, Figure 2 As shown, an Ethernet traffic detection and processing device is provided, comprising:

[0076] The Ethernet traffic acquisition module 210 is used to acquire Ethernet traffic;

[0077] A traffic size detection module 220, used to detect the size of the Ethernet traffic;

[0078] The broadcast receiving closing module 230 is used to close the broadcast packet receiving function of the controller when the Ethernet traffic is greater than a preset broadcast packet traffic threshold.

[0079] In one embodiment, the broadcast reception closing module includes:

[0080] A broadcast receiving shut-down unit, configured to shut down the broadcast packet receiving function of the controller when the Ethernet traffic is greater than the preset broadcast packet traffic threshold;

[0081] The broadcast receiving start unit is used to start the broadcast packet receiving function of the controller after a first preset time after the broadcast packet receiving function of the controller is turned off.

[0082] In one embodiment, the Ethernet traffic detection processing device further includes:

[0083] A second Ethernet traffic acquisition module, used to acquire the Ethernet traffic within a second preset time;

[0084] A unicast packet detection module, used to detect whether the Ethernet traffic within the second preset time is greater than a preset unicast packet traffic threshold;

[0085] The unicast message discarding module is used to discard the unicast messages after the second preset time when the Ethernet traffic within the second preset time is greater than the preset unicast packet traffic threshold.

[0086] In one embodiment, the Ethernet traffic acquisition module is further configured to acquire the Ethernet traffic within the third preset time once every third preset time.

[0087] In one embodiment, the Ethernet traffic acquisition module is further used to read a register of a controller to acquire the Ethernet traffic.

[0088] In one embodiment, the Ethernet traffic detection processing device further includes:

[0089] The reset module is used to trigger a reset operation when the Ethernet traffic is equal to zero.

[0090] For the specific definition of the Ethernet traffic detection and processing device, please refer to the definition of the Ethernet traffic detection and processing method above, which will not be repeated here. Each unit in the above-mentioned Ethernet traffic detection and processing device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned units can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned units.

[0091] Embodiment 5

[0092] In this embodiment, a computer device is provided, and the computer device is an Ethernet device. Its internal structure diagram can be shown as follows: Figure 4As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program, and the non-volatile storage medium is deployed with a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with other computer devices deployed with application software. When the computer program is executed by the processor, an Ethernet traffic detection processing method is implemented. The display screen of the computer device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covered on the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse, etc.

[0093] Those skilled in the art will understand that Figure 3 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0094] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0095] Get Ethernet traffic;

[0096] Detecting the size of the Ethernet traffic;

[0097] When the Ethernet traffic is greater than a preset broadcast packet traffic threshold, the broadcast packet receiving function of the controller is turned off.

[0098] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0099] When the Ethernet traffic is greater than the preset broadcast packet traffic threshold, turning off the broadcast packet receiving function of the controller;

[0100] After a first preset time has passed since the broadcast packet receiving function of the controller was turned off, the broadcast packet receiving function of the controller is turned on.

[0101] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0102] Obtaining Ethernet traffic within a second preset time;

[0103] Detecting whether the Ethernet traffic within the second preset time is greater than a preset unicast packet traffic threshold;

[0104] When the Ethernet traffic within the second preset time is greater than the preset unicast packet traffic threshold, the unicast messages thereafter are discarded.

[0105] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0106] The Ethernet traffic within the third preset time is acquired once at intervals of the third preset time.

[0107] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0108] Read the register of the controller to obtain the Ethernet traffic.

[0109] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0110] When the Ethernet traffic is equal to zero, a reset operation is triggered.

[0111] Embodiment 6

[0112] In this embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented:

[0113] Get Ethernet traffic;

[0114] Detecting the size of the Ethernet traffic;

[0115] When the Ethernet traffic is greater than a preset broadcast packet traffic threshold, the broadcast packet receiving function of the controller is turned off.

[0116] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0117] When the Ethernet traffic is greater than the preset broadcast packet traffic threshold, turning off the broadcast packet receiving function of the controller;

[0118] After a first preset time has passed since the broadcast packet receiving function of the controller was turned off, the broadcast packet receiving function of the controller is turned on.

[0119] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0120] Obtaining Ethernet traffic within a second preset time;

[0121] Detecting whether the Ethernet traffic within the second preset time is greater than a preset unicast packet traffic threshold;

[0122] When the Ethernet traffic within the second preset time is greater than the preset unicast packet traffic threshold, the unicast messages thereafter are discarded.

[0123] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0124] The Ethernet traffic within the third preset time is acquired once at intervals of the third preset time.

[0125] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0126] Read the register of the controller to obtain the Ethernet traffic.

[0127] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0128] When the Ethernet traffic is equal to zero, a reset operation is triggered.

[0129] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0130] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0131] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A method for detecting and processing Ethernet traffic, characterized in that: include: Get Ethernet traffic; Detecting the size of the Ethernet traffic; When the Ethernet traffic is greater than a preset broadcast packet traffic threshold, turning off the broadcast packet receiving function of the controller; When the Ethernet traffic is greater than a preset broadcast packet traffic threshold, the step of shutting down the broadcast packet receiving function of the controller includes: When the Ethernet traffic is greater than the preset broadcast packet traffic threshold, turning off the broadcast packet receiving function of the controller; After a first preset time after the broadcast packet receiving function of the controller is turned off, turning on the broadcast packet receiving function of the controller; When the Ethernet traffic is greater than a preset broadcast packet traffic threshold, the step of disabling the broadcast packet receiving function of the controller further includes: Obtaining Ethernet traffic within a second preset time; Detecting whether the Ethernet traffic within the second preset time is greater than a preset unicast packet traffic threshold; When the Ethernet traffic within the second preset time is greater than the preset unicast packet traffic threshold, the unicast messages thereafter are discarded.

2. The method according to claim 1, characterized in that: The step of obtaining Ethernet traffic comprises: The Ethernet traffic within the third preset time is acquired once at intervals of the third preset time.

3. The method according to claim 1, characterized in that The step of obtaining Ethernet traffic comprises: Read the register of the controller to obtain the Ethernet traffic.

4. The method according to any one of claims 1 to 3, characterized in that The step of detecting the size of the Ethernet traffic also includes: When the Ethernet traffic is equal to zero, a reset operation is triggered.

5. An Ethernet traffic detection and processing device, characterized in that: The Ethernet traffic detection and processing method according to any one of claims 1 to 4 comprises: Ethernet traffic acquisition module, used to acquire Ethernet traffic; A flow size detection module, used to detect the size of the Ethernet flow; A broadcast receiving closing module, used to close the broadcast packet receiving function of the controller when the Ethernet traffic is greater than a preset broadcast packet traffic threshold; The broadcast reception closing module includes: A broadcast receiving shut-down unit, configured to shut down the broadcast packet receiving function of the controller when the Ethernet traffic is greater than the preset broadcast packet traffic threshold; The broadcast receiving starting unit is used to start the broadcast packet receiving function of the controller after a first preset time after the broadcast packet receiving function of the controller is turned off.

6. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.