Message receiving storm suppression method and suppression device, FPGA chip and medium

By using programmable logic devices in the smart substation to obtain message counts and filter storm messages, the resource consumption problem caused by message receiving storms in the smart substation is solved, and a more efficient storm suppression effect is achieved.

CN118890322APending Publication Date: 2024-11-01CYG SUNRI CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410970354.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-11-01

AI Technical Summary

Technical Problem

In smart substations, message receiving storms cause serious resource consumption of message processors. The existing technology mainly relies on filtering the effectiveness analysis of storm messages, but this process occupies a large amount of resources.

Method used

The programmable logic device obtains the current message count, determines whether it is a storm message based on the count, and sends it to the message processor when it is not a storm message, so as to filter the storm message and reduce the resource of the message processor Consumption.

Benefits of technology

It effectively reduces the resource consumption of the message processor during the storm suppression process, suppresses the interference of the storm packets to the processor, and improves transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118890322A_ABST
    Figure CN118890322A_ABST
Patent Text Reader

Abstract

The invention discloses a message receiving storm suppression method and suppression device, an FPGA chip and a medium, the message receiving storm suppression method is applied to a programmable logic device, and the message receiving storm suppression method comprises the steps of obtaining a message count of a current message received at a current moment; determining whether the current message is a storm message according to the message count; and when determining that the current message is a non-storm message according to the message count, sending the current message to a message processor. According to the method, the storm message is filtered based on the programmable logic device, the message processor does not need to analyze the effectiveness of the message, the resource consumption of the message processor in the message receiving storm suppression process is reduced, and the interference of the storm message on the message processor is suppressed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of smart substations, and in particular relates to a message reception storm suppression method, suppression device, FPGA chip and medium. Background Art

[0002] The transmission of sampled value information, equipment input information, and operation commands in smart substations is completed through the process layer network. Therefore, the main transmissions in the process layer network are sampled value (SV) messages and generic object oriented substation event (GOOSE) messages. SV messages contain all sampling information, and their main feature is that the flow rate is large during normal operation and there is no burst flow. GOOSE messages contain information such as equipment input and operation commands. Their main feature is that the flow rate is small during normal operation, but the burst flow rate is large. These messages with different characteristics will have different traffic characteristics when transmitted on the process layer network. If the network is not configured properly, unreasonable message transmission will occur, causing a message reception storm.

[0003] At present, the suppression measures for message receiving storm mainly rely on the message processor to analyze the validity of the received messages and filter the invalid messages obtained by the analysis. However, when storm messages appear in the network, the validity analysis of the storm messages will occupy a large amount of resources of the message processor, resulting in serious resource consumption of the message processor. Summary of the invention

[0004] In view of this, the embodiments of the present application provide a message reception storm suppression method, suppression device, FPGA chip and medium to overcome the above problems of the prior art.

[0005] In a first aspect, an embodiment of the present application provides a method for suppressing a message receiving storm, which is applied to a programmable logic device. The method for suppressing a message receiving storm includes: obtaining a message count of a current message received at a current moment; determining whether the current message is a storm message based on the message count; and when it is determined that the current message is a non-storm message based on the message count, sending the current message to a message processor.

[0006] Among them, in some optional embodiments, before obtaining the message count of the current message received at the current moment, the message reception storm suppression method also includes: determining whether the current message is a valid message; obtaining the message count of the current message received at the current moment, including: when determining that the current message is a valid message, obtaining the message count of the current message.

[0007] Among them, in some optional embodiments, determining whether the current message is a valid message includes: obtaining a current message identifier of the current message; when the current message identifier matches a preset message identifier, determining that the current message is a valid message; when the current message identifier does not match the preset message identifier, determining that the current message is an invalid message.

[0008] Among them, in some optional embodiments, before obtaining the current message identifier of the current message, the message receiving storm suppression method also includes: sending an acquisition instruction to the message processor, the acquisition instruction is used to instruct the message processor to send a pre-stored preset message configuration table to the programmable logic device, the preset message configuration table includes a preset message identifier; receiving the preset message configuration table returned by the message processor.

[0009] Among them, in some optional embodiments, the preset message configuration table also includes a preset counting threshold corresponding to the preset message identifier, and determines whether the current message is a storm message based on the message count, including: when the message count is greater than or equal to the preset counting threshold, determining that the current message is a storm message; when the message count is less than the preset counting threshold, determining that the current message is a non-storm message.

