CN111163007A - Method, device, equipment and storage medium for establishing multicast receiving channel - Google Patents

Method, device, equipment and storage medium for establishing multicast receiving channel Download PDF

Info

Publication number
CN111163007A
CN111163007A CN201911330454.4A CN201911330454A CN111163007A CN 111163007 A CN111163007 A CN 111163007A CN 201911330454 A CN201911330454 A CN 201911330454A CN 111163007 A CN111163007 A CN 111163007A
Authority
CN
China
Prior art keywords
virtual machine
target virtual
host
machine
switch
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
CN201911330454.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.)
Inspur Electronic Information Industry Co Ltd
Original Assignee
Inspur Electronic Information Industry 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 Inspur Electronic Information Industry Co Ltd filed Critical Inspur Electronic Information Industry Co Ltd
Priority to CN201911330454.4A priority Critical patent/CN111163007A/en
Publication of CN111163007A publication Critical patent/CN111163007A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • H04L47/806Broadcast or multicast traffic

Abstract

The invention discloses a method, a device, equipment and a storage medium for establishing a multicast receiving channel, wherein the method comprises the following steps: if the target virtual machine is subjected to thermal migration, determining that host machines where the target virtual machine is located when the target virtual machine is firstly added into the target multicast group and after the thermal migration are respectively a first host machine and a second host machine; acquiring address information contained in an igmp report message sent by a target virtual machine when the target virtual machine is added to a target multicast group for the first time from a cloud platform; and constructing an igmp report message based on the address information, and then sending the igmp report message to a switch connected with the second host machine, so that the switch creates a corresponding forwarding table item at a port connected with the second host machine, wherein the forwarding table item comprises a forwarding path for forwarding the multicast message of the target multicast group to the target virtual machine by the switch. Therefore, after the virtual machine is added into a certain multicast group and is subjected to any hot migration, the multicast message of the multicast group can be continuously received without interruption, and data loss is avoided.

Description

