Message suppression method, device and equipment and readable storage medium
By monitoring and suppressing target type messages in the network equipment of the server cluster, the problem of the BMC chip's lack of multicast and broadcast traffic suppression functions is solved, and effective protection and business continuity of the server cluster are achieved.
Patent Information
- Application Number
- CN202411025521.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-10-15
AI Technical Summary
Existing BMC chips lack chip-level multicast and broadcast traffic suppression functions, which causes the server's response speed to decrease when it is attacked by large-scale multicast or broadcast traffic, and even causes the system to crash and restart, affecting the security and operation and maintenance of the data center.
By implementing the packet suppression method in the network device of the server cluster, in response to the BMC device's request to start packet suppression, monitor and execute suppression measures for the target type of packets, including stopping or partially forwarding the target type within a preset time period. packets until the traffic attack stops.
It effectively suppresses multicast and broadcast traffic attacks, ensures the stability and security of the server cluster, reduces the impact on normal business, and automatically removes suppression measures to ensure business continuity.
Smart Images

Figure CN118784338A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a message suppression method, device, equipment and readable storage medium. Background Art
[0002] Servers are usually equipped with a BMC (Baseboard Management Controller), which is an embedded management controller that runs independently of the server's operating system and main processor. The BMC is mainly responsible for remote deployment, management, and monitoring of the server, and has high permissions.
[0003] Currently, some BMC chips lack chip-level multicast and broadcast traffic suppression functions. The lack of this function may cause the server to respond slowly when subjected to large-scale multicast or broadcast traffic attacks, and in severe cases may even cause the system to crash and restart, which will pose a major threat to the security and operation and maintenance of the data center.
[0004] Multicast and broadcast traffic attacks are a common form of distributed denial of service (DDoS) attacks. By sending a large number of invalid multicast or broadcast packets to the server, the server resources are exhausted and the server cannot process legitimate user requests normally. If the BMC chip does not have an effective message suppression mechanism, then this attack may directly affect the normal operation and management of the server.
[0005] Although the above solutions can alleviate the impact of traffic attacks to a certain extent, due to their limitations, they cannot fully meet the security and stability requirements of data center servers, especially in the application scenarios of domestic BMC chips. Therefore, it is necessary to develop a new solution that can effectively suppress multicast and broadcast traffic attacks, reduce the impact on normal business, and be applicable to domestic BMC chips. Summary of the invention
[0006] In view of this, the present specification provides a message suppression method, device, electronic device, and readable storage medium to improve the problem that group and broadcast messages affect the normal operation of the server under the above-mentioned chip-free message suppression mechanism.
[0007] The specific technical solutions are as follows:
[0008] The present specification provides a message suppression method, which is applied to a network device of a server cluster, wherein the network device is a server access network of the server cluster, the server includes a BMC device, and a data communication connection is established between the network device and the BMC device. The method includes: in response to a start message suppression request sent by a target BMC device with a message suppression function enabled, monitoring messages of a target type sent to the target BMC device, wherein the start message suppression request is sent by the target BMC device to the network device after monitoring a message traffic attack of the target type, and the start message suppression request carries the target type of the message; in response to an event that triggers a message suppression condition when monitoring messages of the target type sent to the target BMC device, executing message suppression measures on messages of the target type sent to the target BMC device; in response to an event that triggers a stop message suppression condition, stopping monitoring messages of the target type sent to the target BMC device.
[0009] As a technical solution, the message suppression start request is sent by the BMC device to the network device after monitoring a target type of traffic attack, specifically including: the message suppression start request is sent by the BMC device to the network device after the BMC device confirms that the network device has enabled the message suppression function and the BMC device monitors that the proportion of messages of the target type included in the messages received by the BMC device is greater than a preset message ratio threshold; and / or, the message suppression start request is sent by the BMC device to the network device after the BMC device confirms that the network device has enabled the message suppression function and the BMC device monitors that the received messages of the target type contain abnormal business messages.
[0010] As a technical solution, the target type includes multicast messages and / or broadcast messages.
[0011] As a technical solution, the message suppression measures include: stopping forwarding messages that meet the target type to the target BMC device within a preset message suppression time; and / or partially forwarding messages that meet the target type to the target BMC device according to a preset suppression ratio.
[0012] As a technical solution, the triggering condition for stopping message suppression includes receiving a stop message suppression request from the target BMC device in response to a traffic attack stop notification feedback sent by the network device; the traffic attack stop notification is sent to the target BMC device after the network device monitors the target type of message sent to the target BMC device and triggers the traffic attack stop notification condition; the triggering condition for traffic attack stop notification includes: within a preset monitoring time limit, the number of target type messages sent to the target BMC device within a preset unit time is not counted to reach a preset number threshold; and / or, the target type message sent to the target BMC device is judged to be a normal business message.
[0013] As a technical solution, the trigger message suppression condition includes: the number of target type messages sent to the target BMC device within a preset unit time reaches a preset number threshold; and / or the proportion of the target type messages sent to the target BMC device within a preset unit time reaches a preset proportion threshold.
[0014] The present specification also provides a message suppression device, which is applied to a network device of a server cluster, wherein the network device is a server access network of the server cluster, the server includes a BMC device, and a data communication connection is established between the network device and the BMC device. The device includes: a first module, which is used to respond to a start message suppression request sent by a target BMC device with a message suppression function enabled, and monitor messages of a target type sent to a target BMC device, wherein the start message suppression request is sent by the target BMC device to the network device after monitoring a message traffic attack of the target type, and the start message suppression request carries the target type of the message; a second module, which is used to respond to an event that triggers a message suppression condition when monitoring messages of the target type sent to the target BMC device, and execute message suppression measures on messages of the target type sent to the target BMC device; and a third module, which is used to stop monitoring messages of the target type sent to the target BMC device in response to an event that triggers a stop message suppression condition.
[0015] As a technical solution, the message suppression start request is sent by the BMC device to the network device after monitoring a target type of traffic attack, specifically including: the message suppression start request is sent by the BMC device to the network device after the BMC device confirms that the network device has enabled the message suppression function and the BMC device monitors that the proportion of messages of the target type included in the messages received by the BMC device is greater than a preset message ratio threshold; and / or, the message suppression start request is sent by the BMC device to the network device after the BMC device confirms that the network device has enabled the message suppression function and the BMC device monitors that the received messages of the target type contain abnormal business messages.
[0016] As a technical solution, the target type includes multicast messages and / or broadcast messages.
[0017] As a technical solution, the message suppression measures include: stopping forwarding messages that meet the target type to the target BMC device within a preset message suppression time; and / or partially forwarding messages that meet the target type to the target BMC device according to a preset suppression ratio.
[0018] As a technical solution, the triggering condition for stopping message suppression includes receiving a stop message suppression request from the target BMC device in response to a traffic attack stop notification feedback sent by the network device; the traffic attack stop notification is sent to the target BMC device after the network device monitors the target type of message sent to the target BMC device and triggers the traffic attack stop notification condition; the triggering condition for traffic attack stop notification includes: within a preset monitoring time limit, the number of target type messages sent to the target BMC device within a preset unit time is not counted to reach a preset number threshold; and / or, the target type message sent to the target BMC device is judged to be a normal business message.
[0019] As a technical solution, the trigger message suppression condition includes: the number of target type messages sent to the target BMC device within a preset unit time reaches a preset number threshold; and / or the proportion of the target type messages sent to the target BMC device within a preset unit time reaches a preset proportion threshold.
[0020] This specification also provides an electronic device, including a processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the aforementioned message suppression method.
[0021] This specification also provides a readable storage medium, which stores machine executable instructions. When the machine executable instructions are called and executed by a processor, the machine executable instructions prompt the processor to implement the aforementioned message suppression method.
[0022] The above technical solution provided in this specification brings at least the following beneficial effects:
[0023] After the BMC device detects a traffic attack and sends a request, the network device responds quickly, suppressing the target type of messages sent to the BMC device without the need for BMC chip-level message suppression, and eliminating the impact on other servers in the cluster that enable the chip-level message suppression function, ensuring the stability and security of the server cluster. When the attack stops, the suppression is automatically lifted, and normal network communication is restored to ensure business continuity. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the implementation methods of this specification or the technical solutions in the prior art, the drawings required for use in the implementation methods of this specification or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some implementation methods recorded in this specification. For ordinary technicians in this field, other drawings can also be obtained based on these drawings of the implementation methods of this specification.
[0025] Figure 1 is a flow chart of a message suppression method in one implementation of this specification;
[0026] Figure 2 is a topological diagram in one implementation of this specification;
[0027] Figure 3 It is a schematic diagram of a flow chart in one embodiment of this specification;
[0028] Figure 4 is a structural diagram of a message suppression device in one implementation mode of this specification;
[0029] Figure 5 It is a hardware structure diagram of an electronic device in one implementation mode of this specification.
[0030] Reference numerals: first module 21 , second module 22 , third module 23 . DETAILED DESCRIPTION
[0031] The terms used in the embodiments of this specification are only for the purpose of describing specific embodiments, rather than limiting this specification. The singular forms of "a", "said" and "the" used in this specification and claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to any or all possible combinations of one or more associated listed items.
[0032] It should be understood that although the terms first, second, third, etc. may be used to describe various information in the embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, in addition, the word "if" used may be interpreted as "at the time of" or "when" or "in response to determining".
[0033] BMC is an independent embedded system inside the server, which is independent of BIOS and business operating system (OS). The main functions of BMC include remote deployment, management, monitoring and maintenance of server systems. Due to its key role in server systems. With the acceleration of the localization process, the localization rate of server components is increasingly required, and BMC chips have become one of the important indicators.
[0034] Although domestic BMC chips have made some progress in recent years, some domestic BMC chips still have gaps in some functions compared with mature non-domestic chips. For example, the E2000 series BMC chip is a domestic BMC chip, but its multicast and broadcast message suppression function has not yet been fully realized. This lack of function is particularly prominent when facing traffic message attacks. Traffic message attacks are a common distributed denial of service attack (DDoS), which can cause a large number of computers to be attacked at the same time, causing the attacked targets to be unable to work normally.
[0035] If the BMC chip does not have an effective traffic suppression function, it may cause the BMC to respond slowly under multicast and broadcast large traffic attacks, affecting the normal operation of the business, and may even cause the server to crash and restart. This poses a great risk to the overall security and operation and maintenance management of the data center. Therefore, developing a method that can effectively suppress multicast and broadcast traffic attacks is crucial to ensuring the stability and security of the server.
[0036] In one technical solution, for the domestic Feiteng E2000 BMC chip, since it does not support multicast and broadcast suppression functions at the chip level, a possible solution is to make judgments through BMC software. For example, when the network interrupts the message, it is determined whether there are a large number of multicast and broadcast messages, and then the current network reception message interruption is closed according to the actual situation, including unicast traffic. However, this method has obvious defects: judgment at the software level consumes CPU resources and increases the additional load of the CPU; it can only adopt a one-size-fits-all approach, which not only suppresses multicast and broadcast messages, but also affects normal operation and maintenance management needs.
[0037] In addition, existing BMC chips, even mature BMC chips, can only achieve a one-size-fits-all approach of not receiving multicast and broadcast traffic, which will also affect the normal operation of the business under normal business conditions.
[0038] In summary, the existing technical solutions have obvious deficiencies in dealing with multicast and broadcast traffic attacks. Developing a technical solution that can effectively suppress traffic attacks and ensure normal business operations has become a technical problem that needs to be solved urgently.
[0039] This specification is proposed in this context, and aims to provide a more efficient and secure solution through a universal multicast and broadcast traffic suppression method, especially on domestically produced BMC chips.
[0040] The specific technical solution is described below.
[0041] In one embodiment, the present specification provides a message suppression method, which is applied to a network device of a server cluster, wherein the network device is a server access network of the server cluster, the server includes a BMC device, and a data communication connection is established between the network device and the BMC device. The method includes: in response to a start message suppression request sent by a target BMC device with a message suppression function enabled, monitoring messages of a target type sent to the target BMC device, wherein the start message suppression request is sent by the target BMC device to the network device after monitoring a message traffic attack of the target type, and the start message suppression request carries the target type of the message; in response to an event that triggers a message suppression condition when monitoring messages of the target type sent to the target BMC device, executing message suppression measures on messages of the target type sent to the target BMC device; in response to an event that triggers a stop message suppression condition, stopping monitoring messages of the target type sent to the target BMC device.
[0042] Specifically, Figure 1 , including the following steps:
[0043] Step S11 : in response to a message suppression start request sent by a target BMC device with a message suppression function enabled, monitoring messages of a target type sent to the target BMC device.
[0044] In one implementation, the target type includes a multicast message and / or a broadcast message.
[0045] The target type may be a multicast and / or broadcast message, or other message types that can implement traffic attacks. The network device of the server cluster may be a switch or a router, etc., which is a device for connecting servers in the server cluster to the network.
[0046] Taking multicast and / or broadcast messages as the target type, and the network device of the server cluster as a switch as an example, in the early stage of server deployment, the switch and the BMC on the server negotiate the ability to suppress multicast and broadcast traffic through the Link Layer Discovery Protocol (LLDP). Specifically, the BMC on the server side will add a Multicast Broadcast Traffic Suppression TLV field in the LLDP data unit (LLDPDU), which carries the relevant parameters of multicast and broadcast traffic suppression, such as Traffic Frequency and Suppression Time. These parameters define how to determine multicast broadcast traffic attacks and the corresponding suppression strategies. For example, the traffic frequency can be set to more than 1,000 multicast or broadcast messages per second, and the suppression time can be set to 3 seconds. In this way, the server BMC can notify the switch of its suppression requirements for multicast and broadcast traffic.
[0047] After receiving the request, the switch will respond with relevant information in its LLDPDU to support the function so that the BMC can confirm the switch's capabilities. Once both parties confirm that the function is supported, the normal monitoring phase can be entered.
[0048] In one embodiment, the message suppression start request is sent by the BMC device to the network device after monitoring a target type of traffic attack, specifically including: the message suppression start request is sent by the BMC device to the network device after the BMC device confirms that the network device has enabled the message suppression function and the BMC device monitors that the proportion of messages of the target type included in the messages received by the BMC device is greater than a preset message ratio threshold; and / or, the message suppression start request is sent by the BMC device to the network device after the BMC device confirms that the network device has enabled the message suppression function and the BMC device monitors that the received messages of the target type contain abnormal business messages.
[0049] The BMC device continuously monitors the proportion of multicast and broadcast messages in all the messages it receives. These messages can be any type of data packets, including but not limited to ICMP, UDP or TCP messages. Set a preset message ratio threshold. For example, when the percentage of multicast and broadcast messages in all received messages exceeds 80%, it is considered that a traffic attack has occurred. Once the BMC device monitors that the proportion of multicast and broadcast messages exceeds the preset message ratio threshold, it will immediately send a request to start message suppression to the network device.
[0050] Alternatively, under normal business conditions, the BMC device receives specific types of messages, such as periodic heartbeat messages from the data center management system. Abnormal business messages are those that do not conform to the expected pattern, which may be abnormal large-scale multicast or broadcast messages. The BMC device continuously monitors all received messages and uses pre-set rules or algorithms to identify abnormal business messages. These rules may include but are not limited to message type, source address, destination address, or specific load characteristics. Once the BMC device detects the presence of abnormal business messages and confirms that these messages constitute a traffic attack, it will send a request to start message suppression to the network device.
[0051] Monitor the target type of messages sent to the target BMC device, including counting the number and / or proportion of the target type of messages sent to the target BMC device.
[0052] Step S12, in response to an event that triggers a message suppression condition when monitoring messages of the target type sent to the target BMC device, executing a message suppression measure on the messages of the target type sent to the target BMC device.
[0053] When the server BMC detects a multicast or broadcast traffic attack, it notifies the switch to start the multicast and broadcast suppression function through a Layer 2 link unicast protocol message. After receiving the request, the switch starts to monitor the multicast and broadcast traffic according to the content negotiated in the initialization phase. The specific monitoring method is that if more than 1,000 multicast or broadcast messages need to be sent to the server continuously within a unit of time (such as one second), the switch will consider that the predetermined threshold has been reached and stop forwarding these messages, and keep not forwarding them for about 3 seconds. After 3 seconds, the switch resumes monitoring, and the traffic messages continue to be forwarded to the server BMC. This process will be repeated until the multicast or broadcast traffic attack stops.
[0054] In one embodiment, the trigger message suppression condition includes: a statistical count of the number of target type messages sent to the target BMC device within a preset unit time reaches a preset number threshold; and / or a statistical count of the number of target type messages sent to the target BMC device within a preset unit time reaches a preset proportion threshold.
[0055] First, define a preset unit time, such as 1 second or 5 seconds, as the basic time interval for counting the number of packets. Define a preset number threshold, such as 1000 multicast or broadcast packets per second. This threshold is determined based on experience or test results and is used to determine whether a traffic attack has occurred. The network device continuously monitors the number of multicast and broadcast packets sent to the target BMC device. Once the number of packets counted within the preset unit time reaches the preset number threshold, it can be determined that a traffic attack has occurred.
[0056] Similarly, a preset unit time is defined as the basic time interval for counting the number of packets. A preset ratio threshold is defined, for example, multicast and broadcast packets account for 80% of all received packets. This threshold is also determined based on experience or test results and is used to determine whether a traffic attack has occurred. The network device continuously monitors all packets sent to the target BMC device and calculates the ratio of multicast and broadcast packets. Once the ratio of the number of multicast and broadcast packets counted within the preset unit time reaches the preset ratio threshold, it can be determined that a traffic attack has occurred.
[0057] Assume that in a typical embodiment, the network device is configured as follows: the preset unit time is 1 second; the preset number threshold is 1000 multicast or broadcast messages per second; the preset ratio threshold is that multicast and broadcast messages account for 80% of all received messages. In this case, once the network device counts that the number of multicast and broadcast messages sent to the target BMC device reaches 1000 or these messages account for 80% of all received messages within 1 second, the network device will send a request to start message suppression to the BMC device.
[0058] Step S13: in response to the event triggering the message suppression stop condition, stop monitoring messages of the target type sent to the target BMC device.
[0059] When there is no continuous generation of multicast or broadcast traffic packets within a certain period of time (such as 10 minutes), the server BMC will notify the switch that the traffic attack has disappeared. At this time, the BMC will send a request to turn off the multicast and broadcast traffic suppression function to the switch. After receiving the request, the switch will stop monitoring multicast and broadcast traffic and resume normal forwarding of these packets.
[0060] In one embodiment, the condition for triggering stop message suppression includes receiving a stop message suppression request from the target BMC device in response to a traffic attack stop notification feedback sent by the network device; the traffic attack stop notification is sent to the target BMC device after the network device monitors the target type of message sent to the target BMC device and triggers the traffic attack stop notification condition; the condition for triggering the traffic attack stop notification includes: within a preset monitoring time limit, the number of target type messages sent to the target BMC device within a preset unit time is not counted to reach a preset number threshold; and / or, the target type message sent to the target BMC device is judged to be a normal business message.
[0061] Specifically, a preset monitoring time limit is set, such as 10 minutes, and within the time limit, the number of multicast and broadcast messages sent to the target BMC device per unit time (such as 1 second) is monitored to see if it reaches a preset number threshold, such as 1000 messages / second. Within the preset monitoring time limit, if the number of multicast and broadcast messages sent to the target BMC device within the preset unit time is not counted to reach the preset number threshold, it is considered that the traffic attack has stopped. After confirming that the traffic attack has stopped, the network device will send a traffic attack stop notification to the target BMC device. After receiving the traffic attack stop notification, the BMC device sends a stop message suppression request to the network device.
[0062] In addition, as an extension, normal business messages refer to multicast and broadcast messages that comply with normal operations of the data center, and these messages do not constitute traffic attacks. The network device continuously monitors the multicast and broadcast messages sent to the target BMC device, and uses pre-set rules or algorithms to identify whether these messages are normal business messages. These rules may include but are not limited to message type, source address, destination address, or specific load characteristics. Although monitoring finds that the multicast and broadcast message traffic is still large, if these multicast and broadcast messages sent to the target BMC device are judged to be normal business messages, it is considered that the traffic attack has stopped. After confirming that the traffic attack has stopped, the network device will send a traffic attack stop notification to the target BMC device. After receiving the traffic attack stop notification, the BMC device sends a stop message suppression request to the network device.
[0063] The above-mentioned implementation example reduces the burden on the BMC chip by assigning the task of traffic monitoring and suppression to the switch, thereby improving the stability of the system. Since the switch has a strong message processing capability, it can more accurately identify and suppress malicious traffic, reducing the possibility of misjudgment. This solution does not require changes to the existing hardware topology, nor does it require additional hardware investment, reducing costs. This solution can be expanded as needed, such as unicast suppression for specific IP address segments, to better ensure business continuity.
[0064] To sum up, the technical solution provided in this specification realizes the effective suppression of multicast and broadcast traffic in the server cluster through the collaborative work between the server BMC and the switch, significantly enhancing the stability and security of server out-of-band management, especially when the current domestic BMC chip does not support multicast and broadcast suppression functions, providing a more efficient and secure solution for the data center.
[0065] In one embodiment, the message suppression measure includes: stopping forwarding messages that meet the target type to the target BMC device within a preset message suppression time; and / or partially forwarding messages that meet the target type to the target BMC device according to a preset suppression ratio.
[0066] Define a preset message suppression time, for example, 3 seconds. This is a time interval determined based on experience or test results, during which the network device will stop forwarding messages that match the target type to the target BMC device. Once the message suppression condition is triggered, the network device will start timing and stop forwarding messages that match the target type to the target BMC device within this preset message suppression time. For example, if multicast and broadcast messages are identified as attack traffic, the network device will no longer forward these messages to the target BMC device within the next 3 seconds. After the preset message suppression time expires, the network device resumes forwarding messages to the target BMC device and restarts monitoring to determine whether the message suppression measures need to be started again.
[0067] Message suppression can also be achieved by partially forwarding messages, such as defining a preset suppression ratio, such as 50%, which means that the network device only forwards half of the messages that meet the target type to the target BMC device. Once the message suppression condition is triggered, the network device will forward the messages that meet the target type to the target BMC device according to the preset suppression ratio. For example, if multicast and broadcast messages are identified as attack traffic, the network device will only forward 50% of these messages to the target BMC device. The network device continuously monitors the multicast and broadcast messages sent to the target BMC device, and dynamically adjusts the forwarding ratio of the messages based on the monitoring results until the traffic attack stops.
[0068] In one embodiment, Figure 2 , Figure 3 First, when the server is just deployed, make sure that the switch and the BMC on the server can negotiate with each other whether they have this capability. Here, the mature LLDP protocol (Link Layer Discovery Protocol) extension field can be used to meet the requirements, and other protocols can also be used without restriction. Taking the LLDP protocol as an example, the LLDP protocol sends the management address, device identification, and interface identification information of the access device to other devices in the LAN. It is a Layer 2 protocol and a multicast message.
[0069] The LLDPDU field defines the identifier information of the device, which is composed of different load information in the TLV format. The first three are fixed TLV packets of Chassis ID, Port ID, and Time To Live, and the Optional TLV packet can be added as needed. The end is an END Of LLDPDU TLV packet. In order to support this solution, an Option TLV packet format for multicast and broadcast suppression capability requirements is added on the server side to notify the switch to start the multicast and broadcast suppression function when necessary. The LLDPDU packet includes the field Multicast Broadcast Traffic SuppressionTLV, which notifies the switch on the other end that the suppression function can be performed when multicast and broadcast traffic attacks occur if the switch has this capability. Since LLDP is only a notification, it will not be affected even if the other end does not support this function.
[0070] Some specific capability values are agreed upon in this TLV package. To simplify the description, only the key fields are shown. TrafficFrequency indicates what is considered a multicast broadcast traffic attack, that is, the number of messages continuously monitored in a unit of time, such as more than 1,000 multicast or broadcast messages per second as the threshold for multicast broadcast traffic attacks. SuppressionTime refers to the suppression strategy that needs to be adopted if a traffic attack is monitored and the BMC reply also requires suppression, such as 3s, which is the time for the switch to suppress the forwarding of multicast and broadcast messages. After this time, multicast broadcast message forwarding will be enabled again. If the multicast broadcast message traffic attack conditions mentioned above are met again next time, suppression will be performed again, and so on.
[0071] Similarly, on the switch side, when sending LLDP packets, the switch attaches the relevant TLV packet information that currently supports the suppression capability so that the BMC can perceive the capability of the other end.
[0072] After the switch and the server BMC mutually confirm that they support the multicast and broadcast traffic suppression function, they begin to enter the normal monitoring phase. At a certain moment, when the BMC monitors a multicast or broadcast traffic attack, it notifies the switch layer through a Layer 2 link unicast protocol message, requesting the activation of the multicast and broadcast suppression function. The switch monitors the multicast and broadcast traffic according to the negotiation content of the initialization phase. The specific monitoring method is that if more than 1,000 multicast or broadcast messages need to be sent to the server continuously within a unit time, it is considered that the predetermined threshold has been reached, and the message is stopped from being forwarded for about 3 seconds. After 3 seconds, monitoring is started again, and the traffic message continues to be forwarded to the server BMC side, and this cycle repeats. Until no multicast or broadcast traffic messages are continuously generated within a certain period of time (such as within 10 minutes), the BMC is notified that the traffic attack has disappeared. At this time, the BMC responds to the switch with a message to close the multicast and broadcast traffic suppression function.
[0073] This process repeats itself, and the server BMC and switch cooperate with each other to achieve the maximum multicast and broadcast suppression capabilities.
[0074] It should be noted that in Figure 2 In the embodiment, the technical status of each server and its BMC in the cluster is the same in this implementation method, and steps ①②③ are effective for one or more sets of BMC devices respectively.
[0075] In one embodiment, Figure 4 This specification also provides a message suppression device, which is applied to a network device of a server cluster, wherein the network device is a server access network of the server cluster, the server includes a BMC device, and a data communication connection is established between the network device and the BMC device. The device includes: a first module, which is used to respond to a start message suppression request sent by a target BMC device with a message suppression function enabled, and monitor target type messages sent to the target BMC device, wherein the start message suppression request is sent by the target BMC device to the network device after monitoring a target type of message traffic attack, and the start message suppression request carries the target type of the message; a second module, which is used to respond to an event that triggers a message suppression condition when monitoring a target type of message sent to the target BMC device, and execute message suppression measures on the target type of message sent to the target BMC device; a third module, which is used to stop monitoring the target type of message sent to the target BMC device in response to an event that triggers a stop message suppression condition.
[0076] In one embodiment, the message suppression start request is sent by the BMC device to the network device after monitoring a target type of traffic attack, specifically including: the message suppression start request is sent by the BMC device to the network device after the BMC device confirms that the network device has enabled the message suppression function and the BMC device monitors that the proportion of messages of the target type included in the messages received by the BMC device is greater than a preset message ratio threshold; and / or, the message suppression start request is sent by the BMC device to the network device after the BMC device confirms that the network device has enabled the message suppression function and the BMC device monitors that the received messages of the target type contain abnormal business messages.
[0077] In one implementation, the target type includes a multicast message and / or a broadcast message.
[0078] In one embodiment, the message suppression measure includes: stopping forwarding messages that meet the target type to the target BMC device within a preset message suppression time; and / or partially forwarding messages that meet the target type to the target BMC device according to a preset suppression ratio.
[0079] In one embodiment, the condition for triggering stop message suppression includes receiving a stop message suppression request from the target BMC device in response to a traffic attack stop notification feedback sent by the network device; the traffic attack stop notification is sent to the target BMC device after the network device monitors the target type of message sent to the target BMC device and triggers the traffic attack stop notification condition; the condition for triggering the traffic attack stop notification includes: within a preset monitoring time limit, the number of target type messages sent to the target BMC device within a preset unit time is not counted to reach a preset number threshold; and / or, the target type message sent to the target BMC device is judged to be a normal business message.
[0080] In one embodiment, the trigger message suppression condition includes: a statistical count of the number of target type messages sent to the target BMC device within a preset unit time reaches a preset number threshold; and / or a statistical count of the number of target type messages sent to the target BMC device within a preset unit time reaches a preset proportion threshold.
[0081] The device implementation is the same as or similar to the corresponding method implementation, and will not be described in detail here.
[0082] In one embodiment, the present specification provides an electronic device, including a processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the aforementioned message suppression method. From a hardware level, the hardware architecture diagram can be seen in Figure 5 shown.
[0083] In one embodiment, the present specification provides a readable storage medium, wherein the readable storage medium stores machine executable instructions, and when the machine executable instructions are called and executed by a processor, the machine executable instructions prompt the processor to implement the aforementioned message suppression method.
[0084] Here, the readable storage medium can be any electronic, magnetic, optical or other physical storage device that can contain or store information, such as executable instructions, data, etc. For example, the readable storage medium can be: RAM (Radom Access Memory), volatile memory, non-volatile memory, flash memory, storage drive (such as hard disk drive), solid state drive, any type of storage disk (such as CD, DVD, etc.), or similar storage medium, or a combination thereof.
[0085] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer, which may be in the form of a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email transceiver, a game console, a tablet computer, a wearable device or a combination of any of these devices.
[0086] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0087] It will be appreciated by those skilled in the art that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of this specification may be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0088] This specification is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0089] Moreover, these computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0090] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0091] It will be appreciated by those skilled in the art that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may be in the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may be in the form of a computer program product implemented on one or more computer-usable storage media (which may include but are not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0092] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.
Claims
1. A message suppression method, characterized in that: A network device applied to a server cluster, wherein the network device is a server access network of the server cluster, the server includes a BMC device, and a data communication connection is established between the network device and the BMC device. The method includes: In response to a message suppression start request sent by a target BMC device with a message suppression function enabled, monitoring messages of a target type sent to the target BMC device, wherein the message suppression start request is sent by the target BMC device to the network device after monitoring a message traffic attack of the target type, and the message suppression start request carries the target type of the message; In response to an event that triggers a message suppression condition when monitoring a message of a target type sent to a target BMC device, executing a message suppression measure on the message of the target type sent to the target BMC device; In response to an event that triggers a condition for stopping message suppression, monitoring of messages of a target type sent to a target BMC device is stopped.
2. The method according to claim 1, characterized in that The message suppression start request is sent by the BMC device to the network device after monitoring the target type of traffic attack, and specifically includes: The message suppression start request is sent to the network device after the BMC device confirms that the network device has enabled the message suppression function and the BMC device monitors that the proportion of messages of the target type included in the messages received by the BMC device is greater than a preset message proportion threshold; And / or, the message suppression start request is sent to the network device after the BMC device confirms that the network device has enabled the message suppression function and the BMC device monitors that the received target type of message contains an abnormal service message.
3. The method according to claim 1, characterized in that: The target type includes multicast messages and / or broadcast messages.
4. The method according to claim 1, characterized in that The message suppression measures include: Stop forwarding messages that match the target type to the target BMC device within the preset message suppression time; And / or, according to a preset suppression ratio, partially forwarding messages that meet the target type to the target BMC device.
5. The method according to claim 1, characterized in that The triggering stop message suppression condition includes receiving a stop message suppression request from the target BMC device in response to a traffic attack stop notification feedback sent by the network device; The traffic attack stop notification is sent to the target BMC device after the network device triggers the traffic attack stop notification condition when monitoring the target type of message sent to the target BMC device; The conditions for triggering the traffic attack stop notification include: The number of target type messages sent to the target BMC device within the preset unit time does not reach the preset number threshold within the preset monitoring time limit; And / or, the target type of message sent to the target BMC device is determined to be a normal service message.
6. The method according to claim 1, characterized in that The trigger message suppression condition includes: The number of target type messages sent to the target BMC device within the preset unit time reaches the preset number threshold; And / or, it is counted that the proportion of the number of messages of the target type sent to the target BMC device within a preset unit time reaches a preset proportion threshold.
7. A message suppression device, characterized in that: A network device applied to a server cluster, wherein the network device is a server access network of the server cluster, the server includes a BMC device, and a data communication connection is established between the network device and the BMC device. The device includes: The first module is used to monitor the target type of messages sent to the target BMC device in response to the message suppression start request sent by the target BMC device with the message suppression function enabled, wherein the message suppression start request is sent by the target BMC device to the network device after monitoring the message traffic attack of the target type, and the message suppression start request carries the target type of the message; The second module is used to respond to an event that triggers a message suppression condition when monitoring a message of a target type sent to a target BMC device, and to perform a message suppression measure on the message of the target type sent to the target BMC device; The third module is used to stop monitoring the target type of messages sent to the target BMC device in response to an event that triggers the message suppression stop condition.
8. The device according to claim 7, characterized in that The message suppression start request is sent by the BMC device to the network device after monitoring the target type of traffic attack, and specifically includes: The message suppression start request is sent to the network device after the BMC device confirms that the network device has enabled the message suppression function and the BMC device monitors that the proportion of messages of the target type included in the messages received by the BMC device is greater than a preset message proportion threshold; And / or, the message suppression start request is sent to the network device after the BMC device confirms that the network device has enabled the message suppression function and the BMC device monitors that the received target type of message contains an abnormal service message.
9. The device according to claim 7, characterized in that The target type includes multicast messages and / or broadcast messages.
10. The device according to claim 7, characterized in that The message suppression measures include: Stop forwarding messages that match the target type to the target BMC device within the preset message suppression time; And / or, according to a preset suppression ratio, partially forwarding messages that meet the target type to the target BMC device.
11. The device according to claim 7, characterized in that The triggering stop message suppression condition includes receiving a stop message suppression request from the target BMC device in response to a traffic attack stop notification feedback sent by the network device; The traffic attack stop notification is sent to the target BMC device after the network device triggers the traffic attack stop notification condition when monitoring the target type of message sent to the target BMC device; The conditions for triggering the traffic attack stop notification include: The number of target type messages sent to the target BMC device within the preset unit time does not reach the preset number threshold within the preset monitoring time limit; And / or, the target type of message sent to the target BMC device is determined to be a normal service message.
12. The device according to claim 7, characterized in that The trigger message suppression condition includes: The number of target type messages sent to the target BMC device within the preset unit time reaches the preset number threshold; And / or, it is counted that the proportion of the number of messages of the target type sent to the target BMC device within a preset unit time reaches a preset proportion threshold.
13. An electronic device, characterized in that: include: A processor and a readable storage medium, wherein the readable storage medium stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement any method described in claims 1-6.
14. A readable storage medium, characterized in that: The readable storage medium stores machine executable instructions, and when the machine executable instructions are called and executed by a processor, the machine executable instructions prompt the processor to implement any one of the methods of claims 1-6.
