Multicast method, apparatus, device, and computer storage medium

By converting virtual machine information into virtual port information of the SDN controller and building a virtual multicast network, the problem of low multicast efficiency in the cloud environment is solved, and a more efficient multicast implementation is achieved.

CN116366385BActive Publication Date: 2026-05-19CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD
Filing Date
2021-12-28
Publication Date
2026-05-19

AI Technical Summary

Technical Problem

The problem of low multicast efficiency in cloud environments.

Method used

By determining the virtual machine information of the target virtual machine, it is converted into virtual port information corresponding to the preset SDN controller, and the virtual port information is sent to the SDN controller to add it to the multicast group of the pre-built virtual multicast network. The multicast function of the SDN controller is used to build the virtual multicast network.

Benefits of technology

It improves the efficiency of multicast implementation on the cloud platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116366385B_ABST
    Figure CN116366385B_ABST
Patent Text Reader

Abstract

Embodiments of the present application relate to the technical field of communication, and disclose a multicast method, which comprises the following steps: determining virtual machine information of a target virtual machine; converting the virtual machine information into virtual port information corresponding to a preset SDN controller; and sending the virtual port information to the SDN controller, so that the SDN controller adds the target virtual machine into a multicast group of a virtual multicast network corresponding to a target cloud platform; the virtual multicast network is constructed in advance by the SDN controller according to network configuration information; the network configuration information is converted from logical network information of the target cloud platform; and the target cloud platform comprises the target virtual machine. In the above manner, the embodiments of the present application improve the processing efficiency of multicast services in a cloud environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of communication technology, specifically to a multicast method, apparatus, device, and computer storage medium. Background Technology

[0002] Multicast refers to a one-to-many communication mode between hosts, a technology that allows one or more multicast sources to send the same message to multiple receivers. A multicast source sends a message to a specific multicast address. Unlike unicast addresses, multicast addresses do not belong to a specific host, but rather to a group of hosts. A multicast address represents a group, and receivers that need to receive multicast messages join this group.

[0003] The inventors of this application discovered during the implementation of this invention that multicast in the cloud environment currently suffers from low efficiency. Summary of the Invention

[0004] In view of the above problems, embodiments of the present invention provide a multicast method, apparatus, device, and computer storage medium to solve the problem of low efficiency of multicast in cloud environments in the prior art.

[0005] According to one aspect of the present invention, a multicast method is provided, the method comprising:

[0006] Determine the virtual machine information of the target virtual machine;

[0007] The virtual machine information is converted into virtual port information corresponding to the preset SDN controller;

[0008] The virtual port information is sent to the SDN controller so that the SDN controller adds the target virtual machine to the multicast group of the virtual multicast network corresponding to the target cloud platform; the virtual multicast network is pre-built by the SDN controller according to network configuration information; the network configuration information is converted according to the logical network information of the target cloud platform; the target cloud platform includes the target virtual machine.

[0009] In an alternative approach, the method further includes:

[0010] Determine the virtual switch model of the SDN controller;

[0011] The logical network information is transformed according to the virtual switch model to obtain the basic configuration information of the virtual multicast network;

[0012] The network configuration information is obtained by supplementing the basic configuration information based on the virtual switch model;

[0013] The network configuration information is input into the virtual switch model so that the SDN controller can construct the virtual multicast network according to the network configuration information and the virtual switch model.

[0014] In one alternative approach, the logical network information includes multiple sub-logical network field information; the virtual switch model includes multiple model attributes; the method further includes:

[0015] Determine the field functions of the sub-logical network field information;

[0016] Determine the attribute functions and attribute formats of the model attributes;

[0017] The field functions and attribute functions are matched to obtain the sub-logic network field information matched by each of the model attributes that have a match;

[0018] The matched sub-logic network field information is converted according to the attribute format of each of the matching model attributes to obtain the basic configuration information.

[0019] In an alternative approach, the method further includes:

[0020] The model attributes that do not have a match are identified as attributes to be supplemented;

[0021] Determine the network function settings information of the virtual multicast network;

[0022] The attributes to be supplemented are supplemented according to the network function setting information to obtain the supplemented attributes;

[0023] The network configuration information is obtained by combining the supplemented attributes and the basic configuration information.

[0024] In one alternative approach, the virtual switch model includes multiple optional attribute classes; the method further includes:

[0025] Determine the target attribute class for each of the model attributes; the target attribute class is one of the optional attribute classes.

[0026] The supplemented attributes and the basic configuration information are encapsulated into the corresponding attribute class to obtain the network configuration information.

[0027] In an alternative approach, the method further includes:

[0028] Determine the virtual port model of the SDN controller;

[0029] The virtual machine information is converted according to the virtual port model to obtain basic port information;

