CN115766565A - Multicast group maintenance method based on MAC address - Google Patents

Multicast group maintenance method based on MAC address Download PDF

Info

Publication number
CN115766565A
CN115766565A CN202211693027.4A CN202211693027A CN115766565A CN 115766565 A CN115766565 A CN 115766565A CN 202211693027 A CN202211693027 A CN 202211693027A CN 115766565 A CN115766565 A CN 115766565A
Authority
CN
China
Prior art keywords
multicast group
mac address
multicast
message
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211693027.4A
Other languages
Chinese (zh)
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.)
Shenzhen Hongsheng Fiber Communication Equipment Co ltd
Original Assignee
Shenzhen Hongsheng Fiber Communication Equipment 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 Shenzhen Hongsheng Fiber Communication Equipment Co ltd filed Critical Shenzhen Hongsheng Fiber Communication Equipment Co ltd
Priority to CN202211693027.4A priority Critical patent/CN115766565A/en
Publication of CN115766565A publication Critical patent/CN115766565A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the technical field of data communication, and discloses a multicast group maintenance method based on an MAC address, which comprises the following steps: 1) When a terminal sends a report message, after receiving the report message, a local side firstly searches a corresponding multicast group according to a multicast IP address carried by the report message and judges that the multicast group does not exist; then binding operation is carried out according to the judgment result; 2) When the terminal sends a leaving message, the local side receives the leaving message, firstly searches the corresponding multicast group according to the multicast IP address carried by the leaving message, judges that the multicast group does not exist, and then performs unbinding operation according to the judgment result; 3) And finally, checking whether the multicast group is bound with other terminal MAC addresses, and performing maintenance operation according to the checking result. When the invention is used, the dynamic maintenance of the multicast group is realized, a timer is not needed, and a specific group query message is not needed to be sent to maintain the multicast group members.

Description

