CN112003796B - Broadcast message processing method, system, equipment and computer storage medium - Google Patents

Broadcast message processing method, system, equipment and computer storage medium Download PDF

Info

Publication number
CN112003796B
CN112003796B CN202010791429.2A CN202010791429A CN112003796B CN 112003796 B CN112003796 B CN 112003796B CN 202010791429 A CN202010791429 A CN 202010791429A CN 112003796 B CN112003796 B CN 112003796B
Authority
CN
China
Prior art keywords
broadcast message
broadcast
virtual switch
flow meter
matched
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010791429.2A
Other languages
Chinese (zh)
Other versions
CN112003796A (en
Inventor
徐继浩
颜秉珩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Inspur Data Technology Co Ltd
Original Assignee
Beijing Inspur Data Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Inspur Data Technology Co Ltd filed Critical Beijing Inspur Data Technology Co Ltd
Priority to CN202010791429.2A priority Critical patent/CN112003796B/en
Publication of CN112003796A publication Critical patent/CN112003796A/en
Application granted granted Critical
Publication of CN112003796B publication Critical patent/CN112003796B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/20Traffic policing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/70Virtual switches
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Abstract

The application discloses a broadcast message processing method, a system, equipment and a computer medium, which are applied to a virtual switch to obtain a broadcast message to be processed; matching the broadcast message to be processed with an ARP broadcast flow meter to obtain a matched broadcast message; judging whether the performance occupied by the matched broadcast message exceeds the requirement of a speed limit flow table or not; if the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table, discarding the broadcast message in the matched broadcast message according to the requirement of the speed limit flow table to obtain a target broadcast message; and sending the target broadcast message to a virtual machine connected with the virtual switch for processing. In the application, the virtual switch needs to use the ARP broadcast flow table and the speed-limiting flow table to screen the broadcast messages to be processed, so that the performance occupied by the target broadcast message meets the requirement of the speed-limiting flow table, excessive performance resources occupied by the broadcast message are avoided, and the network flow forwarding efficiency of the virtual switch can be ensured.

Description

Broadcast message processing method, system, equipment and computer storage medium
Technical Field
The present application relates to the field of virtual machine technologies, and in particular, to a method, a system, a device, and a computer storage medium for processing broadcast packets.
Background
In a two-layer network, broadcast packets are forwarded from all ports except the received port, and each network protocol can create a large amount of broadcast traffic; due to the forwarding mechanism, a large number of broadcast packets or incoming broadcast packets may affect network and device performance; broadcast data can flood the network, cannot be processed, and occupies a large amount of network bandwidth, so that normal services cannot run, even completely paralysis occurs, and a 'broadcast storm' occurs. The broadcast storm occupies considerable network bandwidth, normal point-to-point communication cannot be performed normally, and the network speed is obviously slow. The broadcast storm occurs for a plurality of reasons, and a network card with a fault can send a broadcast packet to a network for a long time to cause the broadcast storm. From the present, worm viruses and ARP attacks are the leading causes of network broadcast storms.
At present, when a large number of virtual machines exist in a virtualization platform, a large number of broadcast messages are also generated in a host network, which results in excessive host CPU resources being occupied, delay being caused to network data packet forwarding, and the efficiency of network traffic forwarding being affected.
In summary, how to ensure the network traffic forwarding efficiency is a problem to be solved urgently by those skilled in the art.
Disclosure of Invention
The present application aims to provide a broadcast packet processing method, which can solve the technical problem of how to ensure the network traffic forwarding efficiency to a certain extent. The application also provides a broadcast message processing system, a device and a computer readable storage medium.
In order to achieve the above purpose, the present application provides the following technical solutions:
a broadcast message processing method is applied to a virtual switch and comprises the following steps:
acquiring a broadcast message to be processed;
matching the broadcast message to be processed with an ARP broadcast flow meter to obtain a matched broadcast message;
judging whether the performance occupied by the matched broadcast message exceeds the requirement of a speed limit flow table or not;
if the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table, discarding the broadcast message in the matched broadcast message according to the requirement of the speed limit flow table to obtain a target broadcast message;
and sending the target broadcast message to a virtual machine connected with the virtual switch for processing.
Preferably, before the acquiring the broadcast packet to be processed, the method further includes:
receiving the ARP broadcast flow meter and the speed-limiting flow meter which are sent by a virtualization platform connected with the virtual switch;
and when the virtualization platform judges that the broadcast message flow of the virtual switch exceeds a preset threshold value, the ARP broadcast flow meter and the speed-limiting flow meter are sent.
Preferably, after the sending the target broadcast packet to the virtual machine connected to the virtual switch for processing, the method further includes:
judging whether a deleting instruction sent by the virtualization platform is received or not;
if the deletion instruction is received, deleting the ARP broadcast flow table and the speed limit flow table;
and when the virtualization platform judges that the broadcast message flow of the virtual switch does not exceed the preset threshold value, sending the deletion instruction.
Preferably, the discarding the broadcast message in the matched broadcast message according to the requirement of the speed limit flow table, and using the remaining matched broadcast message as a target broadcast message includes:
determining the target number of the broadcast messages to be discarded based on the performance occupied by the matched broadcast messages and the requirement of the speed limit flow table;
and randomly selecting the broadcast messages with the target quantity from the matched broadcast messages to discard, and taking the rest matched broadcast messages as the target broadcast messages.
Preferably, after the broadcast packet in the matched broadcast packet is discarded, the method further includes:
and recording the information of the discarded broadcast message, and sending the information to the sending end of the discarded broadcast message.
A broadcast message processing method is applied to a virtualization platform and comprises the following steps:
judging whether the broadcast message flow of the virtual switch exceeds a preset threshold value or not;
if the broadcast message flow of the virtual switch exceeds the threshold value, an ARP broadcast flow meter and a speed-limiting flow meter are sent to the virtual switch;
after receiving the ARP broadcast flow meter and the speed-limiting flow meter, the virtual switch acquires a broadcast message to be processed; matching the broadcast message to be processed with the ARP broadcast flow meter to obtain a matched broadcast message; judging whether the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table or not; if the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table, discarding the broadcast message in the matched broadcast message according to the requirement of the speed limit flow table to obtain a target broadcast message; and sending the target broadcast message to a virtual machine connected with the virtual switch for processing.
Preferably, before sending the ARP broadcast flow table and the rate limit flow table to the virtual switch, the method further includes:
and generating the ARP broadcast flow meter and the speed-limiting flow meter based on the broadcast message flow of the virtual switch and the size relationship between the thresholds.
A broadcast message processing system applied to a virtual switch comprises:
the first acquisition module is used for acquiring a broadcast message to be processed;
the first matching module is used for matching the broadcast message to be processed with the ARP broadcast flow meter to obtain a matched broadcast message;
the first judging module is used for judging whether the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table or not; if the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table, discarding the broadcast message in the matched broadcast message according to the requirement of the speed limit flow table to obtain a target broadcast message;
and the first sending module is used for sending the target broadcast message to a virtual machine connected with the virtual switch for processing.
A broadcast message processing apparatus, comprising:
a memory for storing a computer program;
a processor, configured to implement the steps of the broadcast message processing method according to any one of the above descriptions when the computer program is executed.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of a broadcast message processing method as described in any one of the above.
The broadcast message processing method is applied to a virtual switch and used for acquiring a broadcast message to be processed; matching the broadcast message to be processed with an ARP broadcast flow meter to obtain a matched broadcast message; judging whether the performance occupied by the matched broadcast message exceeds the requirement of a speed limit flow table or not; if the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table, discarding the broadcast message in the matched broadcast message according to the requirement of the speed limit flow table to obtain a target broadcast message; and sending the target broadcast message to a virtual machine connected with the virtual switch for processing. In the application, the virtual switch does not directly send all broadcast messages to the virtual machine, but the ARP broadcast flow table and the speed-limiting flow table are used for screening the broadcast messages to be processed, so that the performance occupied by the target broadcast message meets the requirement of the speed-limiting flow table, excessive performance resources occupied by the broadcast message are avoided, and the network flow forwarding efficiency of the virtual machine can be ensured. The broadcast message processing system, the broadcast message processing equipment and the computer readable storage medium solve the corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a broadcast message processing method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a broadcast packet processing system according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a broadcast packet processing device according to an embodiment of the present application;
fig. 4 is another schematic structural diagram of a broadcast packet processing device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, fig. 1 is a flowchart of a broadcast message processing method according to an embodiment of the present disclosure.
The broadcast message processing method provided by the embodiment of the application is applied to a virtual switch, and can comprise the following steps:
step S101: and acquiring a broadcast message to be processed.
In practical applications, the virtual switch may obtain the broadcast packet to be processed first, and the number of the broadcast packets in the broadcast packet to be processed may be determined according to actual needs.
Step S102: and matching the broadcast message to be processed with the ARP broadcast flow meter to obtain a matched broadcast message.
In practical application, after the broadcast message to be processed is obtained, the broadcast message to be processed may be matched with an Address Resolution Protocol (ARP) broadcast flow table, and the broadcast message to be processed is first screened by the ARP broadcast flow table, so as to reduce the number of matching broadcast messages for subsequent processing.
Step S103: judging whether the performance occupied by the matched broadcast message exceeds the requirement of a speed limit flow table or not; if the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table, executing the step S104; if the performance occupied by the matched broadcast message does not exceed the requirement of the speed limit flow table, step S105 is executed.
Step S104: and discarding the broadcast message in the matched broadcast message according to the requirement of the speed-limiting flow table to obtain a target broadcast message, and executing the step S106.
Step S105: and step S106 is executed by taking the matched broadcast message as a target broadcast message.
Step S106: and sending the target broadcast message to a virtual machine connected with the virtual switch for processing.
In practical application, after the broadcast message to be processed is matched with the ARP broadcast flow meter to obtain a matched broadcast message, although the first reduction is performed on the broadcast message to be processed by using the ARP broadcast flow meter, the number of the matched broadcast messages may still be large, and at this time, it is necessary to judge whether the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow meter; if the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table, discarding the broadcast message in the matched broadcast message according to the requirement of the speed limit flow table to obtain a target broadcast message; if the performance occupied by the matched broadcast message does not exceed the requirement of the speed limit flow table, taking the matched broadcast message as a target broadcast message; therefore, if the target broadcast message is sent to a virtual machine connected with the virtual switch for processing, the consumption of the broadcast message on the network resources of the virtual machine can be reduced, and the virtual machine can have more network resources to process other data.
It should be noted that the type of the speed limit requirement in the speed limit flow table may be determined according to actual needs, for example, the type may be the processing quantity of the broadcast packet, the processing rate of the broadcast packet, and the like.
The broadcast message processing method is applied to a virtual switch and used for acquiring a broadcast message to be processed; matching the broadcast message to be processed with an ARP broadcast flow meter to obtain a matched broadcast message; judging whether the performance occupied by the matched broadcast message exceeds the requirement of a speed limit flow table or not; if the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table, discarding the broadcast message in the matched broadcast message according to the requirement of the speed limit flow table to obtain a target broadcast message; and sending the target broadcast message to a virtual machine connected with the virtual switch for processing. In the application, the virtual switch does not directly send all broadcast messages to the virtual machine, but needs to use the ARP broadcast flow table and the speed-limit flow table to screen the broadcast messages to be processed, so that the performance occupied by the target broadcast messages meets the requirement of the speed-limit flow table, excessive performance resources occupied by the broadcast messages are avoided, and the network traffic forwarding efficiency of the virtual machine can be ensured.
In the broadcast message processing method provided by the embodiment of the application, before the virtual switch acquires the broadcast message to be processed, the virtual switch can also receive an ARP broadcast flow meter and a speed-limiting flow meter which are sent by a virtualization platform connected with the virtual switch; when the virtualization platform judges that the broadcast message flow of the virtual switch exceeds a preset threshold value, the virtualization platform sends an ARP broadcast flow meter and a speed-limiting flow meter.
That is, in practical application, the virtualization platform can control the broadcast message flowing through the virtual switch, so that when the virtualization platform determines that the broadcast message flow of the virtual switch exceeds a preset threshold value, the virtualization platform can send the ARP broadcast flow meter and the speed-limit flow meter to the virtual switch. In a specific application scenario, a preset threshold value can be set to 80% of the network performance of the virtual switch,
in practical application, after the virtual switch sends the target broadcast message to a virtual machine connected with the virtual switch for processing, whether a deletion instruction sent by a virtualization platform is received or not can be judged; if a deleting instruction is received, deleting the ARP broadcast flow table and the speed-limiting flow table; and when the virtualization platform judges that the broadcast message flow of the virtual switch does not exceed a preset threshold value, sending a deletion instruction.
That is, after the virtualization platform determines that the broadcast message flow of the virtual switch does not exceed the preset threshold, the virtualization platform may send a corresponding deletion instruction to the virtual switch, and after receiving the deletion instruction, the virtual switch may delete the ARP broadcast flow table and the rate-limiting flow table.
In the broadcast message processing method provided by the embodiment of the application, the virtual switch discards broadcast messages in the matched broadcast messages according to the requirements of the speed limit flow table, and determines the target number of the broadcast messages to be discarded based on the occupied performance of the matched broadcast messages and the requirements of the speed limit flow table in the process of taking the remaining matched broadcast messages as target broadcast messages; and randomly selecting the broadcast messages with the target quantity from the matched broadcast messages, discarding the broadcast messages, and taking the rest matched broadcast messages as target broadcast messages. Of course, the target number of broadcast messages may be selected to be discarded from the head of the matched broadcast message, or the target number of broadcast messages may be selected to be discarded from the tail of the matched broadcast message, and the like, which is not specifically limited herein.
In the broadcast message processing method provided by the embodiment of the application, after the virtual switch discards the broadcast message in the matched broadcast message, the virtual switch can also record the information of the discarded broadcast message and send the information to the sending end of the discarded broadcast message. So that the transmitting end can rapidly retransmit the discarded broadcast message based on the information of the discarded broadcast message.
The broadcast message processing method provided by the embodiment of the application is applied to a virtualization platform and can comprise the following steps:
judging whether the broadcast message flow of the virtual switch exceeds a preset threshold value or not;
if the broadcast message flow of the virtual switch exceeds a threshold value, an ARP broadcast flow meter and a speed limit flow meter are sent to the virtual switch;
the virtual switch receives the ARP broadcast flow meter and the speed-limiting flow meter and then acquires a broadcast message to be processed; matching the broadcast message to be processed with an ARP broadcast flow meter to obtain a matched broadcast message; judging whether the performance occupied by the matched broadcast message exceeds the requirement of a speed limit flow table or not; if the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table, discarding the broadcast message in the matched broadcast message according to the requirement of the speed limit flow table to obtain a target broadcast message; and sending the target broadcast message to a virtual machine connected with the virtual switch for processing.
When the broadcast message processing method provided in the embodiment of the present application is applied to a virtualization platform, please refer to the corresponding description of the foregoing embodiment for the description of each step, which is not described herein again.
In the broadcast message processing method provided in the embodiment of the present application, before the virtualization platform sends the ARP broadcast flow meter and the speed-limit flow meter to the virtual switch, the ARP broadcast flow meter and the speed-limit flow meter may also be generated based on a size relationship between the broadcast message flow of the virtual switch and a threshold.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a broadcast message processing system according to an embodiment of the present disclosure.
The broadcast packet processing system provided in this embodiment of the present application is applied to a virtual switch, and may include:
a first obtaining module 101, configured to obtain a broadcast packet to be processed;
the first matching module 102 is configured to match the broadcast message to be processed with the ARP broadcast flow meter, so as to obtain a matched broadcast message;
the first judging module 103 is configured to judge whether performance occupied by matching broadcast messages exceeds a requirement of a speed limit flow table; if the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table, discarding the broadcast message in the matched broadcast message according to the requirement of the speed limit flow table to obtain a target broadcast message;
the first sending module 104 is configured to send the target broadcast packet to a virtual machine connected to the virtual switch for processing.
The broadcast packet processing system provided in this embodiment of the present application is applied to a virtual switch, and may further include:
the first receiving module is used for receiving the ARP broadcast flow meter and the speed-limiting flow meter which are sent by the virtualization platform connected with the virtual switch before the first obtaining module obtains the broadcast message to be processed;
when the virtualization platform judges that the broadcast message flow of the virtual switch exceeds a preset threshold value, the virtualization platform sends an ARP broadcast flow meter and a speed-limiting flow meter.
The broadcast packet processing system provided in this embodiment of the present application is applied to a virtual switch, and may further include:
the first judging module is used for judging whether a deleting instruction sent by the virtualization platform is received or not after the first sending module sends the target broadcast message to a virtual machine connected with the virtual switch for processing; if a deletion instruction is received, deleting the ARP broadcast flow table and the speed limit flow table;
and when the virtualization platform judges that the broadcast message flow of the virtual switch does not exceed a preset threshold value, sending a deletion instruction.
The broadcast packet processing system provided in the embodiment of the present application is applied to a virtual switch, and the first determining module may include:
the first determining unit is used for determining the target quantity of the broadcast messages needing to be discarded based on the performance occupied by the matched broadcast messages and the requirement of a speed-limiting flow table;
the first setting unit is used for randomly selecting the broadcast messages with the target quantity from the matched broadcast messages to discard, and taking the rest matched broadcast messages as the target broadcast messages.
The broadcast packet processing system provided in the embodiment of the present application is applied to a virtual switch, and may further include:
and the first recording module is used for recording the information of the discarded broadcast message after the first judging module discards the broadcast message in the matched broadcast message, and sending the information to the sending end of the discarded broadcast message.
The broadcast message processing system provided in the embodiment of the present application is applied to a virtualization platform, and may include:
the second judgment module is used for judging whether the broadcast message flow of the virtual switch exceeds a preset threshold value or not; if the broadcast message flow of the virtual switch exceeds a threshold value, an ARP broadcast flow meter and a speed limit flow meter are sent to the virtual switch;
the virtual switch receives the ARP broadcast flow meter and the speed-limiting flow meter and then acquires a broadcast message to be processed; matching the broadcast message to be processed with an ARP broadcast flow meter to obtain a matched broadcast message; judging whether the performance occupied by the matched broadcast message exceeds the requirement of a speed limit flow table or not; if the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table, discarding the broadcast message in the matched broadcast message according to the requirement of the speed limit flow table to obtain a target broadcast message; and sending the target broadcast message to a virtual machine connected with the virtual switch for processing.
The broadcast packet processing system provided in this embodiment of the present application is applied to a virtualization platform, and may further include:
and the first generation module is used for generating the ARP broadcast flow meter and the speed-limiting flow meter based on the broadcast message flow of the virtual switch and the size relation between the thresholds before the second judgment module sends the ARP broadcast flow meter and the speed-limiting flow meter to the virtual switch.
The application also provides a broadcast message processing device and a computer readable storage medium, which both have the corresponding effects of the broadcast message processing method provided by the embodiment of the application. Referring to fig. 3, fig. 3 is a schematic structural diagram of a broadcast packet processing device according to an embodiment of the present disclosure.
The broadcast message processing device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program:
acquiring a broadcast message to be processed;
matching the broadcast message to be processed with an ARP broadcast flow meter to obtain a matched broadcast message;
judging whether the performance occupied by the matched broadcast message exceeds the requirement of a speed limit flow table or not;
if the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table, discarding the broadcast message in the matched broadcast message according to the requirement of the speed limit flow table to obtain a target broadcast message;
and sending the target broadcast message to a virtual machine connected with the virtual switch for processing.
The broadcast message processing device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: receiving an ARP broadcast flow meter and a speed-limiting flow meter which are sent by a virtualization platform connected with a virtual switch; when the virtualization platform judges that the broadcast message flow of the virtual switch exceeds a preset threshold value, the virtualization platform sends an ARP broadcast flow meter and a speed-limiting flow meter.
The broadcast message processing device provided in the embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: after the target broadcast message is sent to a virtual machine connected with a virtual switch for processing, whether a deleting instruction sent by a virtualization platform is received or not is judged; if a deletion instruction is received, deleting the ARP broadcast flow table and the speed limit flow table; and when the virtualization platform judges that the broadcast message flow of the virtual switch does not exceed a preset threshold value, sending a deletion instruction.
The broadcast message processing device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: determining the target number of the broadcast messages to be discarded based on the performance occupied by the matched broadcast messages and the requirement of a speed-limiting flow table; and randomly selecting the broadcast messages with the target quantity from the matched broadcast messages, discarding the broadcast messages, and taking the rest matched broadcast messages as target broadcast messages.
The broadcast message processing device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: and after the broadcast messages in the matched broadcast messages are discarded, recording the information of the discarded broadcast messages, and sending the information to a sending end of the discarded broadcast messages.
The broadcast message processing device provided in the embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: judging whether the broadcast message flow of the virtual switch exceeds a preset threshold value or not; if the broadcast message flow of the virtual switch exceeds a threshold value, an ARP broadcast flow meter and a speed limit flow meter are sent to the virtual switch; the virtual switch receives the ARP broadcast flow meter and the speed-limiting flow meter and then acquires a broadcast message to be processed; matching the broadcast message to be processed with an ARP broadcast flow meter to obtain a matched broadcast message; judging whether the performance occupied by the matched broadcast message exceeds the requirement of a speed limit flow table or not; if the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table, discarding the broadcast message in the matched broadcast message according to the requirement of the speed limit flow table to obtain a target broadcast message; and sending the target broadcast message to a virtual machine connected with the virtual switch for processing.
The broadcast message processing device provided by the embodiment of the application comprises a memory 201 and a processor 202, wherein a computer program is stored in the memory 201, and the processor 202 implements the following steps when executing the computer program: before the ARP broadcast flow meter and the speed-limiting flow meter are sent to the virtual switch, the ARP broadcast flow meter and the speed-limiting flow meter are generated based on the size relation between the broadcast message flow of the virtual switch and the threshold value.
Referring to fig. 4, another broadcast packet processing device according to the embodiment of the present application may further include: an input port 203 connected to the processor 202, for transmitting externally input commands to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing result of the processor 202 to the outside; and the communication module 205 is connected to the processor 202 and is configured to implement communication between the broadcast packet processing apparatus and the outside. The display unit 204 may be a display panel, a laser scanning display, or the like; the communication method adopted by the communication module 205 includes, but is not limited to, mobile high definition link technology (HML), universal Serial Bus (USB), high Definition Multimedia Interface (HDMI), and wireless connection: wireless fidelity technology (WiFi), bluetooth communication technology, bluetooth low energy communication technology, ieee802.11s based communication technology.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps:
acquiring a broadcast message to be processed;
matching the broadcast message to be processed with an ARP broadcast flow meter to obtain a matched broadcast message;
judging whether the performance occupied by the matched broadcast message exceeds the requirement of a speed limit flow table or not;
if the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table, discarding the broadcast message in the matched broadcast message according to the requirement of the speed limit flow table to obtain a target broadcast message;
and sending the target broadcast message to a virtual machine connected with the virtual switch for processing.
A computer-readable storage medium provided in an embodiment of the present application stores a computer program, and when executed by a processor, the computer program implements the following steps: receiving an ARP broadcast flow meter and a speed-limiting flow meter which are sent by a virtualization platform connected with a virtual switch; when the virtualization platform judges that the broadcast message flow of the virtual switch exceeds a preset threshold value, the virtualization platform sends an ARP broadcast flow meter and a speed-limiting flow meter.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: after the target broadcast message is sent to a virtual machine connected with a virtual switch for processing, whether a deleting instruction sent by a virtualization platform is received or not is judged; if a deletion instruction is received, deleting the ARP broadcast flow table and the speed limit flow table; when the virtualization platform judges that the broadcast message flow of the virtual switch does not exceed a preset threshold value, a deleting instruction is sent.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: determining the target number of the broadcast messages to be discarded based on the performance occupied by the matched broadcast messages and the requirement of a speed-limiting flow table; and randomly selecting the broadcast messages with the target quantity from the matched broadcast messages, discarding the broadcast messages, and taking the rest matched broadcast messages as target broadcast messages.
A computer-readable storage medium provided in an embodiment of the present application stores a computer program, and when executed by a processor, the computer program implements the following steps: and after the broadcast messages in the matched broadcast messages are discarded, recording the information of the discarded broadcast messages, and sending the information to a sending end of the discarded broadcast messages.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: judging whether the broadcast message flow of the virtual switch exceeds a preset threshold value or not; if the broadcast message flow of the virtual switch exceeds a threshold value, an ARP broadcast flow meter and a speed limit flow meter are sent to the virtual switch; the virtual switch receives the ARP broadcast flow meter and the speed-limiting flow meter and then acquires a broadcast message to be processed; matching the broadcast message to be processed with an ARP broadcast flow meter to obtain a matched broadcast message; judging whether the performance occupied by the matched broadcast message exceeds the requirement of a speed limit flow table or not; if the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table, discarding the broadcast message in the matched broadcast message according to the requirement of the speed limit flow table to obtain a target broadcast message; and sending the target broadcast message to a virtual machine connected with the virtual switch for processing.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: before the ARP broadcast flow meter and the speed-limiting flow meter are sent to the virtual switch, the ARP broadcast flow meter and the speed-limiting flow meter are generated based on the size relation between the broadcast message flow of the virtual switch and the threshold value.
The computer-readable storage media to which this application relates include Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art.
For a description of a relevant part in the broadcast message processing system, the device, and the computer-readable storage medium provided in the embodiment of the present application, reference is made to detailed descriptions of a corresponding part in the broadcast message processing method provided in the embodiment of the present application, and details are not repeated here. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "...," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A broadcast message processing method is applied to a virtual switch, and comprises the following steps:
acquiring a broadcast message to be processed;
matching the broadcast message to be processed with an ARP broadcast flow meter to obtain a matched broadcast message;
judging whether the performance occupied by the matched broadcast message exceeds the requirement of a speed limit flow table or not;
if the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table, discarding the broadcast message in the matched broadcast message according to the requirement of the speed limit flow table to obtain a target broadcast message;
sending the target broadcast message to a virtual machine connected with the virtual switch for processing;
before the obtaining of the broadcast packet to be processed, the method further includes:
receiving the ARP broadcast flow meter and the speed-limiting flow meter which are sent by a virtualization platform connected with the virtual switch;
when the virtualization platform judges that the broadcast message flow of the virtual switch exceeds a preset threshold value, the ARP broadcast flow meter and the speed-limiting flow meter are generated based on the size relation between the broadcast message flow of the virtual switch and the threshold value, and the ARP broadcast flow meter and the speed-limiting flow meter are sent.
2. The method according to claim 1, wherein after the sending the target broadcast packet to the virtual machine connected to the virtual switch for processing, further comprising:
judging whether a deleting instruction sent by the virtualization platform is received or not;
if the deletion instruction is received, deleting the ARP broadcast flow table and the speed limit flow table;
and when the virtualization platform judges that the broadcast message flow of the virtual switch does not exceed the preset threshold value, sending the deletion instruction.
3. The method according to claim 1, wherein the discarding the broadcast packet in the matching broadcast packet according to the requirement of the rate-limiting flow table, and taking the remaining matching broadcast packet as a target broadcast packet, comprises:
determining the target number of the broadcast messages to be discarded based on the performance occupied by the matched broadcast messages and the requirement of the speed limit flow table;
and randomly selecting the broadcast messages with the target quantity from the matched broadcast messages to discard, and taking the rest matched broadcast messages as the target broadcast messages.
4. The method of claim 1, wherein after discarding broadcast messages in the matching broadcast message, further comprising:
and recording the information of the discarded broadcast message, and sending the information to the sending end of the discarded broadcast message.
5. A broadcast message processing method is applied to a virtualization platform and comprises the following steps:
judging whether the broadcast message flow of the virtual switch exceeds a preset threshold value or not;
if the broadcast message flow of the virtual switch exceeds the threshold value, an ARP broadcast flow meter and a speed-limiting flow meter are sent to the virtual switch;
after receiving the ARP broadcast flow meter and the speed-limiting flow meter, the virtual switch acquires a broadcast message to be processed; matching the broadcast message to be processed with the ARP broadcast flow meter to obtain a matched broadcast message; judging whether the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table or not; if the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table, discarding the broadcast message in the matched broadcast message according to the requirement of the speed limit flow table to obtain a target broadcast message; sending the target broadcast message to a virtual machine connected with the virtual switch for processing;
wherein, before sending ARP broadcast flow meter and speed limit flow meter to the virtual switch, it also includes:
and generating the ARP broadcast flow meter and the speed-limiting flow meter based on the broadcast message flow of the virtual switch and the size relationship between the thresholds.
6. A broadcast message processing system applied to a virtual switch includes:
the first acquisition module is used for acquiring the broadcast message to be processed;
the first matching module is used for matching the broadcast message to be processed with the ARP broadcast flow meter to obtain a matched broadcast message;
the first judging module is used for judging whether the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table or not; if the performance occupied by the matched broadcast message exceeds the requirement of the speed limit flow table, discarding the broadcast message in the matched broadcast message according to the requirement of the speed limit flow table to obtain a target broadcast message;
the first sending module is used for sending the target broadcast message to a virtual machine connected with the virtual switch for processing;
wherein, still include:
the first receiving module is used for receiving the ARP broadcast flow meter and the speed-limiting flow meter which are sent by a virtualization platform connected with the virtual switch before the first obtaining module obtains the broadcast message to be processed; when the virtualization platform judges that the broadcast message flow of the virtual switch exceeds a preset threshold value, the ARP broadcast flow meter and the speed-limiting flow meter are generated based on the size relation between the broadcast message flow of the virtual switch and the threshold value, and the ARP broadcast flow meter and the speed-limiting flow meter are sent.
7. A broadcast message processing apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the broadcast message processing method according to any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of a broadcast message processing method according to any one of claims 1 to 5.
CN202010791429.2A 2020-08-07 2020-08-07 Broadcast message processing method, system, equipment and computer storage medium Active CN112003796B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010791429.2A CN112003796B (en) 2020-08-07 2020-08-07 Broadcast message processing method, system, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010791429.2A CN112003796B (en) 2020-08-07 2020-08-07 Broadcast message processing method, system, equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN112003796A CN112003796A (en) 2020-11-27
CN112003796B true CN112003796B (en) 2023-04-18

Family

ID=73462982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010791429.2A Active CN112003796B (en) 2020-08-07 2020-08-07 Broadcast message processing method, system, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN112003796B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338543B (en) * 2022-03-14 2022-06-21 北京指掌易科技有限公司 Network access speed limiting method, device, equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108243123A (en) * 2016-12-23 2018-07-03 中兴通讯股份有限公司 Processing method, device, controller and the interchanger of broadcasting packet
CN109831390A (en) * 2019-01-21 2019-05-31 新华三云计算技术有限公司 Message transmission control method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103780488B (en) * 2012-10-23 2018-07-06 中国电信股份有限公司 Broadcasting packet processing method and equipment
CN111181850B (en) * 2019-08-12 2022-03-11 腾讯科技(深圳)有限公司 Data packet flooding suppression method, device and equipment and computer storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108243123A (en) * 2016-12-23 2018-07-03 中兴通讯股份有限公司 Processing method, device, controller and the interchanger of broadcasting packet
CN109831390A (en) * 2019-01-21 2019-05-31 新华三云计算技术有限公司 Message transmission control method and device

Also Published As

Publication number Publication date
CN112003796A (en) 2020-11-27

Similar Documents

Publication Publication Date Title
KR102317523B1 (en) Packet control method and network device
US10826830B2 (en) Congestion processing method, host, and system
US10129151B2 (en) Traffic management implementation method and apparatus, and network device
US20190312816A1 (en) Flow Control Method and Switching Device
CN106330742B (en) Flow control method and network controller
US11782869B2 (en) Data transmission method and related device
CN103929334A (en) Network abnormity notification method and apparatus
US10797986B2 (en) Link discovery method and apparatus
CN107623643A (en) A kind of data packet forwarding method and device
US20230156102A1 (en) Packet processing method, network device, and related device
CN112152940A (en) Message processing method, device and system
CN112003796B (en) Broadcast message processing method, system, equipment and computer storage medium
CN112822646B (en) Message processing method and device, electronic equipment and computer readable storage medium
US11252184B2 (en) Anti-attack data transmission method and device
CN103051612B (en) Fire compartment wall and prevent method of network attack
WO2023125380A1 (en) Data management method and corresponding apparatus
WO2021109851A1 (en) Network communication method, apparatus and device, and storage medium
CN111064768A (en) Printer data transmission control method, device, equipment and storage medium
EP4199447A1 (en) Operation administration and maintenance (oam) packet processing method and device
CN115344405A (en) Data processing method, network interface card, electronic equipment and storage medium
CN111478802B (en) Distribution network processing method, device, system, computer equipment and storage medium
CN107483334B (en) Message forwarding method and device
EP3968545A1 (en) Fault protection method, device and system for optical network
EP2699028A2 (en) Method and apparatus for sending messages
CN107493221A (en) A kind of system for improving fictitious host computer transmission performance

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant