WO2023035777A1 - Network configuration method, proxy component, controller, electronic device and storage medium - Google Patents

Network configuration method, proxy component, controller, electronic device and storage medium Download PDF

Info

Publication number
WO2023035777A1
WO2023035777A1 PCT/CN2022/106306 CN2022106306W WO2023035777A1 WO 2023035777 A1 WO2023035777 A1 WO 2023035777A1 CN 2022106306 W CN2022106306 W CN 2022106306W WO 2023035777 A1 WO2023035777 A1 WO 2023035777A1
Authority
WO
WIPO (PCT)
Prior art keywords
virtual
virtual switch
port
network
data
Prior art date
Application number
PCT/CN2022/106306
Other languages
French (fr)
Chinese (zh)
Inventor
张建春
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2023035777A1 publication Critical patent/WO2023035777A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/76Routing in software-defined topologies, e.g. routing between virtual machines
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements

Definitions

  • Embodiments of the present disclosure relate to the technical field of cloud networks, and in particular to a network configuration method, a proxy component, a controller, electronic equipment, and a storage medium.
  • SDN Software Define Network
  • the cloud platform provides a programming interface for network services to the application layer, accepts network service requests from the application layer, and realizes the scheduling and configuration of network resources through the SDN controller to achieve cloud-network linkage and network service automation.
  • virtual machines on computing nodes are connected to virtual switches or physical switches.
  • SDN controllers manage virtual switches or physical switches through network protocols such as OpenFlow and Netconf, and configure network services for virtual switches on computing nodes.
  • the existing SDN controller completes the configuration of the virtual switch network, it needs to access the virtual switch database to obtain the virtual interface identifier, and the virtual switch database is distributed on the computing nodes of the data center network, and the number of computing nodes in the data center network Many, if there is an abnormality in the network environment of a small number of computing nodes or the firewall policy configuration is incorrect, the SDN controller will not be able to access the virtual switch database, which will cause the virtual switch network configuration to fail.
  • Embodiments of the present disclosure provide a network configuration method, a proxy component, a controller, an electronic device, and a storage medium. Designed to improve the reliability of virtual switch database access.
  • An embodiment of the present disclosure provides a network configuration method, which is applied to a proxy component of a computing node.
  • the computing node also includes a virtual switch and a virtual switch database, including: receiving a virtual machine instantiation request and a virtual machine instantiation request sent by a cloud control platform node.
  • the virtual interface data includes a virtual interface identifier; create an instantiated virtual machine according to the virtual machine instantiation request, and configure a virtual network card for the instantiated virtual machine according to the virtual interface data; according to a preset Configure the connection relationship between the virtual network card and the port of the virtual switch according to the connection condition, and write the virtual interface identifier into the virtual switch database according to the connection relationship, wherein the virtual switch database is set to store The virtual switch port data of the port; obtain the virtual switch port data corresponding to the port from the virtual switch database, and send it to the software-defined network SDN controller through the cloud control platform node, so that the SDN The controller completes the network configuration of the virtual switch according to the port data of the virtual switch.
  • the embodiment of the present disclosure also provides a network configuration method, which is applied on the SDN controller, including: receiving the virtual switch port data sent by the computing service agent component through the cloud control platform node, wherein the virtual switch port data includes the virtual interface identifier , a virtual switch identifier and a virtual switch port identifier; configure a forwarding entry of the virtual switch according to the virtual switch port data, and access the virtual switch target port corresponding to the virtual switch port identifier to the corresponding virtual interface identifier
  • the virtual network is configured to complete the network configuration of the virtual switch.
  • An embodiment of the present disclosure also provides a proxy component, including: a receiving module configured to receive a virtual machine instantiation request and virtual interface data sent by a cloud control platform node, wherein the virtual interface data includes a virtual interface identifier; an instantiation module , set to create an instantiated virtual machine according to the instantiation request of the virtual machine, and configure a virtual network card for the instantiated virtual machine according to the virtual interface data; the connection module configures the virtual network card according to preset connection conditions and the port connection relationship of the virtual switch, and write the virtual interface identifier into the virtual switch database according to the connection relationship, wherein the virtual switch database is set to store the virtual switch port data of the port
  • the sending module is configured to obtain the virtual switch port data corresponding to the port from the virtual switch database, and send it to the software-defined network SDN controller through the cloud control platform node, so that the SDN control The controller completes the network configuration of the virtual switch according to the port data of the virtual switch.
  • the embodiment of the present disclosure also provides a controller, including: a receiving module, which receives the virtual switch port data sent by the computing service agent component through the cloud control platform node, wherein the virtual switch port data includes the virtual interface identifier, the virtual switch identifier and A virtual switch port identifier; a configuration module configured to configure a forwarding table item of a virtual switch according to the virtual switch port data, and access a virtual switch target port corresponding to the virtual switch port identifier to a virtual network corresponding to the virtual interface identifier to complete the network configuration of the virtual switch.
  • An embodiment of the present disclosure also provides an electronic device, including: at least one processor; and a memory connected in communication with the at least one processor; wherein, the memory stores information that can be executed by the at least one processor. Instructions, the instructions are executed by the at least one processor, so that the at least one processor can execute the above network configuration method.
  • An embodiment of the present disclosure also provides a computer-readable storage medium storing a computer program, and implementing the above configuration method when the computer program is executed by a processor.
  • the network configuration method proposed in this disclosure is applied to the proxy component of the computing node to receive the virtual machine instantiation request and virtual interface data sent by the cloud control platform node, wherein the virtual interface data includes the virtual interface identifier; according to the virtual machine instantiation request Create an instantiated virtual machine, and configure a virtual network card for the instantiated virtual machine according to the virtual interface data; configure the connection relationship between the virtual network card and the port of the virtual switch according to the preset connection conditions, and write the virtual interface identifier into the virtual switch according to the connection relationship
  • the virtual switch database is set to store the virtual switch port data of the port; obtain the virtual switch port data corresponding to the port from the virtual switch database, and send it to the SDN controller through the cloud control platform node, so that the SDN controller Complete the network configuration of the virtual switch according to the port data of the virtual switch.
  • Both the proxy component and the virtual switch database are located on the computing node, and the access of the proxy component to the virtual switch database belongs to local access, thereby improving the reliability of
  • FIG. 1 is a schematic structural diagram of an application environment of a network configuration method provided by an embodiment of the present disclosure.
  • FIG. 2 is a flowchart of a network configuration method provided by an embodiment of the present disclosure
  • FIG. 2a is a flow chart of Step 101 of the network configuration method provided by an embodiment of the present disclosure
  • FIG. 3 is a flowchart of a network configuration method provided by an embodiment of the present disclosure
  • FIG. 4 is a flowchart of a network configuration method provided by an embodiment of the present disclosure.
  • FIG. 5 is a flowchart of a network configuration method provided by an embodiment of the present disclosure.
  • FIG. 6 is a flowchart of a network configuration method provided by an embodiment of the present disclosure.
  • FIG. 7 is a schematic diagram of a flow structure of a proxy component provided by an embodiment of the present disclosure.
  • FIG. 8 is a schematic structural diagram of a controller provided by an embodiment of the present disclosure.
  • Fig. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
  • the computing nodes are composed of proxy components (also called computing service proxy components), virtual switches and Composed of a virtual switch database, it mainly communicates with the cloud platform control node to complete operations such as defining virtual networks and instantiating virtual machines;
  • the cloud platform control node is composed of computing service components and network service components, and mainly communicates with SDN controllers and computing nodes , complete operations such as processing computing node requests, creating a virtual network, and calling the northbound interface of the SDN controller to schedule network resources;
  • the SDN controller mainly communicates with the cloud platform control node to complete the configuration of the virtual network.
  • An embodiment of the present disclosure relates to a network configuration method, which is applied to an agent component of a computing node.
  • the computing node also includes a virtual switch and a virtual switch database, as shown in FIG. 2 , including:
  • Step 101 receiving a virtual machine instantiation request and virtual interface data sent by a cloud control platform node, wherein the virtual interface data includes a virtual interface identifier.
  • Step 101 can be represented by The sub-steps shown are realized, specifically including:
  • Step 1011 when receiving the virtual machine instantiation request sent by the computing service component, send a virtual interface creation request to the network service component, so that the network service component creates a virtual interface according to the virtual interface creation request, and allocates virtual interface data to the virtual interface .
  • the proxy component first receives the virtual machine instantiation request sent by the computing service component, and when the proxy component receives the virtual machine instantiation request, it sends a virtual interface creation request to the network service component in the cloud control platform node, and the network service After the component receives the virtual interface creation request, it creates a virtual interface and assigns virtual interface data such as MAC address and IP address to the created virtual interface.
  • the format of the virtual interface data is shown in Table 1, where the virtual switch identifier and virtual switch The value of the port identifier is empty when the virtual interface is created.
  • the network service component After the allocation of the virtual interface data is completed, the network service component returns the virtual interface data to the agent component, and at the same time sends the virtual interface data to the SDN controller.
  • Step 1012 receiving the virtual interface data returned by the network service component.
  • the proxy component receives the virtual interface data returned by the network service component in the cloud control platform node according to the virtual interface creation request.
  • Step 102 create an instantiated virtual machine according to the instantiation request of the virtual machine, and configure a virtual network card for the instantiated virtual machine according to the virtual interface data.
  • the proxy component After the proxy component receives the virtual machine instantiation request, the proxy component starts to create the instantiated virtual machine.
  • the instantiated virtual machine When the instantiated virtual machine is successfully created, according to the virtual interface MAC address and virtual interface IP address in the virtual interface data, the The instantiated virtual machine is configured with a virtual network card.
  • Step 103 configure the connection relationship between the virtual network card and the port of the virtual switch according to the preset connection conditions, and write the virtual interface identifier into the virtual switch database according to the connection relationship, wherein the virtual switch database is set as the virtual switch port data of the storage port .
  • the virtual network card and the port of the virtual switch After configuring the virtual network card for the instantiated virtual machine, it is necessary to connect the virtual network card and the port of the virtual switch on the computing node according to the preset connection conditions. After the virtual network card and the port are successfully connected, according to the two Connection relationship, write the virtual interface identifier into the virtual switch port data corresponding to the port connected to the virtual network in the virtual switch data, store the virtual switch port data of each port of the virtual switch in the virtual switch database, each virtual switch port The data all include a virtual interface identifier, a virtual switch identifier and a virtual switch port identifier; when the port of the virtual switch is not connected to the virtual network card, the virtual interface identifier in the virtual switch port data corresponding to the port of the virtual switch is empty.
  • Step 104 obtain the virtual switch port data corresponding to the port from the virtual switch database, and send it to the SDN controller through the cloud control platform node, so that the SDN controller completes the network configuration of the virtual switch according to the virtual switch port data.
  • the proxy component obtains the virtual switch port data corresponding to the port from the virtual switch database according to the port connected to the virtual network card, and the proxy component sends the virtual switch port data to the network service component of the cloud control platform node.
  • the component updates the virtual interface data on the network service component according to the received virtual switch port data, and sends the updated virtual interface data carrying the virtual switch port data sent by the proxy component to the SDN controller.
  • the virtual switch port data is analyzed from the data, and the network configuration of the virtual switch is completed according to the virtual switch port data.
  • the proxy component of the computing node to receive the virtual machine instantiation request and virtual interface data sent by the cloud control platform node, wherein the virtual interface data includes the virtual interface identifier; the instantiation virtual machine is created according to the virtual machine instantiation request.
  • the virtual switch database is set to store the virtual switch port data of the port; obtain the virtual switch port data corresponding to the port from the virtual switch database, and send it to the SDN controller through the cloud control platform node, so that the SDN controller will The data completes the network configuration of the virtual switch.
  • Both the proxy component and the virtual switch database are located on the computing node, and the access of the proxy component to the virtual switch database belongs to local access, thereby improving the reliability of virtual switch database access.
  • An embodiment of the present disclosure relates to a network configuration method, which is applied to an agent component of a computing node.
  • the computing node also includes a virtual switch and a virtual switch database, as shown in FIG. 3 , including:
  • Step 201 receiving a virtual machine instantiation request and virtual interface data sent by a cloud control platform node, wherein the virtual interface data includes a virtual interface identifier.
  • this step is substantially the same as step 101 in the embodiment of the present disclosure, and details are not repeated here.
  • Step 202 create an instantiated virtual machine according to the instantiation request of the virtual machine, and configure a virtual network card for the instantiated virtual machine according to the virtual interface data.
  • this step is substantially the same as step 102 in the embodiment of the present disclosure, and details are not repeated here.
  • Step 203 sending a port creation request to the virtual switch, so that the virtual switch creates a port according to the port creation request.
  • the proxy component sends a port creation request to the virtual switch.
  • the virtual switch After the virtual switch receives the port creation request, the virtual switch needs to create a new virtual switch port according to the port creation request, and returns the creation result to the proxy component.
  • the creation result includes Whether the creation was successful, where it was created, and so on.
  • Step 204 configure the connection relationship between the virtual network card and the port of the virtual switch according to the preset connection conditions, and write the virtual interface identifier into the virtual switch database according to the connection relationship, wherein the virtual switch database is set as the virtual switch port data of the storage port .
  • this step is substantially the same as step 103 in the embodiment of the present disclosure, and details will not be repeated here.
  • Step 205 obtain the virtual switch port data corresponding to the port from the virtual switch database, and send it to the SDN controller through the cloud control platform node, so that the SDN controller completes the network configuration of the virtual switch according to the virtual switch port data.
  • this step is substantially the same as step 104 in the embodiment of the present disclosure, and details are not repeated here.
  • new ports can be created on the virtual switch, so that the diversity of the ports of the virtual switch can be improved.
  • An embodiment of the present disclosure relates to a network configuration method, which is applied to an SDN controller, as shown in FIG. 4 , including:
  • Step 301 receiving the virtual switch port data sent by the proxy component through the cloud control platform node, wherein the virtual switch port data includes a virtual interface identifier, a virtual switch identifier and a virtual switch port identifier.
  • the virtual switch port data received by the SDN controller is sent by the network service component in the cloud control platform node, and the virtual switch port data of the network service component comes from the proxy component accessing the virtual switch database on the computing node.
  • the service component receives the virtual switch port data, it first fills the virtual switch port data into the virtual interface data, and then sends it to the SDN controller.
  • Step 302 configure the forwarding entry of the virtual switch according to the virtual switch port data, and connect the virtual switch target port corresponding to the virtual switch port ID to the virtual network corresponding to the virtual interface ID, and complete the network configuration of the virtual switch.
  • the SDN controller queries the detailed data of the virtual interface, such as virtual network ID, MAC address, IP address, etc., according to the virtual interface identifier as a key value; according to the virtual switch identifier and the virtual switch port ID to configure the forwarding entry of the virtual switch corresponding to the virtual switch ID, and then connect the target port of the virtual switch corresponding to the virtual switch port ID to the virtual network corresponding to the virtual interface ID to complete the virtual switch Network Configuration.
  • the detailed data of the virtual interface such as virtual network ID, MAC address, IP address, etc.
  • the SDN controller receives the virtual switch port data sent by the proxy component through the cloud control platform node, wherein the virtual switch port data includes a virtual interface identifier, a virtual switch identifier, and a virtual switch port identifier; the virtual switch port is configured according to the virtual switch port data.
  • the forwarding table entry of the switch, and the virtual switch target port corresponding to the virtual switch port identifier is connected to the virtual network corresponding to the virtual interface identifier to complete the network configuration of the virtual switch.
  • the SDN controller does not maintain a large number of database session connections, and only when it needs to access the virtual switch database, the SDN controller will actively create a database connection , close the connection after the access is completed, which has a certain resource overhead, and the access efficiency is not high.
  • An embodiment of the present disclosure relates to a network configuration method, which is applied on an SDN controller, as shown in FIG. 5, including:
  • Step 401 receiving the virtual switch port data sent by the proxy component through the cloud control platform node, wherein the virtual switch port data includes a virtual interface identifier, a virtual switch identifier and a virtual switch port identifier.
  • this step is substantially the same as step 301 in the embodiment of the present disclosure, and details are not repeated here.
  • Step 402 receiving the status of each port sent by the virtual switch through the OpenFlow protocol.
  • the virtual switch can also communicate with the SDN controller through the OpenFlow protocol, and can send the status of each port of the virtual switch to the SDN controller; but since the existing OpenFlow protocol does not reserve a channel for transmitting other information, As a result, the virtual switch cannot send the virtual switch port data to the SDN controller through the OpenFlow protocol.
  • Step 403 acquire the port status of the virtual switch target port corresponding to the virtual switch port identifier from the port status.
  • the port state transmitted by the virtual switch includes the port states of all ports on the virtual switch, and the SDN controller needs to identify the port state corresponding to the virtual switch target port from all port states according to the virtual switch target port.
  • Step 404 when the port state of the target port of the virtual switch is normal, configure the forwarding entry of the virtual switch according to the port data of the virtual switch, and connect the target port of the virtual switch corresponding to the port identifier of the virtual switch to the virtual switch corresponding to the virtual interface identifier. Network to complete the network configuration of the virtual switch.
  • the network configuration of the virtual switch will be performed.
  • the specific process of network configuration is roughly the same as step 302 in the embodiment of the present disclosure, and will not be repeated here.
  • the state of the target port of the virtual switch can also be judged, so as to improve the success rate of the SDN controller in configuring the virtual switch network.
  • An embodiment of the present disclosure relates to a network configuration method, as shown in FIG. 6 , including:
  • Step 501 Receive a virtual network creation request sent by a cloud control platform node, and create a virtual network according to the virtual network creation request.
  • the SDN controller needs to receive the virtual network creation request sent by the network service component in the node of the cloud control platform, and create a virtual network according to the virtual network creation request, and set it for subsequent virtualization.
  • the network configuration of the switch is not limited to the SDN controller.
  • Step 502 receiving the virtual switch port data sent by the agent component through the cloud control platform node, wherein the virtual switch port data includes a virtual interface identifier, a virtual switch identifier and a virtual switch port identifier.
  • this step is substantially the same as step 301 in the embodiment of the present disclosure, and details are not repeated here.
  • Step 503 configure the forwarding entry of the virtual switch according to the virtual switch port data, and connect the virtual switch target port corresponding to the virtual switch port ID to the virtual network corresponding to the virtual interface ID, and complete the network configuration of the virtual switch.
  • this step is substantially the same as step 302 in the embodiment of the present disclosure, and details are not repeated here.
  • FIG. 7 is the implementation A schematic diagram of the proxy component described in the example, including: a receiving module 601 , an instantiation module 602 , a connection module 603 , and a sending module 604 .
  • the receiving module 601 is configured to receive the virtual machine instantiation request and the virtual interface data sent by the cloud control platform node, wherein the virtual interface data includes the virtual interface identification;
  • the instantiation module 602 is configured to create an instantiated virtual machine according to a virtual machine instantiation request, and configure a virtual network card for the instantiated virtual machine according to the virtual interface data;
  • connection module 603 is configured to configure the connection relationship between the virtual network card and the port of the virtual switch according to the preset connection conditions, and write the virtual interface identifier into the virtual switch database according to the connection relationship, wherein the virtual switch database is set to store the ports. virtual switch port data;
  • the sending module 604 is configured to obtain the virtual switch port data corresponding to the port from the virtual switch database, and send it to the software-defined network SDN controller through the cloud control platform node, so that the SDN controller completes the virtual switch according to the virtual switch port data. network configuration.
  • FIG. 8 is the A schematic diagram of the controller described in the example, including: a receiving module 701 and a configuration module 702 .
  • the receiving module 701 receives the virtual switch port data sent by the computing service agent component through the cloud control platform node, wherein the virtual switch port data includes a virtual interface identifier, a virtual switch identifier and a virtual switch port identifier;
  • the configuration module 702 configures the forwarding entry of the virtual switch according to the virtual switch port data, and connects the virtual switch target port corresponding to the virtual switch port identifier to the virtual network corresponding to the virtual interface identifier, and completes the network configuration of the virtual switch.
  • this embodiment is a system embodiment corresponding to the above method embodiment, and this embodiment can be implemented in cooperation with the above method embodiment.
  • the relevant technical details and technical effects mentioned in the above embodiments are still valid in this embodiment, and will not be repeated here to reduce repetition.
  • the relevant technical details mentioned in this embodiment can also be applied in the above embodiments.
  • a logical unit can be a physical unit, or a part of a physical unit, or multiple physical units. Combination of units.
  • this embodiment does not introduce units that are not closely related to solving the technical problems raised by the embodiments of the present disclosure, but this does not mean that there are no other elements in this embodiment unit.
  • FIG. 9 Another embodiment of the present disclosure relates to an electronic device, as shown in FIG. 9 , including: at least one processor 801; and a memory 802 communicatively connected to the at least one processor 801; wherein, the memory 802 stores Instructions that can be executed by the at least one processor 801, the instructions are executed by the at least one processor 801, so that the at least one processor 801 can execute the network configuration methods in the foregoing embodiments.
  • the memory and the processor are connected by a bus
  • the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors and various circuits of the memory together.
  • the bus may also connect together various other circuits such as peripherals, voltage regulators, and power management circuits, all of which are well known in the art and therefore will not be further described herein.
  • the bus interface provides an interface between the bus and the transceivers.
  • a transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing means for communicating with various other devices over a transmission medium.
  • the data processed by the processor is transmitted on the wireless medium through the antenna, further, the antenna also receives the data and transmits the data to the processor.
  • the processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions.
  • the memory may be configured to store data used by the processor when performing operations.
  • Another embodiment of the present disclosure relates to a computer-readable storage medium storing a computer program.
  • the above method embodiments are implemented when the computer program is executed by the processor.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .

Abstract

Embodiments of the present disclosure relate to the technical field of cloud networks, and relate in particular to a network configuration method, a proxy component, a controller, an electronic device, and a storage medium. The network configuration method comprises: receiving a virtual machine instantiation request and virtual interface data, the virtual interface data comprising a virtual interface identifier; creating an instantiated virtual machine according to the instantiation request; according to the virtual interface data, configuring a virtual network card for the instantiated virtual machine; according to a connection condition, configuring a connection relationship between the virtual network card and a port of a virtual switch; writing the virtual interface identifier into a virtual switch database according to the connection relationship; configuring the virtual switch database as virtual switch port data of a storage port; and obtaining the virtual switch port data from the virtual switch database and sending same to an SDN controller by means of a cloud control platform node, so that the SDN controller completes the network configuration of the virtual switch according to the virtual switch port data. The problem that virtual switch database access is unreliable is solved.

Description

网络配置方法、代理组件、控制器、电子设备和存储介质Network configuration method, agent component, controller, electronic device and storage medium 技术领域technical field
本公开实施例涉及云网络技术领域,特别涉及一种网络配置方法、代理组件、控制器、电子设备和存储介质。Embodiments of the present disclosure relate to the technical field of cloud networks, and in particular to a network configuration method, a proxy component, a controller, electronic equipment, and a storage medium.
背景技术Background technique
大型的数据中心为实现云网联动、网络业务自动化等业务需求,大多采用云平台+软件定义网络(Software Define Network,简称SDN)控制器的控制面架构。云平台向应用层提供网络服务的编程接口,接受应用层的网络服务请求,通过SDN控制器实现网络资源的调度与配置,达到云网联动、网络服务自动化的目的。数据中心网络中,计算节点上的虚机接入虚拟交换机或者物理交换机,SDN控制器通过OpenFlow、Netconf等网络协议管理虚拟交换机或者物理交换机,为计算节点上的虚拟交换机配置网络服务。In order to realize business requirements such as cloud-network linkage and network service automation, large-scale data centers mostly adopt the control plane architecture of cloud platform + software-defined network (Software Define Network, referred to as SDN) controller. The cloud platform provides a programming interface for network services to the application layer, accepts network service requests from the application layer, and realizes the scheduling and configuration of network resources through the SDN controller to achieve cloud-network linkage and network service automation. In the data center network, virtual machines on computing nodes are connected to virtual switches or physical switches. SDN controllers manage virtual switches or physical switches through network protocols such as OpenFlow and Netconf, and configure network services for virtual switches on computing nodes.
然而,现有的SDN控制器在完成虚拟交换机网络配置前,需要访问虚拟交换机数据库来获取虚拟接口标识,而虚拟交换机数据库分布在数据中心网络的计算节点上,且数据中心网络的计算节点的数量众多,如果存在少量计算节点网络环境异常或者防火墙策略配置不正确,那么SDN控制器就无法访问虚拟交换机数据库,进而导致虚拟交换机网络配置失败。However, before the existing SDN controller completes the configuration of the virtual switch network, it needs to access the virtual switch database to obtain the virtual interface identifier, and the virtual switch database is distributed on the computing nodes of the data center network, and the number of computing nodes in the data center network Many, if there is an abnormality in the network environment of a small number of computing nodes or the firewall policy configuration is incorrect, the SDN controller will not be able to access the virtual switch database, which will cause the virtual switch network configuration to fail.
发明内容Contents of the invention
本公开实施例提出一种网络配置方法、代理组件、控制器、电子设备和存储介质。旨在提高虚拟交换机数据库访问的可靠性。Embodiments of the present disclosure provide a network configuration method, a proxy component, a controller, an electronic device, and a storage medium. Designed to improve the reliability of virtual switch database access.
本公开实施例提供了一种网络配置方法,应用在计算节点的代理组件上,所述计算节点还包括虚拟交换机和虚拟交换机数据库,包括:接收云控制平台节点发送的虚拟机实例化请求和虚拟接口数据,其中,所述虚拟接口数据包含虚拟接口标识;根据所述虚拟机实例化请求创建实例化虚拟机,并根据所述虚拟接口数据为所述实例化虚拟机配置虚拟网卡;根据预设的连接条件配置所述虚拟网卡和所述虚拟交换机的端口的连接关系,并根据所述连接关系将所述虚拟接口标识写入所述虚拟交换机数据库中,其中,所述虚拟交换机数据库设置为存储所述端口的虚拟交换机端口数据;从所述虚拟交换机数据库中获取与所述端口对应的虚拟交换机端口数据,并通过所述云控制平台节点发送至软件定义网络SDN控制器,以使所述SDN控制器根据所述虚拟交换机端口数据完成对所述虚拟交换机的网络配置。An embodiment of the present disclosure provides a network configuration method, which is applied to a proxy component of a computing node. The computing node also includes a virtual switch and a virtual switch database, including: receiving a virtual machine instantiation request and a virtual machine instantiation request sent by a cloud control platform node. Interface data, wherein the virtual interface data includes a virtual interface identifier; create an instantiated virtual machine according to the virtual machine instantiation request, and configure a virtual network card for the instantiated virtual machine according to the virtual interface data; according to a preset Configure the connection relationship between the virtual network card and the port of the virtual switch according to the connection condition, and write the virtual interface identifier into the virtual switch database according to the connection relationship, wherein the virtual switch database is set to store The virtual switch port data of the port; obtain the virtual switch port data corresponding to the port from the virtual switch database, and send it to the software-defined network SDN controller through the cloud control platform node, so that the SDN The controller completes the network configuration of the virtual switch according to the port data of the virtual switch.
本公开实施例还提供一种网络配置方法,应用在SDN控制器上,包括:接收计算服务代理组件通过云控制平台节点发送的虚拟交换机端口数据,其中,所述虚拟交换机端口数据包含虚拟接口标识、虚拟交换机标识和虚拟交换机端口标识;根据所述虚拟交换机端口数据配置虚拟交换机的转发表项,并将与所述虚拟交换机端口标识对应的虚拟交换机目标端口接入与所述虚拟接口标识对应的虚拟网络,完成对所述虚拟交换机的网络配置。The embodiment of the present disclosure also provides a network configuration method, which is applied on the SDN controller, including: receiving the virtual switch port data sent by the computing service agent component through the cloud control platform node, wherein the virtual switch port data includes the virtual interface identifier , a virtual switch identifier and a virtual switch port identifier; configure a forwarding entry of the virtual switch according to the virtual switch port data, and access the virtual switch target port corresponding to the virtual switch port identifier to the corresponding virtual interface identifier The virtual network is configured to complete the network configuration of the virtual switch.
本公开实施例还提供一种代理组件,包括:接收模块,设置为接收云控制平台节点发送的虚拟机实例化请求和虚拟接口数据,其中,所述虚拟接口数据包含虚拟接口标识;实例化模块,设置为根据所述虚拟机实例化请求创建实例化虚拟机,并根据所述虚拟接口数据为所述实例化虚拟机配置虚拟网卡;连接模块,根据预设的连接条件按配置所述虚拟网卡和所述虚拟交换机的端口的连接关系,并根据所述连接关系将所述虚拟接口标识写入所述虚拟交换 机数据库中,其中,所述虚拟交换机数据库设置为存储所述端口的虚拟交换机端口数据;发送模块,设置为从所述虚拟交换机数据库中获取与所述端口对应的所述虚拟交换机端口数据,并通过所述云控制平台节点发送至软件定义网络SDN控制器,以使所述SDN控制器根据所述虚拟交换机端口数据完成对所述虚拟交换机的网络配置。An embodiment of the present disclosure also provides a proxy component, including: a receiving module configured to receive a virtual machine instantiation request and virtual interface data sent by a cloud control platform node, wherein the virtual interface data includes a virtual interface identifier; an instantiation module , set to create an instantiated virtual machine according to the instantiation request of the virtual machine, and configure a virtual network card for the instantiated virtual machine according to the virtual interface data; the connection module configures the virtual network card according to preset connection conditions and the port connection relationship of the virtual switch, and write the virtual interface identifier into the virtual switch database according to the connection relationship, wherein the virtual switch database is set to store the virtual switch port data of the port The sending module is configured to obtain the virtual switch port data corresponding to the port from the virtual switch database, and send it to the software-defined network SDN controller through the cloud control platform node, so that the SDN control The controller completes the network configuration of the virtual switch according to the port data of the virtual switch.
本公开实施例还提供一种控制器,包括:接收模块,接收计算服务代理组件通过云控制平台节点发送的虚拟交换机端口数据,其中,所述虚拟交换机端口数据包含虚拟接口标识、虚拟交换机标识和虚拟交换机端口标识;配置模块,根据所述虚拟交换机端口数据配置虚拟交换机的转发表项,并将与所述虚拟交换机端口标识对应的虚拟交换机目标端口接入与所述虚拟接口标识对应的虚拟网络,完成对所述虚拟交换机的网络配置。The embodiment of the present disclosure also provides a controller, including: a receiving module, which receives the virtual switch port data sent by the computing service agent component through the cloud control platform node, wherein the virtual switch port data includes the virtual interface identifier, the virtual switch identifier and A virtual switch port identifier; a configuration module configured to configure a forwarding table item of a virtual switch according to the virtual switch port data, and access a virtual switch target port corresponding to the virtual switch port identifier to a virtual network corresponding to the virtual interface identifier to complete the network configuration of the virtual switch.
本公开实施例还提供了一种电子设备,包括:至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;其中,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述的网络配置方法。An embodiment of the present disclosure also provides an electronic device, including: at least one processor; and a memory connected in communication with the at least one processor; wherein, the memory stores information that can be executed by the at least one processor. Instructions, the instructions are executed by the at least one processor, so that the at least one processor can execute the above network configuration method.
本公开实施例还提供了一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现上述的配置方法。An embodiment of the present disclosure also provides a computer-readable storage medium storing a computer program, and implementing the above configuration method when the computer program is executed by a processor.
本公开提出的网络配置方法,应用在计算节点的代理组件上,接收云控制平台节点发送的虚拟机实例化请求和虚拟接口数据,其中,虚拟接口数据包含虚拟接口标识;根据虚拟机实例化请求创建实例化虚拟机,并根据虚拟接口数据为实例化虚拟机配置虚拟网卡;根据预设的连接条件配置虚拟网卡和虚拟交换机的端口的连接关系,并根据连接关系将虚拟接口标识写入虚拟交换机数据库中,其中,虚拟交换机数据库设置为存储端口的虚拟交换机端口数据;从虚拟交换机数据库中获取与端口对应的虚拟交换机端口数据,并通过云控制平台节点发送至SDN控制器,以使SDN控制器根据虚拟交换机端口数据完成对虚拟交换机的网络配置。代理组件和虚拟交换机数据库都位于计算节点上,代理组件访问虚拟交换机数据库属于本地访问,从而提高虚拟交换机数据库访问的可靠性。The network configuration method proposed in this disclosure is applied to the proxy component of the computing node to receive the virtual machine instantiation request and virtual interface data sent by the cloud control platform node, wherein the virtual interface data includes the virtual interface identifier; according to the virtual machine instantiation request Create an instantiated virtual machine, and configure a virtual network card for the instantiated virtual machine according to the virtual interface data; configure the connection relationship between the virtual network card and the port of the virtual switch according to the preset connection conditions, and write the virtual interface identifier into the virtual switch according to the connection relationship In the database, wherein, the virtual switch database is set to store the virtual switch port data of the port; obtain the virtual switch port data corresponding to the port from the virtual switch database, and send it to the SDN controller through the cloud control platform node, so that the SDN controller Complete the network configuration of the virtual switch according to the port data of the virtual switch. Both the proxy component and the virtual switch database are located on the computing node, and the access of the proxy component to the virtual switch database belongs to local access, thereby improving the reliability of virtual switch database access.
附图说明Description of drawings
图1是本公开实施例提供的网络配置方法的应用环境的结构示意图。FIG. 1 is a schematic structural diagram of an application environment of a network configuration method provided by an embodiment of the present disclosure.
图2是本公开实施例提供的网络配置方法的流程图;FIG. 2 is a flowchart of a network configuration method provided by an embodiment of the present disclosure;
图2a是本公开实施例提供的网络配置方法的步骤101的流程图;FIG. 2a is a flow chart of Step 101 of the network configuration method provided by an embodiment of the present disclosure;
图3是本公开实施例提供的网络配置方法的流程图;FIG. 3 is a flowchart of a network configuration method provided by an embodiment of the present disclosure;
图4是本公开实施例提供的网络配置方法的流程图;FIG. 4 is a flowchart of a network configuration method provided by an embodiment of the present disclosure;
图5是本公开实施例提供的网络配置方法的流程图;FIG. 5 is a flowchart of a network configuration method provided by an embodiment of the present disclosure;
图6是本公开实施例提供的网络配置方法的流程图;FIG. 6 is a flowchart of a network configuration method provided by an embodiment of the present disclosure;
图7是本公开实施例提供的代理组件的流结构示意图;FIG. 7 is a schematic diagram of a flow structure of a proxy component provided by an embodiment of the present disclosure;
图8是本公开实施例提供的控制器的结构示意图;FIG. 8 is a schematic structural diagram of a controller provided by an embodiment of the present disclosure;
图9是本公开实施例提供的电子设备的结构示意图。Fig. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure.
具体实施方式Detailed ways
为使本公开实施例的目的、技术方案和优点更加清楚,下面将结合附图对本公开的各实施例进行详细的阐述。然而,本领域的普通技术人员可以理解,在本公开各实施例中,为了使读者更好地理解本公开而提出了许多技术细节。但是,即使没有这些技术细节和基于以下 各实施例的种种变化和修改,也可以实现本公开所要求保护的技术方案。以下各个实施例的划分是为了描述方便,不应对本公开的具体实现方式构成任何限定,各个实施例在不矛盾的前提下可以相互结合相互引用。In order to make the purpose, technical solutions, and advantages of the embodiments of the present disclosure clearer, various embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. However, those skilled in the art can understand that in various embodiments of the present disclosure, many technical details are provided for readers to better understand the present disclosure. However, even without these technical details and various changes and modifications based on the following embodiments, the technical solution claimed in the present disclosure can also be realized. The division of the following embodiments is for the convenience of description, and should not constitute any limitation to the specific implementation of the present disclosure, and the embodiments can be combined and referenced to each other on the premise of no contradiction.
本公开应用在由云平台控制节点、SDN控制器、计算节点组成的网络环境中,各部分组成如图1所示,计算节点由代理组件(也可称为计算服务代理组件)、虚拟交换机和虚拟交换机数据库组成,主要与云平台控制节点进行通信,完成定义虚拟网络和实例化虚拟机等操作;云平台控制节点由计算服务组件和网络服务组件构成,主要与SDN控制器和计算节点进行通信,完成处理计算节点的请求、创建虚拟网络和调用SDN控制器北向接口以调度网络资源等操作;SDN控制器主要与云平台控制节点进行通信,完成虚拟网络的配置。This disclosure is applied in a network environment composed of cloud platform control nodes, SDN controllers, and computing nodes. The components are shown in Figure 1. The computing nodes are composed of proxy components (also called computing service proxy components), virtual switches and Composed of a virtual switch database, it mainly communicates with the cloud platform control node to complete operations such as defining virtual networks and instantiating virtual machines; the cloud platform control node is composed of computing service components and network service components, and mainly communicates with SDN controllers and computing nodes , complete operations such as processing computing node requests, creating a virtual network, and calling the northbound interface of the SDN controller to schedule network resources; the SDN controller mainly communicates with the cloud platform control node to complete the configuration of the virtual network.
本公开的一个实施例涉及一种网络配置方法,应用在计算节点的代理组件上,计算节点还包括虚拟交换机和虚拟交换机数据库,如图2所示,包括:An embodiment of the present disclosure relates to a network configuration method, which is applied to an agent component of a computing node. The computing node also includes a virtual switch and a virtual switch database, as shown in FIG. 2 , including:
步骤101,接收云控制平台节点发送的虚拟机实例化请求和虚拟接口数据,其中,虚拟接口数据包含虚拟接口标识。 Step 101, receiving a virtual machine instantiation request and virtual interface data sent by a cloud control platform node, wherein the virtual interface data includes a virtual interface identifier.
具体的说,代理组件所接收的虚拟机实例化请求是由云控制平台节点的计算服务组件发送的,虚拟接口数据是由云控制平台节点的网络服务组件发送的,步骤101可以由如图2a所示的各子步骤实现,具体包括:Specifically, the virtual machine instantiation request received by the agent component is sent by the computing service component of the cloud control platform node, and the virtual interface data is sent by the network service component of the cloud control platform node. Step 101 can be represented by The sub-steps shown are realized, specifically including:
步骤1011,当接收到计算服务组件发送的虚拟机实例化请求时,向网络服务组件发送虚拟接口创建请求,以使网络服务组件根据虚拟接口创建请求创建虚拟接口,并为虚拟接口分配虚拟接口数据。 Step 1011, when receiving the virtual machine instantiation request sent by the computing service component, send a virtual interface creation request to the network service component, so that the network service component creates a virtual interface according to the virtual interface creation request, and allocates virtual interface data to the virtual interface .
具体的说,代理组件先接收到计算服务组件发送的虚拟机实例化请求,当代理组件接收到虚拟机实例化请求时,向云控制平台节点中的网络服务组件发送虚拟接口创建请求,网络服务组件接收到虚拟接口创建请求后,创建虚拟接口,并为所创建的虚拟接口分配MAC地址、IP地址等虚拟接口数据,虚拟接口数据的格式如表1所示,其中,虚拟交换机标识和虚拟交换机端口标识的值在创建虚拟接口时为空,当虚拟接口数据分配完成后,网络服务组件向代理组件返回虚拟接口数据,同时向SDN控制器发送虚拟接口数据。Specifically, the proxy component first receives the virtual machine instantiation request sent by the computing service component, and when the proxy component receives the virtual machine instantiation request, it sends a virtual interface creation request to the network service component in the cloud control platform node, and the network service After the component receives the virtual interface creation request, it creates a virtual interface and assigns virtual interface data such as MAC address and IP address to the created virtual interface. The format of the virtual interface data is shown in Table 1, where the virtual switch identifier and virtual switch The value of the port identifier is empty when the virtual interface is created. After the allocation of the virtual interface data is completed, the network service component returns the virtual interface data to the agent component, and at the same time sends the virtual interface data to the SDN controller.
表1虚拟接口数据的格式Table 1 Format of virtual interface data
Figure PCTCN2022106306-appb-000001
Figure PCTCN2022106306-appb-000001
步骤1012,接收网络服务组件返回的虚拟接口数据。 Step 1012, receiving the virtual interface data returned by the network service component.
具体的说,代理组件接收云控制平台节点中的网络服务组件根据虚拟接口创建请求返回 的虚拟接口数据。Specifically, the proxy component receives the virtual interface data returned by the network service component in the cloud control platform node according to the virtual interface creation request.
步骤102,根据虚拟机实例化请求创建实例化虚拟机,并根据虚拟接口数据为实例化虚拟机配置虚拟网卡。 Step 102, create an instantiated virtual machine according to the instantiation request of the virtual machine, and configure a virtual network card for the instantiated virtual machine according to the virtual interface data.
具体的说,代理组件在接收到虚拟机实例化请求之后,代理组件开始创建实例化虚拟机,当实例化虚拟机创建成功后,根据虚拟接口数据中的虚拟接口MAC地址和虚拟接口IP地址为该实例化虚拟机配置虚拟网卡。Specifically, after the proxy component receives the virtual machine instantiation request, the proxy component starts to create the instantiated virtual machine. When the instantiated virtual machine is successfully created, according to the virtual interface MAC address and virtual interface IP address in the virtual interface data, the The instantiated virtual machine is configured with a virtual network card.
步骤103,根据预设的连接条件配置虚拟网卡和虚拟交换机的端口的连接关系,并根据连接关系将虚拟接口标识写入虚拟交换机数据库中,其中,虚拟交换机数据库设置为存储端口的虚拟交换机端口数据。 Step 103, configure the connection relationship between the virtual network card and the port of the virtual switch according to the preset connection conditions, and write the virtual interface identifier into the virtual switch database according to the connection relationship, wherein the virtual switch database is set as the virtual switch port data of the storage port .
具体的说,在给实例化虚拟机配置好虚拟网卡之后,需要根据预设的连接条件将虚拟网卡和计算节点上的虚拟交换机的端口连接起来,虚拟网卡和端口连接成功之后,根据两者的连接关系,将虚拟接口标识写入虚拟交换机数据中与虚拟网络所连接的端口对应的虚拟交换机端口数据中,虚拟交换机数据库中存储中虚拟交换机的各个端口的虚拟交换机端口数据,每个虚拟交换机端口数据都包含虚拟接口标识、虚拟交换机标识和虚拟交换机端口标识;当虚拟交换机的端口没有与虚拟网卡连接时,该虚拟交换机的端口对应的虚拟交换机端口数据中的虚拟接口标识为空。Specifically, after configuring the virtual network card for the instantiated virtual machine, it is necessary to connect the virtual network card and the port of the virtual switch on the computing node according to the preset connection conditions. After the virtual network card and the port are successfully connected, according to the two Connection relationship, write the virtual interface identifier into the virtual switch port data corresponding to the port connected to the virtual network in the virtual switch data, store the virtual switch port data of each port of the virtual switch in the virtual switch database, each virtual switch port The data all include a virtual interface identifier, a virtual switch identifier and a virtual switch port identifier; when the port of the virtual switch is not connected to the virtual network card, the virtual interface identifier in the virtual switch port data corresponding to the port of the virtual switch is empty.
步骤104,从虚拟交换机数据库中获取与端口对应的虚拟交换机端口数据,并通过云控制平台节点发送至SDN控制器,以使SDN控制器根据虚拟交换机端口数据完成对虚拟交换机的网络配置。 Step 104, obtain the virtual switch port data corresponding to the port from the virtual switch database, and send it to the SDN controller through the cloud control platform node, so that the SDN controller completes the network configuration of the virtual switch according to the virtual switch port data.
具体的说,代理组件根据与虚拟网卡连接的端口从虚拟交换机数据库中获取与该端口对应的虚拟交换机端口数据,代理组件将虚拟交换机端口数据发送到云控制平台节点的网络服务组件上,网络服务组件根据所接收的虚拟交换机端口数据更新网络服务组件上的虚拟接口数据,并将携带有代理组件发送的虚拟交换机端口数据的更新后的虚拟接口数据发送给SDN控制器,SDN控制器从虚拟接口数据中解析出虚拟交换机端口数据,根据虚拟交换机端口数据完成对虚拟交换机的网络配置。Specifically, the proxy component obtains the virtual switch port data corresponding to the port from the virtual switch database according to the port connected to the virtual network card, and the proxy component sends the virtual switch port data to the network service component of the cloud control platform node. The component updates the virtual interface data on the network service component according to the received virtual switch port data, and sends the updated virtual interface data carrying the virtual switch port data sent by the proxy component to the SDN controller. The virtual switch port data is analyzed from the data, and the network configuration of the virtual switch is completed according to the virtual switch port data.
本实施例,应用在计算节点的代理组件上,接收云控制平台节点发送的虚拟机实例化请求和虚拟接口数据,其中,虚拟接口数据包含虚拟接口标识;根据虚拟机实例化请求创建实例化虚拟机,并根据虚拟接口数据为实例化虚拟机配置虚拟网卡;根据预设的连接条件配置虚拟网卡和虚拟交换机的端口的连接关系,并根据连接关系将虚拟接口标识写入虚拟交换机数据库中,其中,虚拟交换机数据库设置为存储端口的虚拟交换机端口数据;从虚拟交换机数据库中获取与端口对应的虚拟交换机端口数据,并通过云控制平台节点发送至SDN控制器,以使SDN控制器根据虚拟交换机端口数据完成对虚拟交换机的网络配置。代理组件和虚拟交换机数据库都位于计算节点上,代理组件访问虚拟交换机数据库属于本地访问,从而提高虚拟交换机数据库访问的可靠性。In this embodiment, it is applied to the proxy component of the computing node to receive the virtual machine instantiation request and virtual interface data sent by the cloud control platform node, wherein the virtual interface data includes the virtual interface identifier; the instantiation virtual machine is created according to the virtual machine instantiation request. machine, and configure the virtual network card for the instantiated virtual machine according to the virtual interface data; configure the connection relationship between the virtual network card and the port of the virtual switch according to the preset connection conditions, and write the virtual interface identifier into the virtual switch database according to the connection relationship, where , the virtual switch database is set to store the virtual switch port data of the port; obtain the virtual switch port data corresponding to the port from the virtual switch database, and send it to the SDN controller through the cloud control platform node, so that the SDN controller will The data completes the network configuration of the virtual switch. Both the proxy component and the virtual switch database are located on the computing node, and the access of the proxy component to the virtual switch database belongs to local access, thereby improving the reliability of virtual switch database access.
本公开的一个实施例涉及一种网络配置方法,应用在计算节点的代理组件上,计算节点还包括虚拟交换机和虚拟交换机数据库,如图3所示,包括:An embodiment of the present disclosure relates to a network configuration method, which is applied to an agent component of a computing node. The computing node also includes a virtual switch and a virtual switch database, as shown in FIG. 3 , including:
步骤201,接收云控制平台节点发送的虚拟机实例化请求和虚拟接口数据,其中,虚拟接口数据包含虚拟接口标识。 Step 201, receiving a virtual machine instantiation request and virtual interface data sent by a cloud control platform node, wherein the virtual interface data includes a virtual interface identifier.
具体的说,本步骤与本公开实施例的步骤101大致相同,此处不一一赘述。Specifically, this step is substantially the same as step 101 in the embodiment of the present disclosure, and details are not repeated here.
步骤202,根据虚拟机实例化请求创建实例化虚拟机,并根据虚拟接口数据为实例化虚拟机配置虚拟网卡。 Step 202, create an instantiated virtual machine according to the instantiation request of the virtual machine, and configure a virtual network card for the instantiated virtual machine according to the virtual interface data.
具体的说,本步骤与本公开实施例的步骤102大致相同,此处不一一赘述。Specifically, this step is substantially the same as step 102 in the embodiment of the present disclosure, and details are not repeated here.
步骤203,向虚拟交换机发送端口创建请求,以使虚拟交换机根据端口创建请求创建端口。 Step 203, sending a port creation request to the virtual switch, so that the virtual switch creates a port according to the port creation request.
具体的说,代理组件向虚拟交换机发送端口创建请求,虚拟交换机在接收到端口创建请求之后,虚拟交换机需要根据端口创建请求创建新的虚拟交换机端口,并将创建结果返回给代理组件,创建结果包含创建是否成功、创建的位置等等。Specifically, the proxy component sends a port creation request to the virtual switch. After the virtual switch receives the port creation request, the virtual switch needs to create a new virtual switch port according to the port creation request, and returns the creation result to the proxy component. The creation result includes Whether the creation was successful, where it was created, and so on.
步骤204,根据预设的连接条件配置虚拟网卡和虚拟交换机的端口的连接关系,并根据连接关系将虚拟接口标识写入虚拟交换机数据库中,其中,虚拟交换机数据库设置为存储端口的虚拟交换机端口数据。Step 204, configure the connection relationship between the virtual network card and the port of the virtual switch according to the preset connection conditions, and write the virtual interface identifier into the virtual switch database according to the connection relationship, wherein the virtual switch database is set as the virtual switch port data of the storage port .
具体的说,本步骤与本公开实施例的步骤103大致相同,此处不一一赘述。Specifically, this step is substantially the same as step 103 in the embodiment of the present disclosure, and details will not be repeated here.
步骤205,从虚拟交换机数据库中获取与端口对应的虚拟交换机端口数据,并通过云控制平台节点发送至SDN控制器,以使SDN控制器根据虚拟交换机端口数据完成对虚拟交换机的网络配置。 Step 205, obtain the virtual switch port data corresponding to the port from the virtual switch database, and send it to the SDN controller through the cloud control platform node, so that the SDN controller completes the network configuration of the virtual switch according to the virtual switch port data.
具体的说,本步骤与本公开实施例的步骤104大致相同,此处不一一赘述。Specifically, this step is substantially the same as step 104 in the embodiment of the present disclosure, and details are not repeated here.
本公开的实施方式,在其他实施例的基础之上还可以在虚拟交换机上创建新的端口,使得可以提高虚拟交换机端口的多样性。In the embodiments of the present disclosure, on the basis of other embodiments, new ports can be created on the virtual switch, so that the diversity of the ports of the virtual switch can be improved.
本公开的一个实施例涉及一种网络配置方法,应用在SDN控制器上,如图4所示,包括:An embodiment of the present disclosure relates to a network configuration method, which is applied to an SDN controller, as shown in FIG. 4 , including:
步骤301,接收代理组件通过云控制平台节点发送的虚拟交换机端口数据,其中,虚拟交换机端口数据包含虚拟接口标识、虚拟交换机标识和虚拟交换机端口标识。 Step 301, receiving the virtual switch port data sent by the proxy component through the cloud control platform node, wherein the virtual switch port data includes a virtual interface identifier, a virtual switch identifier and a virtual switch port identifier.
具体的说,SDN控制器接收的虚拟交换机端口数据是由云控制平台节点中的网络服务组件发送的,而网络服务组件的虚拟交换机端口数据来源于代理组件访问计算节点上的虚拟交换机数据库,网络服务组件在接收到虚拟交换机端口数据时,首先会将虚拟交换机端口数据填入虚拟接口数据中,再发送至SDN控制器。Specifically, the virtual switch port data received by the SDN controller is sent by the network service component in the cloud control platform node, and the virtual switch port data of the network service component comes from the proxy component accessing the virtual switch database on the computing node. When the service component receives the virtual switch port data, it first fills the virtual switch port data into the virtual interface data, and then sends it to the SDN controller.
步骤302,根据虚拟交换机端口数据配置虚拟交换机的转发表项,并将与虚拟交换机端口标识对应的虚拟交换机目标端口接入与虚拟接口标识对应的虚拟网络,完成对虚拟交换机的网络配置。 Step 302, configure the forwarding entry of the virtual switch according to the virtual switch port data, and connect the virtual switch target port corresponding to the virtual switch port ID to the virtual network corresponding to the virtual interface ID, and complete the network configuration of the virtual switch.
具体的说,SDN控制器在获取到虚拟交换机端口数据后,根据虚拟接口标识为键值,查询虚拟接口的详细数据,如虚拟网络ID、MAC地址、IP地址等;根据虚拟交换机标识和虚拟交换机端口标识来配置与虚拟交换机标识对应的虚拟交换机的转发表项,之后将于虚拟交换机端口标识对应的虚拟交换机的目标端口接入到虚拟接口标识对应的虚拟网络,以此来完成对虚拟交换机的网络配置。Specifically, after obtaining the port data of the virtual switch, the SDN controller queries the detailed data of the virtual interface, such as virtual network ID, MAC address, IP address, etc., according to the virtual interface identifier as a key value; according to the virtual switch identifier and the virtual switch port ID to configure the forwarding entry of the virtual switch corresponding to the virtual switch ID, and then connect the target port of the virtual switch corresponding to the virtual switch port ID to the virtual network corresponding to the virtual interface ID to complete the virtual switch Network Configuration.
本实施例中,SDN控制器接收代理组件通过云控制平台节点发送的虚拟交换机端口数据,其中,虚拟交换机端口数据包含虚拟接口标识、虚拟交换机标识和虚拟交换机端口标识;根据虚拟交换机端口数据配置虚拟交换机的转发表项,并将与虚拟交换机端口标识对应的虚拟交换机目标端口接入与虚拟接口标识对应的虚拟网络,完成对虚拟交换机的网络配置。解决了现有技术中SDN控制器与虚拟交换机数据库之间的连接是短连接,SDN控制器并不维护大量的数据库会话连接,只有在需要访问虚拟交换机数据库时,SDN控制器才主动创建数据 库连接,访问完毕后关闭连接,这存在一定的资源开销,访问的效率并不高的技术问题。In this embodiment, the SDN controller receives the virtual switch port data sent by the proxy component through the cloud control platform node, wherein the virtual switch port data includes a virtual interface identifier, a virtual switch identifier, and a virtual switch port identifier; the virtual switch port is configured according to the virtual switch port data. The forwarding table entry of the switch, and the virtual switch target port corresponding to the virtual switch port identifier is connected to the virtual network corresponding to the virtual interface identifier to complete the network configuration of the virtual switch. Solve the problem that the connection between the SDN controller and the virtual switch database in the prior art is a short connection, the SDN controller does not maintain a large number of database session connections, and only when it needs to access the virtual switch database, the SDN controller will actively create a database connection , close the connection after the access is completed, which has a certain resource overhead, and the access efficiency is not high.
本公开的一个实施例涉及一种网络配置方法,应用在SDN控制器上,如图5所示,包括:An embodiment of the present disclosure relates to a network configuration method, which is applied on an SDN controller, as shown in FIG. 5, including:
步骤401,接收代理组件通过云控制平台节点发送的虚拟交换机端口数据,其中,虚拟交换机端口数据包含虚拟接口标识、虚拟交换机标识和虚拟交换机端口标识。 Step 401, receiving the virtual switch port data sent by the proxy component through the cloud control platform node, wherein the virtual switch port data includes a virtual interface identifier, a virtual switch identifier and a virtual switch port identifier.
具体的说,本步骤与本公开实施例的步骤301大致相同,此处不一一赘述。Specifically, this step is substantially the same as step 301 in the embodiment of the present disclosure, and details are not repeated here.
步骤402,接收虚拟交换机通过OpenFlow协议发送的各端口状态。 Step 402, receiving the status of each port sent by the virtual switch through the OpenFlow protocol.
具体的说,虚拟交换机还可以通过OpenFlow协议于SDN控制器进行通信,可以将虚拟交换机的各个端口状态发送至SDN控制器;但由于现有的OpenFlow协议中并未预留传输其他信息的通道,导致虚拟交换机无法通过OpenFlow协议将虚拟交换机端口数据发送至SDN控制器。Specifically, the virtual switch can also communicate with the SDN controller through the OpenFlow protocol, and can send the status of each port of the virtual switch to the SDN controller; but since the existing OpenFlow protocol does not reserve a channel for transmitting other information, As a result, the virtual switch cannot send the virtual switch port data to the SDN controller through the OpenFlow protocol.
步骤403,从各端口状态中获取与虚拟交换机端口标识对应的虚拟交换机目标端口的端口状态。 Step 403, acquire the port status of the virtual switch target port corresponding to the virtual switch port identifier from the port status.
具体的说,虚拟交换机所传输的端口状态包含了该虚拟交换机上所有端口的端口状态,SDN控制器需要根据虚拟交换机目标端口从所有的端口状态识别出与虚拟交换机目标端口对应的端口状态。Specifically, the port state transmitted by the virtual switch includes the port states of all ports on the virtual switch, and the SDN controller needs to identify the port state corresponding to the virtual switch target port from all port states according to the virtual switch target port.
步骤404,当虚拟交换机目标端口的端口状态为正常时,根据虚拟交换机端口数据配置虚拟交换机的转发表项,并将与虚拟交换机端口标识对应的虚拟交换机目标端口接入与虚拟接口标识对应的虚拟网络,完成对虚拟交换机的网络配置。 Step 404, when the port state of the target port of the virtual switch is normal, configure the forwarding entry of the virtual switch according to the port data of the virtual switch, and connect the target port of the virtual switch corresponding to the port identifier of the virtual switch to the virtual switch corresponding to the virtual interface identifier. Network to complete the network configuration of the virtual switch.
具体的说,只有当虚拟交换机目标端口的端口状态为正常时,才会进行虚拟交换机的网络配置,网络配置的具体过程与本公开实施例的步骤302大致相同,此处不一一赘述。Specifically, only when the port status of the target port of the virtual switch is normal, the network configuration of the virtual switch will be performed. The specific process of network configuration is roughly the same as step 302 in the embodiment of the present disclosure, and will not be repeated here.
本公开的实施方式,在其他实施例的基础之上还可以对虚拟交换机目标端口的状态进行判断,提高SDN控制器对虚拟交换机网络配置的成功率。In the implementation manner of the present disclosure, on the basis of other embodiments, the state of the target port of the virtual switch can also be judged, so as to improve the success rate of the SDN controller in configuring the virtual switch network.
本公开的一个实施例涉及一种网络配置方法,如图6所示,包括:An embodiment of the present disclosure relates to a network configuration method, as shown in FIG. 6 , including:
步骤501,接收云控制平台节点发送的虚拟网络创建请求,并根据虚拟网络创建请求创建虚拟网络。Step 501: Receive a virtual network creation request sent by a cloud control platform node, and create a virtual network according to the virtual network creation request.
具体的说,SDN控制器在接收其他任何信息之前,需要先接收云控制平台节点中的网络服务组件发送的虚拟网络创建请求,并根据该虚拟网络创建请求创建一个虚拟网络,设置为后续进行虚拟交换机的网络配置。Specifically, before receiving any other information, the SDN controller needs to receive the virtual network creation request sent by the network service component in the node of the cloud control platform, and create a virtual network according to the virtual network creation request, and set it for subsequent virtualization. The network configuration of the switch.
步骤502,接收代理组件通过云控制平台节点发送的虚拟交换机端口数据,其中,虚拟交换机端口数据包含虚拟接口标识、虚拟交换机标识和虚拟交换机端口标识。 Step 502, receiving the virtual switch port data sent by the agent component through the cloud control platform node, wherein the virtual switch port data includes a virtual interface identifier, a virtual switch identifier and a virtual switch port identifier.
具体的说,本步骤与本公开实施例的步骤301大致相同,此处不一一赘述。Specifically, this step is substantially the same as step 301 in the embodiment of the present disclosure, and details are not repeated here.
步骤503,根据虚拟交换机端口数据配置虚拟交换机的转发表项,并将与虚拟交换机端口标识对应的虚拟交换机目标端口接入与虚拟接口标识对应的虚拟网络,完成对虚拟交换机的网络配置。 Step 503, configure the forwarding entry of the virtual switch according to the virtual switch port data, and connect the virtual switch target port corresponding to the virtual switch port ID to the virtual network corresponding to the virtual interface ID, and complete the network configuration of the virtual switch.
具体的说,本步骤与本公开实施例的步骤302大致相同,此处不一一赘述。Specifically, this step is substantially the same as step 302 in the embodiment of the present disclosure, and details are not repeated here.
本公开的另一个实施例涉及一种代理组件,下面对本实施例的代理组件的细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本例的必须,图7是本实施例所述的代理组件的示意图,包括:接收模块601、实例化模块602、连接模块603、发送模块604。Another embodiment of the present disclosure relates to a proxy component. The details of the proxy component in this embodiment will be described in detail below. The following content is only the implementation details provided for the convenience of understanding, and is not necessary for the implementation of this embodiment. FIG. 7 is the implementation A schematic diagram of the proxy component described in the example, including: a receiving module 601 , an instantiation module 602 , a connection module 603 , and a sending module 604 .
其中,接收模块601,设置为接收云控制平台节点发送的虚拟机实例化请求和虚拟接口 数据,其中,虚拟接口数据包含虚拟接口标识;Wherein, the receiving module 601 is configured to receive the virtual machine instantiation request and the virtual interface data sent by the cloud control platform node, wherein the virtual interface data includes the virtual interface identification;
实例化模块602,设置为根据虚拟机实例化请求创建实例化虚拟机,并根据虚拟接口数据为实例化虚拟机配置虚拟网卡;The instantiation module 602 is configured to create an instantiated virtual machine according to a virtual machine instantiation request, and configure a virtual network card for the instantiated virtual machine according to the virtual interface data;
连接模块603,设置为根据预设的连接条件按配置虚拟网卡和虚拟交换机的端口的连接关系,并根据连接关系将虚拟接口标识写入虚拟交换机数据库中,其中,虚拟交换机数据库设置为存储端口的虚拟交换机端口数据;The connection module 603 is configured to configure the connection relationship between the virtual network card and the port of the virtual switch according to the preset connection conditions, and write the virtual interface identifier into the virtual switch database according to the connection relationship, wherein the virtual switch database is set to store the ports. virtual switch port data;
发送模块604,设置为从虚拟交换机数据库中获取与端口对应的虚拟交换机端口数据,并通过云控制平台节点发送至软件定义网络SDN控制器,以使SDN控制器根据虚拟交换机端口数据完成对虚拟交换机的网络配置。The sending module 604 is configured to obtain the virtual switch port data corresponding to the port from the virtual switch database, and send it to the software-defined network SDN controller through the cloud control platform node, so that the SDN controller completes the virtual switch according to the virtual switch port data. network configuration.
本公开的另一个实施例涉及一种控制器,下面对本实施例的控制器的细节进行具体的说明,以下内容仅为方便理解提供的实现细节,并非实施本例的必须,图8是本实施例所述的控制器的示意图,包括:接收模块701、配置模块702。Another embodiment of the present disclosure relates to a controller. The details of the controller in this embodiment will be described in detail below. The following content is only the implementation details provided for the convenience of understanding, and is not necessary for the implementation of this embodiment. FIG. 8 is the A schematic diagram of the controller described in the example, including: a receiving module 701 and a configuration module 702 .
其中,接收模块701,接收计算服务代理组件通过云控制平台节点发送的虚拟交换机端口数据,其中,虚拟交换机端口数据包含虚拟接口标识、虚拟交换机标识和虚拟交换机端口标识;Wherein, the receiving module 701 receives the virtual switch port data sent by the computing service agent component through the cloud control platform node, wherein the virtual switch port data includes a virtual interface identifier, a virtual switch identifier and a virtual switch port identifier;
配置模块702,根据虚拟交换机端口数据配置虚拟交换机的转发表项,并将与虚拟交换机端口标识对应的虚拟交换机目标端口接入与虚拟接口标识对应的虚拟网络,完成对虚拟交换机的网络配置。The configuration module 702 configures the forwarding entry of the virtual switch according to the virtual switch port data, and connects the virtual switch target port corresponding to the virtual switch port identifier to the virtual network corresponding to the virtual interface identifier, and completes the network configuration of the virtual switch.
不难发现,本实施例为与上述方法实施例对应的系统实施例,本实施例可以与上述方法实施例互相配合实施。上述实施例中提到的相关技术细节和技术效果在本实施例中依然有效,为了减少重复,这里不再赘述。相应地,本实施例中提到的相关技术细节也可应用在上述实施例中。It is not difficult to find that this embodiment is a system embodiment corresponding to the above method embodiment, and this embodiment can be implemented in cooperation with the above method embodiment. The relevant technical details and technical effects mentioned in the above embodiments are still valid in this embodiment, and will not be repeated here to reduce repetition. Correspondingly, the relevant technical details mentioned in this embodiment can also be applied in the above embodiments.
值得一提的是,本实施例中所涉及到的各模块均为逻辑模块,在实际应用中,一个逻辑单元可以是一个物理单元,也可以是一个物理单元的一部分,还可以以多个物理单元的组合实现。此外,为了突出本公开实施例的创新部分,本实施例中并没有将与解决本公开实施例所提出的技术问题关系不太密切的单元引入,但这并不表明本实施例中不存在其它的单元。It is worth mentioning that all the modules involved in this embodiment are logical modules. In practical applications, a logical unit can be a physical unit, or a part of a physical unit, or multiple physical units. Combination of units. In addition, in order to highlight the innovative parts of the embodiments of the present disclosure, this embodiment does not introduce units that are not closely related to solving the technical problems raised by the embodiments of the present disclosure, but this does not mean that there are no other elements in this embodiment unit.
本公开另一个实施例涉及一种电子设备,如图9所示,包括:至少一个处理器801;以及,与所述至少一个处理器801通信连接的存储器802;其中,所述存储器802存储有可被所述至少一个处理器801执行的指令,所述指令被所述至少一个处理器801执行,以使所述至少一个处理器801能够执行上述各实施例中的网络配置方法。Another embodiment of the present disclosure relates to an electronic device, as shown in FIG. 9 , including: at least one processor 801; and a memory 802 communicatively connected to the at least one processor 801; wherein, the memory 802 stores Instructions that can be executed by the at least one processor 801, the instructions are executed by the at least one processor 801, so that the at least one processor 801 can execute the network configuration methods in the foregoing embodiments.
其中,存储器和处理器采用总线方式连接,总线可以包括任意数量的互联的总线和桥,总线将一个或多个处理器和存储器的各种电路连接在一起。总线还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口在总线和收发机之间提供接口。收发机可以是一个元件,也可以是多个元件,比如多个接收器和发送器,提供用于在传输介质上与各种其他装置通信的单元。经处理器处理的数据通过天线在无线介质上进行传输,进一步,天线还接收数据并将数据传送给处理器。Wherein, the memory and the processor are connected by a bus, and the bus may include any number of interconnected buses and bridges, and the bus connects one or more processors and various circuits of the memory together. The bus may also connect together various other circuits such as peripherals, voltage regulators, and power management circuits, all of which are well known in the art and therefore will not be further described herein. The bus interface provides an interface between the bus and the transceivers. A transceiver may be a single element or multiple elements, such as multiple receivers and transmitters, providing means for communicating with various other devices over a transmission medium. The data processed by the processor is transmitted on the wireless medium through the antenna, further, the antenna also receives the data and transmits the data to the processor.
处理器负责管理总线和通常的处理,还可以提供各种功能,包括定时,外围接口,电压调节、电源管理以及其他控制功能。而存储器可以被设置为存储处理器在执行操作时所使用 的数据。The processor is responsible for managing the bus and general processing, and can also provide various functions, including timing, peripheral interface, voltage regulation, power management, and other control functions. Instead, the memory may be configured to store data used by the processor when performing operations.
本公开另一个实施例涉及一种计算机可读存储介质,存储有计算机程序。计算机程序被处理器执行时实现上述方法实施例。Another embodiment of the present disclosure relates to a computer-readable storage medium storing a computer program. The above method embodiments are implemented when the computer program is executed by the processor.
即,本领域技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。That is, those skilled in the art can understand that all or part of the steps in the method of the above-mentioned embodiments can be completed by instructing related hardware through a program, the program is stored in a storage medium, and includes several instructions to make a device ( It may be a single-chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present disclosure. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc, etc., which can store program codes. .
本领域的普通技术人员可以理解,上述各实施方式是实现本公开的具体实施例,而在实际应用中,可以在形式上和细节上对其作各种改变,而不偏离本公开的精神和范围。Those of ordinary skill in the art can understand that the above-mentioned embodiments are specific examples for realizing the present disclosure, and in practical applications, various changes can be made in form and details without departing from the spirit and spirit of the present disclosure. scope.

Claims (10)

  1. 一种网络配置方法,应用在计算节点的代理组件上,所述计算节点还包括虚拟交换机和虚拟交换机数据库,所述方法包括:A network configuration method, applied to an agent component of a computing node, the computing node also includes a virtual switch and a virtual switch database, the method comprising:
    接收云控制平台节点发送的虚拟机实例化请求和虚拟接口数据,其中,所述虚拟接口数据包含虚拟接口标识;Receiving a virtual machine instantiation request and virtual interface data sent by a cloud control platform node, wherein the virtual interface data includes a virtual interface identifier;
    根据所述虚拟机实例化请求创建实例化虚拟机,并根据所述虚拟接口数据为所述实例化虚拟机配置虚拟网卡;Create an instantiated virtual machine according to the virtual machine instantiation request, and configure a virtual network card for the instantiated virtual machine according to the virtual interface data;
    根据预设的连接条件配置所述虚拟网卡和所述虚拟交换机的端口的连接关系,并根据所述连接关系将所述虚拟接口标识写入所述虚拟交换机数据库中,其中,所述虚拟交换机数据库设置为存储所述端口的虚拟交换机端口数据;Configure the connection relationship between the virtual network card and the port of the virtual switch according to preset connection conditions, and write the virtual interface identifier into the virtual switch database according to the connection relationship, wherein the virtual switch database configured to store virtual switch port data for said port;
    从所述虚拟交换机数据库中获取与所述端口对应的所述虚拟交换机端口数据,并通过所述云控制平台节点发送至软件定义网络SDN控制器,以使所述SDN控制器根据所述虚拟交换机端口数据完成对所述虚拟交换机的网络配置。Obtain the virtual switch port data corresponding to the port from the virtual switch database, and send it to the software-defined network SDN controller through the cloud control platform node, so that the SDN controller according to the virtual switch The port data completes the network configuration of the virtual switch.
  2. 根据权利要求1所述的网络配置方法,其中,所述云控制平台节点包含计算服务组件和网络服务组件;The network configuration method according to claim 1, wherein the cloud control platform node includes a computing service component and a network service component;
    所述接收云控制平台节点发送的虚拟机实例化请求和虚拟接口数据具体包括:The receiving virtual machine instantiation request and virtual interface data sent by the cloud control platform node specifically includes:
    当接收到所述计算服务组件发送的所述虚拟机实例化请求时,向所述网络服务组件发送虚拟接口创建请求,以使所述网络服务组件根据所述虚拟接口创建请求创建虚拟接口,并为所述虚拟接口分配虚拟接口数据;When receiving the virtual machine instantiation request sent by the computing service component, sending a virtual interface creation request to the network service component, so that the network service component creates a virtual interface according to the virtual interface creation request, and allocating virtual interface data for the virtual interface;
    接收所述网络服务组件返回的所述虚拟接口数据。The virtual interface data returned by the network service component is received.
  3. 根据权利要求1所述的流量检测方法,其中,所述根据预设的连接条件按配置所述虚拟网卡和所述虚拟交换机的端口的连接关系之前还包括:The traffic detection method according to claim 1, wherein, before configuring the connection relationship between the virtual network card and the port of the virtual switch according to the preset connection condition, it further includes:
    向所述虚拟交换机发送端口创建请求,以使所述虚拟交换机根据所述端口创建请求创建所述端口。sending a port creation request to the virtual switch, so that the virtual switch creates the port according to the port creation request.
  4. 一种网络配置方法,应用在SDN控制器上,所述方法包括:A network configuration method applied on an SDN controller, said method comprising:
    接收计算服务代理组件通过云控制平台节点发送的虚拟交换机端口数据,其中,所述虚拟交换机端口数据包含虚拟接口标识、虚拟交换机标识和虚拟交换机端口标识;Receiving the virtual switch port data sent by the computing service agent component through the cloud control platform node, wherein the virtual switch port data includes a virtual interface identifier, a virtual switch identifier and a virtual switch port identifier;
    根据所述虚拟交换机端口数据配置虚拟交换机的转发表项,并将与所述虚拟交换机端口标识对应的虚拟交换机目标端口接入与所述虚拟接口标识对应的虚拟网络,完成对所述虚拟交换机的网络配置。Configure the forwarding table entry of the virtual switch according to the virtual switch port data, and connect the virtual switch target port corresponding to the virtual switch port identifier to the virtual network corresponding to the virtual interface identifier, and complete the virtual switch for the virtual switch Network Configuration.
  5. 根据权利要求4所述的网络配置方法,其中,所述根据所述虚拟交换机端口数据配置虚拟交换机的转发表项之前还包括:The network configuration method according to claim 4, wherein, before configuring the forwarding entry of the virtual switch according to the virtual switch port data, it also includes:
    接收所述虚拟交换机通过OpenFlow协议发送的各端口状态;Receiving the status of each port sent by the virtual switch through the OpenFlow protocol;
    从所述各端口状态中获取与所述虚拟交换机端口标识对应的所述虚拟交换机目标端口的端口状态;Acquire the port status of the virtual switch target port corresponding to the virtual switch port identifier from the port statuses;
    当所述虚拟交换机目标端口的端口状态为正常时,则根据所述虚拟交换机端口数据配置虚拟交换机的转发表项。When the port state of the target port of the virtual switch is normal, configure the forwarding entry of the virtual switch according to the port data of the virtual switch.
  6. 根据权利要求4所述的网络配置方法,其中,所述接收计算服务代理组件通过云控制平台节点发送的虚拟交换机端口数据之前还包括:The network configuration method according to claim 4, wherein, before receiving the virtual switch port data sent by the computing service agent component through the cloud control platform node, it also includes:
    接收所述云控制平台节点发送的虚拟网络创建请求,并根据所述虚拟网络创建请求创建所述虚拟网络。receiving the virtual network creation request sent by the cloud control platform node, and creating the virtual network according to the virtual network creation request.
  7. 一种代理组件,包括:A proxy component comprising:
    接收模块,设置为接收云控制平台节点发送的虚拟机实例化请求和虚拟接口数据,其中,所述虚拟接口数据包含虚拟接口标识;The receiving module is configured to receive a virtual machine instantiation request and virtual interface data sent by a cloud control platform node, wherein the virtual interface data includes a virtual interface identifier;
    实例化模块,设置为根据所述虚拟机实例化请求创建实例化虚拟机,并根据所述虚拟接口数据为所述实例化虚拟机配置虚拟网卡;The instantiation module is configured to create an instantiated virtual machine according to the instantiation request of the virtual machine, and configure a virtual network card for the instantiated virtual machine according to the virtual interface data;
    连接模块,根据预设的连接条件按配置所述虚拟网卡和所述虚拟交换机的端口的连接关系,并根据所述连接关系将所述虚拟接口标识写入所述虚拟交换机数据库中,其中,所述虚拟交换机数据库设置为存储所述端口的虚拟交换机端口数据;The connection module configures the connection relationship between the virtual network card and the port of the virtual switch according to preset connection conditions, and writes the virtual interface identifier into the virtual switch database according to the connection relationship, wherein the The virtual switch database is set to store the virtual switch port data of the port;
    发送模块,设置为从所述虚拟交换机数据库中获取与所述端口对应的所述虚拟交换机端口数据,并通过所述云控制平台节点发送至软件定义网络SDN控制器,以使所述SDN控制器根据所述虚拟交换机端口数据完成对所述虚拟交换机的网络配置。A sending module, configured to obtain the virtual switch port data corresponding to the port from the virtual switch database, and send it to the software-defined network SDN controller through the cloud control platform node, so that the SDN controller The network configuration of the virtual switch is completed according to the port data of the virtual switch.
  8. 一种控制器,包括:A controller comprising:
    接收模块,设置为接收计算服务代理组件通过云控制平台节点发送的虚拟交换机端口数据,其中,所述虚拟交换机端口数据包含虚拟接口标识、虚拟交换机标识和虚拟交换机端口标识;The receiving module is configured to receive the virtual switch port data sent by the computing service agent component through the cloud control platform node, wherein the virtual switch port data includes a virtual interface identifier, a virtual switch identifier and a virtual switch port identifier;
    配置模块,设置为根据所述虚拟交换机端口数据配置虚拟交换机的转发表项,并将与所述虚拟交换机端口标识对应的虚拟交换机目标端口接入与所述虚拟接口标识对应的虚拟网络,完成对所述虚拟交换机的网络配置。The configuration module is configured to configure the forwarding table item of the virtual switch according to the virtual switch port data, and connect the virtual switch target port corresponding to the virtual switch port identifier to the virtual network corresponding to the virtual interface identifier to complete the pairing The network configuration of the virtual switch.
  9. 一种电子设备,包括:An electronic device comprising:
    至少一个处理器;以及,at least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至3中任一项所述的网络配置方法,或者能够实现如权利要求4至6中任一项所述的网络配置方法。The memory stores instructions executable by the at least one processor, the instructions are executed by the at least one processor, so that the at least one processor can perform the operation described in any one of claims 1 to 3 The network configuration method described above, or the network configuration method described in any one of claims 4 to 6 can be implemented.
  10. 一种计算机可读存储介质,存储有计算机程序,其中,所述计算机程序被处理器执行时实现权利要求1至3中任一项所述的网络配置方法,或者实现如权利要求4至6中任一项所述的网络配置方法。A computer-readable storage medium storing a computer program, wherein, when the computer program is executed by a processor, the network configuration method according to any one of claims 1 to 3 is realized, or the network configuration method according to any one of claims 4 to 6 is realized. The network configuration method described in any one.
PCT/CN2022/106306 2021-09-13 2022-07-18 Network configuration method, proxy component, controller, electronic device and storage medium WO2023035777A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111068217.2 2021-09-13
CN202111068217.2A CN115811465A (en) 2021-09-13 2021-09-13 Network configuration method, agent component, controller, electronic device, and storage medium

Publications (1)

Publication Number Publication Date
WO2023035777A1 true WO2023035777A1 (en) 2023-03-16

Family

ID=85481044

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/106306 WO2023035777A1 (en) 2021-09-13 2022-07-18 Network configuration method, proxy component, controller, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN115811465A (en)
WO (1) WO2023035777A1 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391568A (en) * 2014-09-05 2016-03-09 华为技术有限公司 SDN (Software Defined Network) implementation method, device and system
CN105429811A (en) * 2016-01-11 2016-03-23 刘昱 Network management system and method
US20190042298A1 (en) * 2018-09-27 2019-02-07 Intel Corporation Technologies for adaptive platform resource assignment
CN109587286A (en) * 2018-12-27 2019-04-05 新华三技术有限公司 A kind of equipment connection control method and device
CN110912725A (en) * 2018-09-18 2020-03-24 北京邮电大学 Configuration method and configuration device of OpenFlow virtual switch
WO2021093455A1 (en) * 2019-11-13 2021-05-20 迈普通信技术股份有限公司 Virtual machine access method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391568A (en) * 2014-09-05 2016-03-09 华为技术有限公司 SDN (Software Defined Network) implementation method, device and system
CN105429811A (en) * 2016-01-11 2016-03-23 刘昱 Network management system and method
CN110912725A (en) * 2018-09-18 2020-03-24 北京邮电大学 Configuration method and configuration device of OpenFlow virtual switch
US20190042298A1 (en) * 2018-09-27 2019-02-07 Intel Corporation Technologies for adaptive platform resource assignment
CN109587286A (en) * 2018-12-27 2019-04-05 新华三技术有限公司 A kind of equipment connection control method and device
WO2021093455A1 (en) * 2019-11-13 2021-05-20 迈普通信技术股份有限公司 Virtual machine access method and device

Also Published As

Publication number Publication date
CN115811465A (en) 2023-03-17

Similar Documents

Publication Publication Date Title
US10541877B2 (en) Dynamic reservation protocol for 5G network slicing
US10698717B2 (en) Accelerator virtualization method and apparatus, and centralized resource manager
US10824454B2 (en) 5G dynamic slice and network identity instantiation, termination, and access management system and method
US8572288B2 (en) Single logical network interface for advanced load balancing and fail-over functionality
WO2018006381A1 (en) Network resource management method, apparatus and system
WO2019137516A1 (en) Network slice deployment method and apparatus
CN107133109B (en) Method and device for communication between modules and computing equipment
CN110224917B (en) Data transmission method, device and system and server
CN113709707B (en) Method and device for sidecar deployment in service grid, electronic equipment and storage medium
WO2018153355A1 (en) Control information transmission method, server, and system
EP4109251A1 (en) Vnf instantiation method and device
WO2021175105A1 (en) Connection method and apparatus, device, and storage medium
EP4083795A1 (en) Method for deploying virtual machine, and related apparatus
JP2024501005A (en) Management method and device for container clusters
CN112073555A (en) Method for configuring IP address, electronic device and computer readable storage medium
WO2023035777A1 (en) Network configuration method, proxy component, controller, electronic device and storage medium
WO2021022947A1 (en) Method for deploying virtual machine and related device
WO2018145267A1 (en) Forwarder network-access recognition method, sdn controller, and forwarder
WO2020249080A1 (en) Virtual network function (vnf) deployment method and apparatus
CN114531320A (en) Communication method, device, equipment, system and computer readable storage medium
CN114124740A (en) VNF instantiation method and device
EP4149062A1 (en) Deployment method and apparatus for virtualized network service
EP4274197A1 (en) Data communication managing component and method for performing guaranteed performance data communication
CN116800616B (en) Management method and related device of virtualized network equipment
WO2022127667A1 (en) Virtual network element-based service configuration method and system, virtual network element, and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22866252

Country of ref document: EP

Kind code of ref document: A1