CN110868307B - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN110868307B
CN110868307B CN201810989843.7A CN201810989843A CN110868307B CN 110868307 B CN110868307 B CN 110868307B CN 201810989843 A CN201810989843 A CN 201810989843A CN 110868307 B CN110868307 B CN 110868307B
Authority
CN
China
Prior art keywords
port
message
multicast address
group corresponding
network
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
CN201810989843.7A
Other languages
Chinese (zh)
Other versions
CN110868307A (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201810989843.7A priority Critical patent/CN110868307B/en
Publication of CN110868307A publication Critical patent/CN110868307A/en
Application granted granted Critical
Publication of CN110868307B publication Critical patent/CN110868307B/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
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership

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 application provides a message processing method and device. The method comprises the following steps: receiving an adding message through a first port of network equipment, wherein the adding message carries a first multicast address to be added; adding the first port into a port group corresponding to the first multicast address; sending the joining message to other network equipment, so that the other network equipment joins a second port into the port group corresponding to the first multicast address according to the joining message, and the other network equipment forwards a data message according to the port group corresponding to the first multicast address; and the second port is a port for receiving the join message in the other network equipment. By applying the scheme provided by the embodiment of the application, the data message multicast in the complex networking can be forwarded, and the bandwidth waste is reduced.

Description

Message processing method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a packet.
Background
Multicast enables point-to-multipoint network connections between a sender and each recipient. If a sender transmits the same data to multiple receivers at the same time, only one copy of the same data message is needed. The data transmission mode improves the data transmission efficiency and reduces the possibility of congestion of the backbone network.
Internet Group Management Protocol (IGMP), a multicast Protocol in the Internet Protocol family. The protocol operates between the end devices and the multicast switch. Referring to fig. 1a, when the switch sw1 is an interrogator, the interrogator may broadcast an inquiry message, and when the host receives the inquiry message, the host feeds back an add message carrying a multicast address to be added. When the adding message is sequentially sent to the switch sw2 and the switch sw1, the two switches add the corresponding ports to the port group corresponding to the multicast address. When the switch sw1 or switch sw2 receives a data packet to be sent to the multicast address, an egress port of the data packet may be determined through a port group corresponding to the stored multicast address, and the data packet is forwarded through the determined egress port.
However, for the complex networking shown in FIG. 1b, when switch sw1 is the querier, the join message from host 2 is terminated by the switch sw5, switch sw2 to switch sw 1. In order to enable the multicast data packet from the host 3 to be sent to the host 2, a method is usually adopted in which the ports in the switch sw6 are configured into a multicast flooding mode, that is, the switch sw6 performs unconditional forwarding on the received multicast data packet through each port. This method will inevitably cause a great deal of bandwidth waste and affect the network stability.
Disclosure of Invention
The embodiment of the application aims to provide a message processing method and a message processing device, so as to realize forwarding of multicast data messages in complex networking and reduce bandwidth waste.
In a first aspect, an embodiment of the present application provides a message processing method, which is applied to a network device, and the method includes:
receiving an adding message through a first port of the network equipment, wherein the adding message carries a first multicast address to be added;
adding the first port into a port group corresponding to the first multicast address;
sending the joining message to other network equipment, so that the other network equipment joins a second port into the port group corresponding to the first multicast address according to the joining message, and the other network equipment forwards a data message according to the port group corresponding to the first multicast address;
the second port is a port which receives the join message in the other network equipment; the other network devices are network devices except the network device in networking.
Optionally, the step of sending the join packet to other network devices includes:
determining each third port of the network equipment except the first port;
and forwarding the added message through each third port respectively.
In a second aspect, an embodiment of the present application provides another packet processing method, where the method is applied to a network device, and the method further includes:
receiving a leave message through a fourth port of the network device; wherein the leaving message carries a second multicast address to be left;
deleting the fourth port contained in the port group corresponding to the second multicast address;
sending the leaving message to other network equipment so that the other network equipment deletes a fifth port contained in a port group corresponding to the second multicast address according to the leaving message;
wherein, the fifth port is a port for receiving the leaving message in the other network devices; the other network devices are network devices except the network device in networking.
Optionally, when the network device is an interrogator, after the step of deleting the fourth port included in the port group corresponding to the second multicast address, and before the step of sending the leave packet to another network device, the method further includes:
judging whether a port group corresponding to the second multicast address also comprises a port;
and if not, sending the leaving message to other network equipment.
Optionally, when it is determined that the port group corresponding to the second multicast address does not include a port, the method further includes:
and deleting the port group corresponding to the second multicast address.
Optionally, in a case that the network device is not an interrogator, after the step of deleting the fourth port included in the port group corresponding to the second multicast address, before the step of sending the leave packet to another network device, the method further includes:
judging whether the fourth port is a port communicating with the querier;
and if not, when determining that the port group corresponding to the second multicast address does not contain other ports except the port communicated with the inquirer, sending the leaving message to other network equipment.
Optionally, when it is determined that the fourth port is a port communicating with the interrogator, the method further includes:
and deleting the port group corresponding to the second multicast group address, and sending the leaving message to other network equipment except the network equipment connected with the fourth port.
Optionally, the step of sending the leave packet to other network devices includes:
determining each sixth port of the network device except the fourth port;
and forwarding the leaving message through each sixth port respectively.
In a third aspect, an embodiment of the present application provides a packet processing apparatus, where the apparatus is applied to a network device, and the apparatus includes:
a first receiving module, configured to receive an adding message through a first port of the network device, where the adding message carries a first multicast address to be added;
the adding module is used for adding the first port into a port group corresponding to the first multicast address;
a first sending module, configured to send the join packet to other network devices, so that the other network devices add a second port to the port group corresponding to the first multicast address according to the join packet, and forward a data packet according to the port group corresponding to the first multicast address;
the second port is a port which receives the join message in the other network equipment; the other network devices are network devices except the network device in networking.
Optionally, the first sending module is specifically configured to:
determining each third port of the network equipment except the first port;
and forwarding the added message through each third port respectively.
In a fourth aspect, an embodiment of the present application provides a packet processing apparatus, where the apparatus is applied to a network device, and the apparatus further includes:
a second receiving module, configured to receive a leave message through a fourth port of the network device; wherein the leaving message carries a second multicast address to be left;
a first deleting module, configured to delete the fourth port included in the port group corresponding to the second multicast address;
a second sending module, configured to send the leave packet to other network devices, so that the other network devices delete a fifth port included in a port group corresponding to the second multicast address according to the leave packet;
wherein, the fifth port is a port for receiving the leaving message in the other network devices; the other network devices are network devices except the network device in networking.
Optionally, in a case that the network device is an interrogator, the apparatus further includes:
a first determining module, configured to determine, after deleting the fourth port included in the port group corresponding to the second multicast address and before sending the leave packet to other network devices, whether the port group corresponding to the second multicast address further includes a port;
the second sending module is further configured to send the leave packet to other network devices when it is determined that the port group corresponding to the second multicast address does not include a port.
Optionally, the apparatus further comprises:
and the second deleting module is used for deleting the port group corresponding to the second multicast address when judging that the port group corresponding to the second multicast address does not contain the port.
Optionally, in a case that the network device is not an interrogator, the apparatus further includes:
a second determining module, configured to determine, after deleting the fourth port included in the port group corresponding to the second multicast address, whether the fourth port is a port in communication with the interrogator before sending the leave packet to another network device;
a second sending module, configured to send the leave packet to another network device when the fourth port is not a port in communication with the interrogator and it is determined that the port group corresponding to the second multicast address does not include any port other than the port in communication with the interrogator.
Optionally, the apparatus further comprises:
a third deleting module, configured to delete the port group corresponding to the second multicast group address when it is determined that the fourth port is a port in communication with the interrogator;
and the third sending module is used for sending the leaving message to other network equipment except the network equipment connected with the fourth port.
Optionally, the second sending module is specifically configured to:
determining each sixth port of the network device except the fourth port;
and forwarding the leaving message through each sixth port respectively.
In a fifth aspect, an embodiment of the present application provides a network device, where the network device includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the message processing method provided by the first aspect when executing the program stored in the memory.
In a sixth aspect, an embodiment of the present application provides another network device, where the network device includes a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the message processing method provided by the second aspect when executing the program stored in the memory.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the message processing method provided in the first aspect is implemented.
In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the message processing method provided in the second aspect is implemented.
In the message processing method and apparatus provided in the embodiment of the present application, when receiving an add message, the network device may add the first port to the port group corresponding to the first multicast address, and send the add message to other network devices. Because each network device sends the joining message to other network devices after receiving the joining message, each network device in the networking can add the port into the port group corresponding to the first multicast address under the complex networking condition. When the network device receives the data message to be sent to the first multicast address, the network device can determine the output port of the data message according to the port group corresponding to the first multicast address, and forward the data message through the output port without configuring the port of the network device into a multicast flooding mode. Therefore, the embodiment of the application can realize the forwarding of the multicast data message in the complex networking and reduce the bandwidth waste. Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
FIGS. 1a and 1b are schematic diagrams of several networking systems to which embodiments of the present application are applied;
fig. 2 is a schematic flowchart of a message processing method according to an embodiment of the present application;
fig. 3 is a schematic flowchart of another message processing method according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another message processing method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another message processing apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a network device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of another network device according to an embodiment of the present application.
Detailed Description
The technical solution 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. It is to be understood that the described embodiments are merely a few embodiments of the present application and not all 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.
In order to realize forwarding of multicast data messages in complex networking and reduce bandwidth waste, the embodiment of the application provides a message processing method and a message processing device. The present application will be described in detail below with reference to specific examples.
Fig. 2 is a schematic flowchart of a message processing method according to an embodiment of the present application. The method is applied to the network equipment. The network device may be a router or a switch, etc. The method comprises the following steps:
step S201: and receiving the joining message through a first port of the network equipment.
Wherein, the joining message carries the first multicast address to be joined. The network device may receive the join message after the querier broadcasts the query message. The network device may or may not be an interrogator. The join message is a multicast message, the first multicast address may be a destination address of the join message, the source address of the join message is an address of the host device that sent the join message, and the type of the message is join. The host device may also be referred to as a terminal device, and may include a user device, a general computer device, a server, and the like.
Step S202: and adding the first port into a port group corresponding to the first multicast address.
After the first port is added to the port group corresponding to the first multicast address, the port group corresponding to the first multicast group may be stored. The port group corresponding to the first multicast address may include one or more ports. The port group corresponding to the multicast address may exist in the form of a multicast entry. The port in the port group is the output port corresponding to the first multicast address.
For example, the first multicast address is 224.0.0.1.63, and the port group corresponding to the first multicast address can be expressed as: 224.0.0.1.63: p1, p 4. Wherein, both p1 and p4 are ports in the network device.
In an embodiment, after the first port is determined, when there is no multicast entry corresponding to the first multicast address in the network device, a multicast entry of the first multicast address may be created, and the first port is added to the multicast entry of the first multicast address. When the multicast table entry of the first multicast address already exists in the network device, the first port may be directly added to the multicast table entry of the first multicast address.
When receiving the data packet sent to the first multicast address, the network device may determine an egress port of the data packet from a port group corresponding to the first multicast address, and forward the data packet through the determined egress port. For example, all ports in the port group may be regarded as egress ports, and the data packet may be sent to each egress port.
Step S203: and sending the joining message to other network equipment, so that the other network equipment joins the second port into the port group corresponding to the first multicast address according to the joining message, and enables the other network equipment to forward the data message according to the port group corresponding to the first multicast address.
The second port is a port for receiving the join message in other network devices. The other network devices are network devices in the networking except the network device as the execution subject.
When other network equipment receives the joining message sent by the network equipment, the port which receives the joining message is added into the port group corresponding to the first multicast address. When other network devices receive the data message to be sent to the first multicast address, the output port of the data message may be determined from the port group corresponding to the first multicast address, and the data message is forwarded through the determined output port.
Fig. 1a and 1b are schematic diagrams of several kinds of networking to which the present embodiment can be applied. The following describes the present embodiment with respect to the networking shown in fig. 1 b. In fig. 1b, the switch sw1 is a query message, and after the query message is broadcast by the query message, the query message sequentially passes through the switch sw2 and the switch sw5 to reach the host 2. After receiving the query message, the host 2 sends a join message a, which carries the multicast address 224.0.1.21. The switch sw5 receives the join message a through the port p12, and adds p12 to the port group corresponding to the multicast address 224.0.1.21, that is, the switch sw5 stores 224.0.1.21: p 12. The switch sw5 sends the join message a to the switch sw2, the sw2 receives the join message a through the p6, and adds the p6 to the port group corresponding to the multicast address 224.0.1.21, that is, the switch sw2 stores 224.0.1.21: p 6.
The switch sw2 sends the join message A to sw4 and sw1 respectively. The switch sw4 receives the join message a through p8 and saves 224.0.1.21: p 8. The switch sw1 receives the join message a through p1 and saves 224.0.1.21: p 1. The switch sw4 sends the join message a to host 1, and host 1 may not process the join message a. The switch sw1 sends the join message a to switch sw 3.
The switch sw3 receives the join message through p4 and saves 224.0.1.21: p 4. Likewise, switch sw6 maintains 224.0.1.21: p 10. The host 3 may not process the message when it receives it.
Thus, when the host 3 sends the data packet to be sent to the switch sw 224.0.1.21 to the switch sw6, the switch sw6 forwards the data packet through the port p10 according to the port group corresponding to the saved multicast address. When the switch sw3 receives the data message, it forwards the data message through the p4 in the port group. When the switch sw1 receives the data message, it forwards the data message through p 1. When the switch sw2 receives the data message, it forwards the data message through p 6. The switch sw5 forwards the data message through p12 when receiving the data message. The host 2 joining the multicast address can receive the data message. Multicast communication between the host 3 and the host 2 is realized.
The data packet in this embodiment may be a video data packet, an image data packet, an audio data packet, or the like. The embodiment of the present application does not limit the type of data carried in the data message.
The querier may send the query message periodically, and when the terminal device receives the query message, the querier returns the join message. And each network device receiving the joining message adds the port receiving the joining message into the port group corresponding to the first multicast address.
As can be seen from the above, in this embodiment, each network device sends the join packet to other network devices after receiving the join packet, so that each network device in networking can add a port to a port group corresponding to the first multicast address under a complex networking condition. When the network device receives the data message to be sent to the first multicast address, the network device can determine the output port of the data message according to the port group corresponding to the first multicast address, and forward the data message through the output port without configuring the port of the network device into a multicast flooding mode. Therefore, the embodiment can realize the forwarding of the multicast data messages in the complex networking, reduce the bandwidth waste and also reduce the risk of broadcasting the data messages of all multicast addresses.
In a network using an Internet Group Management Protocol (IGMP), a port corresponding to a multicast address may be presented in the form of a multicast entry. The network devices in the network may be IGMP queriers (Querier) or IGMP snoopers (Snooping). The IGMP querier may broadcast a query message. The IGMP snooper as the two-layer device may analyze the received IGMP packet, add the port to the multicast entry, and forward the multicast data according to the multicast entry.
The Protocol Independent Multicast (PIM) Protocol is also a Multicast routing Protocol. The PIM protocol does not depend on a specific unicast routing protocol, and it can complete a Reverse Path Forwarding (RPF) checking function by using a unicast routing table established by any unicast routing protocol, thereby establishing a multicast route. Since PIM does not need to send and receive multicast routing update messages, compared with other multicast routing protocols, PIM overhead is reduced.
In order to implement forwarding of multicast data packets under complex networking conditions, referring to fig. 1b, a PIM protocol may also be run between network devices, and an IGMP protocol may also be run between a terminal device and a network device. This multicast approach requires complex configuration due to the need to synchronize entries between network devices. Especially for network devices, network segments need to be divided, and configuration is cumbersome.
In the embodiment provided by the application, a three-layer multicast protocol such as PIM (personal information management protocol) does not need to be introduced into networking, and IGMP (internet group management protocol) two-layer protocols are operated between the terminal equipment and the network equipment and among the network equipment, so that two-layer multicast is realized, and the configuration is simple and easy to realize.
Meanwhile, in fig. 1b, the function of discarding the data packet of the unknown multicast address by the network device is turned off, and the mode of configuring and broadcasting the data packet of the unknown multicast address can also implement forwarding of the multicast data packet under the complex networking, but this mode consumes bandwidth resources. Or, the forwarding of the multicast data packet under complex networking can also be realized by manually configuring the port corresponding to the multicast address for the network device, but the manual configuration operation is complicated, and the efficiency is low. According to the embodiment, the function of discarding the unknown multicast message does not need to be closed by the network equipment, the static port does not need to be configured manually, the change of the multicast address does not need to be considered, and the application is more flexible.
In IGMP networking, when receiving a query message, a terminal device may send a multicast join message (join message). The switch may receive a multicast join message sent by the end device. Therefore, in the above embodiment, the join packet may be sent by other network devices, or may be sent by the terminal device.
In another embodiment of the present application, in the embodiment shown in fig. 2, the step of sending the join packet to other network devices in step S203 may include:
and determining each third port except the first port in the network equipment, and forwarding the added message through each third port respectively.
Wherein each third port may be an active port in the network device. When the added message is forwarded through each third port, the added message can be copied, and the copied added message is forwarded through each third port.
The embodiment provides a specific implementation manner for sending the join message to other network devices.
In another embodiment, each third port may be a port connected to other network devices, excluding a port connected to a terminal device. Therefore, the adding message can be prevented from being sent to the terminal equipment, and the forwarding times of the adding message are reduced.
In the complex multicast network shown in fig. 1b, when the host 2 needs to leave a certain multicast group (224.0.1.21), a leave message carrying a multicast address 224.0.1.21 may be sent to the querier, where the destination address of the leave message is the multicast address 224.0.1.21, and the type of the message is leave. When only host 2 joins the multicast address, the leave message can go through switches sw5 and sw2 in sequence to reach sw 1. The switch sw5 and the switch sw2 arriving sw1 can delete the port corresponding to the multicast address. When the switch sw1 is the querier, the leaving message is sent to the querier, and the switch sw3 and the switch sw6 cannot receive the leaving message, so that the egress port pointing to the sw1 is still stored in the port group corresponding to the multicast address. When the host 3 receives the data packet to be sent to the multicast address 224.0.1.21, the data packet is forwarded to the switch sw1 through the egress port. When the switch sw1 does not find an egress port, the data packet is discarded. Therefore, as seen from the above example, the switch sws 3 and 6 may additionally send redundant data packets, which also results in a waste of bandwidth resources of the switch ports.
Therefore, in order to reduce the waste of bandwidth resources, the following embodiments are also provided in the embodiments of the present application.
Fig. 3 is a flowchart illustrating another message processing method according to an embodiment of the present application. The method is applied to the network equipment. The network device may be a router or a switch, etc. The method comprises the following steps:
step S301: the leave message is received through the fourth port of the network device.
Wherein the leaving message carries the second multicast address to be left. The destination address of the leave message may be the second multicast address and the message type is leave. The source address of the leave message may be the address of the terminal device that sent the leave message.
Step S302: and deleting a fourth port contained in the port group corresponding to the second multicast address.
For example, the port group corresponding to the second multicast address is, 224.0.1.21: p 1. When the fourth port is p1, the p1 in the port group is deleted.
Step S303: and sending the leaving message to other network equipment so that the other network equipment deletes a fifth port contained in the port group corresponding to the second multicast address according to the leaving message.
The fifth port is a port for receiving the leaving message in other network devices. The other network devices are network devices in the networking except the network device as the execution subject.
The other network devices may be one or more. When the other network device receives the leave packet, the other network device may delete the fifth port in the port group corresponding to the second multicast address according to the leave packet. When other network devices receive the data packet to be sent to the second multicast address, the fifth port is deleted, and when it is determined that the port group corresponding to the second multicast address does not include other ports, the data packet may be directly discarded.
It can be seen that, in this embodiment, after receiving the leave packet, each network device forwards the leave packet to other network devices, so that the other network devices delete corresponding ports in the port group corresponding to the multicast address. Therefore, under the condition of complex networking, each network device in the networking can delete the output port corresponding to the specified multicast address, and when the network device receives the data message to be sent to the multicast address and determines that the port group corresponding to the multicast address does not contain other ports, the data message is discarded without being forwarded. Therefore, the embodiment can reduce the waste of bandwidth resources.
In the networking shown in fig. 1b, more than two hosts may join the same multicast address. Thus, in the network device, the port group corresponding to the multicast address may include one or two ports. For example, the host 1 and the host 2 both join the multicast address 224.0.1.21, the port group corresponding to the multicast address 224.0.1.21 in the switch sw5 includes p12 and p9, the port group corresponding to the multicast address 224.0.1.21 in the sw2 includes p5 and p6, the port group corresponding to the multicast address 224.0.1.21 in the sw4 includes p8 and p11, the port group corresponding to the multicast address 224.0.1.21 in the sw3 includes p4 and p7, and the port group corresponding to the multicast address 224.0.1.21 in the sw6 includes p10 and p 13. When the host 2 sends a leaving message leaving the multicast address 224.0.1.21, in order to avoid that the sw2 deletes the egress port p5 corresponding to the multicast address 224.0.1.21 and affects the host 1 to receive the data message, the present application further provides the following embodiments.
In a case where the network device as an execution subject is an interrogator, after the step of deleting the fourth port included in the port group corresponding to the second multicast address, before the step of sending the leave message to the other network device, the method may further include: and judging whether the port group corresponding to the second multicast address contains a port or not, and if not, sending the leaving message to other network equipment.
For example, when the network device is an interrogator, when it is determined that the port group corresponding to the second multicast address does not include a port, that is, when the fourth port is the last port in the port group corresponding to the second multicast address, the leave message is sent to the other network device.
The inquirer is a network device in the networking. The inquiring device is used for sending the inquiring message periodically, and after the terminal equipment receives the inquiring message, the adding message carrying the multicast address to be added is returned to the inquiring device. And each network device receiving the joining message adds the port receiving the joining message into the port group corresponding to the multicast address to be joined. The network device may maintain an identification indicating whether it is an interrogator. The network device can determine whether itself is the querier according to the identifier.
When the network device is an interrogator, and when it is determined that the port group corresponding to the second multicast address does not include a port, the method further includes: and deleting the port group corresponding to the second multicast address.
Because the port group corresponding to the second multicast address does not contain any port, the port group corresponding to the second multicast address can be deleted, and resources of multicast table entries in the device are saved.
When the network device is an interrogator, when it is determined that the port group corresponding to the second multicast address further includes a port, the fourth port included in the port group corresponding to the second multicast address is deleted.
In a case that the network device is not an interrogator, after deleting a fourth port included in a port group corresponding to the second multicast address, before sending an exit message to another network device, the method may further include:
and judging whether the fourth port is a port communicated with the querier, if not, and sending the leaving message to other network equipment when determining that the port group corresponding to the second multicast address does not contain other ports except the port communicated with the querier.
The network device may include one or more ports in an active state. The network device may pre-label which port is the port that communicates with the interrogator. Ports that communicate with an interrogator may be referred to as first type ports and ports other than those that communicate with an interrogator may be referred to as second type ports.
When it is determined that the port group corresponding to the second multicast address further includes other ports than the port communicating with the interrogator, the processing may be omitted.
When the fourth port is a port communicating with the interrogator, the method may further delete the port group corresponding to the second multicast group address, and send the leaving message to other network devices except the network device connected to the fourth port.
Deleting the port group corresponding to the second multicast group address, which may be understood as deleting the multicast entry corresponding to the second multicast group address and the port included in the multicast entry. In this embodiment, the port group corresponding to the second multicast address is deleted regardless of whether the port group further includes a port. Therefore, the occupation of the table entry resources of the network equipment can be reduced.
For example, in FIG. 1b, switch sw1 is a querier. For the switch sw5, port p9 is a first type of port and port p12 is a second type of port. The switch sw5 stores a port group corresponding to the second multicast address that includes p9 and p 12. When the switch sw5 receives the leave message from port p12, the switch sw5 deletes the p12 in the port group, and the port group only has p9 left. Since p12 is not the first type of port and the switch sw5 stores the second multicast address corresponding to a port group including p9, no other port is included than the port p9 that communicates with the interrogator, and the outgoing message may be sent through port p 9.
When the switch sw5 receives the leave message from the port p9, it indicates that the leave message has been sent to the querier, and the port group corresponding to the second multicast address does not include other ports except the port communicating with the querier in the other network devices between the switch sw5 and the querier. In this case, the port group corresponding to the second multicast address may be deleted. The leave message may no longer be forwarded since switch sw5 has no other network devices connected to sw 2.
In another embodiment of the present application, step S302 in the embodiment shown in fig. 3, the step of sending the leaving message to other network devices includes:
and determining each sixth port except the fourth port in the network equipment, and forwarding the leaving message through each sixth port respectively.
Each sixth port may be a port in an active state in the network device. When the leaving message is forwarded through each sixth port, the leaving message can be copied, and the copied leaving message is forwarded through each sixth port.
The embodiment provides a specific implementation mode of sending the leaving message to other network devices.
In another embodiment, each sixth port may be a port connected to other network devices, and does not include a port connected to a terminal device. Therefore, the leaving message can be prevented from being sent to the terminal equipment, and the forwarding times of the leaving message are reduced.
The present application will be described in detail with reference to specific examples.
Referring to the schematic flow chart of fig. 4, the method comprises the following steps:
step S0: and when the network equipment receives the leaving message through the four ports, deleting the fourth port contained in the port group corresponding to the second multicast address. The leaving message carries the second multicast address to be left.
Step S1: and judging whether the device is an inquirer, if so, executing the step S2, and if not, executing the step S5.
Step S2: and judging whether the port group corresponding to the second multicast address further comprises ports, if so, executing the step S3, and if not, executing the step S4.
Step S3: and deleting the port group corresponding to the second multicast address.
Step S4: and sending the leaving message to other network equipment.
Step S5: and judging whether the fourth port is a port for communicating with the inquirer, if so, executing the step S6, and if not, executing the step S7.
Step S6: and deleting the port group corresponding to the second multicast address, and sending the leaving message to other network equipment except the network equipment connected with the fourth port.
Step S7: when it is determined that the port group corresponding to the second multicast address does not include a port other than the port communicating with the interrogator, step S4 is performed. If the port group corresponding to the second multicast address contains other ports besides the port communicating with the interrogator, the processing may not be performed.
The present application will be described in detail below with reference to fig. 1b as an example. Wherein the switch sw1 is a querier.
Host 1 and host 2 both join the same multicast address G1. The multicast table entries of G1 in each switch are: in switch sw1, G1: p 1; in switch sw2, G1: p5, p6, p 3; in switch sw4, G1: p11, p 8; in switch sw5, G1: p12, p 9; in switch sw3, G1: p7, p 4; in switch sw6, G1: p13, p 10.
The ports in each switch that communicate with the interrogator sw1 are: p3 in switch sw2, p8 in switch sw4, p9 in switch sw5, p4 in switch sw3, p10 in switch sw 6.
When the host 2 sends a leave message 1 carrying G1 to the switch sw5, the switch sw5 receives the leave message 1 through port p 12. The switch sw5 deletes port p12 in the multicast entry of G1. Since the switch sw5 is not a querier, p12 is not a port communicating with the querier, and only port p9 remains in the multicast entry of G1 (p9 is a port communicating with the querier sw 1), the switch sw5 can send the leave message 1 to the switch sw2 through p 9.
The switch sw2 receives the leave message 1 sent by the switch sw5 through the port p6, and deletes the port p6 in the multicast table entry of the G1. Since the switch sw2 is not the querier, p6 is not the port communicating with the querier, and there are ports p5 and p3 left in the multicast entry of G1 (p5 is not the port communicating with the querier), the switch sw2 does not forward the leave message 1 outwards.
When the host 1 sends a leave message 2 carrying G1 to the switch sw4, the switch sw4 receives the leave message 2 through port p 11. The switch sw4 deletes port p11 in the multicast entry of G1. Since the switch sw4 is not a querier, p11 is not a port communicating with the querier, and only port p8 remains in the multicast entry of G1 (p8 is a port communicating with the querier sw 1), the switch sw4 can send the leave message 2 to the switch sw2 through p 8.
The switch sw2 receives the leave message 2 sent by the switch sw4 through the port p5, and deletes the port p5 in the multicast table entry of the G1. Since the switch sw2 is not a querier, p5 is not a port communicating with the querier, and there is port p3 left in the multicast entry of G1 (p3 is a port communicating with the querier), the switch sw2 can send leave message 2 through ports p3 and p 6.
The switch sw5 receives the leave message 2 sent by the switch sw2 through the port p9, and since the switch sw5 is not the querier and p9 is the port communicating with the querier, the switch sw5 deletes the multicast table entry of G1.
The switch sw1 receives the leave message 2 sent by the switch sw2 through the port p1, and deletes the port p1 in the multicast table entry of the G1. Since the switch sw1 is the querier and the multicast table entry of G1 does not include other ports, the switch sw1 can send the leaving message 2 to the switch sw2 and the switch sw3 through the ports p1 and p2, respectively.
The switch sw2 receives the leaving message 2 sent by the switch sw1 through the port p3, and since the switch sw2 is not the querier and the port p3 is the port communicating with the querier, the switch sw2 deletes the multicast entry of the G1 and forwards the leaving message 2 through the p5 and the p 6.
The switch sw3 receives the leaving message 2 sent by the switch sw1 through the port p4, and since the switch sw3 is not the querier and the port p4 is the port communicating with the querier, the switch sw3 deletes the multicast entry of the G1 and forwards the leaving message 2 through the p 7.
The switch sw6 receives the leave message 2 sent by the switch sw3 through the port p10, and since the switch sw6 is not the querier and the port p10 is the port communicating with the querier, the switch sw6 deletes the multicast table entry of G1.
Thus, when the host 2 leaves the multicast address G1, both the switch sw5 and the switch sw2 delete the corresponding egress port in the G1, and the forwarding of the data message sent to the multicast address G1 to the host 1 is not affected. When the host 1 and the host 2 both leave the multicast address G1, the switches in the networking can delete the multicast table entry of G1, and the switches in the networking do not need to forward the data packet to the host 1 and the host 2, so that the processing resources of the network equipment can be saved, and the waste of bandwidth resources is reduced.
Fig. 5 is a schematic structural diagram of a message processing apparatus according to an embodiment of the present application. The embodiment is applied to a network device, which may be a router, a switch or the like. This embodiment corresponds to the embodiment of the method shown in fig. 2. The device includes:
a first receiving module 501, configured to receive an add packet through a first port of the network device, where the add packet carries a first multicast address to be added;
a adding module 502, configured to add the first port to a port group corresponding to the first multicast address;
a first sending module 503, configured to send the join packet to other network devices, so that the other network devices add a second port to the port group corresponding to the first multicast address according to the join packet, and forward the data packet according to the port group corresponding to the first multicast address;
the second port is a port which receives the join message in the other network equipment; the other network devices are network devices except the network device in networking.
In another embodiment of the present application, the first sending module 503 in the embodiment shown in fig. 5 is specifically configured to:
and determining each third port except the first port in the network equipment, and forwarding the added message through each third port respectively.
Since the above device embodiment is obtained based on the method embodiment shown in fig. 3, and has the same technical effect as the method, the technical effect of the device embodiment is not described herein again. For the apparatus embodiment, since it is substantially similar to the method embodiment, it is described relatively simply, and reference may be made to some descriptions of the method embodiment for relevant points.
Fig. 6 is a schematic structural diagram of another message processing apparatus according to an embodiment of the present application. The embodiment is applied to a network device, which may be a router, a switch or the like. This embodiment corresponds to the method embodiment shown in fig. 3. The device includes:
a second receiving module 601, configured to receive a leave message through a fourth port of the network device; wherein the leaving message carries a second multicast address to be left;
a first deleting module 602, configured to delete the fourth port included in the port group corresponding to the second multicast address;
a second sending module 603, configured to send the leave packet to other network devices, so that the other network devices delete a fifth port included in the port group corresponding to the second multicast address according to the leave packet;
wherein, the fifth port is a port for receiving the leaving message in the other network devices; the other network devices are network devices except the network device in networking.
In another embodiment of the present application, in the embodiment shown in fig. 6, in a case that the network device is an interrogator, the apparatus further includes:
a first determining module (not shown in the figure), configured to determine, after deleting the fourth port included in the port group corresponding to the second multicast address, whether a port is included in the port group corresponding to the second multicast address before sending the leave packet to another network device;
the second sending module 603 is further configured to send the leave packet to other network devices when it is determined that the port group corresponding to the second multicast address does not include a port.
In another embodiment of the present application, in the embodiment shown in fig. 6, the apparatus further comprises:
a second deleting module (not shown in the figure), configured to delete the port group corresponding to the second multicast address when it is determined that the port group corresponding to the second multicast address does not include a port.
In another embodiment of the present application, in the embodiment shown in fig. 6, in a case that the network device is not an interrogator, the apparatus further includes:
a second determining module (not shown in the figure), configured to determine, after deleting the fourth port included in the port group corresponding to the second multicast address, whether the fourth port is a port in communication with the interrogator before sending the leave packet to another network device;
the second sending module 603 is specifically configured to send the leave packet to another network device when the fourth port is not a port in communication with the interrogator and it is determined that the port group corresponding to the second multicast address does not include another port except the port in communication with the interrogator.
In another embodiment of the present application, in the embodiment shown in fig. 6, the apparatus further comprises:
a third deleting module (not shown in the figure), configured to delete the port group corresponding to the second multicast group address when it is determined that the fourth port is a port in communication with the interrogator;
and a third sending module (not shown in the figure) configured to send the leave message to other network devices except the network device connected to the fourth port.
In another embodiment of the present application, in the embodiment shown in fig. 6, the second sending module 603 is specifically configured to:
and determining each sixth port except the fourth port in the network equipment, and forwarding the leaving message through each sixth port respectively.
Since the above device embodiment is obtained based on the method embodiment shown in fig. 3, and has the same technical effect as the method, the technical effect of the device embodiment is not described herein again. For the apparatus embodiment, since it is substantially similar to the method embodiment, it is described relatively simply, and reference may be made to some descriptions of the method embodiment for relevant points.
Fig. 7 is a schematic structural diagram of a network device according to an embodiment of the present application. The network device includes: the system comprises a processor 701, a communication interface 702, a memory 703 and a communication bus 704, wherein the processor 701, the communication interface 702 and the memory 703 complete mutual communication through the communication bus 704;
a memory 703 for storing a computer program;
the processor 701 is configured to implement the message processing method provided in the embodiment of the present application when executing the program stored in the memory 703. The message processing method comprises the following steps:
receiving an adding message through a first port of the network equipment, wherein the adding message carries a first multicast address to be added;
adding the first port into a port group corresponding to the first multicast address;
sending the joining message to other network equipment, so that the other network equipment joins a second port into the port group corresponding to the first multicast address according to the joining message, and the other network equipment forwards a data message according to the port group corresponding to the first multicast address;
the second port is a port which receives the join message in the other network equipment; the other network devices are network devices except the network device in the networking.
In this embodiment, each network device sends the join packet to other network devices after receiving the join packet, so that each network device in networking can add the port to the port group corresponding to the first multicast address under the complex networking condition. When the network device receives the data message to be sent to the first multicast address, the network device can determine the output port of the data message according to the port group corresponding to the first multicast address, and forward the data message through the output port without configuring the port of the network device into a multicast flooding mode. Therefore, the embodiment can realize the forwarding of the multicast data messages in the complex networking, reduce the bandwidth waste and also reduce the risk of broadcasting the data messages of all multicast addresses.
Fig. 8 is a schematic structural diagram of another network device according to an embodiment of the present application. The network device includes: the system comprises a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802 and the memory 803 complete mutual communication through the communication bus 804;
a memory 803 for storing a computer program;
the processor 801 is configured to implement the message processing method according to the embodiment of the present application when executing the program stored in the memory 803. The message processing method comprises the following steps:
receiving a leave message through a fourth port of the network device; wherein the leaving message carries a second multicast address to be left;
deleting the fourth port contained in the port group corresponding to the second multicast address;
sending the leaving message to other network equipment so that the other network equipment deletes a fifth port contained in a port group corresponding to the second multicast address according to the leaving message;
wherein, the fifth port is a port for receiving the leaving message in the other network devices; and the other network equipment is the network equipment except the network equipment in the networking.
In this embodiment, after receiving the leave packet, each network device forwards the leave packet to other network devices, so that the other network devices delete corresponding ports in the port group corresponding to the multicast address. Therefore, under the condition of complex networking, each network device in the networking can delete the output port corresponding to the specified multicast address, and when the network device receives the data message to be sent to the multicast address and determines that the port group corresponding to the multicast address does not contain other ports, the data message is discarded without being forwarded. Therefore, the embodiment can reduce the waste of bandwidth resources.
The communication bus mentioned in fig. 7 and 8 may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
The embodiment of the application provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the message processing method provided by the embodiment of the application is realized. The message processing method comprises the following steps:
receiving an adding message through a first port of the network equipment, wherein the adding message carries a first multicast address to be added;
adding the first port into a port group corresponding to the first multicast address;
sending the joining message to other network equipment, so that the other network equipment joins a second port into the port group corresponding to the first multicast address according to the joining message, and the other network equipment forwards a data message according to the port group corresponding to the first multicast address;
the second port is a port which receives the join message in the other network equipment; the other network devices are network devices except the network device in networking.
In this embodiment, each network device sends the join packet to other network devices after receiving the join packet, so that each network device in networking can add the port to the port group corresponding to the first multicast address under the complex networking condition. When the network device receives the data message to be sent to the first multicast address, the network device can determine the output port of the data message according to the port group corresponding to the first multicast address, and forward the data message through the output port without configuring the port of the network device into a multicast flooding mode. Therefore, the embodiment can realize the forwarding of the multicast data messages in the complex networking, reduce the bandwidth waste and also reduce the risk of broadcasting the data messages of all multicast addresses.
The embodiment of the application provides a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the message processing method provided by the embodiment of the application is realized. The message processing method comprises the following steps:
receiving a leave message through a fourth port of the network device; wherein the leaving message carries a second multicast address to be left;
deleting the fourth port contained in the port group corresponding to the second multicast address;
sending the leaving message to other network equipment so that the other network equipment deletes a fifth port contained in a port group corresponding to the second multicast address according to the leaving message;
wherein, the fifth port is a port for receiving the leaving message in the other network devices; the other network devices are network devices except the network device in networking.
In this embodiment, after receiving the leave packet, each network device forwards the leave packet to other network devices, so that the other network devices delete corresponding ports in the port group corresponding to the multicast address. Therefore, under the condition of complex networking, each network device in the networking can delete the output port corresponding to the specified multicast address, and when the network device receives the data message to be sent to the multicast address and determines that the port group corresponding to the multicast address does not contain other ports, the data message is discarded without being forwarded. Therefore, the embodiment can reduce the waste of bandwidth resources.
It is 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 phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (16)

1. A message processing method is applied to network equipment, and is characterized in that the method comprises the following steps:
receiving an adding message through a first port of the network equipment, wherein the adding message carries a first multicast address to be added;
adding the first port into a port group corresponding to the first multicast address;
sending the joining message to other network equipment, so that the other network equipment joins a second port into the port group corresponding to the first multicast address according to the joining message, and the other network equipment forwards a data message according to the port group corresponding to the first multicast address;
the second port is a port which receives the join message in the other network equipment; the other network devices are network devices except the network device in networking.
2. The method of claim 1, wherein the step of sending the join message to other network devices comprises:
determining each third port of the network equipment except the first port;
and forwarding the added message through each third port respectively.
3. A message processing method is applied to a network device, and the method further comprises the following steps:
receiving a leave message through a fourth port of the network device; wherein the leaving message carries a second multicast address to be left;
deleting the fourth port contained in the port group corresponding to the second multicast address;
sending the leaving message to other network equipment so that the other network equipment deletes a fifth port contained in a port group corresponding to the second multicast address according to the leaving message;
wherein, the fifth port is a port for receiving the leaving message in the other network devices; the other network equipment is network equipment except the network equipment in networking;
in a case that the network device is not an interrogator, after the step of deleting the fourth port included in the port group corresponding to the second multicast address, and before the step of sending the leave packet to another network device, the method further includes:
judging whether the fourth port is a port communicating with the querier;
and if not, when determining that the port group corresponding to the second multicast address does not contain other ports except the port communicated with the inquirer, sending the leaving message to other network equipment.
4. The method according to claim 3, wherein, in a case that the network device is an interrogator, after the step of deleting the fourth port included in the port group corresponding to the second multicast address and before the step of sending the leave packet to another network device, the method further comprises:
judging whether a port group corresponding to the second multicast address also comprises a port;
and if not, sending the leaving message to other network equipment.
5. The method according to claim 4, wherein when it is determined that the port group corresponding to the second multicast address does not include a port, the method further comprises:
and deleting the port group corresponding to the second multicast address.
6. The method of claim 3, wherein when the fourth port is determined to be a port in communication with the interrogator, the method further comprises:
and deleting the port group corresponding to the second multicast group address, and sending the leaving message to other network equipment except the network equipment connected with the fourth port.
7. The method of claim 3, wherein the step of sending the leave message to other network devices comprises:
determining each sixth port of the network device except the fourth port;
and forwarding the leaving message through each sixth port respectively.
8. A message processing apparatus, applied to a network device, the apparatus comprising:
a first receiving module, configured to receive an adding message through a first port of the network device, where the adding message carries a first multicast address to be added;
the adding module is used for adding the first port into a port group corresponding to the first multicast address;
a first sending module, configured to send the join packet to other network devices, so that the other network devices add a second port to the port group corresponding to the first multicast address according to the join packet, and forward a data packet according to the port group corresponding to the first multicast address;
the second port is a port which receives the join message in the other network equipment; the other network devices are network devices except the network device in networking.
9. The apparatus of claim 8, wherein the first sending module is specifically configured to:
determining each third port of the network equipment except the first port;
and forwarding the added message through each third port respectively.
10. A message processing apparatus, applied to a network device, the apparatus further comprising:
a second receiving module, configured to receive a leave message through a fourth port of the network device; wherein the leaving message carries a second multicast address to be left;
a first deleting module, configured to delete the fourth port included in the port group corresponding to the second multicast address;
a second sending module, configured to send the leave packet to other network devices, so that the other network devices delete a fifth port included in a port group corresponding to the second multicast address according to the leave packet;
wherein, the fifth port is a port for receiving the leaving message in the other network devices; the other network equipment is network equipment except the network equipment in networking;
in a case where the network device is not an interrogator, the apparatus further comprises:
a second determining module, configured to determine, after deleting the fourth port included in the port group corresponding to the second multicast address, whether the fourth port is a port in communication with the interrogator before sending the leave packet to another network device;
a second sending module, configured to send the leave packet to another network device when the fourth port is not a port in communication with the interrogator and it is determined that the port group corresponding to the second multicast address does not include any port other than the port in communication with the interrogator.
11. The apparatus of claim 10, wherein in the case that the network device is an interrogator, the apparatus further comprises:
a first determining module, configured to determine, after deleting the fourth port included in the port group corresponding to the second multicast address and before sending the leave packet to other network devices, whether the port group corresponding to the second multicast address further includes a port;
the second sending module is further configured to send the leave packet to other network devices when it is determined that the port group corresponding to the second multicast address does not include a port.
12. The apparatus of claim 11, further comprising:
and the second deleting module is used for deleting the port group corresponding to the second multicast address when judging that the port group corresponding to the second multicast address does not contain the port.
13. The apparatus of claim 10, further comprising:
a third deleting module, configured to delete the port group corresponding to the second multicast group address when it is determined that the fourth port is a port in communication with the interrogator;
and the third sending module is used for sending the leaving message to other network equipment except the network equipment connected with the fourth port.
14. The apparatus of claim 10, wherein the second sending module is specifically configured to:
determining each sixth port of the network device except the fourth port;
and forwarding the leaving message through each sixth port respectively.
15. The network equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing the communication between the processor and the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1 to 7 when executing a program stored in the memory.
16. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 7.
CN201810989843.7A 2018-08-28 2018-08-28 Message processing method and device Active CN110868307B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810989843.7A CN110868307B (en) 2018-08-28 2018-08-28 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810989843.7A CN110868307B (en) 2018-08-28 2018-08-28 Message processing method and device

Publications (2)

Publication Number Publication Date
CN110868307A CN110868307A (en) 2020-03-06
CN110868307B true CN110868307B (en) 2022-01-21

Family

ID=69651892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810989843.7A Active CN110868307B (en) 2018-08-28 2018-08-28 Message processing method and device

Country Status (1)

Country Link
CN (1) CN110868307B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992566B (en) * 2021-10-26 2023-03-21 新华三信息安全技术有限公司 Message broadcasting method and device
CN115514693B (en) * 2022-09-23 2023-09-12 北京东土军悦科技有限公司 Maintenance of chip multicast table, multicast forwarding method, device, router and medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100646383B1 (en) * 2005-08-04 2006-11-14 에스케이 텔레콤주식회사 Method for managing session for supporting multicast service in wibro
CN101674248A (en) * 2009-10-21 2010-03-17 福建星网锐捷网络有限公司 Method for realizing layer-two forwarding of multicast flow, apparatus and system thereof
CN102035729A (en) * 2010-11-22 2011-04-27 杭州华三通信技术有限公司 Multicast data forwarding method and device thereof
CN102075422A (en) * 2011-01-04 2011-05-25 杭州华三通信技术有限公司 Multicast management method and two-layer equipment
CN102316083A (en) * 2010-07-06 2012-01-11 杭州华三通信技术有限公司 Method and device for realizing multicast service in Internet protocol (IP) network
CN103354524B (en) * 2013-07-03 2016-08-10 杭州华三通信技术有限公司 A kind of method and apparatus realizing three layers of on-demand routing of multicast based on PIM-SSM
US9479348B2 (en) * 2014-09-30 2016-10-25 Vmware, Inc. Technique to submit multicast membership state in absence of querier
CN106330645A (en) * 2015-06-16 2017-01-11 中兴通讯股份有限公司 Fast convergence method and device of Ethernet ring network multicast Proxy mode business

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1232081C (en) * 2002-08-06 2005-12-14 华为技术有限公司 Repeating method for multi-broadcast message in network communication

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100646383B1 (en) * 2005-08-04 2006-11-14 에스케이 텔레콤주식회사 Method for managing session for supporting multicast service in wibro
CN101674248A (en) * 2009-10-21 2010-03-17 福建星网锐捷网络有限公司 Method for realizing layer-two forwarding of multicast flow, apparatus and system thereof
CN102316083A (en) * 2010-07-06 2012-01-11 杭州华三通信技术有限公司 Method and device for realizing multicast service in Internet protocol (IP) network
CN102035729A (en) * 2010-11-22 2011-04-27 杭州华三通信技术有限公司 Multicast data forwarding method and device thereof
CN102075422A (en) * 2011-01-04 2011-05-25 杭州华三通信技术有限公司 Multicast management method and two-layer equipment
CN103354524B (en) * 2013-07-03 2016-08-10 杭州华三通信技术有限公司 A kind of method and apparatus realizing three layers of on-demand routing of multicast based on PIM-SSM
US9479348B2 (en) * 2014-09-30 2016-10-25 Vmware, Inc. Technique to submit multicast membership state in absence of querier
CN106330645A (en) * 2015-06-16 2017-01-11 中兴通讯股份有限公司 Fast convergence method and device of Ethernet ring network multicast Proxy mode business

Also Published As

Publication number Publication date
CN110868307A (en) 2020-03-06

Similar Documents

Publication Publication Date Title
US11206148B2 (en) Bit indexed explicit replication
US9240893B2 (en) Bidirectional multicast protocol with upstream and downstream join messages
US7529199B1 (en) System and method for resolving conflicts in proxy routing information associated with multicast distribution trees
US9853915B2 (en) Fast fail-over using tunnels
US7646739B2 (en) Multicast routing over unidirectional links
US8243643B2 (en) Active multicast information protocol
US9237025B2 (en) Source routing in multicast transmissions
CN109194560B (en) Multicast method and VTEP
US7769008B2 (en) Multicast packet routing arrangements for group-membership handling
WO2019085822A1 (en) Method and device for implementing multicast service
WO2018068588A1 (en) Method and software-defined networking (sdn) controller for providing multicast service
CN110868307B (en) Message processing method and device
CN110868353B (en) Message processing method and device
CN108011828B (en) Multicast switching method, device, core layer switch and storage medium
CN113472667B (en) Message forwarding method, device, node equipment and storage medium
CN109981302B (en) Multicast communication method and device
WO2020168982A1 (en) Method for sending and obtaining assert message and network node
CN115134297A (en) BIERv6 message processing method, equipment and system
CN113852572B (en) Message processing method and device
CN115086106B (en) HASH method with VXLAN known group broadcasting port as tunnel
US20100135298A1 (en) Method and system for providing source specific multicast service on ethernet network
WO2024021672A1 (en) Multicast packet processing method and device, storage medium, and electronic device
CN113595912B (en) One-to-many communication method and device based on IPv6 extension header in 5GLAN
CN116455807A (en) Multicast traffic forwarding method, multicast system, routing device and storage medium
US9712650B2 (en) PIM fast failover using PIM graft message

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