[0010] Among them, in some optional embodiments, when the current message is determined to be a valid message, the message count of the current message is obtained, including: when the current message is determined to be a valid message, within a preset time period, the received valid messages are numbered according to preset rules to obtain a message number, and the preset rules are used to characterize the rule of numbering the received valid messages sent by the same device in the order of receipt; the current message number of the current message is determined as the message count of the current message.

[0011] Among them, in some optional embodiments, the message reception storm suppression method further includes: when it is determined according to the message count that the current message is a storm message, discarding the current message.

[0012] In the second aspect, the embodiment of the present application provides a message receiving storm suppression device, which is applied to a programmable logic device, and includes an acquisition module, a first determination module, and a first sending module. The acquisition module is used to obtain the message count of the current message received at the current moment; the first determination module is used to determine whether the current message is a storm message according to the message count; the first sending module is used to send the current message to the message processor when the current message is determined to be a non-storm message according to the message count.

[0013] In a third aspect, an embodiment of the present application provides an FPGA chip, comprising a memory; one or more processors coupled to the memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the message reception storm suppression method provided in the first aspect above.

[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a program code is stored. The program code can be called by a processor to execute the message reception storm suppression method provided in the first aspect above.

[0015] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a computer device, the computer device executes the message reception storm suppression method provided in the first aspect above.

[0016] The solution provided in the present application obtains the message count of the current message received at the current moment through a programmable logic device, and determines whether the current message is a storm message based on the message count, and when the current message is determined to be a non-storm message based on the message count, sends the current message to the message processor, thereby realizing filtering of storm messages based on programmable logic devices, eliminating the need for the message processor to analyze the validity of the messages, reducing the resource consumption of the message processor during the message reception storm suppression process, and suppressing the interference of storm messages on the message processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0018] Figure 1 A schematic diagram of a scenario of a message receiving storm suppression system provided in an embodiment of the present application is shown.

[0019] Figure 2 Another scenario schematic diagram of the message receiving storm suppression system provided in an embodiment of the present application is shown.

[0020] Figure 3 A flow chart of a method for suppressing a message receiving storm provided in an embodiment of the present application is shown.

[0021] Figure 4 Another flow chart of the method for suppressing a message receiving storm provided in an embodiment of the present application is shown.

[0022] Figure 5 A structural block diagram of a message receiving storm suppression device provided in an embodiment of the present application is shown.

[0023] Figure 6 A functional block diagram of the FPGA chip provided in an embodiment of the present application is shown.

[0024] Figure 7 A computer-readable storage medium provided in an embodiment of the present application for storing or carrying a program code for implementing a method for suppressing a message reception storm provided in an embodiment of the present application is shown.

[0025] Figure 8 A computer program product provided in an embodiment of the present application and used to store or carry program codes for implementing the message reception storm suppression method provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0026] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0027] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0028] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0029] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0030] In addition, in the description of the present application, the terms "first", "second", "third", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

[0031] The transmission of sampled value information, equipment input information, and operation commands in smart substations is completed through the process layer network. Therefore, the main transmissions in the process layer network are sampled value (SV) messages and generic object oriented substation event (GOOSE) messages. SV messages contain all sampling information, and their main feature is that the flow rate is large during normal operation and there is no burst flow. GOOSE messages contain information such as equipment input and operation commands. Their main feature is that the flow rate is small during normal operation, but the burst flow rate is large. These messages with different characteristics will have different traffic characteristics when transmitted on the process layer network. If the network is not configured properly, unreasonable message transmission will occur, causing a message reception storm.

[0032] At present, the suppression measures for message receiving storm mainly rely on the message processor to analyze the validity of the received messages and filter the invalid messages obtained by the analysis. However, when storm messages appear in the network, the validity analysis of the storm messages will occupy a large amount of resources of the message processor, resulting in serious resource consumption of the message processor.

[0033] In response to the above-mentioned problems, the message reception storm suppression method, suppression device, FPGA chip and medium provided in the embodiments of the present application obtain the message count of the current message received at the current moment through a programmable logic device, and determine whether the current message is a storm message based on the message count, and when the current message is determined to be a non-storm message based on the message count, send the current message to the message processor, thereby realizing filtering of storm messages based on programmable logic devices, eliminating the need for the message processor to analyze the validity of the messages, reducing the resource consumption of the message processor during the message reception storm suppression process, and suppressing the interference of storm messages on the message processor.