[0030] The virtual port information is obtained by supplementing the basic port information based on the virtual port model.

[0031] In one alternative approach, the SDN controller includes OVN; the virtual switch model includes the OVN northbound database model.

[0032] According to another aspect of the present invention, a multicast device is provided, comprising:

[0033] The determination module is used to determine the virtual machine information of the target virtual machine;

[0034] The conversion module is used to convert the virtual machine information into virtual port information corresponding to a preset SDN controller;

[0035] A multicast module is used to send the virtual port information to the SDN controller, so that the SDN controller adds the target virtual machine to the multicast group of the virtual multicast network corresponding to the target cloud platform; the virtual multicast network is pre-constructed by the SDN controller according to network configuration information; the network configuration information is obtained by converting the logical network information of the target cloud platform; the target cloud platform includes the target virtual machine.

[0036] According to another aspect of the present invention, a multicast device is provided, comprising: a processor, a memory, a communication interface, and a communication bus, wherein the processor, the memory, and the communication interface communicate with each other through the communication bus;

[0037] The memory is used to store at least one executable instruction that causes the processor to perform operations as described in the multicast method.

[0038] According to another aspect of the present invention, a computer-readable storage medium is provided, the storage medium storing at least one executable instruction that causes the multicast device to perform the operation of the multicast method as described above.

[0039] This invention improves the efficiency of multicast implementation on cloud platforms by determining the virtual machine information of the target virtual machine; converting the virtual machine information into virtual port information corresponding to a preset SDN controller; and sending the virtual port information to the SDN controller, so that the SDN controller adds the target virtual machine to the multicast group of the virtual multicast network corresponding to the target cloud platform. The virtual multicast network is pre-constructed by the SDN controller based on network configuration information, which is obtained by converting the network configuration information based on the logical network information of the target cloud platform. The target cloud platform includes the target virtual machine. This invention improves the efficiency of multicast implementation on cloud platforms by converting virtual machine information and logical network information into preset virtual port information and network configuration information of the SDN controller, respectively.

[0040] The above description is merely an overview of the technical solutions of the embodiments of the present invention. In order to better understand the technical means of the embodiments of the present invention and to implement them in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the embodiments of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description

[0041] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0042] Figure 1 A flowchart illustrating the multicast method provided in an embodiment of the present invention is shown;

[0043] Figure 2 A flowchart illustrating a multicast method provided in another embodiment of the present invention is shown;

[0044] Figure 3 A schematic diagram of the multicast device provided in an embodiment of the present invention is shown;

[0045] Figure 4 A schematic diagram of the structure of the multicast device provided in an embodiment of the present invention is shown. Detailed Implementation

[0046] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0047] Before describing the multicast method embodiments of the present invention, the relevant terms will be explained:

[0048] Cloud computing: Cloud computing is a pay-as-you-go service model that provides a readily available, convenient, on-demand network access model. Compute shared pools can quickly provide users with network, server, storage, application software and other services, requiring very little management time.

[0049] SDN, or Software Defined Network, is a novel network architecture that separates the control plane from the data plane of network devices, thereby enabling flexible control of network traffic and making the network a flexibly deployable resource. The three most important concepts of SDN are: programmability (open APIs), separation of the control and data planes, and centralized control.

[0050] OVN: Open Virtual Network, is an SDN controller developed by the OpenvSwitch project team. It has good compatibility and performance with OpenvSwitch, adopts the OVN architecture, uses the web platform as the system entry point, and can provide centralized management and control functions for various cloud resources.

[0051] Figure 1 A flowchart of a multicast method provided in an embodiment of the present invention is shown, which is executed by a computer processing device. The computer processing device may include a mobile phone, a laptop computer, etc. Figure 1 As shown, the method includes the following steps:

[0052] Step 10: Determine the virtual machine information of the target virtual machine.

[0053] In one embodiment of the present invention, the target virtual machine may be a newly added virtual machine or a virtual machine to be added to the multicast network in the target cloud platform. The target cloud platform includes multiple virtual machines. The virtual machine information is used to locate the target virtual machine in the network and may include the identifier of the network where the target virtual machine is located, the virtual machine's MAC address, IP address, and virtual machine identifier, etc.

[0054] Step 20: Convert the virtual machine information into virtual port information corresponding to the preset SDN controller.

[0055] In one embodiment of the present invention, the SDN controller has multicast functionality. However, since the functional expression of the SDN controller needs to be implemented through a data model, such as a virtual machine port model for virtual machines in the SDN controller, which includes multiple preset fields, it is necessary to convert the virtual machine information according to the mapping relationship between the SDN controller's data model and the virtual machine information to obtain the virtual machine port information corresponding to the SDN controller, thereby constructing the virtual machine port model.

