Distributed multicast forwarding method and system based on cloud platform

By deploying multicast monitoring plug-ins and multicast forwarding devices within the cloud platform, limiting the multicast message forwarding range and performing NAT conversion and tunnel forwarding, the problem of flooded multicast message traffic in large-scale cloud platforms is solved, and effective routing forwarding between multicast sources and external core switches and high platform reliability are achieved.

CN119561891APending Publication Date: 2025-03-04BEIJING INSPUR CLOUD COMPUTING CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202411622552.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-14
Publication Date
2025-03-04

AI Technical Summary

Technical Problem

In large-scale cloud platforms, the traditional centralized multicast gateway method causes multicast packets to flood traffic on all computing nodes within the VPC, causing traffic burden and potential cloud platform paralysis.

Method used

By deploying multicast monitoring plug-ins and multicast forwarding devices on computing nodes within the cloud platform, the forwarding range of multicast messages is restricted, non-multicast source computing nodes are prohibited from receiving multicast messages, and NAT conversion and VLAN or GRE tunnel forwarding to the core switch through the multicast forwarding device.

Benefits of technology

It realizes multicast routing forwarding between multicast sources within the cloud platform and external core switches, reduces the pressure on the platform by multicast flooding, supports the multicast forwarding function of large-scale cloud platform, and provides the reliability of multicast sources, avoiding the single-node failure affecting multicast forwarding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119561891A_ABST
    Figure CN119561891A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of cloud computing, in particular to a distributed multicast forwarding method and system based on a cloud platform, and the method comprises the following steps: a multicast monitoring plug-in is deployed on a computing node in the cloud platform, and the plug-in is deployed in a pod or application form and is responsible for monitoring a multicast source virtual machine and configuring a host machine flow table; the multicast monitoring plug-in limits multicast forwarding of the host machine according to multicast configuration issued by a user through a northbound interface, and a configured multicast message is forbidden to be forwarded to a computing node of a non-multicast source through a second layer; the distributed multicast forwarding method and system based on the cloud platform provided by the invention have the beneficial effects that the forwarding of a multicast route between a multicast source in the cloud platform and an external core switch (multicast router) can be realized without intruding into the VPC; through the multicast forwarding device, the core switch outside the platform does not need to sense the VPC network type and the network type change.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of cloud computing, and in particular to a method and system for distributed multicast forwarding based on a cloud platform. Background Art

[0002] Multicast technology, also known as multicast technology, is a communication method that allows one or more senders to send data packets to multiple receivers. Compared with unicast technology (a one-to-one communication method) and broadcast technology (a one-to-all communication method), multicast technology has higher transmission efficiency and resource utilization. Currently, in cloud computing platforms, such as openstack, Kubernetes is the technical foundation of the platform. Taking Openstack as an example, the openstack network component neutron does not support multicast. When the multicast source is deployed in VPC, VPC has multiple network forms. When the VPC network type is vxlan network or geneve, it is impossible to send multicast packets to the external core switch (multicast router) through the vpc virtual gateway, and then send them to the multicast receiver.

[0003] The traditional solution is to deploy one or a pair of multicast gateways (primary and standby multicast gateways) in the VPC to forward multicast messages in the VPC. This method can solve the problem of multicast forwarding in the VPC, and the primary and standby multicast gateways provide high availability. When the cloud platform is small, the forwarding of VPC multicast in the cloud platform can be solved through a centralized multicast solution. When the cloud platform rules are large, there are obvious defects. Multicast messages will flood traffic in the VPC, and the virtual machine resources of all computing nodes in the VPC will receive messages from the multicast source. Once the cloud platform is large, using a centralized multicast gateway, the multicast source forwards multicast messages to all computing nodes in the VPC, which causes a heavy traffic burden on the platform and may seriously cause the cloud platform to paralyze. Summary of the invention

[0004] The purpose of the present invention is to provide a method and system for distributed multicast forwarding based on a cloud platform to solve the problems raised in the above background technology.

[0005] To achieve the above object, the present invention provides the following technical solution: a method for distributed multicast forwarding based on a cloud platform, the method comprising the following steps:

[0006] Deploy a multicast monitoring plug-in on the computing nodes in the cloud platform. The plug-in is deployed in the form of a pod or application and is responsible for monitoring the multicast source VM and configuring the host flow table.