[0034] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0035] See also Figure 1 , which shows a schematic diagram of an application scenario of the message receiving storm suppression system provided in an embodiment of the present application. The message receiving storm suppression system may include a port physical layer (Physical Layer, PHY) chip 100, a programmable logic device 200 and a message processor 300. The programmable logic device 200 is communicatively connected to the PHY chip 100 and the message processor 300, and exchanges data with the PHY chip 100 and the message processor 300.

[0036] The PHY chip 100 connects a data link layer device (MAC) to a physical medium, such as an optical fiber or a copper cable. A typical PHY chip 100 includes a physical coding sublayer (PCS) and a physical media dependent sublayer (PMD). The PCS encodes and decodes the information being sent and received, in order to make it easier for the receiver to recover the signal.

[0037] The PHY chip 100 may be a PHY chip of a substation measurement and control device or a PHY chip of a substation protection device, etc. The type of the PHY chip 100 is not limited here and may be specifically configured according to actual needs.

[0038] The programmable logic device 200 may be a field programmable gate array (FPGA) chip or a complex programmable logic device (CPLD) chip, etc. The type of the programmable logic device 200 is not limited here and can be specifically set according to actual needs.

[0039] In some embodiments, the PHY chip 100 can receive process layer messages through an electrical port or an optical port, and send the received process layer messages to the programmable logic device 200 through a reduced media independent interface (RMII), and the programmable logic device 200 sends the received process layer messages to the message processor 300 through a local bus (Local Bus) interface.

[0040] In some embodiments, Figure 2 As shown, in Figure 1 Based on the message receiving storm suppression system shown, the programmable logic device 200 may include RMII control logic, message receiving current limiting control logic, message receiving control logic and message receiving buffer logic.

[0041] Among them, the message receiving current limiting control logic may include a loss point configuration module and a message counting comparison module.

[0042] The RMII control logic can be used to receive process layer messages sent by the PHY chip 100 via RMII, and perform format conversion on the process layer messages to obtain preset format data, and send the preset format data to the message counting comparison module and the message receiving control logic. The message counting comparison module responds to the received preset format data, counts the preset format data, obtains the message count, and compares the message count with the preset count threshold obtained from the loss point configuration module to obtain the comparison result, and feeds back the message identifier to the message receiving control logic based on the comparison result. The message receiving control logic processes the preset format data based on the received message identifier.

[0043] The preset format data is 32 bits of data output in 16 clock cycles, and the comparison result includes a first result that the message count is greater than or equal to a preset count threshold, and a second result that the message count is less than the preset count threshold.

[0044] The message identifier includes a storm message identifier and a non-storm message identifier. The message count comparison module feeds back the storm message identifier to the message receiving control logic according to the first result, and the message count comparison module feeds back the non-storm message identifier to the message receiving control logic according to the second result.

[0045] When the message receiving control logic receives a storm message identifier, it discards the preset format data, that is, it does not store the process layer message; when the message receiving control logic receives a non-storm message identifier, it stores the preset format data to the message receiving cache logic, that is, it stores the process layer message to the message receiving cache logic, so that the message receiving cache logic sends the received process layer message to the message processor 300 through the Local Bus interface.

[0046] See also Figure 3 , which shows a flow chart of a method for suppressing a message receiving storm provided by an embodiment of the present application. In a specific embodiment, the method for suppressing a message receiving storm can be applied to Figure 1 The programmable logic device 200 in the message receiving storm suppression system shown in FIG. Figure 3 The process shown is described in detail, and the message reception storm suppression method may include the following steps 110 to 130.

[0047] Step 110: Obtain the message count of the current message received at the current moment.

[0048] In an embodiment of the present application, when the programmable logic device receives a process layer message through the process layer network, the programmable logic device can obtain a message count of a current message received at a current moment.

[0049] Among them, the current message is a process layer message, and the process layer message is a GOOSE message or a SV message, etc.

[0050] Specifically, when the programmable logic device receives a GOOSE message or a SV message through a process layer network, it can number the received messages according to preset rules within a preset time length to obtain a message number, and determine the current message number of the current message as the message count of the current message. The messages are counted according to the order in which the messages are received, thereby improving the counting accuracy of the messages.

[0051] The preset rule may be used to represent a rule for numbering received messages sent by the same device in the order in which they are received.

