CN113691462B - Response method and device of Internet group management protocol - Google Patents

Response method and device of Internet group management protocol Download PDF

Info

Publication number
CN113691462B
CN113691462B CN202110861018.0A CN202110861018A CN113691462B CN 113691462 B CN113691462 B CN 113691462B CN 202110861018 A CN202110861018 A CN 202110861018A CN 113691462 B CN113691462 B CN 113691462B
Authority
CN
China
Prior art keywords
management protocol
group management
internet group
multicast
generating
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
CN202110861018.0A
Other languages
Chinese (zh)
Other versions
CN113691462A (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 DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN202110861018.0A priority Critical patent/CN113691462B/en
Publication of CN113691462A publication Critical patent/CN113691462A/en
Application granted granted Critical
Publication of CN113691462B publication Critical patent/CN113691462B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/28Flow control; Congestion control in relation to timing considerations
    • H04L47/283Flow control; Congestion control in relation to timing considerations in response to processing delays, e.g. caused by jitter or round trip time [RTT]
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present disclosure relates to a method, apparatus, system, electronic device, and computer readable medium for answering an internet group management protocol. The method comprises the following steps: acquiring an Internet group management protocol query message; analyzing the internet group management protocol query message to obtain the number of the first multicast group in the current network segment; determining the number of second multicast groups focused by the host device; and generating a response message of the internet group management protocol query message based on the first multicast group number and the second multicast group number. The response method, the device, the system, the electronic equipment and the computer readable medium of the Internet group management protocol can reasonably determine the response time of the hosts, reduce the number of messages in the network and reduce the consumption caused by monitoring and response of each host.

Description

Response method and device of Internet group management protocol
Technical Field
The present disclosure relates to the field of computer information processing, and in particular, to a method, an apparatus, a system, an electronic device, and a computer readable medium for responding to an internet group management protocol.
Background
The Internet group management protocol, called IGMP protocol (Internet Group Management Protocol), is a multicast protocol in the Internet protocol family. The protocol runs between the host and the multicast router.
The host IP software needs to perform multicast extensions to enable the host to send and receive multicast packets over the local network. But this alone is not sufficient because multicast forwarding across multiple networks must rely on routers. The router must know the distribution of each group member in the Internet in order to establish the multicast forwarding route, which requires that the host must be able to notify the local router of the multicast group in which it is located, which is also the basis for establishing the multicast forwarding route. The interaction of multicast group member information is performed between the host and the local router using an Internet group management protocol. On this basis, the local router communicates with other multicast routers, propagates the member information of the multicast group, and establishes a multicast route.
The query is initiated by a Querier (query). When only one multicast router exists in one network segment, the router plays the role of a query device; when there are multiple multicast routers in a network segment, they can receive IGMP membership report messages (Membership Report Message) from the host, only one router is needed to act as an inquirer, which can be realized by an election mechanism.
The reply is completed by the host within the network segment. The response may be actively initiated by the host, for example, the host increases the traffic receiving requirement for a certain multicast group; or initiated by the querier, the host then replies to avoid the querier from timeout of entries of the multicast group due to long-term non-receipt of the group addition request.
The above information disclosed in the background section is only for enhancement of understanding of the background of the disclosure and therefore it may include information that does not form the prior art that is already known to a person of ordinary skill in the art.
Disclosure of Invention
In view of this, the disclosure provides a method, a device, a system, an electronic device and a computer readable medium for answering an internet group management protocol, which can reasonably determine the answer time of a host, reduce the number of messages in a network, and reduce the consumption caused by interception and answering of each host.
Other features and advantages of the present disclosure will be apparent from the following detailed description, or may be learned in part by the practice of the disclosure.
According to an aspect of the present disclosure, a method for responding to an internet group management protocol is provided, which is applicable to a host device, and includes: acquiring an Internet group management protocol query message; analyzing the internet group management protocol query message to obtain the number of the first multicast group in the current network segment; determining the number of second multicast groups focused by the host device; and generating a response message of the internet group management protocol query message based on the first multicast group number and the second multicast group number.
In an exemplary embodiment of the present disclosure, further comprising: obtaining a response message; analyzing the response message to extract at least one host identity; and generating a response message based on at least one host identifier and the first multicast group number and the second multicast group number.
In one exemplary embodiment of the present disclosure, determining the number of second multicast groups of interest to the host device includes: and determining the number of the second multicast group based on the membership report message of the internet group management protocol of the host equipment.
In an exemplary embodiment of the present disclosure, generating a reply message of the internet group management protocol query message based on the first multicast group number and the second multicast group number includes: generating a delayed acknowledgement time based on the first multicast group number and the second multicast group number; and generating a response message of the internet group management protocol query message based on the delay response time.
In one exemplary embodiment of the present disclosure, generating a delayed acknowledgement time based on the first multicast group number and the second multicast group number includes: and generating the delay response time according to the ratio of the first multicast group number to the second multicast group number and the preset response time.
In an exemplary embodiment of the present disclosure, generating a reply message of the internet group management protocol query message based on the delayed reply time includes: and generating the response message based on the membership report of the internet group management protocol at the delayed response time.
In one exemplary embodiment of the present disclosure, there is provided: and generating the delay response time based on a preset response time when the number of the first multicast group in the internet group management protocol query message is not analyzed.
In an exemplary embodiment of the present disclosure, generating a reply message based on at least one host identity and the first multicast group number and the second multicast group number includes: generating a delayed acknowledgement time based on the first multicast group number and the second multicast group number; and generating the response message based on the at least one host identifier and the Internet group management protocol membership report message of the host device.
In an exemplary embodiment of the present disclosure, generating the reply message based on the at least one host identity and an internet group management protocol membership report message of the host device includes: generating the response message based on the internet group management protocol membership report; and rejecting the at least one host identity in the response message.
According to an aspect of the present disclosure, a method for responding to an internet group management protocol is provided, which is applicable to a querier, and includes: generating an internet group management protocol query message, wherein the internet group management protocol query message comprises the number of multicast groups in a current network segment; transmitting the internet group management protocol query message to at least one host device of the current network segment; and managing the host equipment in the current network segment based on the response message of the at least one host equipment.
According to an aspect of the present disclosure, there is provided a response device of an internet group management protocol, which is applicable to a host device, the device including: the acquisition module is used for acquiring the Internet group management protocol query message; the first quantity module is used for analyzing the internet group management protocol query message to acquire the quantity of the first multicast group in the current network segment; a second number module, configured to determine a second multicast group number focused by the host device; and the response module is used for generating a response message of the internet group management protocol query message based on the first multicast group number and the second multicast group number.
According to an aspect of the present disclosure, a response device of an internet group management protocol is provided, which is applicable to a querier, and the device includes: the generating module is used for generating an internet group management protocol query message, wherein the internet group management protocol query message comprises the number of multicast groups in the current network segment; the sending module is used for sending the internet group management protocol query message to at least one host device of the current network segment; and the management module is used for managing the host equipment in the current network segment based on the response message of the at least one host equipment.
According to an aspect of the present disclosure, there is provided a response system of an internet group management protocol, the apparatus including: the query device is used for generating an internet group management protocol query message, wherein the internet group management protocol query message comprises the number of multicast groups in the current network segment; transmitting the internet group management protocol query message to at least one host device of the current network segment; managing the host equipment in the current network segment based on the response message of the at least one host equipment; the host equipment is used for acquiring an internet group management protocol query message; analyzing the internet group management protocol query message to obtain the number of the first multicast group in the current network segment; determining the number of second multicast groups focused by the host device; and generating a response message of the internet group management protocol query message based on the first multicast group number and the second multicast group number.
According to an aspect of the present disclosure, there is provided an electronic device including: one or more processors; a storage means for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the methods as described above.
According to an aspect of the present disclosure, a computer-readable medium is presented, on which a computer program is stored, which program, when being executed by a processor, implements a method as described above.
According to the response method, the device, the system, the electronic equipment and the computer readable medium of the internet group management protocol, the internet group management protocol query message is obtained; analyzing the internet group management protocol query message to obtain the number of the first multicast group in the current network segment; determining the number of second multicast groups focused by the host device; the method for generating the response message of the internet group management protocol query message based on the first multicast group number and the second multicast group number can reasonably determine the response time of the host, and reduce the number of messages in the network and consumption caused by monitoring and response of each host.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The above and other objects, features and advantages of the present disclosure will become more apparent by describing in detail exemplary embodiments thereof with reference to the attached drawings. The drawings described below are merely examples of the present disclosure and other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art.
Fig. 1 is a block diagram of an answer system for an internet group management protocol, according to an example embodiment.
Fig. 2 is a flow chart illustrating a method of replying to an internet group management protocol according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a reply method of an internet group management protocol according to another exemplary embodiment.
Fig. 4 is a flowchart illustrating a reply method of an internet group management protocol according to another exemplary embodiment.
Fig. 5 is a block diagram illustrating a reply device to an internet group management protocol according to one example embodiment.
Fig. 6 is a block diagram illustrating a reply device to an internet group management protocol according to another exemplary embodiment.
Fig. 7 is a block diagram of an electronic device, according to an example embodiment.
Fig. 8 is a block diagram of a computer-readable medium shown according to an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments can be embodied in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar parts, and thus a repetitive description thereof will be omitted.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the disclosed aspects may be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, systems, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the disclosure.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
It will be understood that, although the terms first, second, third, etc. may be used herein to describe various components, these components should not be limited by these terms. These terms are used to distinguish one element from another element. Accordingly, a first component discussed below could be termed a second component without departing from the teachings of the concepts of the present disclosure. As used herein, the term "and/or" includes any one of the associated listed items and all combinations of one or more.
Those skilled in the art will appreciate that the drawings are schematic representations of example embodiments and that the modules or flows in the drawings are not necessarily required to practice the present disclosure, and therefore, should not be taken to limit the scope of the present disclosure.
The technical abbreviations to which the present disclosure relates are explained as follows:
IGMP Internet Group Management Protocol, internet group management protocol; IGMP is a protocol responsible for IP multicast membership management and is a currently common multicast protocol. The IGMP protocol is responsible for establishing and maintaining multicast group membership between an IP host and a multicast router directly connected thereto. IGMP completes management of multicast group membership based on a query and response mechanism.
In the prior art, when receiving an IGMP query message sent by a querier:
1. If a host needs to receive traffic of a multicast group, the host starts a delay timer to answer the query, and the delay time is a random value not exceeding the aging time of the multicast group.
2. If the host does not receive any reply message for the group within the delay time interval, it immediately sends an IGMP membership report message for the group that can be received by the querier and other hosts within the network segment in which it is located.
This may be the case for two reasons: 1 is the only attention of a certain multicast group in the network segment, 2 is a plurality of attention of a certain multicast group in the network segment, and the delay timer of the host is timed out first.
If the host receives the response message of the group sent by any other host within the delay time interval, the host does not need to answer the query of the group any more because the response message can be received by the querier to avoid the ageing of the table item of the querier about the multicast group, and thus the delay response timer of the group is cancelled.
The application of the delay response timer avoids repeated response messages sent by the host in the network segment, thereby reducing the bandwidth occupied by the repeated response messages and the burden of the inquirer and the host. However, in some scenarios, multiple hosts within the network segment still require more consumption to respond accordingly.
The scenario is assumed as follows: one network segment includes a querier Q and four hosts (H1, H2, H3, H4), where H1 focuses on multicast group G1, H2 focuses on multicast group G2, H3 focuses on multicast group G3, and H4 focuses on four multicast groups (G1, G2, G3, G4).
After four hosts receive the inquiry message sent by the inquirer, the four hosts set the delay response timers independently. It is therefore possible to respond in the chronological order of H1, H2, H3, H4, the procedure is as follows:
1, the querier Q sends query messages, and the hosts H1, H2, H3, H4 each set a response delay of the host.
2, the delay response timer of the host H1 expires first, H1 sends a response message about the group G1, H2 and H3 compare and find that the response message is not the same group as the host concerned after receiving the response message, and ignore the message; after H4 receives it, the comparison finds that it is one of the groups of interest to the host, then marks G1 as having responded and continues to snoop IGMP group membership messages (G2, G3, G4 as not yet responded by the host).
3, when the delay response timer of the host H2 expires, H2 sends a response message about the group G2, H3 compares the response message with the group concerned by the host and ignores the message after receiving the response message; after H4 receives it, the comparison finds that it is one of the groups of interest to the host, then marks G2 as having responded and continues to snoop IGMP group membership messages (G3, G4 has not yet responded by the host).
4, when the delay response timer of the host H3 expires, the H3 sends a response message about the group G3, and after the H4 receives the response message, the comparison finds that the host is one of the groups of interest, marks that the group G3 has responded, and continues to monitor IGMP group membership messages (G4 has not responded yet).
5, when the delay response timer of the host H4 expires, the H4 sends a response message about the group G4.
It follows that in this order, each host needs to send a reply message, and some of the hosts also need to monitor and process the reply messages sent by other hosts for a longer period of time. The response in this order is not optimal.
As can be seen from the examples in the shortcoming section of the prior art solutions, in the prior art solutions, since the response delay time set by each host is independent, the response sequence between hosts presents randomness, which avoids the burst of traffic in the network, but makes the response sequence between hosts non-optimal.
In order to solve the technical bottleneck in the prior art, the disclosure provides a response method of an internet group management protocol, which can perform IGMP response in a better manner, and the technical scheme of the disclosure provides a method for setting response delay according to the proportion of a group concerned by each host in the query sent by a query device, so that the whole response is better. The following is a detailed description with the aid of specific examples.
Fig. 1 is a block diagram of an answer system for an internet group management protocol, according to an example embodiment.
As shown in fig. 1, the system architecture 10 may include hosts 101, 102, 103, a network 104, and a querier 105. The network 104 is the medium used to provide the communication links between the hosts 101, 102, 103 and the querier 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The hosts 101, 102, 103 may interact with the querier 105 through the network 104 to receive or send message messages, etc. Various communication client applications may be installed on hosts 101, 102, 103, such as shopping class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, and the like.
The hosts 101, 102, 103 may be a variety of electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The hosts 101, 102, 103 may, for example, obtain an internet group management protocol query message; the hosts 101, 102, 103 may, for example, parse the internet group management protocol query message to obtain the number of the first multicast group in the current network segment; the hosts 101, 102, 103 may, for example, determine a second multicast group number of interest to the host device; the hosts 101, 102, 103 may generate reply messages to the internet group management protocol query message, for example, based on the first multicast group number and the second multicast group number.
The hosts 101, 102, 103 may also, for example, obtain reply messages; the hosts 101, 102, 103 may also parse the reply message, for example, to extract at least one host identity; the hosts 101, 102, 103 may also generate reply messages, e.g. based on at least one host identity and said first and second multicast group numbers.
The querier 105 may, for example, generate an internet group management protocol query message that includes the number of multicast groups in the current network segment; the querier 105 may, for example, send the internet group management protocol query message to at least one host device of the current network segment; the querier 105 may manage the host devices in the current network segment, for example, based on the reply messages of the at least one host device.
It should be noted that, the response method of the internet group management protocol provided in the embodiments of the present disclosure may be executed by the hosts 101, 102, 103 and the querier 105, and accordingly, the response device of the internet group management protocol may be disposed in the hosts 101, 102, 103 and the querier 105.
Fig. 2 is a flow chart illustrating a method of replying to an internet group management protocol according to an exemplary embodiment. The response method 20 of the internet group management protocol may be applied to the host device, and includes at least steps S202 to S208.
As shown in fig. 2, in S202, an internet group management protocol query message is acquired.
In S204, the first multicast group number in the current network segment is obtained by parsing the internet group management protocol query message. And determining the number of the second multicast group based on the membership report message of the internet group management protocol of the host equipment. When the inquirer periodically transmits inquiry information, a parameter is added, and the parameter carries the number (N1) of multicast groups currently held by the current inquirer in the network segment. 2. When the host receives the query message sent by the querier, the number N1 of query multicast groups carried by the querier needs to be resolved in addition to normal resolution.
And generating the delay response time based on a preset response time when the number of the first multicast group in the internet group management protocol query message is not analyzed. 1. If the host does not support the technical scheme, after N1 is ignored, the delay response timer is still set according to the prior technical scheme.
In S206, the number of second multicast groups of interest to the host device is determined.
In S208, a response message of the internet group management protocol query message is generated based on the first multicast group number and the second multicast group number. Generating a delayed acknowledgement time based on the first multicast group number and the second multicast group number; and generating a response message of the internet group management protocol query message based on the delay response time.
Wherein generating a delayed acknowledgement time based on the first multicast group number and the second multicast group number comprises: and generating the delay response time according to the ratio of the first multicast group number to the second multicast group number and the preset response time.
Wherein generating a response message of the internet group management protocol query message based on the delayed response time includes: and generating the response message based on the membership report of the internet group management protocol at the delayed response time.
If the host supports the technical scheme, after the multicast group number N1 in the query message is obtained, the multicast group number (N2) of the network segment concerned by the host is obtained, and the response delay is set according to the size of N2/N1. The method is that after the delay (jitter) is calculated by using the prior art scheme, the delay is multiplied by (1-N2/N1), namely, the larger the proportion of the multicast group concerned by the local machine is, the smaller the newly calculated delay interval is. The local delayed acknowledgement timer is set with the new delay interval.
In S210, a response message from another host is acquired. After other hosts respond to the response message, the response message is obtained.
In S212, parsing the reply message to extract at least one host identifier;
in S214, a reply message is generated based on at least one host identity and the first and second multicast group numbers. Comprising the following steps: generating a delayed acknowledgement time based on the first multicast group number and the second multicast group number; and generating the response message based on the at least one host identifier and the Internet group management protocol membership report message of the host device.
Wherein generating the response message based on the at least one host identifier and the internet group management protocol membership report message of the host device includes: generating the response message based on the internet group management protocol membership report; and rejecting the at least one host identity in the response message. And monitoring response messages sent by other hosts, comparing whether the response messages have intersections with the multicast group concerned by the host, and eliminating the content of the intersections in the response messages of the host when the intersections exist so as to reduce the length of the response messages of the host.
According to the response method of the Internet group management protocol, an Internet group management protocol query message is obtained; analyzing the internet group management protocol query message to obtain the number of the first multicast group in the current network segment; determining the number of second multicast groups focused by the host device; the method for generating the response message of the internet group management protocol query message based on the first multicast group number and the second multicast group number can reasonably determine the response time of the host, and reduce the number of messages in the network and consumption caused by monitoring and response of each host.
It should be clearly understood that this disclosure describes how to make and use particular examples, but the principles of this disclosure are not limited to any details of these examples. Rather, these principles can be applied to many other embodiments based on the teachings of the present disclosure.
Fig. 3 is a flow chart illustrating a method of replying to an internet group management protocol according to an exemplary embodiment. The response method 30 of the internet group management protocol may be applied to the querier, and at least includes steps S302 to S306.
As shown in fig. 3, in S302, an internet group management protocol query message is generated, where the internet group management protocol query message includes the number of multicast groups in the current network segment. 1. When the inquirer periodically transmits inquiry information, a parameter is added, and the parameter carries the number (N1) of multicast groups currently held by the current inquirer in the network segment.
In S304, the internet group management protocol query packet is sent to at least one host device of the current network segment.
In S306, the host device in the current network segment is managed based on the reply message of the at least one host device. And extracting the content of the multicast group of each host according to the response messages returned by all the host devices, and splicing the conditions of all the multicast groups in the current network segment.
Fig. 4 is a flowchart illustrating a reply method of an internet group management protocol according to another exemplary embodiment. The flow 40 shown in fig. 4 is a detailed description of the workflow of the answer system to the internet group management protocol. According to the method and the device, the query message sent by the querier carries the query group number, and the host sets the response delay according to the proportion of the multicast group concerned by the host, so that the host with larger coverage area responds first with higher probability, and therefore the number of messages in the network and consumption caused by monitoring and response of each host are reduced.
Taking the above scenario as an example: one network segment includes a querier Q and four hosts (H1, H2, H3, H4), where H1 focuses on multicast group G1, H2 focuses on multicast group G2, H3 focuses on multicast group G3, and H4 focuses on four multicast groups (G1, G2, G3, G4).
As shown in fig. 4, in S402, the querier Q sends a query message, and carries n1=4 therein.
In S404, the host H1, H2, H3 multiplies the original delay by 3/4, and sets a local delay response timer according to the technical scheme of the present invention.
In S406, according to the technical solution of the present invention, the host H4 immediately sends the response message because n1=n2=4.
In S408, after receiving the reply message sent by H4, the hosts H1, H2, H3 compare to find that the reply already covers the multicast group of interest of the host, and the hosts H1, H2, H3 do not need to send the reply message again.
In S410, the querier generates multicast group information in the current network segment when a predetermined time is reached.
Even if there are several hosts in the network that do not support the parsing of N1, for example 1-3 hosts H1, H2, H3, the actual effect is the same as shown above.
For example, the four hosts do not support the analysis of N1, so that the effect is the same as that of the prior art, and the function deficiency is not caused.
Those skilled in the art will appreciate that all or part of the steps implementing the above described embodiments are implemented as a computer program executed by a CPU. The above-described functions defined by the above-described methods provided by the present disclosure are performed when the computer program is executed by a CPU. The program may be stored in a computer readable storage medium, which may be a read-only memory, a magnetic disk or an optical disk, etc.
Furthermore, it should be noted that the above-described figures are merely illustrative of the processes involved in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
The following are device embodiments of the present disclosure that may be used to perform method embodiments of the present disclosure. For details not disclosed in the embodiments of the apparatus of the present disclosure, please refer to the embodiments of the method of the present disclosure.
Fig. 5 is a block diagram illustrating a reply device to an internet group management protocol according to one example embodiment. As shown in fig. 5, the reply device 50 of the internet group management protocol may be applied to a host apparatus, including: an acquisition module 502, a first number module 504, a second number module 506, and a response module 508.
The obtaining module 502 is configured to obtain an internet group management protocol query message;
the first number module 504 is configured to parse the internet group management protocol query message to obtain a number of first multicast groups in the current network segment;
a second number module 506 is configured to determine a second multicast group number of interest of the host device;
the response module 508 is configured to generate a response message of the internet group management protocol query message based on the first multicast group number and the second multicast group number.
Fig. 6 is a block diagram illustrating a reply device to an internet group management protocol according to another exemplary embodiment. As shown in fig. 6, the answering device 60 of the internet group management protocol can be applied to a querier, including: the generation module 602, the transmission module 604, and the management module 606.
The generating module 602 is configured to generate an internet group management protocol query message, where the internet group management protocol query message includes the number of multicast groups in the current network segment;
the sending module 604 is configured to send the internet group management protocol query message to at least one host device in a current network segment;
the management module 606 is configured to manage the host device in the current network segment based on the reply message of the at least one host device.
According to the response device of the Internet group management protocol, an Internet group management protocol query message is obtained; analyzing the internet group management protocol query message to obtain the number of the first multicast group in the current network segment; determining the number of second multicast groups focused by the host device; the method for generating the response message of the internet group management protocol query message based on the first multicast group number and the second multicast group number can reasonably determine the response time of the host, and reduce the number of messages in the network and consumption caused by monitoring and response of each host.
Fig. 7 is a block diagram of an electronic device, according to an example embodiment.
An electronic device 700 according to such an embodiment of the present disclosure is described below with reference to fig. 7. The electronic device 700 shown in fig. 7 is merely an example and should not be construed to limit the functionality and scope of use of embodiments of the present disclosure in any way.
As shown in fig. 7, the electronic device 700 is embodied in the form of a general purpose computing device. Components of electronic device 700 may include, but are not limited to: at least one processing unit 710, at least one memory unit 720, a bus 730 connecting the different system components (including the memory unit 720 and the processing unit 710), a display unit 740, and the like.
Wherein the storage unit stores program code that is executable by the processing unit 710 such that the processing unit 710 performs steps described in the present specification according to various exemplary embodiments of the present disclosure. For example, the processing unit 710 may perform the steps as shown in fig. 2, 3, and 4.
The memory unit 720 may include readable media in the form of volatile memory units, such as Random Access Memory (RAM) 7201 and/or cache memory 7202, and may further include Read Only Memory (ROM) 7203.
The storage unit 720 may also include a program/utility 7204 having a set (at least one) of program modules 7205, such program modules 7205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 730 may be a bus representing one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 700 may also communicate with one or more external devices 700' (e.g., keyboard, pointing device, bluetooth device, etc.), devices that enable a user to interact with the electronic device 700, and/or any devices (e.g., routers, modems, etc.) with which the electronic device 700 can communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 750. Also, electronic device 700 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through network adapter 760. Network adapter 760 may communicate with other modules of electronic device 700 via bus 730. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 700, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, as shown in fig. 8, the technical solution according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, or a network device, etc.) to perform the above-described method according to the embodiments of the present disclosure.
The software product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a data signal propagated in baseband or as part of a carrier wave, with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable storage medium may also be any readable medium that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The computer-readable medium carries one or more programs, which when executed by one of the devices, cause the computer-readable medium to perform the functions of: acquiring an Internet group management protocol query message; analyzing the internet group management protocol query message to obtain the number of the first multicast group in the current network segment; determining the number of second multicast groups focused by the host device; and generating a response message of the internet group management protocol query message based on the first multicast group number and the second multicast group number. The computer readable medium may also implement the following functions: obtaining a response message; analyzing the response message to extract at least one host identity; and generating a response message based on at least one host identifier and the first multicast group number and the second multicast group number. The computer readable medium may also implement the following functions: acquiring an Internet group management protocol query message; analyzing the internet group management protocol query message to obtain the number of the first multicast group in the current network segment; determining the number of second multicast groups focused by the host device; and generating a response message of the internet group management protocol query message based on the first multicast group number and the second multicast group number.
Those skilled in the art will appreciate that the modules may be distributed throughout several devices as described in the embodiments, and that corresponding variations may be implemented in one or more devices that are unique to the embodiments. The modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or in combination with the necessary hardware. Thus, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disk, a mobile hard disk, etc.) or on a network, and include several instructions to cause a computing device (may be a personal computer, a server, a mobile terminal, or a network device, etc.) to perform the method according to the embodiments of the present disclosure.
Exemplary embodiments of the present disclosure are specifically illustrated and described above. It is to be understood that this disclosure is not limited to the particular arrangements, instrumentalities and methods of implementation described herein; on the contrary, the disclosure is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (10)