[0007] The multicast monitoring plug-in restricts the host multicast forwarding based on the multicast configuration sent by the user through the northbound interface, prohibiting the configured multicast packets from being forwarded through Layer 2 to computing nodes that are not multicast sources;

[0008] Create a virtual machine on the computing node as a multicast forwarding device. The device has two virtual service interfaces, one of which belongs to the VPC network and the other is deployed in the VLAN network and can directly communicate with the external core router.

[0009] The multicast forwarding device receives multicast messages sent by virtual machines in the VPC, performs NAT conversion on the multicast messages according to the locally configured rules, and forwards them to the core switch through the VLAN network or GRE tunnel;

[0010] The core switch receives and registers the multicast message according to the multicast configuration, and finally forwards the multicast message to the multicast receiver.

[0011] Preferably, the method further comprises the following steps:

[0012] The northbound interface provides a RESTFUL interface for creating, deleting, and viewing multicast forwarding devices and multicast monitoring plug-ins to the cloud computing management platform or third-party platform;

[0013] The platform management component is used to create multicast forwarding device resources and multicast monitoring plug-in resources, and record the relevant information created by the user into the configuration database.

[0014] Preferably, the processing flow of the multicast monitoring plug-in includes:

[0015] The user calls the northbound interface on the cloud platform through the interface to send multicast configuration. The configuration information includes forwarding mode, GRE remote IP, multicast group IP segment, and is sent to the configuration database.

[0016] The multicast monitoring plug-in monitors the configuration database and obtains the configured multicast group IP segment when data changes are found;

[0017] The multicast monitoring plug-in configures the host flow table rules to prohibit or allow the Layer 2 flooding of this multicast group IP to other computing nodes.

[0018] Preferably, the process of creating a multicast forwarding device includes:

[0019] The user uses the interface to call the northbound interface on the cloud platform to create a multicast forwarding device. The input parameters include forwarding mode, GRE remote IP, and multicast group IP segment.

[0020] The northbound interface records the configuration information into the configuration database;

[0021] The platform management component calls the virtual machine creation interface, uses the image of the multicast forwarding device to create a virtual machine as a multicast forwarding device under the VPC, and creates two virtual network cards, one of which is connected to the VPC and the other is connected to the VLAN network to communicate with the switch;

[0022] The multicast forwarding device obtains the configuration information and allows the messages sent by the activated virtual machines in the VPC to pass through this multicast device according to the virtual machine status and IP address;

[0023] The multicast forwarding device issues rules, including NAT conversion rules, VLAN network or GRE tunnel rules, and after monitoring the changes of the virtual machine in the VPC, clears the rules related to the virtual machine.

[0024] Preferably, the execution process of the data plane includes:

[0025] In the case of a single multicast source, the virtual machine in the VPC acts as a multicast source to send multicast messages to the virtual switch. The virtual switch forwards the messages to the multicast forwarding device. The multicast forwarding device performs NAT conversion on the messages and then forwards them to the core switch through the VLAN network.

[0026] After the computing node failure causes the multicast source virtual machine to migrate, the multicast source virtual machine on the new computing node sends the multicast message to the virtual switch, and the virtual switch forwards the message to the multicast forwarding device. After the multicast forwarding device performs NAT conversion on the message, it forwards the message to the core switch through the VLAN network;

[0027] When there are multiple multicast sources, each multicast source virtual machine sends a multicast message to the corresponding virtual switch, and the virtual switch forwards the message to the multicast forwarding device. The multicast forwarding device performs NAT conversion on the message of each multicast source and forwards the message to the core switch through the VLAN network.

[0028] A distributed multicast forwarding system based on a cloud platform is applied to a distributed multicast forwarding method based on a cloud platform, and the system includes:

[0029] The northbound interface module is used to provide a RESTFUL interface for creating, deleting, and viewing multicast forwarding devices and multicast monitoring plug-ins for the cloud computing management platform or a third-party platform;

[0030] Configuration database module, used to store multicast configuration information sent by users through the northbound interface module;

[0031] The platform management component module is used to create and manage multicast forwarding device resources and multicast monitoring plug-in resources according to the configuration information in the configuration database module;