Method, device, equipment and storage medium for establishing multicast receiving channel
Technical Field
The present invention relates to the field of cloud computing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for establishing a multicast receiving channel.
Background
Under a cloud computing data center, a virtual machine added to a certain multicast group sends an igmp (Internet group management Protocol) report message (the igmp report message is only sent once when the virtual machine is added to the multicast group), the igmp report message informs a physical switch to establish a corresponding forwarding table item, and a subsequent physical switch can forward the multicast message of the multicast group to the virtual machine based on the forwarding table item; however, the inventor researches and discovers that if the actual network topology to which the virtual machine belongs is changed after the virtual machine is migrated from a host to another host, the physical switch still forwards the multicast packet according to the method before the virtual machine is migrated, and the virtual machine cannot successfully receive the multicast packet of the multicast group due to the change of the network topology, thereby causing data loss.
Disclosure of Invention
The invention aims to provide a method, a device, equipment and a storage medium for establishing a multicast receiving channel, which can enable a virtual machine to continuously receive multicast messages without interruption after any one-time thermal migration after the virtual machine joins a certain multicast group, and avoid data loss.
In order to achieve the above purpose, the invention provides the following technical scheme:
a method for establishing a multicast receiving channel comprises the following steps:
if the target virtual machine is subjected to thermal migration, determining that a host machine where the target virtual machine is located when the target virtual machine is firstly added into a target multicast group is a first host machine, and determining that the host machine where the target virtual machine is located after the thermal migration is performed is a second host machine;
acquiring address information corresponding to the target virtual machine from a cloud platform; the address information is extracted from an igmp report message sent by the first host when the destination virtual machine joins in a destination multicast group for the first time, and is uploaded to the cloud platform;
and constructing an igmp report message based on the address information, and sending the constructed igmp report message to a switch connected with the second host machine, so that the switch creates a corresponding forwarding table entry at a port connected with the second host machine, wherein the forwarding table entry comprises a forwarding path for forwarding the multicast message of the target multicast group to the target virtual machine by the switch.
Preferably, after the switch creates the corresponding forwarding table entry at the port connected to the second host, the method further includes:
and the switch deletes the forwarding table item which is created at the port connected with the third host machine and corresponds to the target virtual machine, wherein the third host machine is the host machine where the target virtual machine is located before the hot migration.
Preferably, after the switch creates the corresponding forwarding table entry at the port connected to the second host, the method further includes:
the switch sets an invalid mark for a forwarding table item which is created at a port connected with a third host machine and corresponds to the target virtual machine, and the third host machine is the host machine where the target virtual machine is located before the thermal migration;
correspondingly, before the switch creates the corresponding forwarding table entry at the port connected to the second host, the method further includes:
and if a forwarding table entry which corresponds to the target virtual machine and is provided with an invalid mark exists at a port connected with the switch and the second host machine, deleting the invalid mark of the forwarding table entry provided with the invalid mark by the switch, otherwise, executing the step of creating a corresponding forwarding table entry at the port connected with the second host machine by the switch.
Preferably, the obtaining address information corresponding to the destination virtual machine from the cloud platform includes:
and sending an address acquisition request carrying identification information of the target virtual machine to a cloud platform, if receiving address information returned by the cloud platform, determining the received address information to be address information corresponding to the target virtual machine, and otherwise, determining that the target virtual machine is not added to any multicast group.
Preferably, the method further comprises the following steps:
and monitoring the working state of the target virtual machine in real time, and sending corresponding abnormal alarm information to a management terminal when the working state of the target virtual machine is abnormal.
An apparatus for establishing a multicast receiving channel, comprising:
a determination module to: if the target virtual machine is subjected to thermal migration, determining that a host machine where the target virtual machine is located when the target virtual machine is firstly added into a target multicast group is a first host machine, and determining that the host machine where the target virtual machine is located after the thermal migration is performed is a second host machine;
an acquisition module to: acquiring address information corresponding to the target virtual machine from a cloud platform; the address information is extracted from an igmp report message sent by the first host when the destination virtual machine joins in a destination multicast group for the first time, and is uploaded to the cloud platform;
a sending module configured to: and constructing an igmport message based on the address information, and sending the constructed igmport message to a switch connected with the second host machine, so that the switch creates a corresponding forwarding table item at a port connected with the second host machine, wherein the forwarding table item comprises a forwarding path for forwarding the multicast message of the target multicast group to the target virtual machine by the switch.
Preferably, the obtaining module includes:
an acquisition unit configured to: and sending an address acquisition request carrying identification information of the target virtual machine to a cloud platform, if receiving address information returned by the cloud platform, determining the received address information to be address information corresponding to the target virtual machine, and otherwise, determining that the target virtual machine is not added to any multicast group.
Preferably, the method further comprises the following steps:
a monitoring module to: and monitoring the working state of the target virtual machine in real time, and sending corresponding abnormal alarm information to a management terminal when the working state of the target virtual machine is abnormal.
An apparatus for establishing a multicast reception channel, comprising:
a memory for storing a computer program;
a processor, configured to implement the steps of the multicast receiving channel establishing method according to any one of the above embodiments when executing the computer program.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the multicast reception channel establishment method according to any of the above.
The invention provides a method, a device, equipment and a storage medium for establishing a multicast receiving channel, wherein the method comprises the following steps: if the target virtual machine is subjected to thermal migration, determining that a host machine where the target virtual machine is located when the target virtual machine is firstly added into a target multicast group is a first host machine, and determining that the host machine where the target virtual machine is located after the thermal migration is performed is a second host machine; acquiring address information corresponding to the target virtual machine from a cloud platform; the address information is extracted from an igmp report message sent by the first host when the destination virtual machine joins in a destination multicast group for the first time, and is uploaded to the cloud platform; and constructing an igmp report message based on the address information, and sending the constructed igmp report message to a switch connected with the second host machine, so that the switch creates a corresponding forwarding table entry at a port connected with the second host machine, wherein the forwarding table entry comprises a forwarding path for forwarding the multicast message of the target multicast group to the target virtual machine by the switch. In the technical scheme disclosed by the application, if the virtual machine is subjected to thermal migration, the address information contained in an igmp report sent when the virtual machine joins a certain multicast group for the first time is acquired from a cloud platform, the igmp report is automatically constructed based on the address information and then sent to a switch connected with a host where the virtual machine is currently located, so that the switch creates a corresponding forwarding table item at a port connected with the host, further, according to the forwarding path contained in the forwarding table entry, the forwarding of the multicast message of the multicast group to the virtual machine is realized, therefore, the multicast receiving channel of the virtual machine can be opened in time after the virtual machine is subjected to thermal migration each time after joining a certain multicast group, the virtual machine can receive the multicast message in time, namely the virtual machine can continuously receive the multicast message without interruption after any one-time thermal migration, and the occurrence of data loss is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for establishing a multicast receiving channel according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating an implementation of a method for establishing a multicast receiving channel according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for establishing a multicast receiving channel according to an embodiment 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, a method for establishing a multicast receiving channel according to an embodiment of the present invention is shown, where the method includes:
s11: and if the target virtual machine is subjected to the thermal migration, determining that the host machine where the target virtual machine is located when the target virtual machine is firstly added into the target multicast group is a first host machine, and determining that the host machine where the target virtual machine is located after the thermal migration is performed is a second host machine.
The destination virtual machine may be a virtual machine that undergoes any live migration, and the "first" and "second" of the first host and the second host have no practical meaning and only correspond to different periods of the virtual machine, respectively, so that any host having a virtual machine may be the first host or the second host. After the target virtual machine is subjected to the hot migration, the host machine where the target virtual machine is located when the target virtual machine is first added to the target multicast group can be directly determined to be a first host machine, and the host machine where the target virtual machine is located after the hot migration is a second host machine. The method for establishing the multicast receiving channel provided by the embodiment of the invention is executed after any one live migration, so that the multicast receiving channel can be automatically established after any one live migration after the target virtual machine is firstly added into the target multicast network.
In addition, an execution main body of the establishment method of the multicast receiving channel provided by the embodiment of the present invention may be a corresponding establishment device, and the establishment device may exist in the second host in the form of an agent, so that the agent in the second host implements a corresponding technical scheme; the following description will be made specifically by taking the execution subject of the establishment method as the second host.
S12: acquiring address information corresponding to a target virtual machine from a cloud platform; the address information is obtained by extracting from an igmp report message sent by a destination virtual machine when the destination virtual machine joins a destination multicast group for the first time and uploading to the cloud platform.
Wherein, the igmp report message has the same meaning as the corresponding concept in the prior art, and is not explained herein too much; the destination multicast group may be a multicast group to which any destination virtual machine needs to join. Specifically, the address information may include, but is not limited to, a logical address (IP address) of the destination virtual machine and a logical address (IP address) of the target multicast group; when a target virtual machine is added into a target multicast group for the first time, an igmp report message containing a logical address of the target virtual machine and a logical address of the target multicast group is sent to a switch (the switch in the present application is a physical switch) connected to a first host, the first host extracts information such as the logical address of the target virtual machine and the logical address of the target multicast group from the igmp report message by monitoring the joining of the target virtual machine into the target multicast group, and reports the information to a cloud platform, and then after the target virtual machine is migrated to a second host, the second host can acquire address information from the cloud platform. And after receiving the igmp report message sent by the destination virtual machine when the destination virtual machine joins the destination multicast group for the first time, the switch creates a corresponding forwarding table entry at the port connected to the first host, where the forwarding table entry includes a forwarding path for the switch to send the multicast message of the multicast group to the destination virtual machine, so that the switch realizes sending the multicast message according to the forwarding path. In addition, the switch connected to the first host and the switch connected to the second host may be the same switch or different switches, and in this case, the switch connected to the first host may be referred to as a first switch, and the switch connected to the second host may be referred to as a second switch, so as to distinguish the first switch from the second switch.
It should be noted that the agent included in each host may not only execute the method for establishing the multicast receiving channel provided in the embodiment of the present invention, but also execute the step of monitoring the igmp report message of the destination virtual machine joining the destination multicast group, and extracting information such as the logical address of the destination virtual machine and the logical address of the destination multicast group from the igmp report message and reporting the information to the cloud platform, so that the host is the first host when the host is used as the host where the virtual machine first joins the multicast group, and is the second host when the host is used as the host where the virtual machine after any live migration in each live migration, thereby implementing the corresponding function.
S13: and constructing an igmp report message based on the address information, and sending the constructed igmp report message to a switch connected with the second host machine, so that the switch creates a corresponding forwarding table item at a port connected with the second host machine, wherein the forwarding table item comprises a forwarding path for forwarding the multicast message of the target multicast group to the target virtual machine by the switch.
After the second host acquires the address information from the cloud platform, an igmp report can be actively constructed based on the address information, the igmp report constructed by the second host can be the same as the igmp report of the first host, and includes a logical address of the target virtual machine and a logical address of the target multicast group, and the constructed igmp report is sent to the switch connected to the second host, so that the switch can create a forwarding table item corresponding to the address information included in the igmp report at the port connected to the second host, the switch can forward the multicast message of the target multicast group to the target virtual machine according to the forwarding path included in the forwarding table item, the establishment of a multicast receiving channel after the hot migration of the target virtual machine is realized, and the uninterrupted reception of the multicast message is further ensured. In addition, in the constructed igmport message, the source address is the logical address of the destination virtual machine, and the destination address is the logical address of the destination multicast group, or the source IP is the IP address of the virtual machine, and the destination IP is the IP address of the multicast group.
In the technical scheme disclosed by the application, if the virtual machine is subjected to thermal migration, the address information contained in an igmp report sent when the virtual machine joins a certain multicast group for the first time is acquired from a cloud platform, the igmp report is automatically constructed based on the address information and then sent to a switch connected with a host where the virtual machine is currently located, so that the switch creates a corresponding forwarding table item at a port connected with the host, further, according to the forwarding path contained in the forwarding table entry, the forwarding of the multicast message of the multicast group to the virtual machine is realized, therefore, the multicast receiving channel of the virtual machine can be opened in time after the virtual machine is subjected to thermal migration each time after joining a certain multicast group, the virtual machine can receive the multicast message in time, namely the virtual machine can continuously receive the multicast message without interruption after any one-time thermal migration, and the occurrence of data loss is avoided.
In the method for establishing a multicast receiving channel provided in the embodiment of the present invention, after the switch creates the corresponding forwarding entry at the port connected to the second host, the method may further include:
and the switch deletes the forwarding table item which is created at the port connected with the third host machine and corresponds to the target virtual machine, wherein the third host machine is the host machine where the target virtual machine is located before the hot migration.
The third host machine is the host machine where the target virtual machine is located before the thermal migration; after the switch receives the igmp report message each time, a forwarding table entry is created at the corresponding port based on the address information in the igmp report message, so that after the switch is subjected to hot migration, the switch still forwards the multicast message according to each port with the forwarding table entry, but actually only needs to forward the multicast message according to the forwarding table entry in the port connected with the host where the virtual machine is located, and other ports except the port where the virtual machine is located and the switch are connected do not have corresponding relations with the virtual machine any more, so that the multicast message is still forwarded according to the other ports, which causes resource waste; in the application, after the target virtual machine is subjected to the live migration, the forwarding table entry corresponding to the target virtual machine at the port where the host machine and the switch are connected before the live migration is deleted, so that the purpose of saving the forwarding resource of the multicast message is achieved.
In the method for establishing a multicast receiving channel provided in the embodiment of the present invention, after the switch creates the corresponding forwarding entry at the port connected to the second host, the method may further include:
the switch sets an invalid mark for a forwarding table item which is created at a port connected with a third host machine and corresponds to the target virtual machine, and the third host machine is the host machine where the target virtual machine is located before the thermal migration;
correspondingly, before the switch creates the corresponding forwarding table entry at the port connected to the second host, the method may further include:
if a forwarding table entry which corresponds to the target virtual machine and is provided with an invalid mark exists at a port connected with the switch and the second host machine, deleting the invalid mark of the forwarding table entry provided with the invalid mark by the switch, otherwise, executing the step of creating the corresponding forwarding table entry at the port connected with the second host machine by the switch.
It should be noted that, compared with directly deleting the forwarding table entry corresponding to the host where the target virtual machine is located before live migration, in the embodiment, whether to forward the multicast packet according to the corresponding forwarding table entry may be determined by setting the invalid flag, that is, forwarding of the multicast packet is not realized according to the forwarding table entry provided with the invalid flag, but only forwarding of the multicast packet is realized according to the forwarding table entry not provided with the invalid flag, so that multiple times of deletion, reconstruction, and the like of the corresponding forwarding table entry are avoided, and thus, only the invalid flag needs to be set when a forwarding table entry is not used, and if forwarding of the multicast packet is required according to the forwarding table entry in a later stage, the invalid flag of the forwarding table entry is directly deleted, thereby further achieving the purpose of saving resources. In addition, the physical switch in this embodiment needs to start an IGMP Snooping function to implement the function that needs to be implemented.
The method for establishing a multicast receiving channel provided by the embodiment of the present invention obtains address information corresponding to a destination virtual machine from a cloud platform, and may include:
and sending an address acquisition request carrying identification information of the target virtual machine to the cloud platform, if receiving address information returned by the cloud platform, determining the received address information as the address information corresponding to the target virtual machine, and otherwise, determining that the target virtual machine is not added to any multicast group.
It should be noted that, after the destination virtual machine is migrated on the second host machine, the second host machine may actively go to the cloud platform to obtain corresponding address information, specifically, the identification information (the identification information may be an IP address or the like) of the destination virtual machine may be sent to the cloud platform, if the address information returned by the cloud platform is received, it is determined that the address information is successfully obtained, otherwise, it is indicated that the destination virtual machine is not added to any multicast group, and therefore, no corresponding address information exists, so that the host machine where the virtual machine is located after the virtual machine is migrated is able to timely know the address information, and further, the establishment of a multicast receiving channel is timely achieved. In addition, after the virtual machine realizes the hot migration, the cloud platform actively issues the address information to the second host machine; of course, other implementations configured according to actual needs are also within the scope of the present invention.
The method for establishing a multicast receiving channel provided by the embodiment of the invention can further comprise the following steps:
and monitoring the working state of the target virtual machine in real time, and sending corresponding abnormal alarm information to the management terminal when the working state of the target virtual machine is abnormal.
It should be noted that, in order to ensure that the destination virtual machine can work normally, the working state of the destination virtual machine can be monitored in real time, and then corresponding abnormal warning information is sent to the management terminal corresponding to the administrator when the working state is abnormal, so that the administrator can timely obtain the information about the abnormal working state of the destination virtual machine, and further realize corresponding operations such as repair.
The implementation schematic diagram of the present invention can be shown in fig. 2, where host 1 is a first host, host 2 is a second host, VM is a virtual machine, and the virtual machine has only one thermal migration; the IP address of the virtual machine is 192.168.1.2, the multicast source is a single device, the IP address is 192.168.1.3, the virtual machine and the multicast source both join 227.0.0.117 multicast groups, the virtual machine is the receiver, and the multicast source is the sender. Before the virtual machine is migrated with heat, the virtual machine sends an igmpport message when joining the multicast group, the physical switch establishes a forwarding table, that is, a forwarding table of 227.0.0.117 is established at the left port in the figure, and the virtual machine can normally receive the multicast message. After the virtual machine is migrated, the cloud platform issues information such as the IP address of the virtual machine and the IP address of the multicast group to the proxy of the host 2, the proxy of the host 2 actively constructs and sends an igmp report message, the source IP of the message is the IP address of the virtual machine, and the destination IP is 227.0.0.117. After the physical switch senses that the proxy of the host 2 sends the igmp report message, a forwarding table entry of 227.0.0.117 is newly created at the right port, so that the virtual machine can normally receive the multicast message of which the multicast group is 227.0.0.117.
An embodiment of the present invention further provides a device for establishing a multicast receiving channel, as shown in fig. 3, where the device may include:
a determining module 11, configured to: if the target virtual machine is subjected to thermal migration, determining that a host machine where the target virtual machine is located when the target virtual machine is added into the target multicast group for the first time is a first host machine, and determining that the host machine where the target virtual machine is located after the thermal migration is performed for the time is a second host machine;
an obtaining module 12, configured to: acquiring address information corresponding to a target virtual machine from a cloud platform; the address information is extracted from an igmp report message sent by a first host when a target virtual machine joins a target multicast group for the first time, and is uploaded to the cloud platform;
a sending module 13, configured to: and constructing an igmport message based on the address information, and sending the constructed igmport message to a switch connected with the second host machine, so that the switch creates a corresponding forwarding table item at a port connected with the second host machine, wherein the forwarding table item comprises a forwarding path for forwarding the multicast message of the target multicast group to the target virtual machine by the switch.
In an apparatus for establishing a multicast receiving channel provided in an embodiment of the present invention, an obtaining module may include:
an acquisition unit configured to: and sending an address acquisition request carrying identification information of the target virtual machine to the cloud platform, if receiving address information returned by the cloud platform, determining the received address information as the address information corresponding to the target virtual machine, and otherwise, determining that the target virtual machine is not added to any multicast group.
The apparatus for establishing a multicast receiving channel provided in the embodiment of the present invention may further include:
a monitoring module to: and monitoring the working state of the target virtual machine in real time, and sending corresponding abnormal alarm information to the management terminal when the working state of the target virtual machine is abnormal.
An embodiment of the present invention further provides a device for establishing a multicast receiving channel, where the device may include:
a memory for storing a computer program;
and a processor, configured to implement the steps of the multicast receiving channel establishing method as described above when executing the computer program.
An embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program may implement the steps of the method for establishing a multicast receiving channel as described above.
It should be noted that, for the description of the relevant parts in the apparatus, the device, and the storage medium for establishing a multicast receiving channel provided in the embodiment of the present invention, reference is made to the detailed description of the corresponding parts in the method for establishing a multicast receiving channel provided in the embodiment of the present invention, and details are not described herein again. In addition, parts of the above technical solutions provided in the embodiments of the present invention that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail, so as to avoid redundant description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method for establishing a multicast receiving channel is characterized by comprising the following steps:
if the target virtual machine is subjected to thermal migration, determining that a host machine where the target virtual machine is located when the target virtual machine is firstly added into a target multicast group is a first host machine, and determining that the host machine where the target virtual machine is located after the thermal migration is performed is a second host machine;
acquiring address information corresponding to the target virtual machine from a cloud platform; the address information is extracted from an igmp report message sent by the first host when the destination virtual machine joins the destination multicast group for the first time, and is uploaded to the cloud platform;
and constructing an igmp report message based on the address information, and sending the constructed igmp report message to a switch connected with the second host machine, so that the switch creates a corresponding forwarding table entry at a port connected with the second host machine, wherein the forwarding table entry comprises a forwarding path for forwarding the multicast message of the target multicast group to the target virtual machine by the switch.
2. The method of claim 1, wherein after the switch creates the corresponding forwarding entry at the port connected to the second host, further comprising:
and the switch deletes the forwarding table item which is created at the port connected with the third host machine and corresponds to the target virtual machine, wherein the third host machine is the host machine where the target virtual machine is located before the hot migration.
3. The method of claim 1, wherein after the switch creates the corresponding forwarding entry at the port connected to the second host, further comprising:
the switch sets an invalid mark for a forwarding table item which is created at a port connected with a third host machine and corresponds to the target virtual machine, and the third host machine is the host machine where the target virtual machine is located before the thermal migration;
correspondingly, before the switch creates the corresponding forwarding table entry at the port connected to the second host, the method further includes:
and if a forwarding table entry which corresponds to the target virtual machine and is provided with an invalid mark exists at a port connected with the switch and the second host machine, deleting the invalid mark of the forwarding table entry provided with the invalid mark by the switch, otherwise, executing the step of creating a corresponding forwarding table entry at the port connected with the second host machine by the switch.
4. The method according to claim 1, wherein obtaining address information corresponding to the destination virtual machine from a cloud platform comprises:
and sending an address acquisition request carrying identification information of the target virtual machine to a cloud platform, if receiving address information returned by the cloud platform, determining the received address information to be address information corresponding to the target virtual machine, and otherwise, determining that the target virtual machine is not added to any multicast group.
5. The method of claim 4, further comprising:
and monitoring the working state of the target virtual machine in real time, and sending corresponding abnormal alarm information to a management terminal when the working state of the target virtual machine is abnormal.
6. An apparatus for establishing a multicast receiving channel, comprising:
a determination module to: if the target virtual machine is subjected to thermal migration, determining that a host machine where the target virtual machine is located when the target virtual machine is firstly added into a target multicast group is a first host machine, and determining that the host machine where the target virtual machine is located after the thermal migration is performed is a second host machine;
an acquisition module to: acquiring address information corresponding to the target virtual machine from a cloud platform; the address information is extracted from an igmp report message sent by the first host when the destination virtual machine joins the destination multicast group for the first time, and is uploaded to the cloud platform;
a sending module configured to: and constructing an igmp report message based on the address information, and sending the constructed igmp report message to a switch connected with the second host machine, so that the switch creates a corresponding forwarding table item at a port connected with the second host machine, wherein the forwarding table item comprises a forwarding path for forwarding the multicast message of the target multicast group to the target virtual machine by the switch.
7. The apparatus of claim 6, wherein the obtaining module comprises:
an acquisition unit configured to: and sending an address acquisition request carrying identification information of the target virtual machine to a cloud platform, if receiving address information returned by the cloud platform, determining the received address information to be address information corresponding to the target virtual machine, and otherwise, determining that the target virtual machine is not added to any multicast group.
8. The apparatus of claim 7, further comprising:
a monitoring module to: and monitoring the working state of the target virtual machine in real time, and sending corresponding abnormal alarm information to a management terminal when the working state of the target virtual machine is abnormal.
9. An apparatus for establishing a multicast reception channel, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for establishing a multicast reception channel according to any one of claims 1 to 5 when executing said computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the multicast reception channel establishment method according to any one of claims 1 to 5.
CN201911330454.4A 2019-12-20 2019-12-20 Method, device, equipment and storage medium for establishing multicast receiving channel Pending CN111163007A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911330454.4A CN111163007A (en) 2019-12-20 2019-12-20 Method, device, equipment and storage medium for establishing multicast receiving channel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911330454.4A CN111163007A (en) 2019-12-20 2019-12-20 Method, device, equipment and storage medium for establishing multicast receiving channel

