Movatterモバイル変換


[0]ホーム

URL:


CN110958124B - Multicast group management method, device, readable storage medium and computer - Google Patents

Multicast group management method, device, readable storage medium and computer
Download PDF

Info

Publication number
CN110958124B
CN110958124BCN201911288766.3ACN201911288766ACN110958124BCN 110958124 BCN110958124 BCN 110958124BCN 201911288766 ACN201911288766 ACN 201911288766ACN 110958124 BCN110958124 BCN 110958124B
Authority
CN
China
Prior art keywords
address
identifier
multicast
server
broadcast
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
CN201911288766.3A
Other languages
Chinese (zh)
Other versions
CN110958124A (en
Inventor
王庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing IQIYI Science and Technology Co Ltd
Original Assignee
Beijing IQIYI Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing IQIYI Science and Technology Co LtdfiledCriticalBeijing IQIYI Science and Technology Co Ltd
Priority to CN201911288766.3ApriorityCriticalpatent/CN110958124B/en
Publication of CN110958124ApublicationCriticalpatent/CN110958124A/en
Application grantedgrantedCritical
Publication of CN110958124BpublicationCriticalpatent/CN110958124B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Classifications

Landscapes

Abstract

The embodiment of the invention provides a multicast group management method, a device, a readable storage medium and a computer. The multicast group management method of the invention comprises the following steps: receiving a broadcast message sent by a control node, wherein the broadcast message is generated by the control node according to a multicast address, a target grouping identifier, an operation type identifier and the broadcast address of a multicast group, judging whether the grouping identifier of a server is matched with the target grouping identifier, and if the grouping identifier of the server is matched with the target grouping identifier, executing operation corresponding to the operation type identifier on the multicast address, so that the server can automatically maintain the multicast address of the server only by receiving the broadcast message sent by the control node once without manual participation.

Description

Multicast group management method, device, readable storage medium and computer
Technical Field
The present invention relates to the field of communications, and in particular, to a multicast group management method, apparatus, readable storage medium, and computer.
Background
Multicast is a mechanism to support point-to-multipoint communications. In multicast communication, all hosts participating in communication are generally regarded as a multicast group, and a unique IP address (i.e., multicast address) is assigned to the multicast group as its identification. When a sender needs to send a packet to all hosts belonging to a multicast group, the multicast address is directly used as the destination address of the packet, and the communication network is responsible for transmitting the packet to all hosts of the multicast group.
However, in some specific scenarios, some specific server clusters need to modify their multicast groups frequently in order to listen to specific multicast traffic. For example, one example of using multicast is video broadcasting in an IP network. A portion of the hosts (server clusters) in the local area network may join a group (i.e., a multicast group) that has a multicast address. The video server only needs to send once with the multicast address of the multicast group as the destination address and the communication network is responsible for delivering the video stream to all hosts that wish to receive the video stream. If a multicast address of a Virtual Router Redundancy Protocol (VRRP) needs to be added to the server cluster, an administrator needs to manually add the multicast address of the VRRP to each host in the server cluster, which results in more labor and time consumption, and the risk of problems due to manual maintenance is increased.
Disclosure of Invention
Embodiments of the present invention provide a multicast group management method and apparatus, a readable storage medium, and a computer, so as to solve the problems that at present, a manager needs to manually add a multicast address to each host in a server cluster, which results in a large amount of labor and time consumption, and a maintenance error may occur during manual maintenance.
In a first aspect of embodiments of the present invention, a multicast group management system is provided, including a control node and at least one server;
the control node is used for acquiring a multicast address, a target grouping identifier and an operation type identifier of a multicast group;
the control node is also used for determining a broadcast address according to the network segment information of the local area network where the control node is located;
the control node is further configured to generate a broadcast packet according to the multicast address, the target packet identifier, the operation type identifier, and the broadcast address, and send the broadcast packet to each server in the local area network, where the broadcast packet includes the multicast address, the target packet identifier, the operation type identifier, and the broadcast address;
the server is used for receiving the broadcast message sent by the control node and judging whether the group identifier of the server is matched with the target group identifier; and if the group identifier of the server is matched with the target group identifier, executing the operation corresponding to the operation type identifier on the multicast address.
In a second aspect of the embodiments of the present invention, a multicast group management method, executed in a server, includes:
receiving a broadcast message sent by a control node, wherein the broadcast message is generated by the control node according to a multicast address of a multicast group, a target grouping identifier, an operation type identifier and a broadcast address, the broadcast address is generated by the control node according to network segment information of a local area network where the control node is located, and the broadcast address is used for enabling a server to receive the broadcast message;
judging whether the group identifier of the server is matched with the target group identifier or not;
and if the group identifier of the server is matched with the target group identifier, executing the operation corresponding to the operation type identifier on the multicast address.
In a third aspect of the embodiments of the present invention, a multicast group management method is provided, executed in a control node, and includes:
acquiring a multicast address, a target grouping identifier and an operation type identifier of a multicast group;
determining a broadcast address according to network segment information of a local area network where the control node is located;
generating a broadcast message according to the multicast address, the target grouping identifier, the operation type identifier and the broadcast address, and sending the broadcast message to each server in the local area network, so that each server in the local area network receives the broadcast message, and judging whether to execute an operation corresponding to the operation type identifier on the multicast address of the multicast group according to the target grouping identifier; wherein, the broadcast address is used for enabling each server in the local area network to receive the broadcast message.
In a fourth aspect of the embodiments of the present invention, there is provided a multicast group management apparatus, which is disposed in a server, and includes:
a receiving module, configured to receive a broadcast packet sent by a control node, where the broadcast packet is generated by the control node according to a multicast address of a multicast group, a target group identifier, an operation type identifier, and a broadcast address, the broadcast address is generated by the control node according to network segment information of a local area network where the control node is located, and the broadcast address is used for enabling the server to receive the broadcast packet;
the judging module is used for judging whether the group identifier of the server is matched with the target group identifier;
and the execution module is used for executing the operation corresponding to the operation type identifier on the multicast address if the group identifier of the server is matched with the target group identifier.
In a fifth aspect of the embodiments of the present invention, there is provided a multicast group management apparatus, configured at a control node, including:
the acquisition module is used for acquiring a multicast address, a target grouping identifier and an operation type identifier of a multicast group;
the determining module is used for determining a broadcast address according to the network segment information of the local area network where the control node is located;
a generating module, configured to generate a broadcast packet according to the multicast address, the target group identifier, the operation type identifier, and the broadcast address, and send the broadcast packet to each server in the local area network, so that each server in the local area network receives the broadcast packet, and determine whether to execute an operation corresponding to the operation type identifier on the multicast address of the multicast group according to the target group identifier; wherein, the broadcast address is used for enabling each server in the local area network to receive the broadcast message.
A sixth aspect of the embodiments of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the multicast group management method described above.
The seventh aspect of the present invention provides a computer, which includes a processor, a communication interface, a memory and a communication bus, wherein 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 multicast group management method when executing the program stored in the memory.
Aiming at the prior art, the invention has the following advantages:
the embodiment of the invention judges whether the group identifier of the server is matched with the target group identifier or not by receiving the broadcast message sent by the control node, wherein the broadcast message is generated by the control node according to the multicast address, the target group identifier, the operation type identifier and the broadcast address of the multicast group, and if the group identifier of the server is matched with the target group identifier, the operation corresponding to the operation type identifier is executed on the multicast address, so that the server can automatically maintain the multicast address of the server by only receiving the broadcast message sent by the control node once without manual participation.
The above description is only an overview of the technical solutions of the present invention, and the present invention can be implemented in accordance with the content of the description so as to make the technical means of the present invention more clearly understood, and the above and other objects, features, and advantages of the present invention will be more clearly understood.
Drawings
Various additional advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
fig. 1 is an architecture diagram of a multicast group management system according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of a multicast group management method according to an embodiment of the present invention;
fig. 3 is a flowchart illustrating steps of another method for multicast group management according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a multicast group management apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of another multicast group management apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a computer according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
It should be understood that the specific embodiments described herein are merely illustrative of the invention, but do not limit the invention to only some, but not all embodiments.
Referring to fig. 1, fig. 1 is an architecture diagram of a multicast group management system according to an embodiment of the present invention. The system comprises a control node and at least one server. The server may be any one of servers belonging to a local area network with the control node, and the server in fig. 1 is described by way of example as including a server 1 and a server 2. The control contact is used for acquiring a multicast address, a target grouping identifier and an operation type identifier of the multicast group; the control node is also used for determining a broadcast address according to the network segment information of the local area network where the control node is located; the control node is further configured to generate a broadcast packet according to the multicast address, the target packet identifier, the operation type identifier, and the broadcast address, and send the broadcast packet to each server in the local area network, where the broadcast packet includes the multicast address, the target packet identifier, the operation type identifier, and the broadcast address; the server is used for receiving the broadcast message sent by the control node and judging whether the group identifier of the server is matched with the target group identifier; and if the group identifier of the server is matched with the target group identifier, executing the operation corresponding to the operation type identifier on the multicast address.
It should be noted that, the control node sends a broadcast packet, the server 1 and the server 2 receive the broadcast packet, the server 1 determines whether the group identifier of the server 1 matches the target group identifier, and if the group identifier of the server 1 matches the target group identifier, the multicast address is executed with an operation corresponding to the operation type identifier. And the server 2 judges whether the group identifier of the server 2 is matched with the target group identifier or not, and if the group identifier of the server 2 is matched with the target group identifier, the operation corresponding to the operation type identifier is executed on the multicast address.
The multicast group management system provided by this embodiment can realize that the server can automatically maintain the multicast address of the server only by receiving the broadcast message sent by the control node once, and does not need manual participation.
Optionally, the broadcast packet further includes a protocol type identifier and/or a checksum.
Optionally, when the operation type identifier is an addition identifier, the server is configured to perform an addition operation corresponding to the addition identifier on the multicast address; or,
and when the operation type identifier is a deletion identifier, the server is used for executing deletion operation corresponding to the deletion identifier on the multicast address.
When the operation type identifier is the addition identifier, the server automatically adds the multicast address of the server, that is, the server can add the multicast address in the broadcast message. When the operation type identifier is the deletion identifier, the server can delete the multicast address in the broadcast message without manual maintenance.
Referring to fig. 2, fig. 2 is a flowchart of steps of a multicast group management method according to an embodiment of the present invention, where the multicast group management method according to the embodiment is suitable for a case where a multicast address of a server in a multicast group can be automatically maintained without manual operation. The control node in this embodiment may be a server or a switch. The multicast group management method provided in this embodiment may be executed by a server, and the server may be any server belonging to a local area network with the control node. The method of the embodiment comprises the following steps:
step 201, receiving a broadcast message sent by a control node.
The broadcast message is generated by the control node according to a multicast address, a target grouping identifier, an operation type identifier and a broadcast address of the multicast group, the broadcast address is generated by the control node according to network segment information of a local area network where the control node is located, and the broadcast address is used for enabling a server to receive the broadcast message.
All servers that receive multicast packets using the same multicast address form a group of servers, also referred to as a multicast group. The multicast address may be a multicast Internet Protocol (IP) address. The servers in one multicast group are changed at any time, one server can join or leave the multicast group at any time, the number and the geographical position of the servers in the multicast group are not limited, and one server can belong to several multicast groups.
In the prior art, an IP Protocol message in a Transmission Control Protocol/Internet Protocol (TCP/IP, Transmission Control Protocol/Internet Protocol) is a three-layer Protocol message, and a TCP Protocol-based message is a four-layer Protocol message. It should be noted that the destination IP address in the three-layer protocol packet may be a broadcast address of the network segment, and when one server fills the destination IP address in the three-layer protocol packet as the broadcast address, other servers in the network segment may receive the three-layer protocol packet (three-layer broadcast packet) sent by the server. With the IP address we commonly use: 192.168.1.0 is taken as an example, the subnet mask of the IP address is 255.255.255.0, the segment with the IP addresses 192.168.1.0-192.168.1.255 is 192.168.1 segment, the destination IP address 192.168.1.255 of the segment is a broadcast address, and the three-layer broadcast address of the segment (the segment with the subnet mask of 192.168.1.0-192.168.1.255 is segment information) is usually the last IP address of the segment. If a host with an IP address of 192.168.1.0 fills the destination IP address with 192.168.1.255, all other hosts in the segment will receive the broadcast message from the host.
It should be noted that, in this embodiment, the segment information of the local area network where the control node is located is 192.168.1 information, for example, the control node may generate a broadcast packet according to the multicast address of the multicast group, the target packet identifier, the operation type identifier, and the broadcast address. Specifically, the control node may fill the broadcast address into a destination IP address in the three-layer protocol packet, that is, fill the broadcast address into a location of the destination IP address of the IP packet, and fill the multicast address, the target packet identifier, and the operation type identifier as data contents into a data location in the three-layer protocol packet (that is, the IP packet), so as to generate the broadcast packet. It should be noted that the multicast address, the destination packet identifier, and the operation type identifier are defined as four layers of private protocol data. As shown in table 1 below, the source IP address in table 1 is the IP address of the control node that sends the broadcast packet, the destination IP address is the broadcast address, and the data location fills in the multicast address, the target packet identifier, and the operation type identifier. After the control node sends the broadcast message, all servers in the same local area network with the control node can receive the broadcast message sent by the control node.
Source IP addressDestination IP addressData of
TABLE 1
Step 202, judging whether the group identifier of the server is matched with the target group identifier.
And step 203, if the group identifier of the server is matched with the target group identifier, executing an operation corresponding to the operation type identifier on the multicast address.
Instep 202 and step 203, a group identifier of the server may be set, and the server may match a target group identifier in the received broadcast message with the group identifier of the server, and if the group identifier of the server matches the target group identifier, perform an operation corresponding to the operation type identifier on the multicast address.
The server judges whether to execute the operation corresponding to the operation type identifier on the multicast address or not, and executes the operation corresponding to the operation type identifier on the multicast address under the condition that the group identifier of the server is matched with the target group identifier, so that the maintenance of the multicast address of the server is automatically realized without manual participation.
Moreover, it should be noted that the group identifier of the server may be changed, that is, the group identifier of the server is changed according to actual needs. Therefore, after the group identification of the server is changed, the multicast address of the server is automatically maintained by the method provided by the embodiment.
Take the example that server 1, server 2, server 3, server 4, server 5, server 6, server 7, server 8 and the control node belong to the same local area network. For example, the group id of server 1, server 2, server 3, and server 4 is set to 10. The group identifiers of the server 5, the server 6, the server 7 and the server 8 are set to 11, that is, the server 1, the server 2, the server 3 and the server 4 belong to the same multicast group (for example, the multicast group 1), and the server 5, the server 6, the server 7 and the server 8 belong to the same multicast group (for example, the multicast group 2). If the destination group id is 10, each server in multicast group 1 and each server in multicast group 2 may receive the broadcast packet sent by the control node. Since the group id of each server in multicast group 1 is 10 and matches the target group id, each server in multicast group 1 can perform an operation corresponding to the operation type id on the multicast address. And the group identification of each server in multicast group 2 does not match the target group identification, then each server in multicast group 2 does not perform the operation corresponding to the operation type identification on the multicast address. However, if the group identifiers of the server 5 and the server 6 are changed to 10 by some requirement, both the server 5 and the server 6 perform an operation corresponding to the operation type identifier on the multicast address. Since the operation type identifier may include an addition identifier or a deletion identifier, in the case where the operation type identifier is an addition identifier, the server 5 and the server 6 may perform an addition operation corresponding to the addition identifier on the multicast address, that is, the server 5 and the server 6 may add the multicast address. In the case where the operation type identifier is a deletion identifier, the server 5 and the server 6 may delete the multicast address. Therefore, after the group identifier of the server is changed, the multicast address of the server can be automatically maintained by the method provided by the embodiment without frequently maintaining the multicast address of the server manually.
In the multicast group management method provided in this embodiment, a broadcast message sent by a control node is received, where the broadcast message is generated by the control node according to a multicast address, a target group identifier, an operation type identifier, and a broadcast address of a multicast group, and whether a group identifier of a server matches the target group identifier is determined, and if the group identifier of the server matches the target group identifier, an operation corresponding to the operation type identifier is performed on the multicast address, so that the server only needs to receive the broadcast message sent by the control node once, and the multicast address of the server can be automatically maintained without manual intervention.
Referring to fig. 3, fig. 3 is a flowchart of steps of another multicast group management method according to an embodiment of the present invention, where the multicast group management method according to the embodiment includes the following steps:
step 301, the control node acquires a multicast address, a target group identifier, and an operation type identifier of a multicast group.
The administrator can configure the multicast address, the target group identifier and the operation type identifier of the multicast group on the control node, and the operation type identifier can be an addition identifier or a deletion identifier.
It should be noted that the multicast Address may include a multicast IP Address, or the multicast Address includes a multicast IP Address and a multicast group Media Access Control (MAC) Address.
Step 302, the control node determines a broadcast address according to the network segment information of the local area network where the control node is located.
The process of generating the broadcast address in this step may refer to the description of determining the broadcast address instep 201, and is not described herein again to avoid repetition.
Step 303, the control node generates a broadcast message according to the multicast address, the target grouping identifier, the operation type identifier and the broadcast address, and sends the broadcast message to each server in the local area network.
Accordingly, the server may receive the broadcast packet sent by the control node.
It should be noted that the broadcast packet further includes a protocol type identifier and/or a checksum, and the control node generates the broadcast packet according to the multicast address, the target packet identifier, the operation type identifier, and the broadcast address, and may also be implemented in the following manner:
and filling the broadcast address into a destination IP address of the IP message, and filling the multicast address, the target packet identifier, the operation type identifier and the protocol type identifier and/or the checksum as data content into a data position in the IP message to generate the broadcast message. The data packet format in which the multicast address, the target packet identifier, the operation type identifier, and the protocol type identifier and the checksum are used as data content may specifically refer to table 2 below, where table 2 shows the data packet format of the defined private protocol, which includes the target packet identifier, the operation type identifier, the protocol type identifier, the multicast address, and the checksum, and table 2 takes the example that the multicast address includes a multicast IP address and a multicast group MAC address. The protocol type identifier is used for indicating the protocol type of the multicast address, and the checksum is used for enabling the target server to judge whether the received broadcast message is complete or not according to the checksum. The Protocol type identifier may be Internet Protocol version 4(IPv4, Internet Protocol version 4) or Internet Protocol version 6(IPv6, Internet Protocol version 6).
Figure BDA0002315442340000101
TABLE 2
Wherein, the target grouping mark occupies 16 bytes, namely 2 can be supported in the same local area network16 And (4) grouping. The protocol type identification occupies 32 bits if the protocol is IPv4 protocol; the protocol type identification occupies 128 bits if the protocol is IPv6 protocol; if the multicast address instep 201 includes only a multicast IP address, the multicast group MAC address corresponding to the multicast IP address may be determined according to a mapping relationship between the multicast IP address and the multicast group MAC address. The checksum may be populated according to a four-layer protocol standard.
It should be noted that the data content may also include a multicast address, a target packet identifier, an operation type identifier, and a protocol type identifier, or the data content includes a multicast address, a target packet identifier, an operation type identifier, and a checksum.
Step 304, the server obtains the group identifier of the server.
The group identifier of the server may be configured in advance, and after the group identifier of the server is configured, the server may obtain the configured group identifier of the server.
Step 305, the server determines whether the server's group identity matches the target group identity.
If the group identifier of the server matches the target group identifier, go to step 306; if the group id of the server does not match the target group id,step 307 is performed.
And step 306, executing the operation corresponding to the operation type identification on the multicast address.
The operation corresponding to the operation type identifier is executed on the multicast address, which can be realized by the following steps:
when the operation type identifier is an addition identifier, performing addition operation corresponding to the addition identifier on the multicast address; or,
and when the operation type identifier is the deletion identifier, executing deletion operation corresponding to the deletion identifier on the multicast address.
It should be noted that the broadcast message may further include a checksum; before the operation corresponding to the operation type identification is executed on the multicast address, the following steps can be further included:
judging whether the received broadcast message is complete according to the checksum, and correspondingly, executing the operation corresponding to the operation type identifier on the multicast address can be realized by the following modes:
and if the received broadcast message is complete, executing the operation corresponding to the operation type identifier on the multicast address.
Step 307, the operation corresponding to the operation type identifier is not performed on the multicast address.
It should be noted that, since the server may receive the broadcast packet sent by the control node, determine whether the packet identifier of the server matches the target packet identifier in the broadcast packet, for example, if the packet identifier of the server matches the target packet identifier, if the operation type identifier is an addition identifier, perform an addition operation corresponding to the addition identifier on the multicast address. If the operation type identifier is a deletion identifier, the deletion operation corresponding to the deletion identifier is executed on the multicast address, so that the control node sends a broadcast message once, and the multicast address of the server can be automatically and quickly added or deleted without manually configuring the multicast address of the server.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a multicast group management apparatus according to an embodiment of the present invention, where the multicast group management apparatus may be disposed in a server, and the multicastgroup management apparatus 400 includes:
areceiving module 410, configured to receive a broadcast packet sent by a control node, where the broadcast packet is generated by the control node according to a multicast address of a multicast group, a target group identifier, an operation type identifier, and a broadcast address, the broadcast address is generated by the control node according to network segment information of a local area network where the control node is located, and the broadcast address is used for enabling a server to receive the broadcast packet;
a judgingmodule 420, configured to judge whether the group identifier of the server matches the target group identifier;
and the executingmodule 430 is configured to execute an operation corresponding to the operation type identifier on the multicast address if the group identifier of the server matches the target group identifier.
The multicast group management device provided in this embodiment receives a broadcast packet sent by a control node, where the broadcast packet is generated by the control node according to a multicast address, a target group identifier, an operation type identifier, and a broadcast address of a multicast group, and determines whether a group identifier of a server matches the target group identifier, and if the group identifier of the server matches the target group identifier, performs an operation corresponding to the operation type identifier on the multicast address, so that the server only needs to receive the broadcast packet sent by the control node once, and can automatically maintain the multicast address of the server without manual intervention.
Optionally, the broadcast message further includes a checksum;
the judgingmodule 420 is further configured to judge whether the received broadcast packet is complete according to the checksum;
correspondingly, the executingmodule 430 is specifically configured to execute an operation corresponding to the operation type identifier on the multicast address if the received broadcast packet is complete.
Optionally, when the operation type identifier is an addition identifier, the executingmodule 430 is specifically configured to execute an addition operation corresponding to the addition identifier on the multicast address;
when the operation type identifier is a deletion identifier, the executingmodule 430 is specifically configured to execute a deletion operation corresponding to the deletion identifier on the multicast address.
Referring to fig. 5, fig. 5 is a schematic structural diagram of another multicast group management apparatus according to an embodiment of the present invention, where the multicast group management apparatus may be disposed in a control node, and the multicastgroup management apparatus 500 includes:
an obtainingmodule 510, configured to obtain a multicast address, a target group identifier, and an operation type identifier of a multicast group;
a determiningmodule 520, configured to determine a broadcast address according to network segment information of a local area network in which the control node is located;
agenerating module 530, configured to generate a broadcast packet according to the multicast address, the target group identifier, the operation type identifier, and the broadcast address, and send the broadcast packet to each server in the local area network, so that each server in the local area network receives the broadcast packet, and determine, according to the target group identifier, whether to execute an operation corresponding to the operation type identifier on the multicast address of the multicast group; the broadcast address is used for enabling each server in the local area network to receive the broadcast message.
Optionally, the broadcast packet further includes a protocol type identifier and/or a checksum, and thegenerating module 530 is specifically configured to fill the broadcast address into a destination IP address of the internet protocol IP packet, and fill the multicast address, the target packet identifier, the operation type identifier, and the protocol type identifier and/or the checksum as data contents into a data position in the IP packet, so as to generate the broadcast packet;
the protocol type identifier is used for indicating the protocol type of the multicast address, and the checksum is used for enabling the target server to judge whether the received broadcast message is complete or not according to the checksum.
The embodiment of the invention also provides a computer, and fig. 6 is a schematic structural diagram of the computer provided in the embodiment of the invention. As shown in fig. 6, the system comprises aprocessor 601, acommunication interface 602, amemory 603 and acommunication bus 604, wherein theprocessor 601, thecommunication interface 602 and thememory 603 communicate with each other via thecommunication bus 604,
amemory 603 for storing a computer program;
theprocessor 601 is configured to implement the following steps when executing the program stored in the memory 603:
acquiring a multicast address, a target grouping identifier and an operation type identifier of a multicast group;
determining a broadcast address according to network segment information of a local area network where a control node is located;
generating a broadcast message according to the multicast address, the target grouping identifier, the operation type identifier and the broadcast address, sending the broadcast message to each server in the local area network so that each server in the local area network receives the broadcast message, and judging whether to execute the operation corresponding to the operation type identifier on the multicast address of the multicast group according to the target grouping identifier; the broadcast address is used for enabling each server in the local area network to receive the broadcast message.
The communication bus mentioned in the above terminal 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 terminal and other equipment.
The Memory may include a Random Access Memory (RAM), and may also include a non-volatile Memory (non-volatile Memory), 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, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component.
In yet another embodiment provided by the present invention, there is also provided a computer-readable storage medium having stored therein instructions, which when run on a computer, cause the computer to perform the multicast group management method of any of the above embodiments.
In yet another embodiment provided by the present invention, there is also provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the multicast group management method of any of the above embodiments.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The procedures or functions according to the embodiments of the invention are brought about in whole or in part when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy Disk, hard Disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), among others.
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 the 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. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (12)