[0032] The multicast forwarding device module is deployed on the computing node under the VPC of the cloud platform, and has two virtual service interfaces, one of which is connected to the VPC network and the other is connected to the VLAN network. It is used to receive multicast messages sent by the virtual machine in the VPC, perform NAT conversion on the multicast messages according to the locally configured rules, and forward them to the core switch through the VLAN network or GRE tunnel;

[0033] The multicast monitoring plug-in module is deployed on the computing nodes in the cloud platform to monitor the status of the multicast source virtual machine, configure the host flow table rules according to the multicast configuration information in the configuration database module, and limit the forwarding range of multicast messages in the Layer 2 network.

[0034] Preferably, the multicast monitoring plug-in module is also used for:

[0035] Monitor data changes in the configuration database module, and obtain the latest multicast group IP segment when multicast configuration information changes;

[0036] Configure host flow table rules based on the obtained multicast group IP segment to prohibit or allow flooding of specific multicast group IPs in the Layer 2 network.

[0037] Preferably, the multicast forwarding device module is also used for:

[0038] Get the configuration information in the configuration database module, including network type, multicast group address, and GRE tunnel remote IP;

[0039] Based on the VM status and IP address, allow the packets sent by the VMs activated in the VPC to pass through this multicast device.

[0040] Send forwarding rules such as NAT translation rules, VLAN network or GRE tunnel rules;

[0041] Monitor the state changes of the VMs in the VPC. When the state of the VM changes, clear the forwarding rules related to the VM.

[0042] Preferably, the system further includes a data plane execution module, which is used to implement the forwarding process of the multicast message, specifically including:

[0043] In the case of a single multicast source, the multicast message sent by the virtual machine in the VPC as the multicast source is received, and the message is forwarded to the multicast forwarding device module through the virtual switch. After the multicast forwarding device module performs NAT conversion on the message, it forwards the message to the core switch through the VLAN network;

[0044] After the multicast source virtual machine is migrated due to a computing node failure, the multicast message sent by the migrated multicast source virtual machine is received, and the message is forwarded to the multicast forwarding device module through the new virtual switch. After the multicast forwarding device module performs NAT conversion on the message, the message is forwarded to the core switch through the VLAN network;

[0045] When there are multiple multicast sources, the multicast messages sent by each multicast source virtual machine are received respectively, and the messages are forwarded to the multicast forwarding device module through the corresponding virtual switch. After the multicast forwarding device module performs NAT conversion on the messages, the messages are forwarded to the core switch through the VLAN network.

[0046] Preferably, the system further includes a control plane execution module for implementing the creation, configuration and management process of the multicast forwarding device and the multicast monitoring plug-in, specifically including:

[0047] Receive the multicast configuration information sent by the user through the northbound interface module and store the information in the configuration database module;

[0048] Calling the platform management component module to create multicast forwarding device resources and multicast monitoring plug-in resources according to the configuration information in the configuration database module;

[0049] Deploy a multicast monitoring plug-in module on the computing node to monitor the status of the multicast source virtual machine and configure the host flow table rules according to the multicast configuration information in the configuration database module;

[0050] Create and deploy a multicast forwarding device module on the computing node under the VPC, configure its virtual service interface, and obtain configuration information in the configuration database module to set forwarding rules.

[0051] Compared with the prior art, the present invention has the following beneficial effects:

[0052] The distributed multicast forwarding method and system based on the cloud platform proposed in the present invention can realize the forwarding of multicast routing between the multicast source in the cloud platform and the external core switch (multicast router) without intruding into the VPC; through the multicast forwarding device, the core switch outside the platform does not need to perceive the VPC network type and network type changes; it supports large-scale cloud platform multicast forwarding function, limits the second-layer flooding of the multicast source in the cloud platform VPC, and reduces the pressure of the small multicast flooding on the platform; the cloud platform does not need to be upgraded or modified, and only needs to install a new plug-in to realize the multicast routing function, as a multicast source to communicate with the external core switch (multicast router); it provides multicast source reliability, and a single node failure does not affect multicast forwarding. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 This is a control plane architecture diagram of the multicast forwarding device of the present invention;

[0054] Figure 2 This is a flow chart of multicast plug-in control execution of the present invention;