[0056] When converting virtual machine information, there are some mandatory fields required by the SDN controller's data model. These mandatory fields are determined by the configuration method of the corresponding functions of the SDN controller. For example, when configuring multicast functionality, OVN requires configuration of mandatory fields such as whether to enable multicast, whether to flood unregistered multicast traffic, and the network's MTU (Maximum Transmission Unit) value. However, virtual machine information is used to represent the basic information of virtual machines and may not contain all the mandatory fields related to the multicast function configuration in a specific SDN controller. Therefore, when converting virtual machine information according to the virtual port model of SDN control, it is also necessary to supplement the relevant fields included in the virtual port model.

[0057] Therefore, in another embodiment of the present invention, step 20 further includes:

[0058] Step 201: Determine the virtual port model of the SDN controller.

[0059] In one embodiment of the present invention, the SDN controller may be OVN, and the virtual port model may be the northbound database model of OVN.

[0060] The virtual machine port model includes the following network-related fields: network_id, mac_address, ip_address, and neutron:device_id, representing the network identifier, MAC address, IP address, and virtual machine identifier, respectively. Optionally, the virtual machine port model may also include the following port-related fields: id, revision_number, mtu, provider:network_type, and provider:segmentation_id, representing the port identifier, port update count, virtual machine network type, and virtual machine network tag, respectively.

[0061] Step 202: Convert the virtual machine information according to the virtual port model to obtain basic port information.

[0062] In one embodiment of the present invention, the basic port information is obtained by filling in the corresponding field values ​​in the virtual port model according to the mapping relationship between the virtual machine port model and the virtual machine information shown in Table 1.

[0063] Virtual machine information Virtual port model fields The ID of the network where the virtual machine is located network_id Virtual machine MAC address mac_address Virtual machine IP address ip_address Virtual machine ID neutron:device_id

[0064] Table 1

[0065] Step 203: Supplement the basic port information according to the virtual port model to obtain the virtual port information.

[0066] In another embodiment of the present invention, the method for supplementing the basic port information may be to match each field in the basic port information with the model fields in the virtual port model, identify the model fields that do not match as fields to be supplemented, and then supplement the fields to obtain the supplemented fields. Finally, the supplemented fields and the basic configuration information are combined according to the data encapsulation format of the virtual port model to obtain the virtual port information.

[0067] When supplementing fields, you can refer to the supplementary values ​​shown in Table 2.

[0068] Virtual port field to be added Supplemental value id Randomly generated revision_number 1 mtu MTU of the network where the virtual machine resides provider:network_type Network type of the virtual machine's network provider:segmentation_id Network segment identifier of the virtual machine

[0069] In another embodiment of the present invention, Table 2 shows that the combined virtual port information can be as follows:

[0070]

[0071]

[0072] Step 30: Send the virtual port information to the SDN controller so that the SDN controller adds the target virtual machine to the multicast group of the virtual multicast network corresponding to the target cloud platform; the virtual multicast network is pre-built by the SDN controller according to network configuration information; the network configuration information is converted according to the logical network information of the target cloud platform; the target cloud platform includes the target virtual machine.

[0073] In one embodiment of the present invention, before receiving a multicast join request from the target virtual machine, a virtual multicast network corresponding to the target cloud platform where the target virtual machine resides is constructed through SDN control. The construction process is as follows: First, the logical network information corresponding to the target cloud platform is determined. The logical network information is used to characterize the virtual network architecture of the target cloud platform at the logical level, and may include a network model and a subnet model. The network model includes the network name, and the subnet model includes the subnet name, the name of the network it belongs to, the network range (such as CIDR), the network version, and the gateway IP address, etc.

[0074] The SDN controller then transforms the logical network information to obtain network configuration information. This network configuration information is a specific format of information required by the SDN controller to build virtual machine switches. This specific format of information is represented by the data model of the virtual switch model.

[0075] Specifically, when the SDN controller is OVN, the virtual switch model includes the OVN northbound database model.

[0076] Finally, the network configuration information is input into the SDN controller so that the SDN controller can configure itself according to the network configuration information to realize the multicast function of the virtual multicast network.

[0077] Therefore, in one embodiment of the present invention, the method further includes the following step before step 30:

[0078] Step 301: Determine the virtual switch model of the SDN controller.

[0079] In one embodiment of the present invention, the virtual switch model is a data model used in SDN control to receive parameters and implement virtual switch functions. For example, in OVN, its virtual switch model is a northbound database model. The virtual switch model includes multiple model attributes.

[0080] Step 302: Convert the logical network information according to the virtual switch model to obtain the basic configuration information of the virtual multicast network.