1. A multicast group management system comprising a control node and at least one server;
the control node is used for acquiring a multicast address, a target grouping identifier and an operation type identifier of a multicast group, wherein the multicast address comprises a multicast IP address or a multicast IP address and a MAC address;
the control node is further configured to determine a broadcast address according to network segment information of a local area network where the control node is located, where the broadcast address is used to enable the server to receive a broadcast packet;
the control node is further configured to fill the broadcast address to a location of a destination IP address in a three-layer protocol packet, fill the multicast address, the target packet identifier, and the operation type identifier as data content to a data location in the three-layer protocol packet, so as to generate a broadcast packet, and send the broadcast packet to each server in the local area network, where the broadcast packet includes the multicast address, the target packet identifier, the operation type identifier, and the broadcast address;
the server is used for receiving the broadcast message sent by the control node and judging whether the group identifier of the server is matched with the target group identifier; and if the group identifier of the server is matched with the target group identifier, executing the operation corresponding to the operation type identifier on the multicast address.
2. The system of claim 1, wherein the broadcast message further comprises a protocol type identifier and/or a checksum.
3. The system of claim 1 or 2,
when the operation type identifier is an addition identifier, the server is used for executing an addition operation corresponding to the addition identifier on the multicast address; or,
and when the operation type identifier is a deletion identifier, the server is used for executing deletion operation corresponding to the deletion identifier on the multicast address.
4. A multicast group management method, executed in a server, comprising:
receiving a broadcast message sent by a control node, wherein the broadcast message is generated by the control node by filling a broadcast address into a position of a destination IP address in a three-layer protocol message and filling a multicast address, a target packet identifier and an operation type identifier into a data position in the three-layer protocol message as data contents, the broadcast address is generated by the control node according to network segment information of a local area network where the control node is located, and the broadcast address is used for enabling a server to receive the broadcast message;
judging whether the group identifier of the server is matched with the target group identifier or not;
and if the group identifier of the server is matched with the target group identifier, executing the operation corresponding to the operation type identifier on the multicast address.
5. The method of claim 4, wherein the broadcast message further comprises a checksum; before the performing the operation corresponding to the operation type identifier on the multicast address, further comprising:
judging whether the received broadcast message is complete or not according to the checksum;
the executing the operation corresponding to the operation type identification on the multicast address comprises:
and if the received broadcast message is complete, executing the operation corresponding to the operation type identifier on the multicast address.
6. The method according to claim 4 or 5,
when the operation type identifier is an added identifier, the performing an operation corresponding to the operation type identifier on the multicast address includes:
adding operation corresponding to the adding identification is carried out on the multicast address;
when the operation type identifier is a deletion identifier, the executing the operation corresponding to the operation type identifier on the multicast address includes:
and executing deletion operation corresponding to the deletion identification on the multicast address.
7. A multicast group management method, implemented in a control node, comprising:
acquiring a multicast address, a target grouping identifier and an operation type identifier of a multicast group, wherein the multicast address comprises a multicast IP address or a multicast IP address and a MAC address;
determining a broadcast address according to network segment information of a local area network where the control node is located, wherein the broadcast address is used for enabling a server to receive a broadcast message;
filling the broadcast address to the position of a destination IP address in a three-layer protocol message, filling the multicast address, the target grouping identifier and the operation type identifier as data contents to the data position in the three-layer protocol message to generate a broadcast message, and sending the broadcast message to each server in the local area network so that each server in the local area network receives the broadcast message, and judging whether to execute the operation corresponding to the operation type identifier on the multicast address of the multicast group according to the target grouping identifier; wherein, the broadcast address is used for enabling each server in the local area network to receive the broadcast message.
8. The method according to claim 7, wherein the broadcast packet further includes a protocol type identifier and/or a checksum, and wherein the padding the broadcast address to a location of a destination IP address in a three-layer protocol packet and the padding the multicast address, the destination packet identifier, and the operation type identifier as data content to a data location in the three-layer protocol packet to generate the broadcast packet comprises:
filling a broadcast address into a destination IP address of an Internet protocol IP message, and filling the multicast address, the target grouping identifier, the operation type identifier and the protocol type identifier and/or the checksum as data content into a data position in the IP message to generate the broadcast message;
the protocol type identifier is used for indicating the protocol type to which the multicast address belongs, and the checksum is used for enabling a target server in each server to judge whether the received broadcast message is complete or not according to the checksum.
9. A multicast group management apparatus, provided in a server, comprising:
a receiving module, configured to receive a broadcast packet sent by a control node, where the broadcast packet is generated by the control node filling a broadcast address to a location of a destination IP address in a three-layer protocol packet, and filling a multicast address, a target packet identifier, and an operation type identifier as data content to a data location address in the three-layer protocol packet, where the broadcast address is generated by the control node according to network segment information of a local area network where the control node is located, and the broadcast address is used for enabling the server to receive the broadcast packet;
the judging module is used for judging whether the group identifier of the server is matched with the target group identifier;
and the execution module is used for executing the operation corresponding to the operation type identifier on the multicast address if the group identifier of the server is matched with the target group identifier.
10. A multicast group management apparatus, provided in a control node, comprising:
the device comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a multicast address, a target grouping identifier and an operation type identifier of a multicast group, and the multicast address comprises a multicast IP address or a multicast IP address and an MAC address;
the determining module is used for determining a broadcast address according to the network segment information of the local area network where the control node is located, wherein the broadcast address is used for enabling a server to receive a broadcast message;
a generating module, configured to fill the broadcast address to a location of a destination IP address in a three-layer protocol packet, fill the multicast address, the target packet identifier, and the operation type identifier as data contents to a data location in the three-layer protocol packet to generate a broadcast packet, and send the broadcast packet to each server in the local area network, so that each server in the local area network receives the broadcast packet, and determine, according to the target packet identifier, whether to execute an operation corresponding to the operation type identifier on the multicast address of the multicast group; wherein, the broadcast address is used for enabling each server in the local area network to receive the broadcast message.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the multicast group management method according to any one of claims 4 to 8.
12. A computer is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are communicated with each other through the communication bus by the memory;
a memory for storing a computer program;
a processor for implementing the multicast group management method according to any one of claims 4 to 8 when executing a program stored in a memory.
CN201911288766.3A2019-12-122019-12-12Multicast group management method, device, readable storage medium and computerActiveCN110958124B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201911288766.3ACN110958124B (en)2019-12-122019-12-12Multicast group management method, device, readable storage medium and computer

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201911288766.3ACN110958124B (en)2019-12-122019-12-12Multicast group management method, device, readable storage medium and computer