1. An internet group management protocol response method, applicable to a host device, is characterized by comprising the following steps:
acquiring an Internet group management protocol query message;
analyzing the internet group management protocol query message to obtain the number N1 of the first multicast group in the current network segment;
determining the number N2 of second multicast groups focused by the host device;
generating a response message of the internet group management protocol query message based on the first multicast group number and the second multicast group number, including: generating a delayed response time by multiplying a preset response time by (1-N2/N1) based on a ratio N2/N1 of the number of the first multicast groups to the number of the second multicast groups, and generating a response message of the internet group management protocol query message based on the delayed response time, including: and generating the response message based on the membership report of the internet group management protocol at the delayed response time.
2. The method as recited in claim 1, further comprising:
obtaining a response message;
analyzing the response message to extract at least one host identity;
and generating a response message based on at least one host identifier and the first multicast group number and the second multicast group number.
3. The method of claim 1, wherein determining the number of second multicast groups of interest to the host device comprises:
and determining the number of the second multicast group based on the membership report message of the internet group management protocol of the host equipment.
4. The method as claimed in claim 1, comprising:
and generating delay response time based on preset response time when the number of the first multicast group in the internet group management protocol query message is not analyzed.
5. The method of claim 2, wherein generating a reply message based on at least one host identity and the first and second multicast group numbers comprises:
generating a delayed acknowledgement time based on the first multicast group number and the second multicast group number;
and generating the response message based on the at least one host identifier and the Internet group management protocol membership report message of the host device.
6. The method of claim 5, wherein generating the reply message based on the at least one host identity and an internet group management protocol membership report message for the host device comprises:
generating the response message based on the internet group management protocol membership report;
And rejecting the at least one host identity in the response message.
7. The response method of the Internet group management protocol can be applied to a inquirer and is characterized by comprising the following steps:
generating an internet group management protocol query message, wherein the internet group management protocol query message comprises the number of multicast groups in a current network segment;
the internet group management protocol query message is sent to at least one host device of a current network segment, so that the host device obtains the internet group management protocol query message, analyzes the internet group management protocol query message to obtain a first multicast group number N1 in the current network segment, determines a second multicast group number N2 focused by the host device, and generates a response message of the internet group management protocol query message based on the first multicast group number and the second multicast group number, and the method comprises the following steps: generating a delayed response time by multiplying (1-N2/N1) by a preset response time based on a ratio N2/N1 of the number of the first multicast groups to the number of the second multicast groups, and generating a response message of the internet group management protocol query message based on the delayed response time, including: generating the response message based on the internet group management protocol membership report at the delayed response time;
And managing the host equipment in the current network segment based on the response message of the at least one host equipment.
8. An internet group management protocol answering device, applicable to a host device, comprising:
the acquisition module is used for acquiring the Internet group management protocol query message;
the first number module is used for analyzing the internet group management protocol query message to obtain the number N1 of the first multicast group in the current network segment;
a second number module, configured to determine a second multicast group number N2 focused by the host device;
the response module is configured to generate a response message of the internet group management protocol query message based on the first multicast group number and the second multicast group number, and includes: generating a delayed response time by multiplying a preset response time by (1-N2/N1) based on a ratio N2/N1 of the number of the first multicast groups to the number of the second multicast groups, and generating a response message of the internet group management protocol query message based on the delayed response time, including: and generating the response message based on the membership report of the internet group management protocol at the delayed response time.
9. The response method of the Internet group management protocol can be applied to a inquirer and is characterized by comprising the following steps:
The generating module is used for generating an internet group management protocol query message, wherein the internet group management protocol query message comprises the number of multicast groups in the current network segment;
the sending module is configured to send the internet group management protocol query message to at least one host device in a current network segment, so that the host device obtains the internet group management protocol query message, analyzes the internet group management protocol query message to obtain a first multicast group number N1 in the current network segment, determines a second multicast group number N1 focused by the host device, and generates a response message of the internet group management protocol query message based on the first multicast group number and the second multicast group number, where the sending module includes: generating a delayed response time by multiplying a preset response time by (1-N2/N1) based on a ratio N2/N1 of the number of the first multicast groups to the number of the second multicast groups, and generating a response message of the internet group management protocol query message based on the delayed response time, including: generating the response message based on the internet group management protocol membership report at the delayed response time;
and the management module is used for managing the host equipment in the current network segment based on the response message of the at least one host equipment.
10. An internet group management protocol answering system, comprising:
the query device is used for generating an internet group management protocol query message, wherein the internet group management protocol query message comprises the number of multicast groups in the current network segment; transmitting the internet group management protocol query message to at least one host device of the current network segment; managing the host equipment in the current network segment based on the response message of the at least one host equipment;
the host equipment is used for acquiring an internet group management protocol query message; analyzing the internet group management protocol query message to obtain the number N1 of the first multicast group in the current network segment; determining the number N2 of second multicast groups focused by the host device; generating a response message of the internet group management protocol query message based on the first multicast group number and the second multicast group number, including: generating a delayed response time by multiplying a preset response time by (1-N2/N1) based on a ratio N2/N1 of the number of the first multicast groups to the number of the second multicast groups, and generating a response message of the internet group management protocol query message based on the delayed response time, including: and generating the response message based on the membership report of the internet group management protocol at the delayed response time.
CN202110861018.0A 2021-07-29 2021-07-29 Response method and device of Internet group management protocol Active CN113691462B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110861018.0A CN113691462B (en) 2021-07-29 2021-07-29 Response method and device of Internet group management protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110861018.0A CN113691462B (en) 2021-07-29 2021-07-29 Response method and device of Internet group management protocol