[0052] The preset duration may be a first preset duration associated with the window period of the GOOSE message, or a second preset duration associated with the window period of the SV message. For example, when the preset duration is the first preset duration, the window period of the GOOSE message is 250 microseconds (μs), and the first preset duration may be 250μs. For another example, when the preset duration is the second preset duration, the window period of the SV message is 1 millisecond (ms), and the second preset duration may be 1ms, etc., which are not limited here.

[0053] In some implementations, the message number includes a GOOSE message number, the current message includes a current GOOSE message, the current message number includes a current GOOSE message number, and the message count includes a first message count.

[0054] When a programmable logic device receives a GOOSE message through a process layer network, within a first preset time length, the received GOOSE message can be numbered according to a preset rule to obtain a GOOSE message number, and the current GOOSE message number of the current GOOSE message can be determined as the first message count of the current GOOSE message.

[0055] In some implementations, the message number includes an SV message number, the current message includes a current SV message, the current message number includes a current SV message number, and the message count includes a second message count.

[0056] When the programmable logic device receives an SV message through the process layer network, within the second preset time length, the received SV message can be numbered according to the preset rules to obtain the SV message number, and the current SV message number of the current SV message can be determined as the second message count of the current SV message.

[0057] Step 120: Determine whether the current message is a storm message according to the message count.

[0058] In an embodiment of the present application, after the programmable logic device obtains the message count of the current message received at the current moment, it can determine whether the current message is a storm message based on the message count.

[0059] Specifically, after the programmable logic device obtains the message count of the current message received at the current moment, it can determine whether the current message is a storm message according to the message count and a preset count threshold.

[0060] The preset counting threshold may be used to indicate the minimum message count for indicating that the current message is a storm message.

[0061] When the message count is greater than or equal to the preset count threshold, it is determined that the current message is a storm message; when the message count is less than the preset count threshold, it is determined that the current message is a non-storm message.

[0062] Step 130: When it is determined according to the message count that the current message is a non-storm message, the current message is sent to the message processor.

[0063] In an embodiment of the present application, when the programmable logic device determines that the current message is a non-storm message based on the message count, the current message can be sent to the message processor so that the message processor processes the current message, thereby realizing filtering of storm messages based on the programmable logic device. There is no need for the message processor to analyze the validity of the message, reducing the resource consumption of the message processor during the message reception storm suppression process, and suppressing the interference of storm messages on the message processor.

[0064] In some implementations, when the programmable logic device determines that the current message is a storm message based on the message count, the current message can be discarded, thereby avoiding the transmission of storm messages occupying message transmission resources, which is beneficial to improving the transmission efficiency of message transmission.

[0065] The solution provided in the present application obtains the message count of the current message received at the current moment through a programmable logic device, and determines whether the current message is a storm message based on the message count, and when the current message is determined to be a non-storm message based on the message count, sends the current message to the message processor, thereby realizing filtering of storm messages based on programmable logic devices, eliminating the need for the message processor to analyze the validity of the messages, reducing the resource consumption of the message processor during the message reception storm suppression process, and suppressing the interference of storm messages on the message processor.

[0066] See also Figure 4 , which shows a flow chart of a message receiving storm suppression method provided by another embodiment of the present application. In a specific embodiment, the message receiving storm suppression method can be applied to Figure 1The programmable logic device 200 in the message receiving storm suppression system shown in FIG. Figure 4 The process shown is described in detail, and the message reception storm suppression method may include the following steps 210 to 240.

[0067] Step 210: Determine whether the current message is a valid message.

[0068] In this embodiment, when the programmable logic device receives a process layer message through the process layer network, it can determine whether the current message is a valid message to avoid transmitting an invalid message, which is beneficial to improving the transmission efficiency of message transmission.

[0069] Specifically, when the programmable logic device receives a process layer message through the process layer network, it can obtain a current message identifier of the current message, and determine whether the current message is a valid message according to the current message identifier.

[0070] The current message identifier may include a device identifier and / or a device address, etc., for representing a device sending the current message, which is not limited here.

[0071] When the current message identifier matches the preset message identifier, the current message is determined to be a valid message; when the current message identifier does not match the preset message identifier, the current message is determined to be an invalid message.

[0072] In some embodiments, when a programmable logic device receives a process layer message through a process layer network, it can send an acquisition instruction to a message processor. The message processor receives and responds to the acquisition instruction, and sends a pre-stored preset message configuration table to the programmable logic device. The programmable logic device receives the preset message configuration table returned by the message processor, obtains the current message identifier of the current message, and determines whether the current message is a valid message based on the current message identifier and the preset message identifier in the preset message configuration table.