Publications (2)

Publication NumberPublication Date
CN110958124A CN110958124A (en)2020-04-03
CN110958124Btrue CN110958124B (en)2022-08-19

Family

ID=69981640

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201911288766.3AActiveCN110958124B (en)2019-12-122019-12-12Multicast group management method, device, readable storage medium and computer

Country Status (1)

CountryLink
CN (1)CN110958124B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
WO2023092497A1 (en)*2021-11-262023-06-01Oppo广东移动通信有限公司Groupcast message processing method and related apparatus
CN114222394A (en)*2021-11-302022-03-22北京奕斯伟计算技术有限公司Synchronous lighting method, device, electronic equipment and computer readable storage medium
CN115834645B (en)*2022-10-102025-04-15超聚变数字技术有限公司 Device control method and related device
CN116095162B (en)*2022-12-022025-07-11浙江大华技术股份有限公司 Multicast communication method, electronic device and computer readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109195116A (en)*2018-08-092019-01-11中兴克拉科技(苏州)有限公司A kind of application layer group broadcasting method of LPWAN Internet of Things
CN110337071A (en)*2019-05-292019-10-15锐骐(厦门)电子科技有限公司A kind of method and system for realizing multicasting based on LoRaWAN

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP4094658B2 (en)*2005-03-082008-06-04日本電信電話株式会社 Flooding suppression method
CN103190162B (en)*2012-10-162016-03-09华为技术有限公司Group zone management, equipment and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN109195116A (en)*2018-08-092019-01-11中兴克拉科技(苏州)有限公司A kind of application layer group broadcasting method of LPWAN Internet of Things
CN110337071A (en)*2019-05-292019-10-15锐骐(厦门)电子科技有限公司A kind of method and system for realizing multicasting based on LoRaWAN