Publications (1)

Publication Number Publication Date
CN111163007A true CN111163007A (en) 2020-05-15

Family

ID=70557679

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911330454.4A Pending CN111163007A (en) 2019-12-20 2019-12-20 Method, device, equipment and storage medium for establishing multicast receiving channel

Country Status (1)

Country Link
CN (1) CN111163007A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115334037A (en) * 2022-08-10 2022-11-11 杭州云合智网技术有限公司 VXLAN multicast forwarding table item updating system method and system
WO2023092778A1 (en) * 2021-11-29 2023-06-01 中电信数智科技有限公司 Method for realizing uninterrupted multicast traffic during migration of virtual machine

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102394831A (en) * 2011-11-28 2012-03-28 杭州华三通信技术有限公司 Flow uninterruptible method and device based on virtual machine VM (virtual memory) migration
CN102984043A (en) * 2012-11-02 2013-03-20 中兴通讯股份有限公司 Forwarding method and forwarding device of multicast data stream
CN104010018A (en) * 2013-02-27 2014-08-27 国际商业机器公司 Method and device for synchronizing multicast groups

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102394831A (en) * 2011-11-28 2012-03-28 杭州华三通信技术有限公司 Flow uninterruptible method and device based on virtual machine VM (virtual memory) migration
CN102984043A (en) * 2012-11-02 2013-03-20 中兴通讯股份有限公司 Forwarding method and forwarding device of multicast data stream
CN104010018A (en) * 2013-02-27 2014-08-27 国际商业机器公司 Method and device for synchronizing multicast groups

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023092778A1 (en) * 2021-11-29 2023-06-01 中电信数智科技有限公司 Method for realizing uninterrupted multicast traffic during migration of virtual machine
CN115334037A (en) * 2022-08-10 2022-11-11 杭州云合智网技术有限公司 VXLAN multicast forwarding table item updating system method and system
CN115334037B (en) * 2022-08-10 2023-05-23 杭州云合智网技术有限公司 VXLAN multicast forwarding table item updating system method and system