[0081] In one embodiment of the present invention, logical network information can be matched with a virtual switch model based on the function of the parameters, and the matched logical network information can be converted and populated into the virtual switch model. Optionally, if there are required fields in the virtual switch model that are not matched from the logical network information, the blank required fields can be filled in according to the network function settings of the SDN controller, thereby obtaining complete and usable filled basic configuration information of the SDN controller.

[0082] Therefore, in one embodiment of the present invention, the logical network information includes multiple sub-logical network field information; the virtual switch model includes multiple model attributes. Step 302 further includes: Step 3021: Determine the field function of the sub-logical network field information.

[0083] In one embodiment of the present invention, attribute functionality refers to the dimension that the attribute is used to characterize and define.

[0084] Step 3022: Determine the attribute function and attribute format of the model attribute.

[0085] In one embodiment of the present invention, the attribute function refers to the dimension that the attribute is used to characterize and define, and the attribute format includes the data type of the attribute, the class in which the data belongs, etc.

[0086] Step 3023: Match the field functions and the attribute functions to obtain the sub-logic network field information matched by each of the model attributes that have a match.

[0087] In one embodiment of the present invention, the matching relationship between the matching model attributes and the sub-logic network fields can be referred to Table 3.

[0088]

[0089]

[0090] Table 3

[0091] Step 3024: Convert the matched sub-logic network field information according to the attribute format of each of the matching model attributes to obtain the basic configuration information.

[0092] Step 303: Supplement the basic configuration information according to the virtual switch model to obtain the network configuration information.

[0093] In one embodiment of the present invention, when there are required fields in the virtual switch model that cannot be matched from the logical network information, the blank required fields can be filled in according to the network function settings of the SDN controller, thereby obtaining the complete and usable basic configuration information of the SDN controller.

[0094] Therefore, in another embodiment of the present invention, step 303 further includes:

[0095] Step 3031: Identify the model attributes that do not have a match as attributes to be supplemented.

[0096] Step 3032: Determine the network function settings information of the virtual multicast network.

[0097] In one embodiment of the present invention, network function setting information is used to configure network-related functions of the SDN controller. The related functions include multicast function. The network function setting information includes setting information for multicast function attributes such as whether multicast is enabled, whether unregistered multicast traffic is flooded, the MTU (Maximum Transmission Unit) value of the network, the number of network updates, the number of subnet updates, network identification information, and subnet identification information.

[0098] Step 3033: Supplement the attribute to be supplemented according to the network function setting information to obtain the supplemented attribute.

[0099] In one embodiment of the present invention, the supplementary values ​​shown in Table 4 can be determined based on the network function configuration information, and the model attributes in the virtual switch model can be supplemented and filled in according to the supplementary values ​​to obtain the supplemented attributes.

[0100]

[0101]

[0102] Table 4

[0103] Step 3034: Combine the supplemented attributes and the basic configuration information to obtain the network configuration information.

[0104] In one embodiment of the present invention, considering that the SDN model has certain rule requirements for the encapsulation of attributes, it is necessary to combine and encapsulate the supplemented attributes and the basic configuration information according to the encapsulation relationship of the model attributes in the SDN controller, so as to obtain the network configuration information required by the virtual switch model in the SDN controller to realize a virtual network with multicast function.

[0105] Therefore, in another embodiment of the present invention, the virtual switch model includes multiple optional attribute classes; step 3034 further includes:

[0106] Step 341: Determine the target attribute class for each of the model attributes; the target attribute class is one of the optional attribute classes.

[0107] In one embodiment of the present invention, the optional attribute classes in OVN can correspond to the network model and the subnet model, respectively. The optional attribute class corresponding to the network model may include external identifier classes (external_ids) and other configuration item classes (other_config). The optional attribute class corresponding to the subnet model may include subnet attribute classes.

[0108] Step 342: Encapsulate the supplemented attributes and the basic configuration information into the corresponding attribute class to obtain the network configuration information.

[0109] In one embodiment of the present invention, the network configuration information obtained by populating the corresponding attribute class with attributes according to the data format of the virtual switch model in the SDN controller can be as follows:

[0110] Network Model:

[0111]

[0112]

[0113] Subnet model:

[0114]

[0115] Step 304: Input the network configuration information into the virtual switch model so that the SDN controller can construct the virtual multicast network according to the network configuration information and the virtual switch model.

[0116] In one embodiment of the present invention, the SDN controller may be OVN, and the virtual switch model is the northbound database model of OVN. (See reference...) Figure 2 The process by which a user joins the corresponding virtual multicast network of the cloud platform through a client is as follows:

[0117] first, Figure 2 The logical network module is responsible for receiving virtual networks input from the cloud platform. The virtual network is used to describe the network architecture. It has two models: a network model and a subnet model. The network model includes the network name, and the subnet model includes the subnet name, the name of the network it belongs to, the network range (such as CIDR), the network version, the gateway IP address, etc. Based on this information, a logical-level virtual network can be constructed.