[0055] Figure 3 This is a flowchart of the execution of the control platform of the multicast forwarding device of the present invention;

[0056] Figure 4 This is a multicast forwarding flow chart when the single multicast source network type of the present invention is vxlan;

[0057] Figure 5 This is a flow chart of multicast forwarding after multicast source migration due to computing node failure in the present invention;

[0058] Figure 6 This is a multicast forwarding flow chart when there are multiple multicast sources in the present invention. DETAILED DESCRIPTION

[0059] In order to make the purpose and technical solution of the present invention clearly and completely described, and the advantages more clearly understood, the embodiments of the present invention are further described in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are part of the embodiments of the present invention, rather than all of the embodiments, and are only used to explain the embodiments of the present invention, and are not used to limit the embodiments of the present invention. All other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0060] For example, see Figures 1 to 6 The present invention provides a technical solution: a distributed multicast forwarding method based on a cloud platform, the method comprising the following steps:

[0061] The forwarding function of multicast routing is realized by creating a new virtual machine (container) device in the computing node where the multicast source is located under the VPC of the cloud platform. The core idea of ​​this method is: 1) Deploy a multicast monitoring plug-in on the computing node in the cloud platform, which has been deployed in the form of pod or application (pod is used as an example in the following), responsible for monitoring the multicast source virtual machine and configuring the host flow table; 2) The multicast monitoring plug-in deployed in step 1, according to the multicast configuration configured by the user, restricts the host multicast forwarding, prohibits the configured multicast message from being forwarded to the computing node that is not the multicast source through the second layer; 3) The computing node creates a virtual machine, as It is a device for multicast forwarding, which serves as a core functional component; two virtual service interfaces are created, of which virtual interface 1 belongs to this VPC network, and the other virtual interface is deployed in the VLAN network, which can directly communicate with the external core router; 4) The multicast forwarding device releases the multicast rules of the port security group of this device and can receive multicast messages sent by the virtual machine in this VPC; 5) After receiving the multicast message, the multicast forwarding device converts the source address of the multicast message into the IP address of virtual interface 2 according to the locally configured rules; 6) The multicast forwarding device adds VLAN to the multicast message tag or enter the GRE tunnel to forward to the core switch (multicast router); 7) After the core switch receives the multicast source registration message, because the address of the VLAN network used by the multicast forwarding device is in the same VLAN subnet as the core switch, it can be registered according to the multicast configuration and finally forward the multicast message to the multicast receiver; 8) The multicast forwarding device created in step 3 monitors the virtual machine status and IP address in the computing node VPC, configures the multicast forwarding device, and only forwards the multicast message sent by the active virtual machine to prevent abnormal messages from impacting the core router;

[0062] The basic implementation architecture of this technical solution is as follows Figure 1 As shown, it mainly includes the following components: 1) northbound interface; 2) configuration database; 3) platform management component 4) multicast forwarding device 5) multicast monitoring plug-in.

[0063] Northbound interface: Provides a series of RESTFUL interfaces for creating, deleting, and viewing multicast forwarding devices and multicast monitoring plug-ins to the cloud computing management platform or third-party platform.

[0064] Platform management component: used to create multicast forwarding device resources and multicast monitoring plug-in resources.

[0065] Configuration database: used to record relevant information created by users.

[0066] Multicast forwarding device: filters multicast source messages, forwards legal multicast messages, performs NAT conversion on multicast messages and forwards them according to the configured network type.

[0067] Multicast monitoring plug-in: responsible for monitoring the status of the host multicast source virtual machine and controlling the Layer 2 flooding of the host multicast traffic;

[0068] The following is combined with Figure 2-6 The present invention is further described.

[0069] Note: The default core switch is the multicast router;

[0070] a) Control plane execution process

[0071] A. Create a multicast monitoring plug-in. The specific process is as follows:

[0072] 1. After the cloud platform is created, deploy the multicast monitoring plug-in on all computing nodes in the form of pod or application (pod is used as an example in the following). Deploy deamonset type pod resources and configure affinity to monitor the multicast source virtual machine and configure the host flow table.

[0073] B. Multicast monitoring plug-in processing flow, such as Figure 2 As shown, the specific process is as follows:

[0074] 1. The user calls the northbound interface on the cloud platform through the interface to send multicast configuration. The user needs to enter the following parameters: forwarding mode (vlan or gre). If it is gre, the remote IP and multicast group IP segment need to be configured and sent to the configuration database.

[0075] 2. The multicast monitoring plug-in monitors the configuration database and obtains the configured multicast group IP segment when data changes are found;

[0076] 3. The multicast monitoring plug-in configures the host flow table rules to prohibit or allow the multicast group IP to be flooded to other computing nodes;

[0077] C. Create a multicast forwarding device, such as Figure 3 As shown, the specific process is as follows:

[0078] 1. The user calls the northbound interface on the cloud platform through the interface to create a multicast forwarding device (the same as 1 in step B). The user needs to enter the following parameters: forwarding mode (vlan or gre). If it is gre, the remote IP and multicast group IP segment need to be configured.

[0079] 2. The northbound interface records the configuration information into the configuration database;

[0080] 3. The platform management component calls the virtual machine creation interface and uses the image of the multicast forwarding device to create a virtual machine under VPC. The virtual machine acts as a multicast forwarding device and creates two virtual network cards, one of which is connected to the VPC and the other end is connected to the VLAN network to communicate with the switch, and the relevant security group rules are released;

[0081] 4. The multicast forwarding device obtains configuration information, including network type, multicast group address, and GRE tunnel remote IP;

[0082] 5. The multicast forwarding device allows the messages sent by the activated virtual machines in the VPC to pass through this multicast device according to the virtual machine status and IP address;

[0083] 6. The multicast forwarding device issues rules, including NAT conversion rules, VLAN network or GRE tunnel rules;

[0084] 7. After monitoring the changes of the virtual machine in the VPC, the multicast forwarding device clears the rules related to this virtual machine;

[0085] b) Data plane execution process

[0086] A. Multicast forwarding process when there is a single multicast source and the network type is vxlan

[0087] 1. As Figure 4 As shown, VM1 in VPC (VXLAN network type) acts as a multicast source to send multicast packets to the virtual switch;

[0088] 2. After receiving the multicast message, the cloud platform virtual machine switch will forward the multicast message within the Layer 2 domain of the computing node, forward the message to the multicast forwarding device, and at the same time issue flow table rules to limit the forwarding of this message to other computing nodes;

[0089] 3. After receiving the message, the multicast forwarding device virtual interface 1 detects the multicast source address and the multicast destination address. If they meet the rules, the message is NAT-converted and forwarded to the core switch through the VLAN network;

[0090] 4. The core switch forwards the message to the actual multicast receiver according to the multicast routing table of the device;

[0091] B. Multicast forwarding process after multicast source VM migration due to compute node failure

[0092] 1. As Figure 5 As shown in the figure, VM1 in VPC (VXLAN network type) acts as a multicast source to send multicast packets to the virtual switch. When the compute1 node fails, VM1 will switch to compute2 to run.

[0093] 2. Virtual machine 1 migrated from Compute2 acts as a multicast source and sends multicast packets to virtual switch 2;

[0094] 3. After receiving the multicast message, the cloud platform virtual machine switch 2 will forward the multicast message within the Layer 2 domain of the computing node and forward the message to the multicast forwarding device. At the same time, there is a flow table rule to limit the forwarding of this message to other computing nodes;

[0095] 4. After receiving the message, the multicast forwarding device virtual interface 1 detects the multicast source address and the multicast destination address. If they meet the rules, the message is NAT-converted and forwarded to the core switch through the VLAN network;

[0096] 5. The core switch forwards the message to the actual multicast receiver according to the multicast routing table of the device;

[0097] C. Multicast forwarding process when there are multiple multicast sources

[0098] 1. As Figure 6 As shown, VM1 in VPC (VXLAN network type) acts as a multicast source to send multicast packets to virtual switch 1;

[0099] 2. After receiving the multicast message, the cloud platform virtual machine switch 1 will forward the multicast message within the Layer 2 domain of the computing node and forward the message to the multicast forwarding device. At the same time, there is a flow table rule to limit the forwarding of this message to other computing nodes;