Similar Documents

Publication Publication Date Title
CN103812823B (en) Configuration information is migrated during live migration of virtual machine method, equipment and system
CN113364610B (en) Network equipment management method, device and system
US20170264496A1 (en) Method and device for information processing
CN108881354B (en) Push information storage method and device, server and computer storage medium
CN109561033B (en) Method and device for multicast replication in Overlay network
US8817683B2 (en) Network relay apparatus and inter-network relay method
CN107342925B (en) Message transmission method and device
EP2913965A1 (en) Multicast message forwarding method and device
CN107645386B (en) Method and device for acquiring data resources
CN104518946A (en) Method and device for deleting instant messaging message
CN102647312B (en) A kind of detection method of whole net multicast topology and device
US20190014035A1 (en) Information transmission method and device
CN113315665B (en) Message sending method, device, equipment and medium of dual-network-card terminal equipment
CN111163007A (en) Method, device, equipment and storage medium for establishing multicast receiving channel
EP3229413A1 (en) Cross-domain cooperative method, cooperative device and control device for network as a service business
CN107204924B (en) Link discovery method and device
CN108055156B (en) AP management method and device
CN111224901B (en) Data association method, device and distributed system
US9372708B2 (en) Synchronizing multicast groups
CN108667735B (en) Method and device for forwarding multicast data
CN108259442B (en) Slow protocol message processing method and related device
CN108768849A (en) Message processing method and device
WO2020147683A1 (en) Method for creating connectivity detection session, and network device and system
CN105553857A (en) Method and system for IP (Internet Protocol) multicast routing forwarding
CN114090342A (en) Storage disaster tolerance link management method, message execution node and storage control cluster

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200515

RJ01 Rejection of invention patent application after publication