[0118] The network conversion module is mainly responsible for two aspects. The first part is to interface with the logical network module and convert logical multicast network information into network configuration items that OVN can recognize. The second part is to interface with OVN and send the network configuration items to OVN through the OVN interface to complete the construction of the underlying virtual multicast network.

[0119] The multicast client management module is mainly responsible for managing the network interface of virtual machines. Its model includes the virtual machine name, the network where the virtual machine is located, the virtual machine IP address and MAC address, etc. It converts the virtual machine model into an OVN port model and sends the port model configuration to OVN through the OVN interface to enable the virtual machine to join the multicast network.

[0120] like Figure 2 As shown, the user plans the network through the logical network module, specifying the network name as net-1, the subnet name as subnet-1, the subnet CIDR as 192.168.1.0 / 24 (representing the range of the network), the subnet network version as IPv4, and the gateway IP address as 192.168.1.1.

[0121] After receiving the above information, the logical network module sends the logical network information to the network conversion module.

[0122] The network conversion module converts the logical network model into a virtual switch model in OVN. Specifically, the network name net-1 corresponds to the neutron:network_name attribute in the virtual switch model, the subnet name subnet-1 corresponds to the name attribute in the virtual switch model, the subnet CIDR 192.168.1.0 / 24 corresponds to the cider attribute in the virtual switch model, and the gateway IP address 192.168.1.1 corresponds to the gateway_ip in the virtual switch model.

[0123] In addition, there are other fields in the virtual switch model that cannot be passed in by the logical network module, so they need to be supplemented. Specifically, the `mcast_snoop` ​​attribute is added and set to `true` to indicate that multicast is enabled on the virtual switch; `mcast_flood_unregistered` is added and set to `false` to indicate that unregistered multicast traffic is not flooded; `neutron:mtu` is added and set to `1450` to represent the network's MTU value, which is a common MTU value for VXLAN networks; `neutron:revision_number` is added and set to `1` to represent the number of network updates; a random ID value `2674af22-0b1d-42dc-b4b9-d37f00329215` is generated to supplement the `network_id` value, which is used to uniquely identify the network; `revision_number` is added and set to `1` to represent the number of subnet updates; a random ID value `a595ba1f-05bf-47d7-8e34-1aed22592c73` is generated to supplement the `id` value, which is used to uniquely identify the subnet.

[0124] The attributes of the various virtual switch models described above are combined according to certain rules. The external_ids field includes three attributes: neutron:network_name:net-1, neutron:mtu:1450, and neutron:revision_number:1, which are used to describe the basic information of the logical switch; the other_config field includes two attributes: mcast_snoop:true and mcast_flood_unregistered:false, which are used to describe the configuration of the logical switch for multicast functions; external_ids and other_config together constitute the network part of the virtual switch.

[0125] Meanwhile, attributes such as id:a595ba1f-05bf-47d7-8e34-1aed22592c73, name:subnet-1, network_id:2674af22-0b1d-42dc-b4b9-d37f00329215, ip_version:4, gateway_ip:192.168.1.1, cir:192.168.1.0 / 32, and revision_number:1 are aggregated together to form the subnet part of the virtual switch.

[0126] Finally, call the OVN northbound database API interface and pass the parameters combined according to the rules to OVN.

[0127] On the other hand, the user creates a virtual machine and sends the network ID of the virtual machine (2674af22-0b1d-42dc-b4b9-d37f00329215), the virtual machine's MAC address (fa:16:3e:eb:e4:2d), IP address (192.168.2.3), and virtual machine ID (11bd8534-5880-468f-ac88-33fbbd6cd20b) to the multicast client management module.

[0128] The multicast client management module converts virtual machine information into a virtual port model. Specifically, the network ID 2674af22-0b1d-42dc-b4b9-d37f00329215 of the virtual machine corresponds to the network_id attribute of the virtual port model, the virtual machine MAC address fa:16:3e:eb:e4:2d corresponds to the mac_address attribute of the virtual port model, the IP address 192.168.2.3 corresponds to the ip_address attribute of the virtual port model, and the virtual machine ID 11bd8534-5880-468f-ac88-33fbbd6cd20b corresponds to the neutron:device_id attribute of the virtual port model.

[0129] In addition, there are other fields in the virtual port model that cannot be passed in from the cloud platform, so they need to be supplemented. A random ID value, ef5734c9-21c3-4f6e-971e-5fc538489fc3, is generated to supplement the ID value, which uniquely identifies the port; `revision_number` is added, with a value of 1, which indicates the number of port updates; `mtu` is added, with a value of 1450; and `provider:network_type` is added, with a value of vxlan, indicating that the virtual port belongs to the vxlan network type.