Publications (2)

Publication Number Publication Date
CN113691462A CN113691462A (en) 2021-11-23
CN113691462B true CN113691462B (en) 2023-09-15

Family

ID=78578216

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110861018.0A Active CN113691462B (en) 2021-07-29 2021-07-29 Response method and device of Internet group management protocol

Country Status (1)

Country Link
CN (1) CN113691462B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060465A (en) * 2006-04-27 2007-10-24 华为技术有限公司 Controlling method and system for multicast data transmission
CN101184044A (en) * 2007-12-05 2008-05-21 中兴通讯股份有限公司 Packet processing method of multicast monitoring discovery protocol
WO2008138248A1 (en) * 2007-05-14 2008-11-20 Huawei Technologies Co., Ltd. A method, an interface board and a router for transmitting the message
CN101369994A (en) * 2007-08-15 2009-02-18 华为技术有限公司 Method, apparatus and system for implementing multicast group member management protocol proxy
WO2009036685A1 (en) * 2007-09-17 2009-03-26 Huawei Technologies Co., Ltd. A method and apparatus for implementing multicast authentication
CN101483655A (en) * 2009-02-10 2009-07-15 杭州华三通信技术有限公司 Packet transmission method and proxy device for Internet group management protocol
CN102349271A (en) * 2011-07-07 2012-02-08 华为技术有限公司 Multicast protocol message monitoring method, device and switch
CN110730133A (en) * 2019-10-21 2020-01-24 北京百度网讯科技有限公司 Route notification method and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4077330B2 (en) * 2003-02-06 2008-04-16 富士通株式会社 Data generator
EP2413539A4 (en) * 2009-03-27 2014-03-12 Mitsubishi Electric Corp Station side device and optical communication system
CN107645759B (en) * 2016-07-20 2021-02-02 中兴通讯股份有限公司 Response method and device for multicast data transmission
JP6914661B2 (en) * 2017-01-27 2021-08-04 キヤノン株式会社 Communication device and control method of communication device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101060465A (en) * 2006-04-27 2007-10-24 华为技术有限公司 Controlling method and system for multicast data transmission
WO2008138248A1 (en) * 2007-05-14 2008-11-20 Huawei Technologies Co., Ltd. A method, an interface board and a router for transmitting the message
CN101369994A (en) * 2007-08-15 2009-02-18 华为技术有限公司 Method, apparatus and system for implementing multicast group member management protocol proxy
WO2009024054A1 (en) * 2007-08-15 2009-02-26 Huawei Technologies Co., Ltd. A method, device and system for realizing the management protocol agent for members in a multicast group
WO2009036685A1 (en) * 2007-09-17 2009-03-26 Huawei Technologies Co., Ltd. A method and apparatus for implementing multicast authentication
CN101184044A (en) * 2007-12-05 2008-05-21 中兴通讯股份有限公司 Packet processing method of multicast monitoring discovery protocol
CN101483655A (en) * 2009-02-10 2009-07-15 杭州华三通信技术有限公司 Packet transmission method and proxy device for Internet group management protocol
CN102349271A (en) * 2011-07-07 2012-02-08 华为技术有限公司 Multicast protocol message monitoring method, device and switch
CN110730133A (en) * 2019-10-21 2020-01-24 北京百度网讯科技有限公司 Route notification method and system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
"S4-150976 MMCMH Media Distribution via Multicast".3GPP tsg_sa\WG4_CODEC.2015,全文. *
Sebastian Wolke.dynamic cross-domain group communication in hybrid multicast networks.2015 IEEE 5th International Conference on Consumer Electronics-Berlin.2016,全文. *
戴祥.基于网络性能测试仪的RFC3918软件方案设计与实现.中国优秀硕士学位论文数据库.2020,全文. *
洪志华.基于双锥结构分层分域的应用层组播研究.中国优秀硕士学位论文数据库.2017,全文. *

