CN114244768A - Forwarding method, device, equipment and storage medium for two-layer unknown multicast - Google Patents
Forwarding method, device, equipment and storage medium for two-layer unknown multicast Download PDFInfo
- Publication number
- CN114244768A CN114244768A CN202111589068.4A CN202111589068A CN114244768A CN 114244768 A CN114244768 A CN 114244768A CN 202111589068 A CN202111589068 A CN 202111589068A CN 114244768 A CN114244768 A CN 114244768A
- Authority
- CN
- China
- Prior art keywords
- router port
- multicast
- target router
- unknown multicast
- acl
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/16—Multipoint routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/54—Organization of routing tables
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/20—Support for services
- H04L49/201—Multicast operation; Broadcast operation
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses a forwarding method, a forwarding device, forwarding equipment and a storage medium for two-layer unknown multicast. The method is applied to a two-layer switch for starting an internet group management Snooping protocol IGMP-Snooping and unknown multicast discarding function, and comprises the following steps: receiving an IGMP query message, and determining a target router port according to the IGMP query message; configuring an ACL table item matched with the port of the target router; and if the unknown multicast message is received, executing the ACL list item to forward the unknown multicast message to the target router port. The technical scheme of the embodiment of the invention realizes that under the condition that the double-layer switch opens the IGMP-Snooping and unknown multicast discarding functions and has multicast data source access but no multicast receiver, the double-layer switch uses few hardware resources to realize the accurate forwarding of the unknown multicast message on the double-layer switch.
Description
Technical Field
The embodiment of the invention relates to the technical field of Ethernet communication, in particular to a forwarding method, a forwarding device, forwarding equipment and a storage medium for two-layer unknown multicast.
Background
Multicast is a communication form of single-point transmission and multi-point reception, a sender sends a multicast message to a reserved multicast address, and a receiver joining the multicast group can receive the multicast message, so that the network load and the burden of the sender can be reduced.
As shown in fig. 1a, when a multicast server2 sends a multicast data stream, only host4 requests a multicast, SW1 needs to start an unknown multicast discarding function in order to implement that "no requestor exists on this two-layer switch and the multicast does not flood from within the VLAN", because the unknown multicast of the two-layer switch is usually implemented in a way that CPU is not sent, although a router sending the multicast data stream has already been determined, a multicast entry with a member port of router cannot be established, so that the multicast data stream cannot be forwarded to the three-layer switch, and thus host4 cannot receive a multicast message, and the multicast is abnormal.
In the prior art, in a scenario where a two-layer switch starts an unknown multicast discarding function and has a multicast data source access but no multicast receiver, the two-layer switch needs to configure a CPU on a two-layer unknown multicast, establish a multicast entry with a member port as a router port, and issue a hardware table, so as to implement forwarding of a multicast packet to a three-layer multicast switch. However, it is unknown that the CPU resources of the two-layer switch are occupied by the CPU processing on the multicast, and particularly, the CPU is impacted when there are many multicast groups and the multicast traffic is large, and a corresponding hardware table is established for multicast streams of different multicasts, and the occupied hardware resources are also large.
Disclosure of Invention
The embodiment of the invention provides a forwarding method, a forwarding device, forwarding equipment and a storage medium for a two-layer unknown multicast, so as to realize the accurate forwarding of an unknown multicast message on a two-layer switch by using few hardware resources under the scene that the two-layer switch starts the discarding function of the unknown multicast.
In a first aspect, an embodiment of the present invention provides a forwarding method for a two-layer unknown multicast, which is applied to a two-layer switch that starts an Internet Group Management Snooping Protocol (IGMP-Snooping) and an unknown multicast discarding function, and includes:
receiving an Internet Group Management Protocol (IGMP) query message, and determining a target router port according to the IGMP query message;
configuring an Access Control List (ACL) table item matched with the target router port;
and if the unknown multicast message sent by the multicast source is received, executing the ACL list item to forward the unknown multicast message to the target router port.
Optionally, an unknown multicast packet identifier is configured in the ACL entry, and the configured action is to forward the matched unknown multicast packet to the target router port.
Optionally, configuring an ACL entry matching the target router port includes:
judging whether a history router port is recorded at present;
if not, configuring an ACL table item matched with the target router port;
if yes, judging whether the historical router port is consistent with the target router port or not;
if the ACL table entries are consistent, no ACL table entries are configured;
and if the ACL table entries are inconsistent, after the ACL table entries matched with the historical router port are deleted, configuring an ACL table entry matched with the target router port.
Optionally, the method further includes:
and if the timer of the target router port is detected to be overtime, deleting the ACL table item matched with the target router port.
In a second aspect, an embodiment of the present invention further provides a forwarding device for a two-layer unknown multicast, which is applied to a two-layer switch that starts IGMP-Snooping and an unknown multicast discarding function, and includes:
the receiving module is used for receiving the IGMP query message and determining a target router port according to the IGMP query message;
the configuration module is used for configuring an ACL table item matched with the target router port;
and the forwarding module is used for executing an ACL (access control list) entry to forward the unknown multicast message to the target router port if the unknown multicast message sent by the multicast source is received.
Optionally, an unknown multicast packet identifier is configured in the ACL entry, and the configured action is to forward the matched unknown multicast packet to the target router port.
Optionally, the configuration module is configured to:
judging whether a history router port is recorded at present;
if not, configuring an ACL table item matched with the target router port;
if yes, judging whether the historical router port is consistent with the target router port or not;
if the ACL table entries are consistent, no ACL table entries are configured;
and if the ACL table entries are inconsistent, after the ACL table entries matched with the historical router port are deleted, configuring an ACL table entry matched with the target router port.
Optionally, the method further includes:
and the deleting module is used for deleting the ACL table item matched with the target router port if the timer of the target router port is detected to be overtime.
In a third aspect, an embodiment of the present invention further provides a switch device, where the switch device includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the forwarding method for layer two unknown multicast provided by any embodiment of the present invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a forwarding method for a layer two unknown multicast provided in any embodiment of the present invention.
The technical scheme of the embodiment of the invention is applied to the two-layer switch which starts the IGMP-Snooping and unknown multicast discarding functions, and determines the target router port according to the IGMP query message by receiving the IGMP query message; configuring an ACL table item matched with the port of the target router; if the unknown multicast message is received, the ACL entry is executed to forward the unknown multicast message to the target router port, so that the problem that the forwarding of the unknown multicast message in the prior art occupies more CPU resources and hardware resources of a two-layer switch is solved, the IGMP-Snooping and unknown multicast discarding functions can be started in the two-layer switch only by using one hardware resource ACL, and the unknown multicast message can still be forwarded from the target router port under the scene that a multicast data source is accessed but no multicast receiver is accessed on the two-layer switch, the normal multicast function is ensured, the extremely few hardware resources are used, and the effect of accurately forwarding the unknown multicast message on the two-layer switch is realized.
Drawings
Fig. 1a is a topology diagram of a multicast network in a first embodiment of the present invention;
fig. 1b is a flowchart of a forwarding method for a two-layer unknown multicast in the first embodiment of the present invention;
fig. 1c is a processing flow of an IGMP query packet in the first embodiment of the present invention;
fig. 1d is a flowchart of timeout processing of a router socket according to a first embodiment of the present invention;
fig. 2 is a schematic structural diagram of a forwarding device for two-layer unknown multicast in the second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a switch device in the third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Fig. 1a is a topology diagram of a multicast network in an embodiment of the present invention, and as shown in fig. 1a, a Router of a triple-layer multicast Router starts Protocol Independent Multicast (PIM) to perform replication forwarding of the triple-layer multicast, and a double-layer switch SW1 is connected to a triple-layer multicast Router, a multicast source server2, and hosts 1 and 2, respectively. The two-layer switch SW1 starts an unknown multicast discarding function, starts IGMP-Snooping to intercept IGMP messages between the three-layer multicast router and the host, and establishes and maintains a two-layer multicast forwarding table entry on the two-layer switch SW1 according to the intercepted IGMP report message and leave message, thereby managing and controlling the forwarding of the multicast messages. That is, when the layer two switch SW1 forwards the multicast packet, the multicast packet is forwarded according to the layer two multicast forwarding table, so that the on-demand distribution of the multicast packet in the layer two is realized, and it is avoided that other hosts that do not join the multicast group also receive the multicast packet.
As shown in fig. 1a, if the layer two switch SW1 receives the multicast packet sent by the multicast source server2, and only the host4 on the layer two switch SW2 in the network requests, and there is no requester on the layer two switch SW1, the multicast packet is called an unknown multicast packet. Because the unknown multicast discarding function is started on the two-layer switch SW1, and the unknown multicast of the two-layer switch is usually realized in a way that the unknown multicast is not sent to the CPU, the two-layer switch SW1 does not forward the unknown multicast message to the three-layer multicast router, so that the host4 does not receive the multicast message, and the multicast is abnormal.
In order to implement accurate forwarding of an unknown multicast packet on a two-layer switch in a scenario where the two-layer switch has opened IGMP-Snooping and an unknown multicast discard function, in this embodiment, the two-layer switch issues an ACL entry matching a router port after determining the router port according to a received IGMP query packet, so as to forward an unknown multicast packet in the two-layer switch from the router port, thereby only using a hardware resource ACL to ensure that the multicast function is normal.
Example one
Fig. 1b is a flowchart of a forwarding method for a two-layer unknown multicast in an embodiment of the present invention, where this embodiment is applicable to a situation that an unknown multicast packet on a two-layer switch is accurately forwarded in a scenario where the two-layer switch has an IGMP-Snooping function and an unknown multicast discarding function, and this method may be executed by a forwarding device for the two-layer unknown multicast, where this device may be implemented by hardware and/or software, and may generally be integrated in a switch device that provides a two-layer unknown multicast forwarding service, specifically, the two-layer switch has an IGMP-Snooping function and an unknown multicast discarding function. Specifically, referring to fig. 1b, the method may include the steps of:
In this embodiment, according to the IGMP protocol, in order to determine that active hosts exist in the multicast group after a certain period, the IGMP querier periodically sends an IGMP query packet to all hosts and the two-layer switch in the network segment. After receiving the IGMP query packet, the two-layer switch forwards the IGMP query packet to other non-receiving ports of the same VLAN, and uses a port on the switch, which receives the IGMP query packet, as a router port, that is, a target router port in this embodiment.
If the two-layer switch detects that a host wants to join the multicast group, the two-layer switch receives an IGMP report message and then can add a target router port as a multicast member port to a two-layer multicast forwarding table, so that the two-layer switch forwards the multicast message to the target router port, and when the two-layer switch receives the IGMP report message and the IGMP leave message, the two-layer switch forwards the multicast message to the target router port, therefore, the three-layer multicast router can receive the multicast message sent from a multicast source accessed to the two-layer switch and also can receive the IGMP report message and the IGMP leave message sent by the host on the two-layer switch.
In this embodiment, in order to forward a multicast packet to a three-layer multicast router when a two-layer switch receives the multicast packet sent by a multicast source but there is no jukebox on the two-layer switch, an ACL entry may be configured for a target router port after a target router port is determined according to an IGMP query packet, so that the three-layer multicast router can also receive an unknown multicast packet after the two-layer switch has opened IGMP-Snooping and an unknown multicast discard function.
Optionally, an unknown multicast packet identifier is configured in the ACL entry, and the configured action is to forward the matched unknown multicast packet to the target router port.
In this embodiment, the matching items configured in the ACL entry may at least include a VLAN identifier and an unknown multicast packet identifier, and the configured actions are as follows: and forwarding the specified unknown multicast message matched with the VLAN identifier and the unknown multicast message identifier to a target router port of the switch, so that the unknown multicast message is forwarded to the three-layer multicast router through the target router port.
Optionally, configuring an ACL entry matching the target router port may include: judging whether a history router port is recorded at present; if not, configuring an ACL table item matched with the target router port; if yes, judging whether the historical router port is consistent with the target router port or not; if the ACL table entries are consistent, no ACL table entries are configured; and if the ACL table entries are inconsistent, after the ACL table entries matched with the historical router port are deleted, configuring an ACL table entry matched with the target router port.
In this embodiment, as shown in fig. 1c, after determining a target router port according to an IGMP query packet, a two-layer switch first determines whether a record of the router port exists in the two-layer switch, and if the record does not exist, generates a record of the target router port, starts an timeout timer of the target router port, and directly configures an ACL that matches the target router port, so as to forward a matched unknown multicast packet to the target router port, then updates an established two-layer multicast forwarding table, and adds the target router port as a multicast member port to the two-layer multicast forwarding table.
If the historical router port which is recorded should be existed at present, it is necessary to judge whether the historical router port is consistent with the target router port, if so, the record of the target router port is not necessary to be regenerated, and only the timeout time of the target router port is needed to be updated, and the process is ended. If the ACL table entries are inconsistent with the ACL table entries, the ACL table entries are deleted, the timeout timer of the historical router port is deleted, the record of the target router port is regenerated, the timeout timer of the target router port is started, and the ACL table entries matched with the target router port are configured. And then updating the established two-layer multicast forwarding table, deleting the historical router port from the multicast member port, and adding the target router port serving as the multicast member port into the two-layer multicast forwarding table.
Optionally, the method may further include: and if the timer of the target router port is detected to be overtime, deleting the ACL table item matched with the target router port.
In this embodiment, as shown in fig. 1d, if it is detected that the timer of the target router port is overtime, for example, the original IGMP querier fails or the election fails, and the IGMP query message cannot be continuously issued through the target router port, and the new IGMP querier issues the IGMP query message through another port, the two-layer unknown multicast ACL entry matching the target router port is deleted, the established two-layer multicast forwarding table is updated, the target router port with the overtime timer is deleted from the multicast member port of the two-layer multicast forwarding table, and the relevant record of the target router port is deleted.
In this embodiment, after receiving a multicast packet sent by a multicast source, if it is determined that the multicast packet is an unknown multicast packet, the two-layer switch compares a VLAN identifier and an unknown multicast packet identifier corresponding to the multicast packet with a matching entry in an ACL entry, and if the VLAN identifier and the unknown multicast packet identifier are consistent with the matching entry, executes an action of the ACL entry, forwards the multicast packet to a target router port of the switch, and forwards the unknown multicast packet to the three-layer multicast router through the target router port.
The technical scheme of the embodiment of the invention is applied to a two-layer switch for starting IGMP-Snooping and unknown multicast discarding functions, the two-layer switch configures an ACL table item matched with a target router port after determining the target router port according to a received IGMP query message, and is used for forwarding the unknown multicast message in the two-layer switch from the target router port, so that when the unknown multicast message is received, the ACL table item can be executed to forward the unknown multicast message to the target router port, the problem that the unknown multicast message in the prior art occupies more CPU resources and hardware resources of the two-layer switch is solved, the condition that only one hardware resource ACL is used can be realized, the unknown multicast message can still be forwarded from the target router port under the scene that the two-layer switch starts the IGMP-Snooping and unknown multicast discarding functions, the normal multicast function is ensured, the occupancy rate of the CPU of the two-layer switch is reduced, and the effect of accurately forwarding the unknown multicast message on the two-layer switch can be realized by using few hardware resources.
Example two
Fig. 2 is a schematic structural diagram of a forwarding apparatus for two-layer unknown multicast in the second embodiment of the present invention, where this embodiment is applicable to a situation that an unknown multicast packet on a two-layer switch is accurately forwarded in a scenario where the two-layer switch has an IGMP-Snooping function and an unknown multicast discard function, and the apparatus may be implemented by hardware and/or software, and may generally be integrated in a switch device that provides a two-layer unknown multicast forwarding service, specifically, the two-layer switch has an IGMP-Snooping function and an unknown multicast discard function. Specifically, referring to fig. 2, the apparatus is applied to a two-layer switch that opens IGMP-Snooping and unknown multicast dropping functions, and includes:
a receiving module 210, configured to receive an IGMP query packet, and determine a target router port according to the IGMP query packet;
a configuration module 220, configured to configure an ACL entry matching the target router port;
and a forwarding module 230, configured to execute an ACL entry to forward the unknown multicast packet to the target router port if the unknown multicast packet sent by the multicast source is received.
The technical scheme of the embodiment of the invention is applied to the two-layer switch which starts the IGMP-Snooping and unknown multicast discarding functions, and determines the target router port according to the IGMP query message by receiving the IGMP query message; configuring an ACL table item matched with the port of the target router; if the unknown multicast message is received, the ACL entry is executed to forward the unknown multicast message to the target router port, so that the problem that the forwarding of the unknown multicast message in the prior art occupies more CPU resources and hardware resources of a two-layer switch is solved, the IGMP-Snooping and unknown multicast discarding functions can be started in the two-layer switch only by using one hardware resource ACL, and the unknown multicast message can still be forwarded from the target router port under the scene that a multicast data source is accessed but no multicast receiver is accessed on the two-layer switch, the normal multicast function is ensured, the extremely few hardware resources are used, and the effect of accurately forwarding the unknown multicast message on the two-layer switch is realized.
Optionally, an unknown multicast packet identifier is configured in the ACL entry, and the configured action is to forward the matched unknown multicast packet to the target router port.
Optionally, the configuration module 220 is configured to:
judging whether a history router port is recorded at present;
if not, configuring an ACL table item matched with the target router port;
if yes, judging whether the historical router port is consistent with the target router port or not;
if the ACL table entries are consistent, no ACL table entries are configured;
and if the ACL table entries are inconsistent, after the ACL table entries matched with the historical router port are deleted, configuring an ACL table entry matched with the target router port.
Optionally, the method further includes:
and the deleting module is used for deleting the ACL table item matched with the target router port if the timer of the target router port is detected to be overtime.
The forwarding device for the two-layer unknown multicast provided by the embodiment of the invention can execute the forwarding method for the two-layer unknown multicast provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a switch device according to a third embodiment of the present invention. Fig. 3 illustrates a block diagram of an exemplary device 12 suitable for use in implementing embodiments of the present invention. The device 12 shown in fig. 3 is only an example and should not bring any limitations to the functionality and scope of use of the embodiments of the present invention.
As shown in FIG. 3, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. Device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 3, and commonly referred to as a "hard drive"). Although not shown in FIG. 3, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, for example, implementing the forwarding method for layer two unknown multicast provided by the embodiment of the present invention.
Namely: a forwarding method for realizing two-layer unknown multicast is applied to a two-layer switch for starting IGMP-Snooping and unknown multicast discarding functions, and comprises the following steps:
receiving an IGMP query message, and determining a target router port according to the IGMP query message;
configuring an ACL table item matched with the port of the target router;
and if the unknown multicast message sent by the multicast source is received, executing the ACL list item to forward the unknown multicast message to the target router port.
Example four
The fourth embodiment of the present invention further discloses a computer storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a forwarding method for a two-layer unknown multicast, and the method is applied to a two-layer switch that starts IGMP-Snooping and an unknown multicast discarding function, and includes:
receiving an IGMP query message, and determining a target router port according to the IGMP query message;
configuring an ACL table item matched with the port of the target router;
and if the unknown multicast message sent by the multicast source is received, executing the ACL list item to forward the unknown multicast message to the target router port.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, or the like, as well as conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A forwarding method of two-layer unknown multicast is characterized in that the forwarding method is applied to a two-layer switch for starting Internet group management Snooping protocol IGMP-Snooping and unknown multicast discarding functions, and comprises the following steps:
receiving an Internet Group Management Protocol (IGMP) query message, and determining a target router port according to the IGMP query message;
configuring an Access Control List (ACL) table item matched with the target router port;
and if an unknown multicast message sent by a multicast source is received, executing the ACL list item and forwarding the unknown multicast message to the target router port.
2. The method of claim 1, wherein an unknown multicast packet identifier is configured in the ACL entry, and the configured action is to forward a matched unknown multicast packet to the target router port.
3. The method of claim 1, wherein configuring an ACL entry matching the target router port comprises:
judging whether a history router port is recorded at present;
if not, configuring an ACL table item matched with the target router port;
if yes, judging whether the historical router port is consistent with the target router port or not;
if the ACL table entries are consistent, no ACL table entries are configured;
and if the ACL table entries are inconsistent, after the ACL table entries matched with the historical router port are deleted, configuring an ACL table entry matched with the target router port.
4. The method of claim 1, further comprising:
and if the timer of the target router port is detected to be overtime, deleting the ACL table item matched with the target router port.
5. A forwarding device of two-layer unknown multicast is characterized in that the forwarding device is applied to a two-layer switch for starting IGMP-Snooping and unknown multicast discarding functions, and comprises the following components:
the receiving module is used for receiving the IGMP query message and determining a target router port according to the IGMP query message;
the configuration module is used for configuring an ACL table item matched with the target router port;
and the forwarding module is used for executing the ACL table entry and forwarding the unknown multicast message to the target router port if the unknown multicast message sent by the multicast source is received.
6. The apparatus of claim 5, wherein an unknown multicast packet identifier is configured in the ACL entry, and the configured action is to forward a matching unknown multicast packet to the target router port.
7. The apparatus of claim 5, wherein the configuration module is configured to:
judging whether a history router port is recorded at present;
if not, configuring an ACL table item matched with the target router port;
if yes, judging whether the historical router port is consistent with the target router port or not;
if the ACL table entries are consistent, no ACL table entries are configured;
and if the ACL table entries are inconsistent, after the ACL table entries matched with the historical router port are deleted, configuring an ACL table entry matched with the target router port.
8. The apparatus of claim 5, further comprising:
and the deleting module is used for deleting the ACL table item matched with the target router port if the timer of the target router port is detected to be overtime.
9. A switch device, characterized in that the device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method for forwarding a layer two unknown multicast according to any of claims 1-4.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a method for forwarding a layer two unknown multicast according to any one of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111589068.4A CN114244768A (en) | 2021-12-23 | 2021-12-23 | Forwarding method, device, equipment and storage medium for two-layer unknown multicast |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111589068.4A CN114244768A (en) | 2021-12-23 | 2021-12-23 | Forwarding method, device, equipment and storage medium for two-layer unknown multicast |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114244768A true CN114244768A (en) | 2022-03-25 |
Family
ID=80762013
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111589068.4A Pending CN114244768A (en) | 2021-12-23 | 2021-12-23 | Forwarding method, device, equipment and storage medium for two-layer unknown multicast |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114244768A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115567436A (en) * | 2022-08-17 | 2023-01-03 | 北京东土军悦科技有限公司 | Multicast message processing method, system, computer equipment and readable storage medium |
WO2024021672A1 (en) * | 2022-07-25 | 2024-02-01 | 中兴通讯股份有限公司 | Multicast packet processing method and device, storage medium, and electronic device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101159665A (en) * | 2007-08-28 | 2008-04-09 | 杭州华三通信技术有限公司 | Method and device to implement forwarding of unknown multicast packet to router port |
CN102075422A (en) * | 2011-01-04 | 2011-05-25 | 杭州华三通信技术有限公司 | Multicast management method and two-layer equipment |
CN103179043A (en) * | 2013-03-06 | 2013-06-26 | 杭州华三通信技术有限公司 | Method and equipment for forwarding multicast messages |
CN110830371A (en) * | 2019-11-13 | 2020-02-21 | 迈普通信技术股份有限公司 | Message redirection method and device, electronic equipment and readable storage medium |
-
2021
- 2021-12-23 CN CN202111589068.4A patent/CN114244768A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101159665A (en) * | 2007-08-28 | 2008-04-09 | 杭州华三通信技术有限公司 | Method and device to implement forwarding of unknown multicast packet to router port |
CN102075422A (en) * | 2011-01-04 | 2011-05-25 | 杭州华三通信技术有限公司 | Multicast management method and two-layer equipment |
CN103179043A (en) * | 2013-03-06 | 2013-06-26 | 杭州华三通信技术有限公司 | Method and equipment for forwarding multicast messages |
CN110830371A (en) * | 2019-11-13 | 2020-02-21 | 迈普通信技术股份有限公司 | Message redirection method and device, electronic equipment and readable storage medium |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2024021672A1 (en) * | 2022-07-25 | 2024-02-01 | 中兴通讯股份有限公司 | Multicast packet processing method and device, storage medium, and electronic device |
CN115567436A (en) * | 2022-08-17 | 2023-01-03 | 北京东土军悦科技有限公司 | Multicast message processing method, system, computer equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200358745A1 (en) | Firewall Configuration Method and Apparatus and Packet Sending Method and Apparatus | |
EP2356775B1 (en) | Central controller for coordinating multicast message transmissions in distributed virtual network switch environment | |
US10367852B2 (en) | Multiplexed demand signaled distributed messaging | |
US10594565B2 (en) | Multicast advertisement message for a network switch in a storage area network | |
EP3739826B1 (en) | Communication method, system and apparatus | |
US20030208572A1 (en) | Mechanism for reporting topology changes to clients in a cluster | |
US20050163123A1 (en) | Method and apparatus for implementing a MAC address pool for assignment to a virtual interface aggregate | |
CN114244768A (en) | Forwarding method, device, equipment and storage medium for two-layer unknown multicast | |
JP2003501881A (en) | Method and apparatus for multicasting | |
US7136907B1 (en) | Method and system for informing an operating system in a system area network when a new device is connected | |
WO2021184551A1 (en) | Communication method and apparatus based on plurality of networks, electronic device, and storage medium | |
US20190280968A1 (en) | Multicasting system | |
WO2006065101A1 (en) | Method for balancing load among subsystems in communication network system of bus network structure | |
WO2022120806A1 (en) | Multi-cloud distributed messaging method and system for high performance computing | |
WO2020114512A1 (en) | Multicast message transmission method, first network device and second network device | |
US7343432B1 (en) | Message based global distributed locks with automatic expiration for indicating that said locks is expired | |
US8346892B2 (en) | Communication network system of bus network structure and method using the communication network system | |
US8260942B2 (en) | Cluster view performance | |
US10938591B2 (en) | Multicast system | |
US20230385264A1 (en) | Managing subscriptions to data queries that react and update to change notifications | |
CN109413142B (en) | Method for realizing iSCSI virtual agent under L inux | |
CN109428814B (en) | Multicast traffic transmission method, related equipment and computer readable storage medium | |
CN113472667B (en) | Message forwarding method, device, node equipment and storage medium | |
CN109309583B (en) | Information acquisition method and device based on distributed system, electronic equipment and medium | |
CN113918504A (en) | Method and device for realizing isolation group |
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 |