[0100] 3. After receiving the message, the multicast forwarding device virtual interface 1 detects the multicast source address and the multicast destination address. If they meet the rules, the message is NAT-converted and forwarded to the core switch through the VLAN network;

[0101] 4. Virtual machine 2 acts as a multicast source and sends multicast messages to virtual switch 2;

[0102] 5. After receiving the multicast message, the cloud platform virtual switch 2 will forward the multicast message within the Layer 2 domain of the computing node and forward the message to the multicast forwarding device. At the same time, there is a flow table rule to limit the forwarding of this message to other computing nodes;

[0103] 6. After receiving the message, the multicast forwarding device virtual interface 1 detects the multicast source address and the multicast destination address. If they meet the rules, the message is NAT converted and forwarded to the core switch through the VLAN network;

[0104] 7. The core switch forwards the message to the actual multicast receiver based on the device's multicast routing table.

[0105] Embodiment 2, based on embodiment 1, proposes a distributed multicast forwarding system based on a cloud platform, which is applied to a distributed multicast forwarding method based on a cloud platform. The system includes:

[0106] The northbound interface module is used to provide a RESTFUL interface for creating, deleting, and viewing multicast forwarding devices and multicast monitoring plug-ins for the cloud computing management platform or a third-party platform;

[0107] Configuration database module, used to store multicast configuration information sent by users through the northbound interface module;

[0108] The platform management component module is used to create and manage multicast forwarding device resources and multicast monitoring plug-in resources according to the configuration information in the configuration database module;

[0109] The multicast forwarding device module is deployed on the computing node under the VPC of the cloud platform. It has two virtual service interfaces, one of which is connected to the VPC network and the other is connected to the VLAN network. It is used to receive multicast messages sent by the virtual machine in the VPC, perform NAT conversion on the multicast messages according to the locally configured rules, and forward them to the core switch through the VLAN network or GRE tunnel; it is also used to: obtain configuration information in the configuration database module, including network type, multicast group address, and GRE tunnel remote IP; according to the virtual machine status and IP address, allow the messages sent by the virtual machine activated in the VPC to pass through this multicast device; issue forwarding rules such as NAT conversion rules, VLAN network or GRE tunnel rules; monitor the changes in the state of the virtual machine in the VPC, and when the state of the virtual machine changes, clear the forwarding rules related to this virtual machine.

[0110] The multicast monitoring plug-in module is deployed on the computing nodes in the cloud platform. It is used to monitor the status of the multicast source virtual machine, configure the host flow table rules according to the multicast configuration information in the configuration database module, and limit the forwarding range of multicast messages in the Layer 2 network; it is also used to: monitor the data changes in the configuration database module, and when the multicast configuration information is found to have changed, obtain the latest multicast group IP segment; according to the obtained multicast group IP segment, configure the host flow table rules to prohibit or allow specific multicast group IPs from flooding in the Layer 2 network.

[0111] The system also includes a data plane execution module for implementing the forwarding process of multicast messages, which specifically includes:

[0112] In the case of a single multicast source, the multicast message sent by the virtual machine in the VPC as the multicast source is received, and the message is forwarded to the multicast forwarding device module through the virtual switch. After the multicast forwarding device module performs NAT conversion on the message, it forwards the message to the core switch through the VLAN network;

[0113] After the multicast source virtual machine is migrated due to a computing node failure, the multicast message sent by the migrated multicast source virtual machine is received, and the message is forwarded to the multicast forwarding device module through the new virtual switch. After the multicast forwarding device module performs NAT conversion on the message, the message is forwarded to the core switch through the VLAN network;

[0114] When there are multiple multicast sources, the multicast messages sent by each multicast source virtual machine are received respectively, and the messages are forwarded to the multicast forwarding device module through the corresponding virtual switch. After the multicast forwarding device module performs NAT conversion on the messages, the messages are forwarded to the core switch through the VLAN network.

[0115] The system also includes a control plane execution module, which is used to implement the creation, configuration and management process of the multicast forwarding device and the multicast monitoring plug-in, including:

[0116] Receive the multicast configuration information sent by the user through the northbound interface module and store the information in the configuration database module;

[0117] Calling the platform management component module to create multicast forwarding device resources and multicast monitoring plug-in resources according to the configuration information in the configuration database module;