Also Published As

Publication number Publication date
CN113691462A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
US11711434B2 (en) Information transmission method and device
CN108900388B (en) Method, apparatus, and medium for monitoring network quality
CN112511660B (en) Management system, method and device of edge terminal equipment and storage medium
Khakimov et al. Investigation of methods for remote control IoT-devices based on cloud platforms and different interaction protocols
CN110659109A (en) Openstack cluster virtual machine monitoring system and method
CN110612716A (en) Intermediate device for network routing of data messages
CN107124483A (en) Domain name analytic method and server
CN108153803A (en) A kind of data capture method, device and electronic equipment
CN114513552B (en) Data processing method, device, equipment and storage medium
CN102891851A (en) Access control method, equipment and system of virtual desktop
CN111885190B (en) Service request processing method and system
US20060020708A1 (en) System and method for peer-to-peer communication
CN115951923B (en) Subscription event management method, display system, device and storage medium
CN113691462B (en) Response method and device of Internet group management protocol
CN109005250B (en) Method and device for accessing server
CN113127335A (en) System testing method and device
CN108259576B (en) Software and hardware real-time information transmission system and method
CN112994934B (en) Data interaction method, device and system
CN110661895A (en) Network address mapping method and network address mapping equipment of server
CN109600452B (en) Server cluster, message pushing method and related server
CN111104575B (en) Data grabbing method and device and electronic equipment
CN114650271B (en) Global load DNS neighbor site learning method and device
CN106559271B (en) A kind of resource access method and system
CN112152915A (en) Message forwarding network system and message forwarding method
CN115277506B (en) Load balancing equipment testing method and system

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