Multicast group maintenance method based on MAC address
Technical Field
The invention relates to the technical field of data communication, in particular to a multicast group maintenance method based on an MAC address.
Background
MAC address, which is used to indicate the identifier of each station on the internet, and is represented by hexadecimal numbers, which is six bytes, wherein the first three bytes are codes assigned to different manufacturers by the registration authority RA of IEEE, and are also called "compiled unique identifiers", and the last three bytes are assigned to adapter interfaces produced by each manufacturer, which are called extended identifiers, and one address block can generate 2 different addresses, and the MAC address is actually an adapter address or an adapter identifier EUI-48.
In the present multicast group maintenance, a mode is adopted that a general group query message is periodically sent by a multicast querier to perform membership query, a terminal sends a report message to answer the query, when joining a multicast group, the terminal does not need to wait for the query message, and actively sends the report message, wherein when leaving the multicast group, the terminal sends a leave message, after receiving the leave message, an office sends a specific group query message to determine whether all group members leave, if other members of the multicast group exist in the network segment, the members send the membership report message within the set maximum response time in the message after receiving the specific group query message, if the membership report message sent by other members of the multicast group is received within the maximum response time, the querier continues to maintain the membership of the multicast group, otherwise, the querier considers that no member of the multicast group exists in the network segment, and does not maintain the membership of the multicast group, and a multicast table is established in the office end by the multicast mechanism, wherein the table contains all multicast ports and the multicast data port corresponding to which multicast group has the member received the multicast port.
The method for maintaining the multicast group members by the office end needs to use a timer, increases the system overhead, and the office end maintains the multicast group and needs to rely on sending messages, so that a certain bandwidth can be occupied, and meanwhile, the office end can be influenced by the network environment when sending the multicast messages, so that the problem that the maintenance of the multicast group members is not timely occurs when the network is abnormal, thereby causing the interruption of user services and influencing the use condition.
Disclosure of Invention
Technical problem to be solved
Aiming at the defects of the prior art, the invention provides a multicast group maintenance method based on an MAC address, which has the advantages of dynamically maintaining the multicast group, reducing the system burden and the sending of messages and the like, and solves the problems of user service interruption and bandwidth occupation of the sent messages caused by untimely maintenance.
(II) technical scheme
In order to realize the dynamic maintenance of the multicast group and reduce the system burden and the message sending purpose, the invention provides the following technical scheme: a multicast group maintenance method based on MAC address includes:
1) When a terminal sends a report message, after receiving the report message, a local side firstly searches a corresponding multicast group according to a multicast IP address carried by the report message, and judges that the multicast group does not exist; then binding operation is carried out according to the judgment result;
2) When the terminal sends a leaving message, the local side receives the leaving message, firstly searches the corresponding multicast group according to the multicast IP address carried by the leaving message, judges that the multicast group does not exist, and then performs unbinding operation according to the judgment result;
3) And finally, checking whether the multicast group is bound with other terminal MAC addresses, and performing maintenance operation according to the checking result.
Preferably, the binding operation in step 1 includes: if the judgment result is that the multicast group does not exist, the multicast group of the multicast IP is created and a terminal MAC address is bound, if the judgment result is that the multicast group exists, the binding relationship between the terminal MAC address and the multicast group is judged finally, and if the multicast group does not exist, the terminal MAC address is bound to the multicast group.
Preferably, the unbinding operation in the step 2 includes: and if the judgment result is that the multicast group exists, checking the binding relationship between the terminal MAC address and the multicast group, and if the binding relationship exists between the terminal MAC address and the multicast group, deleting the binding relationship between the terminal MAC address and the multicast group.
Preferably, the maintenance operation in step 3 includes: if the check result indicates that the MAC addresses of other terminals are bound, the membership of the multicast group is continuously maintained, otherwise, the network segment is considered to have no member of the multicast group, so the membership of the multicast group is not maintained any more, and the office end can terminate the service of the multicast group.
(III) advantageous effects
Compared with the prior art, the invention provides a multicast group maintenance method based on MAC address, which has the following beneficial effects:
in the multicast group maintenance method based on the MAC address, in use, the local side judges the binding relationship of multicast group members completely by receiving the multicast IP address and the MAC address carried by the report message and the leave message of the terminal, so as to realize the dynamic maintenance of the multicast group, a timer is not needed, and meanwhile, a general group query message and a specific group query message are not needed to be sent to maintain the multicast group members, thereby reducing the system burden, reducing the system overhead, reducing the sending of the messages and leading the whole process to be more concise and convenient.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention.
In the drawings:
fig. 1 is a flowchart of a report message receiving operation of a multicast group maintenance method based on an MAC address according to the present invention;
fig. 2 is a flowchart of an operation of receiving a leave message according to a multicast group maintenance method based on an MAC address of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1 and 2, a multicast group maintenance method based on a MAC address includes:
1) When a terminal sends a report message, after receiving the report message, a local side firstly searches a corresponding multicast group according to a multicast IP address carried by the report message and judges that the multicast group does not exist; and then, according to the judgment result, performing binding operation, wherein the binding operation comprises the following steps: if the judgment result is that the multicast group does not exist, the multicast group of the multicast IP is established and a terminal MAC address is bound, if the judgment result is that the multicast group exists, the binding relationship between the terminal MAC address and the multicast group is judged finally, and if the multicast group does not exist, the terminal MAC address is bound to the multicast group;
2) When the terminal sends a leave message, the local side receives the leave message, firstly searches the corresponding multicast group according to the multicast IP address carried by the leave message, judges that the multicast group does not exist, and then performs unbinding operation according to the judgment result, wherein the unbinding operation comprises the following steps: if the judgment result is that the multicast group exists, checking the binding relationship between the terminal MAC address and the multicast group, and if the binding relationship exists between the terminal MAC address and the multicast group, deleting the binding relationship between the terminal MAC address and the multicast group;
3) Finally, whether the multicast group is bound with other terminal MAC addresses is checked, and maintenance operation is carried out according to the check result, wherein the maintenance operation comprises the following steps: if the check result indicates that the MAC addresses of other terminals are bound, the membership of the multicast group is continuously maintained, otherwise, the network segment is considered to have no member of the multicast group, so the membership of the multicast group is not maintained any more, and the office end can terminate the service of the multicast group.
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, the use of the verb "comprise a" to define an element does not exclude the presence of another, same element in a process, method, article, or apparatus that comprises the element.
Finally, it should be noted that: although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that changes may be made in the embodiments and/or equivalents thereof without departing from the spirit and scope of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (4)