[0118] Deploy a multicast monitoring plug-in module on the computing node to monitor the status of the multicast source virtual machine and configure the host flow table rules according to the multicast configuration information in the configuration database module;

[0119] Create and deploy a multicast forwarding device module on the computing node under the VPC, configure its virtual service interface, and obtain configuration information in the configuration database module to set forwarding rules.

[0120] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A distributed multicast forwarding method based on a cloud platform, characterized in that: The method comprises the following steps: Deploy a multicast monitoring plug-in on the computing nodes in the cloud platform. The plug-in is deployed in the form of a pod or application and is responsible for monitoring the multicast source VM and configuring the host flow table. The multicast monitoring plug-in restricts the host multicast forwarding based on the multicast configuration sent by the user through the northbound interface, prohibiting the configured multicast packets from being forwarded through Layer 2 to computing nodes that are not multicast sources; Create a virtual machine on the computing node as a multicast forwarding device. The device has two virtual service interfaces, one of which belongs to the VPC network and the other is deployed in the VLAN network and can directly communicate with the external core router. The multicast forwarding device receives multicast messages sent by virtual machines in the VPC, performs NAT conversion on the multicast messages according to the locally configured rules, and forwards them to the core switch through the VLAN network or GRE tunnel; The core switch receives and registers the multicast message according to the multicast configuration, and finally forwards the multicast message to the multicast receiver.

2. The method for distributed multicast forwarding based on a cloud platform according to claim 1, characterized in that: The following steps are also included: The northbound interface provides a RESTFUL interface for creating, deleting, and viewing multicast forwarding devices and multicast monitoring plug-ins to the cloud computing management platform or third-party platform; The platform management component is used to create multicast forwarding device resources and multicast monitoring plug-in resources, and record the relevant information created by the user into the configuration database.

3. The method of distributed multicast forwarding based on a cloud platform according to claim 1, characterized in that: The processing flow of the multicast monitoring plug-in includes: The user calls the northbound interface on the cloud platform through the interface to send multicast configuration. The configuration information includes forwarding mode, GRE remote IP, multicast group IP segment, and is sent to the configuration database. The multicast monitoring plug-in monitors the configuration database and obtains the configured multicast group IP segment when data changes are found; The multicast monitoring plug-in configures the host flow table rules to prohibit or allow the Layer 2 flooding of this multicast group IP to other computing nodes.

4. The method for distributed multicast forwarding based on a cloud platform according to claim 1, characterized in that: The process of creating a multicast forwarding device includes: The user uses the interface to call the northbound interface on the cloud platform to create a multicast forwarding device. The input parameters include forwarding mode, GRE remote IP, and multicast group IP segment. The northbound interface records the configuration information into the configuration database; The platform management component calls the virtual machine creation interface, uses the image of the multicast forwarding device to create a virtual machine as a multicast forwarding device under the VPC, and creates two virtual network cards, one of which is connected to the VPC and the other is connected to the VLAN network to communicate with the switch; The multicast forwarding device obtains the configuration information and allows the messages sent by the activated virtual machines in the VPC to pass through this multicast device according to the virtual machine status and IP address; The multicast forwarding device issues rules, including NAT conversion rules, VLAN network or GRE tunnel rules, and after monitoring the changes of the virtual machine in the VPC, clears the rules related to the virtual machine.

5. The method of distributed multicast forwarding based on a cloud platform according to claim 1, characterized in that: The execution process of the data plane includes: In the case of a single multicast source, the virtual machine in the VPC acts as a multicast source to send multicast messages to the virtual switch. The virtual switch forwards the messages to the multicast forwarding device. The multicast forwarding device performs NAT conversion on the messages and then forwards them to the core switch through the VLAN network. After the computing node failure causes the multicast source virtual machine to migrate, the multicast source virtual machine on the new computing node sends the multicast message to the virtual switch, and the virtual switch forwards the message to the multicast forwarding device. After the multicast forwarding device performs NAT conversion on the message, it forwards the message to the core switch through the VLAN network; When there are multiple multicast sources, each multicast source virtual machine sends a multicast message to the corresponding virtual switch, and the virtual switch forwards the message to the multicast forwarding device. The multicast forwarding device performs NAT conversion on the message of each multicast source and forwards the message to the core switch through the VLAN network.