[0130] The attributes of the various virtual port models mentioned above are combined according to certain rules. The `fixed_ips` field contains `subnet_id:a595ba1f-05bf-47d7-8e34-1aed22592c73` and `ip_address:192.168.1.3`.

[0131] The network field contains id:2674af22-0b1d-42dc-b4b9-d37f00329215, name:net-1, mtu:1450, subnets:a595ba1f-05bf-4 7d7-8e34-1aed22592c73, revision_number, provider:network_type:vxlan, provider:segmentation_id:13.

[0132] Among them, id:ef5734c9-21c3-4f6e-971e-5fc538489fc3, network_id:2674af22-0b1d-42dc-b4b9-d37f00329215, mac_address:fa:16:3e:eb:e4:2d, device_id:11bd8534-5880-468f-ac88-33fbbd6cd20b, the above fixed_ips, revision_number:1, and the above network field together constitute the key attributes of the virtual port model.

[0133] Finally, the OVN northbound database API interface is invoked, with the parameters from step 4 passed to OVN. At this point, virtual machines within the virtual network can communicate via multicast messages.

[0134] The multicast method provided in this embodiment of the invention determines the virtual machine information of the target virtual machine; converts the virtual machine information into virtual port information corresponding to a preset SDN controller; and sends the virtual port information to the SDN controller, so that the SDN controller adds the target virtual machine to the multicast group of the virtual multicast network corresponding to the target cloud platform. The virtual multicast network is pre-constructed by the SDN controller based on network configuration information; the network configuration information is obtained by converting the logical network information of the target cloud platform; and the target cloud platform includes the target virtual machine. The multicast method provided in this embodiment of the invention converts the virtual machine information and logical network information into preset virtual port information and network configuration information of the SDN controller, respectively, thereby utilizing the multicast function of the SDN controller to construct a virtual multicast network and enabling the target virtual machine corresponding to the virtual machine information to join the virtual multicast network, thus improving the efficiency of multicast implementation under the cloud platform.

[0135] Figure 3 A schematic diagram of the multicast device provided in an embodiment of the present invention is shown. Figure 3 As shown, the device 40 includes: a determination module 401, a conversion module 402, and a multicast module 403.

[0136] In one alternative approach, module 401 is used to determine the virtual machine information of the target virtual machine;

[0137] The conversion module 402 is used to convert the virtual machine information into virtual port information corresponding to a preset SDN controller;

[0138] Multicast module 403 is used to send the virtual port information to the SDN controller, so that the SDN controller adds the target virtual machine to the multicast group of the virtual multicast network corresponding to the target cloud platform; the virtual multicast network is pre-constructed by the SDN controller according to network configuration information; the network configuration information is obtained by converting the logical network information of the target cloud platform; the target cloud platform includes the target virtual machine.

[0139] The operations performed by the multicast device in this embodiment of the invention are largely the same as those in the aforementioned multicast method embodiments, and will not be described again.

[0140] The multicast device provided in this embodiment of the invention determines the virtual machine information of the target virtual machine; converts the virtual machine information into virtual port information corresponding to a preset SDN controller; and sends the virtual port information to the SDN controller, so that the SDN controller adds the target virtual machine to the multicast group of the virtual multicast network corresponding to the target cloud platform. The virtual multicast network is pre-constructed by the SDN controller based on network configuration information; the network configuration information is obtained by converting the logical network information of the target cloud platform; and the target cloud platform includes the target virtual machine. The multicast device provided in this embodiment of the invention converts the virtual machine information and logical network information into virtual port information and network configuration information of the preset SDN controller, respectively, thereby utilizing the multicast function of the SDN controller to construct a virtual multicast network and enabling the target virtual machine corresponding to the virtual machine information to join the virtual multicast network, thus improving the efficiency of multicast implementation under the cloud platform.

[0141] Figure 4 The diagram shows a structural schematic of a multicast device provided in an embodiment of the present invention. The specific embodiments of the present invention do not limit the specific implementation of the multicast device.

[0142] like Figure 4As shown, the multicast device may include: a processor 502, a communications interface 504, a memory 506, and a communications bus 508.

[0143] The processor 502, communication interface 504, and memory 506 communicate with each other via communication bus 508. Communication interface 504 is used to communicate with other network elements, such as clients or other servers. Processor 502 executes program 510, specifically performing the relevant steps described above in the multicast method embodiment.

[0144] Specifically, program 510 may include program code, which includes computer-executable instructions.

[0145] Processor 502 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement embodiments of the present invention. The multicast device may include one or more processors of the same type, such as one or more CPUs; or it may include processors of different types, such as one or more CPUs and one or more ASICs.