1. A multicast group maintenance method based on MAC address is characterized in that the method comprises the following steps:
when a terminal sends a report message, after receiving the report message, a local side firstly searches a corresponding multicast group according to a multicast IP address carried by the report message, and judges that the multicast group does not exist; then binding operation is carried out according to the judgment result;
when the terminal sends a leaving message, the local side receives the leaving message, firstly searches the corresponding multicast group according to the multicast IP address carried by the leaving message, judges that the multicast group does not exist, and then performs unbinding operation according to the judgment result;
and finally, checking whether the multicast group is bound with other terminal MAC addresses, and performing maintenance operation according to the checking result.
2. The method for maintaining multicast group based on MAC address as claimed in claim 1, wherein the binding operation in step 1 comprises: if the judgment result is that the multicast group does not exist, the multicast group of the multicast IP is created and a terminal MAC address is bound, if the judgment result is that the multicast group exists, the binding relationship between the terminal MAC address and the multicast group is judged finally, and if the multicast group does not exist, the terminal MAC address is bound to the multicast group.
3. The multicast group maintenance method based on MAC address as claimed in claim 1, wherein the unbinding operation in step 2 comprises: and if the judgment result is that the multicast group exists, checking the binding relationship between the terminal MAC address and the multicast group, and if the binding relationship exists between the terminal MAC address and the multicast group, deleting the binding relationship between the terminal MAC address and the multicast group.
4. The multicast group maintenance method based on MAC address as claimed in claim 1, wherein the maintenance operation in step 3 comprises: if the check result indicates that the MAC addresses of other terminals are bound, the membership of the multicast group is continuously maintained, otherwise, the network segment is considered to have no member of the multicast group, so the membership of the multicast group is not maintained any more, and the office end can terminate the service of the multicast group.
CN202211693027.4A 2022-12-28 2022-12-28 Multicast group maintenance method based on MAC address Pending CN115766565A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211693027.4A CN115766565A (en) 2022-12-28 2022-12-28 Multicast group maintenance method based on MAC address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211693027.4A CN115766565A (en) 2022-12-28 2022-12-28 Multicast group maintenance method based on MAC address

Publications (1)

Publication Number Publication Date
CN115766565A true CN115766565A (en) 2023-03-07

Family

ID=85347747

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211693027.4A Pending CN115766565A (en) 2022-12-28 2022-12-28 Multicast group maintenance method based on MAC address

Country Status (1)

Country Link
CN (1) CN115766565A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050195817A1 (en) * 2004-03-06 2005-09-08 Hon Hai Precision Industry Co., Ltd. Switching device and multicast packet processing method therefor
US20050232293A1 (en) * 2004-04-19 2005-10-20 Alcatel Control of multicast traffic
CN101047444A (en) * 2006-04-28 2007-10-03 华为技术有限公司 Method for optical network unit depart from multicast set in passive optical network system
CN104601476A (en) * 2013-10-31 2015-05-06 华为技术有限公司 Multicast data message forwarding method and device and switch
CN105897444A (en) * 2016-05-26 2016-08-24 杭州华三通信技术有限公司 Multicast group management method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050195817A1 (en) * 2004-03-06 2005-09-08 Hon Hai Precision Industry Co., Ltd. Switching device and multicast packet processing method therefor
US20050232293A1 (en) * 2004-04-19 2005-10-20 Alcatel Control of multicast traffic
CN101047444A (en) * 2006-04-28 2007-10-03 华为技术有限公司 Method for optical network unit depart from multicast set in passive optical network system
CN104601476A (en) * 2013-10-31 2015-05-06 华为技术有限公司 Multicast data message forwarding method and device and switch
CN105897444A (en) * 2016-05-26 2016-08-24 杭州华三通信技术有限公司 Multicast group management method and device

Similar Documents

Publication Publication Date Title
CN100521660C (en) Method for implementing integrated network mobile switch management
JP3185762B2 (en) Network address setting method
US20040264463A1 (en) Method, apparatus and system for distributing multicast data
CN101179603B (en) Method and device for controlling user network access in IPv6 network
EP1623556B1 (en) Method and apparatus for reducing undeliverable push IP traffic in a wireless network
US20140325090A1 (en) Discovery and disconnection of client addresses in an access node for an ip network
WO2004079947A1 (en) Handoff method in a high-rate packet data mobile communication system
US20110219126A1 (en) Mobile terminal, forwarding intermediate node and mobile communications system
CN100553264C (en) A kind of method and apparatus that in dynamic host configure process, carries out relaying
US6934286B2 (en) Virtual local area network system capable of sending tag frames
JP3539413B2 (en) Network connection device, network connection system, and network connection method
KR20050032601A (en) Mobile terminal identity protection through home location register modification
CN101971569B (en) Method and device for transferring packet in IPV6 access node
CN108471440A (en) A kind of digital intercom method and system
CN115766565A (en) Multicast group maintenance method based on MAC address
CN101631142A (en) Sip server and communication system
KR100526514B1 (en) Method and system of processing call for state information management of 1x ev-do terminal equipment in 1x ev-do system
US8428587B2 (en) Mobile communication system, position registration method, terminal, and home agent
EP1512073B1 (en) Load balancer for multiprocessor platforms
WO2022000579A1 (en) Multi-link terminal and method and apparatus thereof for executing link switching, and storage medium
US7403475B1 (en) Method and apparatus for allocating data packet pathways
EP2568715B1 (en) Mobile node, care of address acquisition method and system thereof, and dhcp server
KR20040023018A (en) Method of using common data location register of public network and private network private in wireless highspeed data system
CN111885622B (en) Bridge acceleration compatible WIFI roaming method and device
CN113055477B (en) Method for realizing TCP communication mutual loading balance by middleware software

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