6. A distributed multicast forwarding system based on a cloud platform, applied to a distributed multicast forwarding method based on a cloud platform as claimed in any one of claims 1 to 5, characterized in that: The system comprises: The northbound interface module is used to provide a RESTFUL interface for creating, deleting, and viewing multicast forwarding devices and multicast monitoring plug-ins for the cloud computing management platform or a third-party platform; Configuration database module, used to store multicast configuration information sent by users through the northbound interface module; The platform management component module is used to create and manage multicast forwarding device resources and multicast monitoring plug-in resources according to the configuration information in the configuration database module; The multicast forwarding device module is deployed on the computing node under the VPC of the cloud platform, and has two virtual service interfaces, one of which is connected to the VPC network and the other is connected to the VLAN network. It is used to receive multicast messages sent by the virtual machine in the VPC, perform NAT conversion on the multicast messages according to the locally configured rules, and forward them to the core switch through the VLAN network or GRE tunnel; The multicast monitoring plug-in module is deployed on the computing nodes in the cloud platform to monitor the status of the multicast source virtual machine, configure the host flow table rules according to the multicast configuration information in the configuration database module, and limit the forwarding range of multicast messages in the Layer 2 network.

7. The distributed multicast forwarding system based on a cloud platform according to claim 6, characterized in that: The multicast monitoring plug-in module is also used to: Monitor data changes in the configuration database module, and obtain the latest multicast group IP segment when multicast configuration information changes; Configure host flow table rules based on the obtained multicast group IP segment to prohibit or allow flooding of specific multicast group IPs in the Layer 2 network.

8. The distributed multicast forwarding system based on a cloud platform according to claim 6, characterized in that: The multicast forwarding device module is also used for: Get the configuration information in the configuration database module, including network type, multicast group address, and GRE tunnel remote IP; Based on the VM status and IP address, allow the packets sent by the VMs activated in the VPC to pass through this multicast device. Send forwarding rules such as NAT translation rules, VLAN network or GRE tunnel rules; Monitor the state changes of the VMs in the VPC. When the state of the VM changes, clear the forwarding rules related to the VM.

9. The distributed multicast forwarding system based on a cloud platform according to claim 6, characterized in that: The system also includes a data plane execution module for implementing the forwarding process of multicast messages, which specifically includes: In the case of a single multicast source, the multicast message sent by the virtual machine in the VPC as the multicast source is received, and the message is forwarded to the multicast forwarding device module through the virtual switch. After the multicast forwarding device module performs NAT conversion on the message, it forwards the message to the core switch through the VLAN network; After the multicast source virtual machine is migrated due to a computing node failure, the multicast message sent by the migrated multicast source virtual machine is received, and the message is forwarded to the multicast forwarding device module through the new virtual switch. After the multicast forwarding device module performs NAT conversion on the message, the message is forwarded to the core switch through the VLAN network; When there are multiple multicast sources, the multicast messages sent by each multicast source virtual machine are received respectively, and the messages are forwarded to the multicast forwarding device module through the corresponding virtual switch. After the multicast forwarding device module performs NAT conversion on the messages, the messages are forwarded to the core switch through the VLAN network.

10. The distributed multicast forwarding system based on a cloud platform according to claim 6, characterized in that: The system also includes a control plane execution module, which is used to implement the creation, configuration and management process of the multicast forwarding device and the multicast monitoring plug-in, including: Receive the multicast configuration information sent by the user through the northbound interface module and store the information in the configuration database module; Calling the platform management component module to create multicast forwarding device resources and multicast monitoring plug-in resources according to the configuration information in the configuration database module; Deploy a multicast monitoring plug-in module on the computing node to monitor the status of the multicast source virtual machine and configure the host flow table rules according to the multicast configuration information in the configuration database module; Create and deploy a multicast forwarding device module on the computing node under the VPC, configure its virtual service interface, and obtain configuration information in the configuration database module to set forwarding rules.

Citation Information

Patent Citations

  • Multicast method in host overlay network based on SDN controller

    CN111585900A

  • In-cloud multicast control forwarding method, system and device and storage medium

    CN116545917A

  • Non-intrusive multicast forwarding method and system of cloud platform

    CN118590470A