[0146] Memory 506 is used to store program 510. Memory 506 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.

[0147] Specifically, program 510 can be called by processor 502 to cause the multicast device to perform the following operations:

[0148] Determine the virtual machine information of the target virtual machine;

[0149] The virtual machine information is converted into virtual port information corresponding to the preset SDN controller;

[0150] The virtual port information is sent to the SDN controller so that the SDN controller adds the target virtual machine to the multicast group of the virtual multicast network corresponding to the target cloud platform; the virtual multicast network is pre-built by the SDN controller according to network configuration information; the network configuration information is converted according to the logical network information of the target cloud platform; the target cloud platform includes the target virtual machine.

[0151] The operations performed by the multicast device in this embodiment of the invention are largely the same as those in the aforementioned multicast method embodiments, and will not be described again.

[0152] The multicast device provided in this embodiment of the invention determines the virtual machine information of the target virtual machine; converts the virtual machine information into virtual port information corresponding to a preset SDN controller; and sends the virtual port information to the SDN controller, so that the SDN controller adds the target virtual machine to the multicast group of the virtual multicast network corresponding to the target cloud platform. The virtual multicast network is pre-constructed by the SDN controller based on network configuration information; the network configuration information is obtained by converting the logical network information of the target cloud platform; and the target cloud platform includes the target virtual machine. The multicast device provided in this embodiment of the invention converts the virtual machine information and logical network information into virtual port information and network configuration information of the preset SDN controller, respectively, thereby utilizing the multicast function of the SDN controller to construct a virtual multicast network and enabling the target virtual machine corresponding to the virtual machine information to join the virtual multicast network, thus improving the efficiency of multicast implementation under the cloud platform.

[0153] This invention provides a computer-readable storage medium storing at least one executable instruction that, when executed on a multicast device, causes the multicast device to perform the multicast method in any of the above method embodiments.

[0154] Specifically, the executable instructions can be used to cause the multicast device to perform the following operations:

[0155] Determine the virtual machine information of the target virtual machine;

[0156] The virtual machine information is converted into virtual port information corresponding to the preset SDN controller;

[0157] The virtual port information is sent to the SDN controller so that the SDN controller adds the target virtual machine to the multicast group of the virtual multicast network corresponding to the target cloud platform; the virtual multicast network is pre-built by the SDN controller according to network configuration information; the network configuration information is converted according to the logical network information of the target cloud platform; the target cloud platform includes the target virtual machine.

[0158] The operations performed by the computer storage medium in this embodiment of the invention are largely the same as those in the aforementioned multicast method embodiments, and will not be described again.

[0159] The computer storage medium provided in this embodiment of the invention determines the virtual machine information of the target virtual machine; converts the virtual machine information into virtual port information corresponding to a preset SDN controller; and sends the virtual port information to the SDN controller, so that the SDN controller adds the target virtual machine to the multicast group of the virtual multicast network corresponding to the target cloud platform. The virtual multicast network is pre-constructed by the SDN controller based on network configuration information; the network configuration information is obtained by converting the logical network information of the target cloud platform; and the target cloud platform includes the target virtual machine. The computer storage medium provided in this embodiment of the invention converts virtual machine information and logical network information into virtual port information and network configuration information of a preset SDN controller, respectively, thereby utilizing the multicast function of the SDN controller to construct a virtual multicast network and enabling the target virtual machine corresponding to the virtual machine information to join the virtual multicast network, thus improving the efficiency of multicast implementation under the cloud platform.

[0160] This invention provides a multicast device for executing the multicast method described above.

[0161] This invention provides a computer program that can be called by a processor to cause a multicast device to execute the multicast method in any of the above method embodiments.

[0162] This invention provides a computer program product, which includes a computer program stored on a computer-readable storage medium. The computer program includes program instructions that, when executed on a computer, cause the computer to perform the multicast method in any of the above method embodiments.

[0163] The algorithms or displays provided herein are not inherently related to any particular computer, virtual system, or other device. Various general-purpose systems can also be used in conjunction with the teachings herein. The required structure for constructing such systems is apparent from the above description. Furthermore, the embodiments of the present invention are not directed to any particular programming language. It should be understood that the content of the invention described herein can be implemented using various programming languages, and the above description of specific languages ​​is for the purpose of disclosing the best mode of implementation of the invention.

[0164] Numerous specific details are set forth in the specification provided herein. However, it will be understood that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.

[0165] Similarly, it should be understood that, in order to streamline the invention and aid in understanding one or more of the various aspects of the invention, features of the embodiments of the invention are sometimes grouped together in a single embodiment, figure, or description thereof in the above description of exemplary embodiments of the invention. However, this disclosure should not be construed as reflecting an intention that the claimed invention requires more features than are expressly recited in each claim.