Also Published As

Publication numberPublication date
CN110958124A (en)2020-04-03

Similar Documents

PublicationPublication DateTitle
CN110958124B (en)Multicast group management method, device, readable storage medium and computer
CN109688235B (en) Virtual network service processing method, device and system, controller, storage medium
CN106412142B (en)Resource equipment address obtaining method and device
CN105897444B (en)Multicast group management method and device
CN106921578B (en)Method and device for generating forwarding table item
CN106031104B (en)Retransmission method, device and the equipment of data message
CN101924800B (en)Method for obtaining IP address of DHCPv6 server, DHCPv6 server and DHCPv6 communication system
CN104301141B (en)A kind of method, apparatus and system for preserving configuration information
CN102025799A (en)Method for discovery and automatic configuration for IP address of device
CN110493366B (en)Method and device for adding access point into network management
US10454884B2 (en)Terminal and multicast address distribution server
CN110011919B (en)Message forwarding method, device, network equipment and storage medium
CN102571640A (en)Gateway system, gateway device, and load distribution method
CN113347282A (en)IP address distribution and duplicate checking method and system for satellite internet
CN106330492B (en)A kind of method, apparatus and system configuring user equipment forwarding table
CN107070790A (en)A kind of route learning method and routing device
CN112152928A (en)Neighbor table entry learning method and device and routing equipment
EP2961103A1 (en)Method, apparatus and system for determining transmission path of packet
CN108989175B (en)Communication method and device
CN107294989B (en)Method and device for preventing ARP gateway spoofing
CN108989173B (en)Message transmission method and device
CN107809387B (en) Method, device and network system for message transmission
CN109842692B (en)VxLAN switch, system and method for obtaining host information in physical network
CN112511440B (en)Message forwarding method, system, storage medium and electronic equipment
EP3579502A1 (en)Outer multicast ip address allocation method and device

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant

[8]ページ先頭

©2009-2025 Movatter.jp