[0073] In some embodiments, when a programmable logic device receives a process layer message through a process layer network, a timing logic can be constructed based on a hardware description language (HDL) and an acquisition instruction can be sent to a message processor. The message processor receives and responds to the acquisition instruction and sends a pre-stored preset message configuration table to the programmable logic device. The programmable logic device receives the preset message configuration table returned by the message processor based on the timing logic, obtains the current message identifier of the current message, and determines whether the current message is a valid message based on the current message identifier and the preset message identifier in the preset message configuration table.

[0074] Among them, the timing logic is used to drive the programmable logic device to run and receive the preset message configuration table sent by the message processor.

[0075] Step 220: When it is determined that the current message is a valid message, a message count of the current message is obtained.

[0076] In this embodiment, when the programmable logic device determines that the current message is a valid message, the message count of the current message can be obtained.

[0077] Specifically, when the programmable logic device determines that the current message is a valid message, within a preset time length, the received valid messages can be numbered according to preset rules to obtain the message number, and the current message number of the current message can be determined as the message count of the current message. When the current message is determined to be a valid message, the messages are counted according to the order in which the messages are received, thereby avoiding counting invalid messages and causing increased resource consumption, and reducing resource consumption in the message reception process.

[0078] Step 230: Determine whether the current message is a storm message according to the message count.

[0079] In this embodiment, when the programmable logic device determines that the current message is a valid message, after obtaining the message count of the current message, it can determine whether the current message is a storm message based on the message count. On the basis of determining that the current message is a valid message, a storm message judgment is performed on the current message, which can avoid storm message judgment on invalid messages, and is beneficial to reducing the amount of calculation in the message receiving process.

[0080] In some embodiments, the preset message configuration table may further include a preset count threshold corresponding to a preset message identifier. When the programmable logic device determines that the current message is a valid message, after obtaining the message count of the current message, it can determine whether the current message is a storm message based on the preset count threshold and the message count corresponding to the preset message identifier in the preset message configuration table.

[0081] When the message count is greater than or equal to the preset count threshold, it is determined that the current message is a storm message; when the message count is less than the preset count threshold, it is determined that the current message is a non-storm message.

[0082] Step 240: When it is determined according to the message count that the current message is a non-storm message, the current message is sent to the message processor.

[0083] In this embodiment, step 240 may refer to the contents of the corresponding steps in the aforementioned embodiments, which will not be described in detail here.

[0084] In some implementations, when the programmable logic device determines that the current message is an invalid message, the current message can be discarded, thereby avoiding message counting and storm message judgment for invalid messages, which increases the amount of computation in the message receiving process and improves the computational efficiency in the message receiving process.

[0085] The solution provided in this embodiment determines whether the current message is a valid message through a programmable logic device, and when the current message is determined to be a valid message, obtains the message count of the current message, and determines whether the current message is a storm message based on the message count, and when the current message is determined to be a non-storm message based on the message count, sends the current message to the message processor, thereby realizing filtering of storm messages based on the programmable logic device when the current message is determined to be a valid message, avoiding the increase of the amount of calculation in the message receiving process caused by counting invalid messages and judging storm messages, and improving the calculation efficiency in the message receiving process.

[0086] See also Figure 5 , which shows a message receiving storm suppression device 400 provided by an embodiment of the present application, and the message receiving storm suppression device 400 can be applied to Figure 1 The programmable logic device 200 in the message receiving storm suppression system shown in FIG. Figure 5 The packet receiving storm suppression device 400 shown in the figure is described in detail. The packet receiving storm suppression device 400 may include an acquisition module 410, a first determination module 420 and a first sending module 430.

[0087] The acquisition module 410 can be used to obtain the message count of the current message received at the current moment; the first determination module 420 can be used to determine whether the current message is a storm message based on the message count; the first sending module 430 can be used to send the current message to the message processor when it is determined that the current message is a non-storm message based on the message count.

[0088] In some implementations, the packet reception storm suppression device 400 may further include a second determination module.

[0089] The second determination module may be used to determine whether the current message is a valid message before the acquisition module 410 acquires the message count of the current message received at the current moment.

[0090] In some implementations, the acquisition module 410 may include a first acquisition unit.