[0166] Those skilled in the art will understand that modules in the device of the embodiments can be adaptively changed and placed in one or more devices different from that embodiment. Modules, units, or components in the embodiments can be combined into a single module, unit, or component, and can be divided into multiple sub-modules, sub-units, or sub-components. Except where at least some of such features and / or processes or units are mutually exclusive, any combination can be used to combine all features disclosed in this specification (including the accompanying claims, abstract, and drawings) and all processes or units of any method or device so disclosed. Unless expressly stated otherwise, each feature disclosed in this specification (including the accompanying claims, abstract, and drawings) may be replaced by an alternative feature that serves the same, equivalent, or similar purpose.

[0167] It should be noted that the above embodiments are illustrative of the invention and not restrictive, and that those skilled in the art can devise alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses should not be construed as limiting the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third, etc., does not indicate any order. These words can be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be construed as limiting the order of execution.

Claims

1. A multicast method, characterized in that, The method includes: Determine the virtual machine information of the target virtual machine; The virtual machine information is converted into virtual port information corresponding to the preset SDN controller; The virtual port information is sent to the SDN controller so that the SDN controller adds the target virtual machine to the multicast group of the virtual multicast network corresponding to the target cloud platform; the virtual multicast network is pre-built by the SDN controller according to network configuration information; the network configuration information is converted according to the logical network information of the target cloud platform; the target cloud platform includes the target virtual machine.

2. The method according to claim 1, characterized in that, Before determining the virtual machine information of the target virtual machine, the following is included: Determine the virtual switch model of the SDN controller; The logical network information is transformed according to the virtual switch model to obtain the basic configuration information of the virtual multicast network; The network configuration information is obtained by supplementing the basic configuration information based on the virtual switch model; The network configuration information is input into the virtual switch model so that the SDN controller can construct the virtual multicast network according to the network configuration information and the virtual switch model.

3. The method according to claim 2, characterized in that, The logical network information includes multiple sub-logical network field information; the virtual switch model includes multiple model attributes; the process of converting the logical network information according to the virtual switch model to obtain the basic configuration information of the virtual multicast network includes: Determine the field functions of the sub-logical network field information; Determine the attribute functions and attribute formats of the model attributes; The field functions and attribute functions are matched to obtain the sub-logic network field information matched by each of the model attributes that have a match; The matched sub-logic network field information is converted according to the attribute format of each of the matching model attributes to obtain the basic configuration information.

4. The method according to claim 3, characterized in that, The process of supplementing the basic configuration information based on the virtual switch model to obtain the network configuration information includes: The model attributes that do not have a match are identified as attributes to be supplemented; Determine the network function settings information of the virtual multicast network; The attribute to be supplemented is supplemented according to the network function setting information to obtain the supplemented attribute; The network configuration information is obtained by combining the supplemented attributes and the basic configuration information.

5. The method according to claim 4, characterized in that, The virtual switch model includes multiple optional attribute classes; the combination of the supplemented attributes and the basic configuration information to obtain the network configuration information includes: Determine the target attribute class for each of the model attributes; the target attribute class is one of the optional attribute classes. The supplemented attributes and the basic configuration information are encapsulated into the corresponding attribute class to obtain the network configuration information.

6. The method according to claim 1, characterized in that, The step of converting the virtual machine information into virtual port information corresponding to a preset SDN controller includes: Determine the virtual port model of the SDN controller; The virtual machine information is converted according to the virtual port model to obtain basic port information; The virtual port information is obtained by supplementing the basic port information based on the virtual port model.

7. The method according to any one of claims 2-5, characterized in that, The SDN controller includes OVN; the virtual switch model includes the OVN northbound database model.

8. A multicast device, characterized in that, The device includes: The determination module is used to determine the virtual machine information of the target virtual machine; The conversion module is used to convert the virtual machine information into virtual port information corresponding to a preset SDN controller; A multicast module is used to send the virtual port information to the SDN controller, so that the SDN controller adds the target virtual machine to the multicast group of the virtual multicast network corresponding to the target cloud platform; the virtual multicast network is pre-built by the SDN controller according to network configuration information; the network configuration information is obtained by converting the logical network information of the target cloud platform; the target cloud platform includes the target virtual machine.

9. A multicast device, characterized in that, include: The processor, memory, communication interface, and communication bus are provided, wherein the processor, memory, and communication interface communicate with each other via the communication bus. The memory is used to store at least one executable instruction that causes the processor to perform the operation of the multicast method as described in any one of claims 1-7.

10. A computer-readable storage medium, characterized in that, The storage medium stores at least one executable instruction, which, when executed on the multicast device, causes the multicast device to perform the operation of the multicast method as described in any one of claims 1-7.