[0091] The first acquisition unit may be configured to acquire a message count of the current message when it is determined that the current message is a valid message.

[0092] In some implementations, the second determining module may include a second acquiring unit, a first determining unit, and a second determining unit.

[0093] The second acquisition unit can be used to obtain the current message identifier of the current message; the first determination unit can be used to determine that the current message is a valid message when the current message identifier matches the preset message identifier; the second determination unit can be used to determine that the current message is an invalid message when the current message identifier does not match the preset message identifier.

[0094] In some implementations, the message reception storm suppression device 400 may further include a second sending module and a receiving module.

[0095] The second sending module can be used to send an acquisition instruction to the message processor before the second acquisition unit acquires the current message identifier of the current message. The acquisition instruction can be used to instruct the message processor to send a pre-stored preset message configuration table to the programmable logic device. The preset message configuration table may include a preset message identifier; the receiving module can be used to receive the preset message configuration table returned by the message processor.

[0096] In some implementations, the preset message configuration table may further include a preset counting threshold corresponding to the preset message identifier, and the first determining module 420 may include a third determining unit and a fourth determining unit.

[0097] The third determination unit may be used to determine that the current message is a storm message when the message count is greater than or equal to a preset count threshold; the fourth determination unit may be used to determine that the current message is a non-storm message when the message count is less than the preset count threshold.

[0098] In some implementations, the first acquiring unit may include a numbering subunit and a determining subunit.

[0099] The numbering subunit can be used to, when determining that the current message is a valid message, number the received valid messages according to preset rules within a preset time period to obtain a message number. The preset rules can be used to represent the rule of numbering valid messages received from the same device in the order of receipt; the determination subunit can be used to determine the current message number of the current message as the message count of the current message.

[0100] In some implementations, the packet reception storm suppression device 400 may further include a discarding module.

[0101] The discarding module can be used to discard the current message when it is determined that the current message is a storm message according to the message count.

[0102] The solution provided in this embodiment obtains the message count of the current message received at the current moment through a programmable logic device, and determines whether the current message is a storm message based on the message count, and when the current message is determined to be a non-storm message based on the message count, sends the current message to the message processor, thereby realizing filtering of storm messages based on programmable logic devices, eliminating the need for the message processor to analyze the validity of the messages, reducing the resource consumption of the message processor during the message reception storm suppression process, and suppressing the interference of storm messages on the message processor.

[0103] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. Any processing method described in the method embodiment can be implemented by the corresponding processing module in the device embodiment, and will not be repeated one by one in the device embodiment.

[0104] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0105] See also Figure 6 , which shows a functional block diagram of an FPGA chip 500 provided by an embodiment of the present application. The FPGA chip 500 may include one or more of the following components: a memory 510, a processor 520, and one or more applications, wherein the one or more applications may be stored in the memory 510 and configured to be executed by the one or more processors 520, and the one or more applications are configured to execute the method described in the aforementioned method embodiment.

[0106] The memory 510 may include a random access memory (RAM) or a read-only memory (ROM). The memory 510 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 510 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as obtaining a message count, receiving a current message, determining whether the current message is a storm message, determining whether the current message is a non-storm message, sending a current message, determining whether the current message is a valid message, determining that the current message is a valid message, obtaining a current message identifier, determining that the current message is a valid message, determining that the current message is an invalid message, sending an acquisition instruction, sending a preset message configuration table, receiving a preset message configuration table, returning a preset message configuration table, determining that the current message is a storm message, numbering valid messages, obtaining message numbers, sending valid messages, and discarding current messages, etc.), instructions for implementing the following various method embodiments, etc. The storage data area can also store data created by the FPGA chip 500 during use (such as programmable logic devices, current time, current message, message count, storm message, non-storm message, message processor, valid message, current message identifier, preset message identifier, invalid message, acquisition instruction, preset message configuration table, preset counting threshold, preset duration, preset rules, message number, same device, receiving order and current message number), etc.

[0107] The processor 520 may include one or more processing cores. The processor 520 uses various interfaces and lines to connect various parts of the entire FPGA chip 500, and executes various functions and processes data of the FPGA chip 500 by running or executing instructions, programs, code sets or instruction sets stored in the memory 510, and calling data stored in the memory 510. Optionally, the processor 520 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), programmable logic array (PLA), etc. The processor 520 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 520, but may be implemented separately through a communication chip.

[0108] Please refer to Figure 7 , which shows a structural block diagram of a computer-readable storage medium provided in an embodiment of the present application. The computer-readable storage medium 600 stores a program code 610, which can be called by a processor to execute the method described in the above method embodiment.

[0109] The computer readable storage medium 600 can be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read-only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer readable storage medium 600 includes a non-transitory computer-readable storage medium. The computer readable storage medium 600 has storage space for program code 610 that performs any method steps in the above method. These program codes can be read from or written to one or more computer program products. The program code 610 can be compressed, for example, in an appropriate form.

[0110] Please refer to Figure 8, which shows a structural block diagram of a computer program product 700 provided in an embodiment of the present application. The computer program product 700 includes a computer program / instruction 710, and the computer program / instruction 710 is stored in a computer-readable storage medium of a computer device. When the computer program product 700 is run on a computer device, a processor of the computer device reads the computer program / instruction 710 from the computer-readable storage medium, and the processor executes the computer program / instruction 710, so that the computer device performs the method described in the above method embodiment.

[0111] The solution provided in this embodiment obtains the message count of the current message received at the current moment through a programmable logic device, and determines whether the current message is a storm message based on the message count, and when the current message is determined to be a non-storm message based on the message count, sends the current message to the message processor, thereby realizing filtering of storm messages based on programmable logic devices, eliminating the need for the message processor to analyze the validity of the messages, reducing the resource consumption of the message processor during the message reception storm suppression process, and suppressing the interference of storm messages on the message processor.

[0112] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for suppressing message receiving storm, It is characterized in that Applied to a programmable logic device, the message reception storm suppression method comprises: Get the message count of the current message received at the current moment; Determining whether the current message is a storm message according to the message count; When it is determined according to the message count that the current message is a non-storm message, the current message is sent to a message processor.

2. The method for suppressing message receiving storm according to claim 1, It is characterized in that Before obtaining the message count of the current message received at the current moment, the message reception storm suppression method further includes: Determine whether the current message is a valid message; The obtaining of the message count of the current message received at the current moment includes: When it is determined that the current message is a valid message, the message count of the current message is acquired.

3. The method for suppressing message receiving storm according to claim 2, It is characterized in that The determining whether the current message is a valid message includes: Obtaining a current message identifier of the current message; When the current message identifier matches the preset message identifier, determining that the current message is a valid message; When the current message identifier does not match the preset message identifier, it is determined that the current message is an invalid message.

4. The method for suppressing message receiving storm according to claim 3, It is characterized in that Before obtaining the current message identifier of the current message, the message reception storm suppression method further includes: Sending an acquisition instruction to a message processor, wherein the acquisition instruction is used to instruct the message processor to send a pre-stored preset message configuration table to the programmable logic device, wherein the preset message configuration table includes the preset message identifier; Receive the preset message configuration table returned by the message processor.

5. The method for suppressing message receiving storm according to claim 4, It is characterized in that The preset message configuration table also includes a preset count threshold corresponding to the preset message identifier, and determining whether the current message is a storm message according to the message count includes: When the message count is greater than or equal to a preset count threshold, determining that the current message is a storm message; When the message count is less than a preset count threshold, it is determined that the current message is a non-storm message.

6. The method for suppressing message receiving storm according to claim 2, It is characterized in that When determining that the current message is a valid message, obtaining the message count of the current message includes: When it is determined that the current message is the valid message, within a preset time period, the received valid message is numbered according to a preset rule to obtain a message number, wherein the preset rule is used to represent a rule for numbering the received valid messages sent by the same device in a receiving order; A current message number of the current message is determined as the message count of the current message.

7. The method for suppressing a message receiving storm according to any one of claims 1 to 6, It is characterized in that Also includes: When it is determined according to the message count that the current message is a storm message, the current message is discarded.

8. A message receiving storm suppression device, It is characterized in that Applied to a programmable logic device, the message receiving storm suppression device comprises: An acquisition module, used to acquire the message count of the current message received at the current moment; A first determination module, configured to determine whether the current message is a storm message according to the message count; The first sending module is used to send the current message to the message processor when it is determined that the current message is a non-storm message according to the message count.

9. An FPGA chip, It is characterized in that include: Memory; One or more processors coupled to the memory; One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, and the one or more applications are configured to execute the message reception storm suppression method as described in any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores program codes, and the program codes can be called by a processor to execute the message reception storm suppression method according to any one of claims 1 to 7.