技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种裸金属服务器的虚拟网络配置方法、系统及智能网卡。The present invention relates to the field of communication technology, and in particular to a virtual network configuration method, system and intelligent network card for a bare metal server.
背景技术Background technique
裸金属服务器(Bare Metal Server,BMS),是指未安装操作系统的物理服务器。BMS支持用户自定义安装操作系统(Operating System,OS)。相对于虚拟机,物理服务器具有计算能力强、资源独占、安全隔离等优点。相关技术中,可以使用OpenStack Ironic提供裸金属服务,其中,OpenStack是一个开源的云计算管理平台项目,Ironic是OpenStack的一个子项目,专门用于提供裸机服务。Ironic可以为用户提供自助式的裸金属服务器管理服务。Bare Metal Server (BMS) refers to a physical server without an operating system installed. BMS supports user-defined installation of the operating system (Operating System, OS). Compared with virtual machines, physical servers have the advantages of strong computing power, exclusive resources, and security isolation. Among related technologies, OpenStack Ironic can be used to provide bare metal services. OpenStack is an open source cloud computing management platform project, and Ironic is a sub-project of OpenStack specifically used to provide bare metal services. Ironic can provide users with self-service bare metal server management services.
OpenStack Ironic技术中,对于被管理的裸金属服务器而言,主要包括上架自检阶段(Inspection)、部署阶段(Provision)以及回收阶段(Clean)这三个阶段。上架自检阶段指的是,当物理服务器完成硬件安装、网络连线等工作后,由管理员将裸机的信息注册到Ironic架构中进行纳管。该阶段中,根据需要可以应用Ironic Inspector的功能实现裸机硬件配置信息以及上联交换机信息的自动采集,即裸金属服务器的自检。部署阶段指的是,当物理服务器完成上架后,处于可用状态,租户(或用户)根据业务需要指定镜像、网络等信息创建裸金属服务器实例。回收阶段指的是,当物理服务器完成使用,由租户(或用户)申请释放资源。In OpenStack Ironic technology, the managed bare metal servers mainly include three stages: self-inspection stage (Inspection), deployment stage (Provision) and recycling stage (Clean). The self-inspection stage refers to when the physical server completes hardware installation, network connection, etc., and the administrator registers the bare metal information into the Ironic architecture for management. In this stage, the function of Ironic Inspector can be used as needed to automatically collect bare metal hardware configuration information and uplink switch information, that is, self-inspection of bare metal servers. The deployment phase refers to when the physical server is put on the shelf and is in an available state. Tenants (or users) create bare metal server instances by specifying image, network and other information according to business needs. The recycling phase refers to when the physical server completes its use and the tenant (or user) applies to release resources.
相关技术中,在上架自检阶段和部署阶段,需要通过智能平台管理接口(Intelligent Platform Management Interface,IPMI)配合物理交换机,来配置裸金属服务器的网络信息,以便裸金属服务器能够接入局域网、公网。其中,在上架自检阶段,通过IPMI发现裸金属服务;在部署阶段,用户通过IPMI平台管理工具和物理交换机为裸金属服务器人工配置网络信息。In related technologies, during the self-inspection stage and deployment stage, it is necessary to configure the network information of the bare metal server through the Intelligent Platform Management Interface (IPMI) in conjunction with the physical switch, so that the bare metal server can access the LAN and public network. net. Among them, during the self-inspection stage, bare metal services are discovered through IPMI; during the deployment stage, users manually configure network information for bare metal servers through IPMI platform management tools and physical switches.
相关技术中,需要人工配置裸金属服务器的网络,人工错误对网络连通性影响较大,这导致裸金属服务器的网络的可管理性较差。In related technologies, a network of bare metal servers needs to be manually configured, and manual errors have a greater impact on network connectivity, which results in poor manageability of the network of bare metal servers.
发明内容Contents of the invention
有鉴于此,本发明实施例期望提供一种裸金属服务器的虚拟网络配置方法、系统及智能网卡,以解决相关技术中需要人工配置裸金属服务器的网络的问题。In view of this, embodiments of the present invention are expected to provide a virtual network configuration method, system and smart network card for a bare metal server, so as to solve the problem in related technologies that manual configuration of a bare metal server network is required.
为达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above objects, the technical solution of the present invention is implemented as follows:
本发明实施例提供一种裸金属服务器的虚拟网络配置系统,包括:An embodiment of the present invention provides a virtual network configuration system for a bare metal server, including:
云服务器,用于获取网络配置请求,触发控制器为待配置的裸金属服务器分配网络配置信息;所述网络配置请求用于请求配置所述裸金属服务器的虚拟网络;The cloud server is used to obtain a network configuration request and trigger the controller to allocate network configuration information to the bare metal server to be configured; the network configuration request is used to request the configuration of a virtual network of the bare metal server;
智能网卡,用于获取所述网络配置信息,基于虚拟交换机向裸金属服务器发送所述网络配置信息;所述虚拟交换机预先卸载在所述智能网卡中;A smart network card is used to obtain the network configuration information and send the network configuration information to the bare metal server based on a virtual switch; the virtual switch is pre-installed in the smart network card;
所述裸金属服务器,用于获取所述网络配置信息,在成功安装操作系统之后,根据所述网络配置信息配置虚拟网络。The bare metal server is used to obtain the network configuration information, and after successfully installing the operating system, configure a virtual network according to the network configuration information.
上述方案中,所述智能网卡还用于:获取流表,由所述虚拟交换机根据所述流表控制所述虚拟网络的网络流量;所述流表由所述控制器基于获取到的流表配置指令配置得到,或由所述控制器接收到。In the above solution, the smart network card is also used to: obtain a flow table, and the virtual switch controls the network traffic of the virtual network according to the flow table; the flow table is controlled by the controller based on the obtained flow table. Configuration instructions are configured or received by the controller.
上述方案中,所述智能网卡还用于:In the above solution, the smart network card is also used for:
在成功接入所述裸金属服务器之后,创建虚拟网口;所述虚拟网口用于供所述裸金属服务器根据所述网络配置信息配置所述虚拟网口对应的虚拟网络;After successfully accessing the bare metal server, create a virtual network port; the virtual network port is used for the bare metal server to configure a virtual network corresponding to the virtual network port according to the network configuration information;
获取两个属于不同网段的互联网协议IP地址,根据所述两个属于不同网段的IP地址创建业务网络和管理网络;所述业务网络表征承载所述虚拟网络的物理网络,用于在所述裸金属服务器成功配置所述虚拟网络后,传输经由所述虚拟网络对应的所述虚拟网口的数据包;所述管理网络表征承载所述云服务器、所述控制器和所述裸金属服务器之间的通信的物理网络,用于传输所述网络配置信息。Obtain two Internet Protocol IP addresses belonging to different network segments, and create a business network and a management network based on the two IP addresses belonging to different network segments; the business network represents the physical network that carries the virtual network and is used in the After the bare metal server successfully configures the virtual network, it transmits data packets through the virtual network port corresponding to the virtual network; the management network representation carries the cloud server, the controller and the bare metal server Communication between physical networks, used to transmit the network configuration information.
上述方案中,所述控制器用于:获取所述云服务器发送的网络配置请求,根据所述网络配置请求为所述裸金属服务器分配所述网络配置信息,向所述智能网卡发送所述网络配置信息。In the above solution, the controller is configured to: obtain a network configuration request sent by the cloud server, allocate the network configuration information to the bare metal server according to the network configuration request, and send the network configuration to the smart network card. information.
上述方案中,所述控制器预先卸载在所述智能网卡中;所述智能网卡用于:获取所述云服务器发送的网络配置请求,由所述控制器根据所述网络配置请求确定出所述网络配置信息。In the above solution, the controller is pre-installed in the smart network card; the smart network card is used to obtain the network configuration request sent by the cloud server, and the controller determines the network configuration request based on the network configuration request. Network configuration information.
本发明实施例还提供了一种裸金属服务器的虚拟网络配置方法,所述虚拟网络配置方法应用于智能网卡,所述虚拟网络配置方法包括:Embodiments of the present invention also provide a virtual network configuration method for a bare metal server. The virtual network configuration method is applied to a smart network card. The virtual network configuration method includes:
获取网络配置信息;所述网络配置信息是云服务器在获取网络配置请求之后触发控制器为待配置的裸金属服务器分配的;所述网络配置请求用于请求配置所述裸金属服务器的虚拟网络;Obtain network configuration information; the network configuration information is allocated by the cloud server to the bare metal server to be configured by triggering the controller after obtaining the network configuration request; the network configuration request is used to request the configuration of a virtual network of the bare metal server;
基于虚拟交换机向所述裸金属服务器发送所述网络配置信息;所述虚拟交换机预先卸载在所述智能网卡中;所述网络配置信息用于配置所述裸金属服务器的虚拟网络。The network configuration information is sent to the bare metal server based on a virtual switch; the virtual switch is pre-installed in the smart network card; and the network configuration information is used to configure a virtual network of the bare metal server.
上述方案中,所述基于虚拟交换机发送所述网络配置信息至所述裸金属服务器之后,还包括:In the above solution, after sending the network configuration information to the bare metal server based on the virtual switch, the method further includes:
获取流表,由所述虚拟交换机根据所述流表控制所述虚拟网络的网络流量;所述流表由所述控制器基于获取到的流表配置指令配置得到,或由所述控制器接收到。Obtain a flow table, and the virtual switch controls the network traffic of the virtual network according to the flow table; the flow table is configured by the controller based on the obtained flow table configuration instruction, or is received by the controller arrive.
上述方案中,所述获取网络配置信息之前,还包括:In the above solution, before obtaining the network configuration information, the following steps are also included:
在成功接入所述裸金属服务器之后,创建虚拟网口;所述虚拟网口用于供所述裸金属服务器根据所述网络配置信息配置所述虚拟网口对应的虚拟网络;After successfully accessing the bare metal server, create a virtual network port; the virtual network port is used for the bare metal server to configure a virtual network corresponding to the virtual network port according to the network configuration information;
获取两个属于不同网段的互联网协议IP地址,根据所述两个属于不同网段的IP地址创建业务网络和管理网络;所述业务网络表征承载所述虚拟网络的物理网络,用于在所述裸金属服务器成功配置所述虚拟网络后,传输经由所述虚拟网络对应的所述虚拟网口的数据包;所述管理网络表征承载所述云服务器、所述控制器和所述裸金属服务器之间的通信的物理网络,用于传输所述网络配置信息。Obtain two Internet Protocol IP addresses belonging to different network segments, and create a business network and a management network based on the two IP addresses belonging to different network segments; the business network represents the physical network that carries the virtual network and is used in the After the bare metal server successfully configures the virtual network, it transmits data packets through the virtual network port corresponding to the virtual network; the management network representation carries the cloud server, the controller and the bare metal server Communication between physical networks, used to transmit the network configuration information.
上述方案中,所述控制器预先卸载在所述智能网卡中;In the above solution, the controller is pre-installed in the smart network card;
其中,所述获取网络配置信息包括:Wherein, the obtaining network configuration information includes:
获取所述云服务器发送的网络配置请求,由所述控制器根据所述网络配置请求确定出所述网络配置信息。Obtain the network configuration request sent by the cloud server, and determine the network configuration information according to the network configuration request by the controller.
本发明实施例还提供了一种裸金属服务器的虚拟网络配置装置,包括:An embodiment of the present invention also provides a virtual network configuration device for a bare metal server, including:
获取单元,用于获取网络配置信息;所述网络配置信息是云服务器在获取到网络配置请求之后触发控制器为待配置的裸金属服务器分配的;所述网络配置请求用于请求配置所述裸金属服务器的虚拟网络;An acquisition unit is used to acquire network configuration information; the network configuration information is allocated by the cloud server to the bare metal server to be configured by triggering the controller after acquiring the network configuration request; the network configuration request is used to request the configuration of the bare metal server. Virtual network of metal servers;
发送单元,用于基于虚拟交换机向所述裸金属服务器发送所述网络配置信息;所述虚拟交换机预先卸载在所述智能网卡中;所述网络配置信息用于配置所述裸金属服务器的虚拟网络。A sending unit, configured to send the network configuration information to the bare metal server based on a virtual switch; the virtual switch is pre-installed in the smart network card; the network configuration information is used to configure the virtual network of the bare metal server .
本发明实施例还提供了一种智能网卡,包括:处理器和用于存储能够在处理器上运行的计算机程序的存储器,An embodiment of the present invention also provides a smart network card, including: a processor and a memory for storing a computer program that can run on the processor,
其中,所述处理器用于运行所述计算机程序时,执行上述任一种裸金属服务器的虚拟网络配置方法的步骤。Wherein, the processor is configured to execute the steps of any of the above virtual network configuration methods for a bare metal server when running the computer program.
本发明实施例还提供了一种存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任一种裸金属服务器的虚拟网络配置方法的步骤。Embodiments of the present invention also provide a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the virtual network configuration method of any of the above bare metal servers are implemented.
本发明实施例提供的方案中,云服务器在获取到网络配置请求之后,触发控制器为裸金属服务器分配网络配置信息,智能网卡可以获取网络配置信息,基于预先卸载在智能网卡中的虚拟交换机向裸金属服务器发送网络配置信息,触发裸金属服务器在成功安装操作系统之后,根据网络配置信息配置虚拟网络。上述方式,将虚拟交换机卸载在智能网卡中,可以节省裸金属服务器的计算资源和存储资源,以提高裸金属服务器的数据处理效率;控制器可以为裸金属服务器分配网络配置信息,网络配置信息经由智能网卡中的虚拟交换机传输至裸金属服务器,以实现自动化配置裸金属服务器的虚拟网络,不需要用户借助物理交换机人工配置裸金属服务器的虚拟网络,可以减少人工干预,降低人为操作对裸金属服务器的虚拟网络连通性的影响。In the solution provided by the embodiment of the present invention, after the cloud server obtains the network configuration request, it triggers the controller to allocate network configuration information to the bare metal server. The smart network card can obtain the network configuration information and send it to the virtual switch based on the virtual switch pre-installed in the smart network card. The bare metal server sends network configuration information, triggering the bare metal server to configure the virtual network based on the network configuration information after successfully installing the operating system. In the above method, offloading the virtual switch to the smart network card can save the computing resources and storage resources of the bare metal server to improve the data processing efficiency of the bare metal server; the controller can allocate network configuration information to the bare metal server, and the network configuration information passes through The virtual switch in the smart network card is transmitted to the bare metal server to realize automatic configuration of the virtual network of the bare metal server. Users do not need to use physical switches to manually configure the virtual network of the bare metal server, which can reduce manual intervention and reduce the impact of human operations on the bare metal server. The impact of virtual network connectivity.
附图说明Description of drawings
图1为本发明实施例提供的一种系统架构示意图;Figure 1 is a schematic diagram of a system architecture provided by an embodiment of the present invention;
图2为本发明实施例提供的裸金属服务器的虚拟网络配置系统的一种交互图;Figure 2 is an interaction diagram of the virtual network configuration system of a bare metal server provided by an embodiment of the present invention;
图3为本发明实施例提供的另一种系统架构示意图;Figure 3 is a schematic diagram of another system architecture provided by an embodiment of the present invention;
图4示出了本发明实施例提供的裸金属服务器的虚拟网络配置系统的另一种交互图;Figure 4 shows another interaction diagram of the virtual network configuration system of a bare metal server provided by an embodiment of the present invention;
图5为本发明实施例提供的裸金属服务器的虚拟网络配置方法的一种流程示意图;Figure 5 is a schematic flow chart of a virtual network configuration method for a bare metal server provided by an embodiment of the present invention;
图6为本发明实施例提供的裸金属服务器的虚拟网络配置装置的组成结构示意图;Figure 6 is a schematic structural diagram of a virtual network configuration device for a bare metal server provided by an embodiment of the present invention;
图7为本发明实施例提供的智能网卡的硬件组成结构示意图。FIG. 7 is a schematic diagram of the hardware structure of the smart network card provided by the embodiment of the present invention.
具体实施方式Detailed ways
下面对本发明中使用的首字母缩略词以及术语进行说明。The acronyms and terms used in the present invention are explained below.
Ovs:Openvswitch,虚拟交换机或称软件交换机;虚拟交换就是利用虚拟平台,通过软件的方式形成交换机部件。Ovs: Openvswitch, virtual switch or software switch; virtual switching uses a virtual platform to form switch components through software.
Ovs-agent:Openvswitch agent,虚拟交换机代理,主要用于驱动虚拟交换机建立隧道(tunnel),以及用于建立隧道转发数据包所需要的主要流表和默认规则;隧道是类似于环回口的虚拟接口,可用于隐藏路径。Ovs-agent: Openvswitch agent, virtual switch agent, mainly used to drive virtual switches to establish tunnels, as well as to establish the main flow tables and default rules required for tunnel forwarding packets; the tunnel is a virtual virtual switch similar to the loopback port. Interface that can be used to hide paths.
SDN:Software Defined Network,软件定义网络。SDN: Software Defined Network, software defined network.
SDN控制器:是SDN中的功能实体,负责流量控制。SDN controller: It is a functional entity in SDN and is responsible for traffic control.
Smart NIC,Smart Network Interface Card,智能网卡,其核心是通过智能网卡中的现场可编程门阵列协助服务器的处理器处理网络负载,编程网络接口功能;智能网卡具有以下特点:通常包含多个物理端口和内部交换机,快速转发数据;检测和管理网络流量。Smart NIC能够实现SDN和网络功能虚拟化(Network Functions Virtualization,NFV)的诸多优势,将网络虚拟化、负载均衡和其他低级功能从服务器的处理器中移除,确保为应用提供最大的处理能力。Smart NIC, Smart Network Interface Card, smart network card, its core is to assist the server's processor to handle network loads and program network interface functions through the field programmable gate array in the smart network card; smart network cards have the following characteristics: usually contain multiple physical ports and internal switches to quickly forward data; detect and manage network traffic. Smart NIC can realize many advantages of SDN and Network Functions Virtualization (NFV), removing network virtualization, load balancing and other low-level functions from the server's processor to ensure maximum processing power for applications.
SRIOV:Single Root I/O Virtualization,单根虚拟化。SRIOV: Single Root I/O Virtualization, single root virtualization.
VF:Virtual Function是支持SRIOV的物理网卡所虚拟出的一个“网卡”或者说虚拟出来的一个实例;SRIOV VF可以理解为虚拟网卡。VF: Virtual Function is a "network card" or a virtual instance virtualized by a physical network card that supports SRIOV; SRIOV VF can be understood as a virtual network card.
VN:Virtual Network,虚拟网络,是一种包含虚拟网络连接的计算机网络。虚拟网络连接是在两个计算设备间(例如,本发明中的裸金属服务器和交换机)不包含物理连接,而是通过网络虚拟化来实现。两种最常见的虚拟网络形式为基于协议的虚拟网络和基于虚拟设备的虚拟网络,例如,本发明中基于智能网卡的虚拟交换机和虚拟网口实现的虚拟网络。VN: Virtual Network, a virtual network, is a computer network that contains virtual network connections. A virtual network connection does not include a physical connection between two computing devices (for example, a bare metal server and a switch in the present invention), but is implemented through network virtualization. The two most common forms of virtual networks are protocol-based virtual networks and virtual device-based virtual networks. For example, in the present invention, the virtual network is implemented based on a virtual switch and a virtual network port based on an intelligent network card.
以下结合说明书附图及具体实施例对本发明的技术方案做进一步的详细阐述。The technical solution of the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments of the description.
图1示出了本发明实施例提供的一种系统架构示意图。图1包括云服务器11、控制器12、至少一个智能网卡13和至少一个裸金属服务器14,一个智能网卡13与对应一个裸金属服务器14。Figure 1 shows a schematic diagram of a system architecture provided by an embodiment of the present invention. Figure 1 includes a cloud server 11, a controller 12, at least one smart network card 13 and at least one bare metal server 14. One smart network card 13 corresponds to one bare metal server 14.
云服务器11用于管理裸金属服务器,用户可以通过用户终端登录云服务器11,对裸金属服务器进行管理,例如,用户可以根据业务需求申请创建裸金属服务器实例,当用户使用完已经配置好的裸金属服务器时,申请清理裸金属服务器中的数据等。Cloud server 11 is used to manage bare metal servers. Users can log in to cloud server 11 through user terminals to manage bare metal servers. For example, users can apply to create bare metal server instances based on business needs. When the user has finished using the configured bare metal servers, When installing a metal server, apply to clean the data in the bare metal server, etc.
控制器12可以是内置有域名解析系统(Domain Name System,SDN)控制器或者Ovs-agent的节点设备。需要说明的是,图1所示的控制器12和智能网卡13是以功能模块划分的。控制器12和智能网卡13可以为分离设置于不同设备。控制器12和智能网卡13也可以合设于同一个设备。在控制器12为SDN控制器或Ovs-agent,且SDN控制器或Ovs-agent预先卸载在智能网卡中时,对应于控制器12和智能网卡13合设于同一个设备的情况。The controller 12 may be a node device with a built-in Domain Name System (Domain Name System, SDN) controller or Ovs-agent. It should be noted that the controller 12 and the intelligent network card 13 shown in Figure 1 are divided into functional modules. The controller 12 and the smart network card 13 may be separately provided in different devices. The controller 12 and the smart network card 13 can also be co-located on the same device. When the controller 12 is an SDN controller or Ovs-agent, and the SDN controller or Ovs-agent is pre-installed in the smart network card, this corresponds to the situation where the controller 12 and the smart network card 13 are co-located on the same device.
智能网卡13可以作为一个硬件部件安装在裸金属服务器14中,也可以作为一个独立的设备连接裸金属服务器14。智能网卡13中可以部署虚拟交换机,也就是说,将虚拟交换机预先卸载在智能网卡中。The smart network card 13 can be installed in the bare metal server 14 as a hardware component, or can be connected to the bare metal server 14 as an independent device. A virtual switch can be deployed in the smart network card 13, that is, the virtual switch is pre-installed in the smart network card.
在介绍了裸金属服务器的虚拟网络配置系统的架构之后,下面结合图2详细说明各设备实现虚拟网络配置的具体实现过程。After introducing the architecture of the virtual network configuration system of bare metal servers, the specific implementation process of virtual network configuration for each device will be described in detail below with reference to Figure 2.
图2示出了本发明实施例提供的裸金属服务器的虚拟网络配置系统的一种交互图。下面以控制器和智能网卡为两个分离的独立设备为例进行说明。参见图2,裸金属服务器的虚拟网络配置方法可以包括以下步骤:Figure 2 shows an interaction diagram of the virtual network configuration system of a bare metal server provided by an embodiment of the present invention. The following description takes the controller and smart network card as two separate independent devices as an example. Referring to Figure 2, the virtual network configuration method of a bare metal server may include the following steps:
S201、云服务器获取网络配置请求;所述网络配置请求用于请求配置裸金属服务器的虚拟网络。S201. The cloud server obtains a network configuration request; the network configuration request is used to request the configuration of a virtual network of the bare metal server.
网络配置请求可以包括待配置的裸金属服务器的标识信息和网络需求信息。待配置的裸金属服务器为完成硬件安装、网络连接等预配置操作的裸金属服务器。裸金属服务器的标识信息可以为裸金属服务器的唯一标识信息,例如,设备标识、媒体访问控制(MediaAccess Control Address,MAC)地址等。The network configuration request may include identification information and network requirement information of the bare metal server to be configured. The bare metal server to be configured is a bare metal server that has completed hardware installation, network connection and other pre-configuration operations. The identification information of the bare metal server may be the unique identification information of the bare metal server, for example, device identification, media access control (MediaAccess Control Address, MAC) address, etc.
网络需求信息可以包括网络类型、带宽等。网络类型可以包括:虚拟私有云(Virtual Private Cloud,VPC)、高速网络、自定义虚拟局域网(Virtual Local AreaNetwork,VLAN)网络和无限带宽(InfiniBand,IB)网络,四种网络之间相互隔离不互通。网络需求信息用于供控制器确定网络配置信息。这里,网络需求信息可以是用户输入或选择的,也可以是设定的。Network requirement information may include network type, bandwidth, etc. Network types can include: virtual private cloud (Virtual Private Cloud, VPC), high-speed network, custom virtual local area network (Virtual Local Area Network, VLAN) network and infinite bandwidth (InfiniBand, IB) network. The four types of networks are isolated from each other and cannot communicate with each other. . Network requirement information is used by the controller to determine network configuration information. Here, the network requirement information may be input or selected by the user, or may be set.
在一实施例中,云服务器可以接收用户终端发送的网络配置请求,网络配置请求是用户终端在接收到用户输入或选择的网络配置需求信息时生成的。In one embodiment, the cloud server may receive a network configuration request sent by the user terminal. The network configuration request is generated by the user terminal when it receives network configuration requirement information input or selected by the user.
例如,用户在完成预配置操作之后,可以通过用户终端的用户界面,登录用于管理裸金属服务器的云服务器,选择待配置的裸金属服务器,并根据业务需求输入网络配置需求信息,或从用户界面中选择网络配置需求信息;之后,用户可以通过用户界面触发用户终端向云服务器发送网络配置请求。预配置操作可以包括:组装裸金属服务器的硬件、将虚拟交换机卸载(即安装)在智能网卡中、将智能网卡插入待配置的裸金属服务器的预设接口、建立智能网卡与控制器之间的通信连接等。For example, after completing the preconfiguration operation, the user can log in to the cloud server used to manage bare metal servers through the user interface of the user terminal, select the bare metal server to be configured, and enter network configuration requirement information according to business needs, or obtain the information from the user. Select the network configuration requirement information in the interface; then, the user can trigger the user terminal to send a network configuration request to the cloud server through the user interface. The preconfiguration operation may include: assembling the hardware of the bare metal server, uninstalling (that is, installing) the virtual switch in the smart network card, inserting the smart network card into the preset interface of the bare metal server to be configured, and establishing the connection between the smart network card and the controller. Communication connections, etc.
其中,裸金属服务器的预设接口用于与智能网卡连接。智能网卡在检测到与裸金属服务器成功建立通信连接之后,可以获取裸金属服务器的标识信息,建立智能网卡的标识信息与裸金属服务器的标识信息之间的关联关系。之后,智能网卡可以向控制器发送该关联关系,以便控制器存储该关联关系,或者,智能网卡也可以通过控制器向云服务器发送该关联关系,以便云服务器存储该关联关系。也就是说,智能网卡的标识信息与裸金属服务器的标识信息之间的关联关系,可以存储于云服务器中,也可以存储于控制器中,此处不做限制。Among them, the default interface of the bare metal server is used to connect to the smart network card. After the smart network card detects that the communication connection is successfully established with the bare metal server, it can obtain the identification information of the bare metal server and establish an association between the identification information of the smart network card and the identification information of the bare metal server. Afterwards, the smart network card can send the association relationship to the controller so that the controller can store the association relationship, or the smart network card can also send the association relationship to the cloud server through the controller so that the cloud server can store the association relationship. In other words, the association between the identification information of the smart network card and the identification information of the bare metal server can be stored in the cloud server or in the controller. There is no restriction here.
在另一实施例中,云服务器可以获取资源配置需求信息,基于资源配置信息中的网络配置需求信息生成网络配置请求。In another embodiment, the cloud server may obtain the resource configuration requirement information and generate a network configuration request based on the network configuration requirement information in the resource configuration information.
例如,用户在用户终端的交互界面中选择待配置的裸金属服务器,并根据业务需求输入或选择该裸金属服务器的资源配置需求信息,用户终端在获取到待配置的裸金属服务器的资源配置需求信息的情况下,向云服务器发送获取到的资源配置需求信息。For example, the user selects the bare metal server to be configured in the interactive interface of the user terminal, and inputs or selects the resource configuration requirement information of the bare metal server according to the business requirements. The user terminal obtains the resource configuration requirement of the bare metal server to be configured. In the case of information, the obtained resource configuration requirement information is sent to the cloud server.
资源配置需求信息包括待配置的裸金属服务器的标识信息、镜像类型、网络需求信息等。镜像类型可以是公共镜像、私有镜像或共享镜像。网络需求信息请参照上述相关描述。The resource configuration requirement information includes the identification information, image type, network requirement information, etc. of the bare metal server to be configured. The image type can be public image, private image or shared image. For network requirements information, please refer to the relevant descriptions above.
云服务器在获取到资源配置需求信息的情况下,可以根据资源配置需求信息中的镜像类型,获取与镜像类型相对应的镜像文件,经由控制器以及智能网卡,向待配置的裸金属服务器发送获取到的镜像文件,以便裸金属服务器在获取到镜像文件后,安装镜像文件对应的操作系统。When the cloud server obtains the resource configuration requirement information, it can obtain the image file corresponding to the image type according to the image type in the resource configuration requirement information, and send it to the bare metal server to be configured via the controller and smart network card. The image file is obtained so that the bare metal server can install the operating system corresponding to the image file after obtaining the image file.
裸金属服务器在成功安装操作系统之后,可以经由智能网卡以及控制器,向云服务器发送用于表示裸金属服务器已成功安装操作系统的通知消息。After the bare metal server successfully installs the operating system, it can send a notification message to the cloud server via the smart network card and the controller to indicate that the bare metal server has successfully installed the operating system.
云服务器可以在经由控制器以及智能网卡,向待配置的裸金属服务器发送获取到的镜像文件之后,执行S202;云服务器也可以在获取到用于表示裸金属服务器已成功安装操作系统的通知消息之后,执行S202。The cloud server can execute S202 after sending the obtained image file to the bare metal server to be configured via the controller and the smart network card; the cloud server can also obtain a notification message indicating that the operating system has been successfully installed on the bare metal server. After that, S202 is executed.
S202、云服务器向控制器发送所述网络配置请求,以触发控制器为待配置的裸金属服务器分配网络配置信息。S202. The cloud server sends the network configuration request to the controller to trigger the controller to allocate network configuration information to the bare metal server to be configured.
S203、控制器接收到所述网络配置请求,为待配置的裸金属服务器分配网络配置信息。S203. The controller receives the network configuration request and allocates network configuration information to the bare metal server to be configured.
控制器可以根据资源配置请求中的网络需求信息分配网络配置信息。网络配置信息可以包括IP地址、子网掩码、网关地址、DNS服务器地址等。The controller may allocate network configuration information based on network requirement information in the resource configuration request. Network configuration information can include IP address, subnet mask, gateway address, DNS server address, etc.
S204、控制器向智能网卡发送所述网络配置信息。S204. The controller sends the network configuration information to the smart network card.
由于智能网卡与裸金属服务器成功建立通信连接之后,控制器或云服务器中存储有智能网卡的标识信息与裸金属服务器的标识信息之间的关联关系,因此,控制器可以从本地或者云服务器中,获取智能网卡的标识信息与裸金属服务器的标识信息之间的关联关系,基于智能网卡的标识信息与裸金属服务器的标识信息之间的关联关系,确定出待配置的裸金属服务器对应的智能网卡的标识信息,从而根据确定出的智能网卡的标识信息,向智能网卡发送网络配置信息。After the smart network card successfully establishes a communication connection with the bare metal server, the association between the identification information of the smart network card and the identification information of the bare metal server is stored in the controller or cloud server. Therefore, the controller can obtain the information from the local or cloud server. , obtain the correlation between the identification information of the smart network card and the identification information of the bare metal server, and determine the intelligence corresponding to the bare metal server to be configured based on the correlation between the identification information of the smart network card and the identification information of the bare metal server. The identification information of the network card is sent to the intelligent network card according to the determined identification information of the intelligent network card.
S205、智能网卡获取控制器发送的网络配置信息。S205. The smart network card obtains the network configuration information sent by the controller.
控制器发送的网络配置信息可以经由智能网卡的物理网口传输,智能网卡可以获取物理网口接收到的网络配置信息。The network configuration information sent by the controller can be transmitted through the physical network port of the smart network card, and the smart network card can obtain the network configuration information received by the physical network port.
其中,智能网卡在执行S205之前,还可以执行以下预配置步骤:Among them, the smart network card can also perform the following preconfiguration steps before executing S205:
智能网卡在成功接入待配置的裸金属服务器之后,创建虚拟网口,所述虚拟网口用于供所述裸金属服务器根据所述网络配置信息配置所述虚拟网口对应的虚拟网络;After the smart network card successfully accesses the bare metal server to be configured, it creates a virtual network port, and the virtual network port is used for the bare metal server to configure a virtual network corresponding to the virtual network port according to the network configuration information;
智能网卡获取两个属于不同网段的互联网协议地址(Internet ProtocolAddress,IP地址),根据两个属于不同网段的IP地址创建业务网络和管理网络;业务网络表征承载所述虚拟网络的物理网络,用于在裸金属服务器成功配置虚拟网络后,传输经由虚拟网络对应的虚拟网口的数据包;所述管理网络表征承载所述云服务器、所述控制器和所述裸金属服务器之间的通信的物理网络,用于传输所述网络配置信息。这里,管理网络用于管理或控制裸金属服务器。也就是说,与裸金属服务器相关的控制信息均通过管理网络传输。The smart network card obtains two Internet Protocol Addresses (IP addresses) belonging to different network segments, and creates a business network and a management network based on the two IP addresses belonging to different network segments; the business network represents the physical network that carries the virtual network, Used to transmit data packets through the virtual network port corresponding to the virtual network after the bare metal server successfully configures the virtual network; the management network representation carries the communication between the cloud server, the controller and the bare metal server A physical network used to transmit the network configuration information. Here, the management network is used to manage or control bare metal servers. In other words, control information related to bare metal servers is transmitted through the management network.
需要说明的是,智能网卡可以创建多个虚拟网口供裸金属服务器使用,裸金属服务无需增添物理网卡,可以节省成本。虚拟网口的最大数量受限于智能网卡的物理网口的数量。It should be noted that smart network cards can create multiple virtual network ports for use by bare metal servers. Bare metal services do not require the addition of physical network cards, which can save costs. The maximum number of virtual network ports is limited by the number of physical network ports on the smart network card.
请参照图3,图3示出了本发明实施例提供的另一种系统架构示意图,智能网卡可以通过硬件接口连接裸金属服务器,智能网卡可以通过物理网口C1和/或C2连接交换机,交换机用于组建局域网。需要说明的是,智能网卡包括至少一个物理网口,图3所示的智能网卡包括两个物理网口,在一些实施例中,智能网卡也可以更或更少的物理网口。下面结合图3,以智能网卡创建1个虚拟网口为例进行说明。Please refer to Figure 3. Figure 3 shows a schematic diagram of another system architecture provided by an embodiment of the present invention. The smart network card can be connected to the bare metal server through the hardware interface, and the smart network card can be connected to the switch through the physical network ports C1 and/or C2. The switch Used to build a local area network. It should be noted that the smart network card includes at least one physical network port. The smart network card shown in Figure 3 includes two physical network ports. In some embodiments, the smart network card can also have more or less physical network ports. The following description is based on Figure 3, taking the smart network card to create a virtual network port as an example.
智能网卡与裸金属服务器成功建立通信连接,且成功安装驱动之后,可以根据用户触发的虚拟网口创建指令,创建如图3所示的物理网口C1所对应的虚拟网口(或SRIOVVF),以及创建虚拟网口对应的表示口(representor port)B。虚拟网口对应的表示口B是虚拟的端口。其中,虚拟网口创建指令中可以包括待创建的虚拟网口的数量,以便智能网卡可以创建相应数量的虚拟网口,从而使得裸金属服务器可以根据对应的网络配置信息配置虚拟网口对应的虚拟网络。After the smart network card successfully establishes a communication connection with the bare metal server and successfully installs the driver, the virtual network port (or SRIOVVF) corresponding to the physical network port C1 as shown in Figure 3 can be created according to the virtual network port creation instruction triggered by the user. And create a representative port (representor port) B corresponding to the virtual network port. The corresponding virtual network port indicates that port B is a virtual port. Among them, the virtual network port creation instruction can include the number of virtual network ports to be created, so that the smart network card can create a corresponding number of virtual network ports, so that the bare metal server can configure the virtual network port corresponding to the virtual network port according to the corresponding network configuration information. network.
智能网卡在成功安装驱动之后,在获取到两个属于不同网段的IP地址时,可以将两个IP地址分别分配给两个物理网口C1和C2,创建业务网络和管理网络。例如,物理网口C1对应业务网络,物理网口C2对应管理网络。这里,一个IP地址对应一个物理网口。智能网卡获取控制器经由物理网口C2发送的网络配置信息。After the smart network card driver is successfully installed, when it obtains two IP addresses belonging to different network segments, it can assign the two IP addresses to the two physical network ports C1 and C2 respectively to create a business network and a management network. For example, physical network port C1 corresponds to the business network, and physical network port C2 corresponds to the management network. Here, one IP address corresponds to one physical network port. The smart network card obtains the network configuration information sent by the controller through physical network port C2.
其中,管理网络用于供云服务器和控制器传输裸金属服务器对应的控制信息,例如,网络配置信息、控制器发送给智能网卡的流表等。业务网络用于在成功配置裸金属服务器的虚拟网络后,传输经由虚拟网络对应的虚拟网口的数据包。也就是说,经由如图3中的虚拟网卡A、虚拟网口对应的表示口B以及物理网口C1传输的数据包是通过业务网络传输至交换机。经由物理网口C2的数据包通过管理网络传输。Among them, the management network is used for cloud servers and controllers to transmit control information corresponding to bare metal servers, such as network configuration information, flow tables sent by controllers to smart network cards, etc. The business network is used to transmit data packets through the virtual network port corresponding to the virtual network after the virtual network of the bare metal server is successfully configured. That is to say, the data packet transmitted through the virtual network card A, the presentation port B corresponding to the virtual network port, and the physical network port C1 in Figure 3 is transmitted to the switch through the business network. Data packets passing through physical network port C2 are transmitted through the management network.
其中,虚拟网卡A是裸金属服务器在成功安装操作系统之后,并检测到智能网卡的虚拟网口对应的表示口B时,基于虚拟网口的表示口B映射得到。虽然虚拟网口的表示口B是虚拟的端口,但是,虚拟网口的表示口B相对于虚拟网卡A而言,是真实存在的。Among them, virtual network card A is mapped based on the virtual network port's display port B after the bare metal server successfully installs the operating system and detects the display port B corresponding to the virtual network port of the smart network card. Although the presentation port B of the virtual network port is a virtual port, the presentation port B of the virtual network port actually exists relative to the virtual network card A.
S206、智能网卡基于虚拟交换机向裸金属服务器发送所述网络配置信息;虚拟交换机预先卸载在智能网卡中。S206. The smart network card sends the network configuration information to the bare metal server based on the virtual switch; the virtual switch is pre-installed in the smart network card.
智能网卡中的虚拟交换机可以用于向裸金属服务器转发来自控制器的网络配置信息。The virtual switch in the smart NIC can be used to forward network configuration information from the controller to the bare metal server.
图3中,智能网卡中的虚拟交换机可以控制虚拟网卡A,当智能网卡获取到控制器经由物理网口C2发送的网络配置信息时,智能网卡中的虚拟交换机可以将从物理网口C2上接收到的网络配置信息,转发给供裸金属服务器使用的虚拟网卡A,以便裸金属服务器可以获取到经由虚拟网卡A传输的网络配置信息。In Figure 3, the virtual switch in the smart network card can control virtual network card A. When the smart network card obtains the network configuration information sent by the controller via physical network port C2, the virtual switch in the smart network card can receive it from the physical network port C2. The received network configuration information is forwarded to virtual network card A used by the bare metal server, so that the bare metal server can obtain the network configuration information transmitted through virtual network card A.
S207、裸金属服务器获取到所述网络配置信息,根据所述网络配置信息配置虚拟网络。S207. The bare metal server obtains the network configuration information and configures a virtual network according to the network configuration information.
裸金属服务器在成功安装操作系统之后,根据获取到的网络配置信息配置裸金属服务器的虚拟网络。例如,裸金属服务器可以根据获取到的网络配置信息配置由虚拟网口对应的表示口B映射得到的虚拟网卡A所对应的虚拟网络。After the bare metal server successfully installs the operating system, configure the virtual network of the bare metal server based on the obtained network configuration information. For example, the bare metal server can configure the virtual network corresponding to the virtual network card A mapped by the presentation port B corresponding to the virtual network port according to the obtained network configuration information.
示例性的,裸金属服务器可以根据网络配置信息配置虚拟网卡A的IP地址、子网掩码、网关地址、DNS服务器地址等,配置成功后,即可成功创建虚拟网卡A所对应的虚拟网络。For example, the bare metal server can configure the IP address, subnet mask, gateway address, DNS server address, etc. of virtual network card A according to the network configuration information. After the configuration is successful, the virtual network corresponding to virtual network card A can be successfully created.
在成功配置虚拟网卡A对应的虚拟网络时,智能网卡中的虚拟交换机可以将裸金属服务器通过虚拟网络发送的数据包从物理网口C1转发出去。具体的,裸金属服务器可以通过虚拟网络链路传输数据包至与智能网卡的物理网口C1连接的交换机,虚拟网络链路可以是由虚拟网卡A、虚拟网口对应的表示口B、虚拟交换机以及物理网口C1组成的。When the virtual network corresponding to virtual network card A is successfully configured, the virtual switch in the smart network card can forward the data packets sent by the bare metal server through the virtual network out of physical network port C1. Specifically, the bare metal server can transmit data packets to the switch connected to the physical network port C1 of the smart network card through a virtual network link. The virtual network link can be composed of virtual network card A, the corresponding presentation port B of the virtual network port, and the virtual switch. And it is composed of physical network port C1.
可选的,在一些实施例中,为了统一管控虚拟网络的流量,裸金属服务器的虚拟网络配置方法还可以包括:S208、智能网卡获取流表,由所述虚拟交换机根据所述流表控制所述虚拟网络的网络流量;所述流表由所述控制器基于获取到的流表配置指令配置得到,或由所述控制器接收到。Optionally, in some embodiments, in order to uniformly manage and control the traffic of the virtual network, the virtual network configuration method of the bare metal server may also include: S208. The smart network card obtains a flow table, and the virtual switch controls all traffic according to the flow table. The network traffic of the virtual network; the flow table is configured by the controller based on the obtained flow table configuration instruction, or is received by the controller.
控制器可以根据用户触发的流表配置指令配置流表,控制器也可以接收由用户配置的流表。这里,用户触发的流表配置指令和用户配置的流表均是经由用户终端和云服务器向控制器发送的。The controller can configure the flow table according to the flow table configuration instructions triggered by the user, and the controller can also receive the flow table configured by the user. Here, the flow table configuration instructions triggered by the user and the flow table configured by the user are sent to the controller via the user terminal and the cloud server.
当控制器和智能网卡为分离的设备时,控制器在获取到流表的情况下,通过智能网卡创建的管理网络将流表发给智能网卡,智能网卡可以将获取到的流表保存至虚拟交换机中。When the controller and the smart network card are separate devices, after the controller obtains the flow table, it sends the flow table to the smart network card through the management network created by the smart network card. The smart network card can save the obtained flow table to the virtual machine. in the switch.
当控制器的功能集成到智能网卡时,控制器在获取到通过管理网络传输的流表的情况下,可以通过通信接口将流表传输至虚拟交换机。When the controller function is integrated into the smart network card, the controller can transmit the flow table to the virtual switch through the communication interface after obtaining the flow table transmitted through the management network.
在裸金属服务器成功配置虚拟网络之后,智能网卡中的虚拟交换机可以根据流表控制虚拟网络的网络流量。流表中可以设置安全组规则、防火墙规则、服务质量(Qualityof Service,QoS)规则等。After the virtual network is successfully configured on the bare metal server, the virtual switch in the smart network card can control the network traffic of the virtual network based on the flow table. Security group rules, firewall rules, Quality of Service (QoS) rules, etc. can be set in the flow table.
安全组是一种虚拟防火墙,具备状态检测和数据包过滤能力,用于划分安全域。安全组规则用于控制安全组内的裸金属服务器的入流量和出流量。A security group is a virtual firewall with stateful inspection and packet filtering capabilities that is used to divide security domains. Security group rules are used to control the incoming and outgoing traffic of bare metal servers within the security group.
“防火墙”是指一种将内部网和公众访问网(如Internet)分开的方法。防火墙是在两个网络通讯时执行的一种访问控制尺度。防火墙规则可以用于定义允许或拒绝出入网络的信息流。QoS规则用于保证服务质量。"Firewall" refers to a method of separating an internal network from a publicly accessible network (such as the Internet). A firewall is an access control standard implemented when two networks communicate. Firewall rules can be used to define what traffic is allowed or denied to and from the network. QoS rules are used to ensure service quality.
一个流表中包含至少一个流表项。流表项用于定义数据包的转发规则。A flow table contains at least one flow table entry. Flow table entries are used to define forwarding rules for data packets.
每个流表项至少可以包括:匹配域(Match Fields)、指令(Instructions)和计数器(Counters)。Each flow entry can include at least: Match Fields, Instructions, and Counters.
匹配域:用于对虚拟交换机接收到的数据包的包头内容进行匹配。匹配域可以包括入端口和数据包头,以及由前一个表指定的可选的元数据。Matching domain: used to match the header content of data packets received by the virtual switch. Match fields can include the ingress port and packet header, as well as optional metadata specified by the previous table.
计数器:可以针对交换机中的每张流表、每个数据流、每个设备端口、每个转发队列进行维护,用于统计数据流量的相关信息。Counters: can be maintained for each flow table, each data flow, each device port, and each forwarding queue in the switch to collect relevant information on data traffic statistics.
指令:修改行动集或流水线处理,用于指示虚拟交换机在收到匹配的数据包后应该如何对其进行处理。Directive: Modifies the action set or pipeline processing that instructs the virtual switch how to handle matching packets after receiving them.
本实施例中,云服务器在获取到网络配置请求之后,可以触发控制器为裸金属服务器分配网络配置信息,智能网卡在获取到网络配置信息的情况下,基于卸载在智能网卡中的虚拟交换机向裸金属服务器发送网络配置信息,触发裸金属服务器在成功安装操作系统之后,根据网络配置信息配置虚拟网络。上述方式,将虚拟交换机卸载在智能网卡中,可以节省裸金属服务器的计算资源和存储资源,以提高裸金属服务器的数据处理效率;控制器可以为裸金属服务器分配网络配置信息,网络配置信息经由智能网卡的虚拟交换机传输至裸金属服务器,可以实现自动化配置裸金属服务器的虚拟网络,不需要用户借助物理交换机人工配置裸金属服务器的虚拟网络,可以减少人工干预,降低人为操作对裸金属服务器的虚拟网络连通性的影响。In this embodiment, after the cloud server obtains the network configuration request, it can trigger the controller to allocate network configuration information to the bare metal server. When the smart network card obtains the network configuration information, the smart network card sends a request to the virtual switch based on the virtual switch uninstalled in the smart network card. The bare metal server sends network configuration information, triggering the bare metal server to configure the virtual network based on the network configuration information after successfully installing the operating system. In the above method, offloading the virtual switch to the smart network card can save the computing resources and storage resources of the bare metal server to improve the data processing efficiency of the bare metal server; the controller can allocate network configuration information to the bare metal server, and the network configuration information passes through The virtual switch of the smart network card is transmitted to the bare metal server, which can automatically configure the virtual network of the bare metal server. Users do not need to manually configure the virtual network of the bare metal server with the help of physical switches, which can reduce manual intervention and reduce the impact of human operations on the bare metal server. Impact of virtual network connectivity.
控制器可以发送流表至智能网卡中的虚拟交换机,智能网卡中的虚拟交换机可以根据流表控制虚拟网络的网络流量,可以通过控制器和虚拟交换机统一管控虚拟网络的网络流量。The controller can send the flow table to the virtual switch in the smart network card. The virtual switch in the smart network card can control the network traffic of the virtual network based on the flow table. The network traffic of the virtual network can be uniformly managed and controlled through the controller and the virtual switch.
上面以控制器和智能网卡为两个分离的独立设备为例,介绍了裸金属服务器的虚拟网络配置方法。在一些实施例中,可以将控制器的功能集成在智能网卡中,也就是说,可以将SDN控制器或者Ovs-agent卸载在智能网卡中。下面以将控制器的功能集成在智能网卡为例,说明裸金属服务器的虚拟网络配置方法。本实施例中的智能网卡中安装了虚拟交换机的同时,还安装了SDN控制器或者Ovs-agent。The above uses the controller and smart network card as two separate independent devices as an example to introduce the virtual network configuration method of the bare metal server. In some embodiments, the functions of the controller can be integrated into the smart network card, that is, the SDN controller or Ovs-agent can be offloaded from the smart network card. The following takes the function of the controller integrated into the smart network card as an example to illustrate the virtual network configuration method of the bare metal server. In this embodiment, while the virtual switch is installed in the smart network card, an SDN controller or Ovs-agent is also installed.
参见图4,图4示出了本发明实施例提供的裸金属服务器的虚拟网络配置系统的另一种交互图。裸金属服务器的虚拟网络配置方法包括以下步骤:Referring to Figure 4, Figure 4 shows another interaction diagram of a virtual network configuration system for a bare metal server provided by an embodiment of the present invention. The virtual network configuration method for bare metal servers includes the following steps:
S401、云服务器获取网络配置请求;所述网络配置请求用于请求配置裸金属服务器的虚拟网络。S401. The cloud server obtains a network configuration request; the network configuration request is used to request to configure a virtual network of the bare metal server.
云服务器获取网络配置请求的具体实现方法请参见S201中的相关描述,此处不赘述。For the specific implementation method of the cloud server obtaining the network configuration request, please refer to the relevant description in S201 and will not be repeated here.
其中,智能网卡在检测到与裸金属服务器成功建立通信连接之后,可以获取裸金属服务器的标识信息,建立智能网卡的标识信息与裸金属服务器的标识信息之间的关联关系。之后,智能网卡向云服务器发送该关联关系,以便云服务器存储该关联关系。Among them, after the smart network card detects that the communication connection is successfully established with the bare metal server, it can obtain the identification information of the bare metal server and establish an association between the identification information of the smart network card and the identification information of the bare metal server. Afterwards, the smart network card sends the association relationship to the cloud server so that the cloud server stores the association relationship.
云服务器在获取到用户通过用户终端发送的资源配置需求信息的情况下,可以根据资源配置需求信息中的镜像类型,获取与镜像类型相对应的镜像文件,经由智能网卡,向待配置的裸金属服务器发送获取到的镜像文件,以便裸金属服务器在获取到镜像文件后,安装镜像文件对应的操作系统。When the cloud server obtains the resource configuration requirement information sent by the user through the user terminal, it can obtain the image file corresponding to the image type according to the image type in the resource configuration requirement information, and send it to the bare metal to be configured via the smart network card. The server sends the obtained image file so that the bare metal server can install the operating system corresponding to the image file after obtaining the image file.
裸金属服务器在成功安装操作系统之后,可以经由智能网卡,向云服务器发送用于表示裸金属服务器已成功安装操作系统的通知消息。After the bare metal server successfully installs the operating system, it can send a notification message to the cloud server via the smart network card to indicate that the bare metal server has successfully installed the operating system.
云服务器可以在经由智能网卡向待配置的裸金属服务器发送获取到的镜像文件之后,执行S402;云服务器也可以在获取到用于表示裸金属服务器已成功安装操作系统的通知消息之后,执行S402。The cloud server can execute S402 after sending the obtained image file to the bare metal server to be configured via the smart network card; the cloud server can also execute S402 after acquiring the notification message indicating that the bare metal server has successfully installed the operating system. .
S402、云服务器向智能网卡发送所述网络配置请求,以触发预先卸载在智能网卡中的控制器为待配置的裸金属服务器分配网络配置信息。S402. The cloud server sends the network configuration request to the smart network card to trigger the controller pre-installed in the smart network card to allocate network configuration information to the bare metal server to be configured.
由于云服务器中存储了智能网卡的标识信息与裸金属服务器的标识信息之间的关联关系,因此,云服务器可以基于智能网卡的标识信息与裸金属服务器的标识信息之间的关联关系,确定出待配置的裸金属服务器对应的智能网卡的标识信息,从而根据确定出的智能网卡的标识信息,向智能网卡发送网络配置信息。网络配置请求可以包括待配置的裸金属服务器的标识信息以及网络需求信息。网络配置请求用于触发智能网卡中的控制器根据网络配置请求中的网络需求信息为裸金属服务器分配网络配置信息,以便裸金属服务器基于网络配置信息配置虚拟网络。Since the cloud server stores the correlation between the identification information of the smart network card and the identification information of the bare metal server, the cloud server can determine the identification information based on the correlation between the identification information of the smart network card and the identification information of the bare metal server. The identification information of the smart network card corresponding to the bare metal server to be configured is used to send network configuration information to the smart network card based on the determined identification information of the smart network card. The network configuration request may include identification information of the bare metal server to be configured and network requirement information. The network configuration request is used to trigger the controller in the smart network card to allocate network configuration information to the bare metal server based on the network requirement information in the network configuration request, so that the bare metal server configures the virtual network based on the network configuration information.
S403、智能网卡接收到所述网络配置请求,由预先卸载在智能网卡中的控制器为待配置的裸金属服务器分配网络配置信息。S403. The smart network card receives the network configuration request, and the controller pre-installed in the smart network card allocates network configuration information to the bare metal server to be configured.
预先卸载在智能网卡中的控制器包括:SDN控制器或者Ovs-agent。例如,智能网卡接收云服务器发送的网络配置请求,启动SDN控制器或者Ovs-agent,由SDN控制器或者Ovs-agent为待配置的裸金属服务器分配网络配置信息。网络配置信息可以包括IP地址、子网掩码、网关地址、DNS服务器地址等。The controllers pre-installed in the smart network card include: SDN controller or Ovs-agent. For example, the smart network card receives the network configuration request sent by the cloud server, starts the SDN controller or Ovs-agent, and the SDN controller or Ovs-agent allocates network configuration information to the bare metal server to be configured. Network configuration information can include IP address, subnet mask, gateway address, DNS server address, etc.
智能网卡中的SDN控制器或者Ovs-agent通过相应的通信接口将网络配置信息传递给智能网卡中的虚拟交换机。The SDN controller or Ovs-agent in the smart network card transmits the network configuration information to the virtual switch in the smart network card through the corresponding communication interface.
S404、智能网卡基于虚拟交换机向裸金属服务器发送所述网络配置信息;所述虚拟交换机预先卸载在所述智能网卡中。S404. The smart network card sends the network configuration information to the bare metal server based on the virtual switch; the virtual switch is pre-installed in the smart network card.
预先卸载在智能网卡中的虚拟交换机,获取由SDN控制器或者Ovs-agent通过相应的通信接口传递的网络配置信息,并向裸金属服务器转发获取到的网络配置信息。Pre-uninstall the virtual switch in the smart network card, obtain the network configuration information transmitted by the SDN controller or Ovs-agent through the corresponding communication interface, and forward the obtained network configuration information to the bare metal server.
其中,智能网卡基于虚拟交换机向裸金属服务器转发网络配置信息的具体实现方法请参见S206中的相关描述,此处不赘述。Among them, for the specific implementation method of the smart network card forwarding network configuration information to the bare metal server based on the virtual switch, please refer to the relevant description in S206, which will not be described here.
其中,智能网卡在执行S404之前,还可以执行以下预配置步骤:Among them, the smart network card can also perform the following preconfiguration steps before executing S404:
智能网卡在成功接入待配置的裸金属服务器之后,创建虚拟网口;所述虚拟网口用于供所述裸金属服务器根据所述网络配置信息配置所述虚拟网口对应的虚拟网络;After the smart network card successfully accesses the bare metal server to be configured, it creates a virtual network port; the virtual network port is used for the bare metal server to configure the virtual network corresponding to the virtual network port according to the network configuration information;
智能网卡获取两个属于不同网段的IP地址,根据两个属于不同网段的IP地址创建业务网络和管理网络;业务网络表征承载所述虚拟网络的物理网络,用于在裸金属服务器成功配置虚拟网络后,传输经由虚拟网络对应的虚拟网口的数据包;所述管理网络表征承载所述云服务器、所述控制器和所述裸金属服务器之间的通信的物理网络,用于传输所述网络配置信息。这里,管理网络用于管理或控制裸金属服务器。也就是说,与裸金属服务器相关的控制信息均通过管理网络传输。The smart network card obtains two IP addresses belonging to different network segments, and creates a business network and a management network based on the two IP addresses belonging to different network segments; the business network represents the physical network that carries the virtual network and is used to successfully configure the bare metal server After the virtual network is created, data packets are transmitted through the virtual network port corresponding to the virtual network; the management network represents the physical network that carries the communication between the cloud server, the controller and the bare metal server, and is used to transmit all Describe network configuration information. Here, the management network is used to manage or control bare metal servers. In other words, control information related to bare metal servers is transmitted through the management network.
其中,预配置步骤的实现方法请参照S205中的相关描述,此处不赘述For the implementation method of the pre-configuration step, please refer to the relevant description in S205 and will not be repeated here.
S405、裸金属服务器获取到所述网络配置信息,根据所述网络配置信息配置虚拟网络。S405. The bare metal server obtains the network configuration information and configures a virtual network according to the network configuration information.
本实施例中的S405与上一实施例中的S207相同,具体实现方法请参照S207中的相关描述,此处不赘述。S405 in this embodiment is the same as S207 in the previous embodiment. For specific implementation methods, please refer to the relevant description in S207, which will not be described again here.
可选的,在一些实施例中,为了统一管控虚拟网络的流量,裸金属服务器的虚拟网络配置方法还可以包括:Optionally, in some embodiments, in order to uniformly manage and control the traffic of the virtual network, the virtual network configuration method of the bare metal server may also include:
S406、获取流表,由所述虚拟交换机根据所述流表控制所述虚拟网络的网络流量;所述流表由所述控制器基于获取到的流表配置指令配置得到,或由所述控制器接收到。S406. Obtain a flow table, and the virtual switch controls the network traffic of the virtual network according to the flow table; the flow table is configured by the controller based on the obtained flow table configuration instruction, or is configured by the controller. receiver received.
智能网卡中的控制器可以根据用户触发的流表配置指令配置流表,智能网卡也可以接收由用户配置的流表。用户触发的流表配置指令和用户配置的流表均是经由用户终端和云服务器向智能网卡发送的。The controller in the smart network card can configure the flow table according to the flow table configuration instructions triggered by the user, and the smart network card can also receive the flow table configured by the user. The flow table configuration instructions triggered by the user and the flow table configured by the user are sent to the smart network card via the user terminal and the cloud server.
本实施例中,由所述虚拟交换机根据所述流表控制所述虚拟网络的网络流量的具体实现方法请参照S208中的相关描述,此处不赘述。In this embodiment, for a specific implementation method for the virtual switch to control the network traffic of the virtual network according to the flow table, please refer to the relevant description in S208, which will not be described again here.
本实施例中,云服务器在获取到网络配置请求之后,可以触发预先卸载在智能网卡中的控制器为裸金属服务器分配网络配置信息,智能网卡可以基于虚拟交换机向裸金属服务器发送网络配置信息,触发裸金属服务器在成功安装操作系统之后,根据网络配置信息配置虚拟网络。上述方式,将虚拟交换机卸载在智能网卡中,可以节省裸金属服务器的计算资源和存储资源,以提高裸金属服务器的数据处理效率;智能网卡中的SDN控制器或者Ovs-agent可以为裸金属服务器分配网络配置信息,网络配置信息经由智能网卡的虚拟交换机传输至裸金属服务器,可以实现自动化配置裸金属服务器的虚拟网络,不需要用户借助物理交换机人工配置裸金属服务器的虚拟网络,可以减少人工干预,降低人为操作对裸金属服务器的虚拟网络连通性的影响。In this embodiment, after the cloud server obtains the network configuration request, it can trigger the controller pre-installed in the smart network card to allocate network configuration information to the bare metal server. The smart network card can send network configuration information to the bare metal server based on the virtual switch. Trigger the bare metal server to configure the virtual network based on the network configuration information after successfully installing the operating system. In the above method, offloading the virtual switch to the smart network card can save the computing resources and storage resources of the bare metal server to improve the data processing efficiency of the bare metal server; the SDN controller or Ovs-agent in the smart network card can be used for the bare metal server Allocate network configuration information. The network configuration information is transmitted to the bare metal server through the virtual switch of the smart network card, which can automatically configure the virtual network of the bare metal server. Users do not need to manually configure the virtual network of the bare metal server with the help of physical switches, which can reduce manual intervention. , Reduce the impact of human operations on the virtual network connectivity of bare metal servers.
图5示出了本发明实施例提供的裸金属服务器的虚拟网络配置方法的一种流程示意图。在本实施例中,裸金属服务器的虚拟网络配置方法的执行主体是智能网卡。本实施例中的各步骤的具体实现方式可以参考图2对应的实施例中智能网卡所执行的各步骤的相关描述,此处不赘述。Figure 5 shows a schematic flowchart of a virtual network configuration method for a bare metal server provided by an embodiment of the present invention. In this embodiment, the execution subject of the virtual network configuration method of the bare metal server is the smart network card. For specific implementation methods of each step in this embodiment, please refer to the relevant description of each step performed by the smart network card in the corresponding embodiment of FIG. 2 and will not be described again here.
参见图5,裸金属服务器的虚拟网络配置方法包括以下步骤:Referring to Figure 5, the virtual network configuration method of bare metal servers includes the following steps:
S501、获取网络配置信息;所述网络配置信息是云服务器在获取到网络配置请求之后触发控制器为待配置的裸金属服务器分配的;所述网络配置请求用于请求配置所述裸金属服务器的虚拟网络。S501. Obtain network configuration information; the network configuration information is allocated by the cloud server to the bare metal server to be configured by triggering the controller after obtaining the network configuration request; the network configuration request is used to request the configuration of the bare metal server. virtual network.
S502、基于虚拟交换机向所述裸金属服务器发送所述网络配置信息;所述虚拟交换机预先卸载在所述智能网卡中;所述网络配置信息用于配置所述裸金属服务器的虚拟网络。S502. Send the network configuration information to the bare metal server based on a virtual switch; the virtual switch is pre-installed in the smart network card; and the network configuration information is used to configure a virtual network of the bare metal server.
可选的,在一些实施例中,基于虚拟交换机获取网络配置信息之前,还可以包括:Optionally, in some embodiments, before obtaining the network configuration information based on the virtual switch, it may also include:
在成功接入所述裸金属服务器之后,创建虚拟网口;所述虚拟网口用于供所述裸金属服务器根据所述网络配置信息配置所述虚拟网口对应的虚拟网络;After successfully accessing the bare metal server, create a virtual network port; the virtual network port is used for the bare metal server to configure a virtual network corresponding to the virtual network port according to the network configuration information;
获取两个属于不同网段的互联网协议IP地址,根据所述两个属于不同网段的IP地址创建业务网络和管理网络;所述业务网络表征承载所述虚拟网络的物理网络,用于在所述裸金属服务器成功配置所述虚拟网络后,传输经由所述虚拟网络对应的所述虚拟网口的数据包;所述管理网络表征承载所述云服务器、所述控制器和所述裸金属服务器之间的通信的物理网络,用于传输所述网络配置信息。Obtain two Internet Protocol IP addresses belonging to different network segments, and create a business network and a management network based on the two IP addresses belonging to different network segments; the business network represents the physical network that carries the virtual network and is used in the After the bare metal server successfully configures the virtual network, it transmits data packets through the virtual network port corresponding to the virtual network; the management network representation carries the cloud server, the controller and the bare metal server Communication between physical networks, used to transmit the network configuration information.
可选的,在一些实施例中,为了统一控制裸金属服务器的虚拟网络的流量,裸金属服务器的虚拟网络配置方法还可以包括:获取流表,由所述虚拟交换机根据所述流表控制所述虚拟网络的网络流量;所述流表由所述控制器基于获取到的流表配置指令配置得到,或由所述控制器接收到。具体实现过程请参照S208中的相关描述,此处不再赘述。Optionally, in some embodiments, in order to uniformly control the traffic of the virtual network of the bare metal server, the virtual network configuration method of the bare metal server may also include: obtaining a flow table, and the virtual switch controls the flow table according to the flow table. The network traffic of the virtual network; the flow table is configured by the controller based on the obtained flow table configuration instruction, or is received by the controller. For the specific implementation process, please refer to the relevant description in S208 and will not be repeated here.
可选的,在一些实施例中,所述控制器可以预先卸载在所述智能网卡中;S501中获取网络配置信息包括:获取所述云服务器发送的网络配置请求,由所述控制器根据所述网络配置请求确定出所述网络配置信息。Optionally, in some embodiments, the controller can be pre-installed in the smart network card; obtaining network configuration information in S501 includes: obtaining a network configuration request sent by the cloud server, and the controller performs the configuration according to the The network configuration request determines the network configuration information.
获取网络配置信息的具体实现过程,请参照图4对应的实施例中的S402~S403中的相关描述,此处不再赘述。For the specific implementation process of obtaining network configuration information, please refer to the relevant descriptions in S402 to S403 in the embodiment corresponding to Figure 4, which will not be described again here.
本实施例中,智能网卡在获取到由控制器分配的网络配置信息时,可以基于虚拟交换机向裸金属服务器发送网络配置信息,以便裸金属服务器根据网络配置信息配置虚拟网络。由于在配置裸金属服务器的虚拟网络的过程中,可以实现自动化配置裸金属服务器的虚拟网络,不需要用户借助物理交换机人工配置裸金属服务器的虚拟网络,可以减少人工干预,降低人为操作对裸金属服务器的虚拟网络连通性的影响。In this embodiment, when the smart network card obtains the network configuration information allocated by the controller, it can send the network configuration information to the bare metal server based on the virtual switch, so that the bare metal server configures the virtual network according to the network configuration information. Since in the process of configuring the virtual network of the bare metal server, the virtual network of the bare metal server can be automatically configured, and the user does not need to manually configure the virtual network of the bare metal server with the help of physical switches, which can reduce manual intervention and reduce the impact of human operations on the bare metal server. Impact of server virtual network connectivity.
虚拟交换机可以基于控制器配置的流表,统一控制裸金属服务器的虚拟网络的流量。The virtual switch can uniformly control the traffic of the virtual network of the bare metal server based on the flow table configured by the controller.
为实现本发明实施例的方法,本发明实施例还提供了一种裸金属服务器的虚拟网络配置装置,设置在智能网卡上,如图6所示,该裸金属服务器的虚拟网络配置装置包括:In order to implement the method of the embodiment of the present invention, the embodiment of the present invention also provides a virtual network configuration device of a bare metal server, which is provided on the smart network card. As shown in Figure 6, the virtual network configuration device of the bare metal server includes:
获取单元601,用于获取网络配置信息;所述网络配置信息是云服务器在获取到网络配置请求之后触发控制器为待配置的裸金属服务器分配的;所述网络配置请求用于请求配置所述裸金属服务器的虚拟网络;发送单元602,用于基于虚拟交换机向所述裸金属服务器发送所述网络配置信息;所述虚拟交换机预先卸载在所述智能网卡中;所述网络配置信息用于配置所述裸金属服务器的虚拟网络。Obtaining unit 601 is used to obtain network configuration information; the network configuration information is allocated by the cloud server to the bare metal server to be configured by triggering the controller after obtaining the network configuration request; the network configuration request is used to request the configuration of the A virtual network of a bare metal server; the sending unit 602 is used to send the network configuration information to the bare metal server based on a virtual switch; the virtual switch is pre-installed in the smart network card; the network configuration information is used to configure A virtual network of bare metal servers.
在一实施例中,获取单元601还可以用于:获取流表,由所述虚拟交换机根据所述流表控制所述虚拟网络的网络流量;所述流表由所述控制器基于获取到的流表配置指令配置得到,或由所述控制器接收到。In an embodiment, the obtaining unit 601 may also be used to: obtain a flow table, and the virtual switch controls the network traffic of the virtual network according to the flow table; the flow table is used by the controller based on the obtained flow table. The flow table configuration instruction is configured or received by the controller.
在一实施例中,还可以包括:In an embodiment, it may also include:
第一创建单元,用于在成功接入所述裸金属服务器之后,创建虚拟网口;所述虚拟网口用于供所述裸金属服务器根据所述网络配置信息配置所述虚拟网口对应的虚拟网络;The first creation unit is configured to create a virtual network port after successfully accessing the bare metal server; the virtual network port is used for the bare metal server to configure the virtual network port corresponding to the network configuration information. virtual network;
第二创建单元,用于获取两个属于不同网段的互联网协议IP地址,根据所述两个属于不同网段的IP地址创建业务网络和管理网络;所述业务网络表征承载所述虚拟网络的物理网络,用于在所述裸金属服务器成功配置所述虚拟网络后,传输经由所述虚拟网络对应的所述虚拟网口的数据包;所述管理网络表征承载所述云服务器、所述控制器和所述裸金属服务器之间的通信的物理网络,用于传输所述网络配置信息。The second creation unit is used to obtain two Internet Protocol IP addresses belonging to different network segments, and create a business network and a management network based on the two IP addresses belonging to different network segments; the business network represents the network that carries the virtual network A physical network, used to transmit data packets through the virtual network port corresponding to the virtual network after the bare metal server successfully configures the virtual network; the management network represents the cloud server, the control The physical network used for communication between the server and the bare metal server is used to transmit the network configuration information.
在一实施例中,所述控制器预先卸载在所述智能网卡中;获取单元601用于:获取所述云服务器发送的网络配置请求,由所述控制器根据所述网络配置请求确定出所述网络配置信息。In one embodiment, the controller is pre-installed in the smart network card; the obtaining unit 601 is used to: obtain the network configuration request sent by the cloud server, and the controller determines the network configuration request based on the network configuration request. Describe network configuration information.
实际应用时,裸金属服务器的虚拟网络配置装置包括的各单元可由裸金属服务器的虚拟网络配置装置中的处理器来实现。当然,处理器需要运行存储器中存储的程序来实现上述各程序模块的功能。In actual application, each unit included in the virtual network configuration device of the bare metal server can be implemented by a processor in the virtual network configuration device of the bare metal server. Of course, the processor needs to run the program stored in the memory to realize the functions of each of the above program modules.
需要说明的是:上述实施例提供的裸金属服务器的虚拟网络配置装置在配置裸金属的虚拟网络时,仅以上述各程序模块的划分进行举例说明,实际应用中,可以根据需要而将上述处理分配由不同的程序模块完成,即将裸金属服务器的虚拟网络配置装置的内部结构划分成不同的程序模块,以完成以上描述的全部或者部分处理。另外,上述实施例提供的裸金属服务器的虚拟网络配置装置与裸金属服务器的虚拟网络配置方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that when the virtual network configuration device of the bare metal server provided in the above embodiment configures the bare metal virtual network, only the division of the above program modules is used as an example. In actual applications, the above processing can be performed as needed. The allocation is completed by different program modules, that is, the internal structure of the virtual network configuration device of the bare metal server is divided into different program modules to complete all or part of the above-described processing. In addition, the virtual network configuration device for bare metal servers provided in the above embodiments and the virtual network configuration method embodiments for bare metal servers belong to the same concept. The specific implementation process can be found in the method embodiments and will not be described again here.
基于上述程序模块的硬件实现,且为了实现本发明实施例的方法,本发明实施例还提供了一种智能网卡。图7为本发明实施例提供的智能网卡的硬件组成结构示意图,如图7所示,智能网卡包括:Based on the hardware implementation of the above program module, and in order to implement the method of the embodiment of the present invention, the embodiment of the present invention also provides a smart network card. Figure 7 is a schematic diagram of the hardware composition of the smart network card provided by the embodiment of the present invention. As shown in Figure 7, the smart network card includes:
通信接口1,能够与其它设备比如交换机、裸金属服务器等进行信息交互;Communication interface 1 can interact with other devices such as switches, bare metal servers, etc.;
处理器2,与通信接口1连接,以实现与其它设备进行信息交互,用于运行计算机程序时,执行上述一个或多个技术方案提供的裸金属服务器的虚拟网络配置方法。而所述计算机程序存储在存储器3上。The processor 2 is connected to the communication interface 1 to implement information interaction with other devices, and is used to execute the virtual network configuration method of the bare metal server provided by one or more of the above technical solutions when running a computer program. The computer program is stored in the memory 3 .
当然,实际应用时,智能网卡中的各个组件通过总线系统4耦合在一起。可理解,总线系统4用于实现这些组件之间的连接通信。总线系统4除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图7中将各种总线都标为总线系统4。Of course, in actual application, various components in the intelligent network card are coupled together through the bus system 4 . It can be understood that the bus system 4 is used to realize connection communication between these components. In addition to the data bus, the bus system 4 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the various buses are labeled as bus system 4 in Figure 7 .
本发明实施例中的存储器3用于存储各种类型的数据以支持智能网卡的操作。这些数据的示例包括:用于在智能网卡上操作的任何计算机程序。The memory 3 in the embodiment of the present invention is used to store various types of data to support the operation of the smart network card. Examples of this data include: any computer program used to operate on a smart network card.
可以理解,存储器3可以是易失性存储器或非易失性存储器,也可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(ROM,Read Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器。易失性存储器可以是随机存取存储器(RAM,Random AccessMemory),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(SRAM,Static Random Access Memory)、同步静态随机存取存储器(SSRAM,Synchronous Static Random Access Memory)、动态随机存取存储器(DRAM,Dynamic Random Access Memory)、同步动态随机存取存储器(SDRAM,SynchronousDynamic Random Access Memory)、双倍数据速率同步动态随机存取存储器(DDRSDRAM,Double Data Rate Synchronous Dynamic Random Access Memory)、增强型同步动态随机存取存储器(ESDRAM,Enhanced Synchronous Dynamic Random Access Memory)、同步连接动态随机存取存储器(SLDRAM,Sync Link Dynamic Random Access Memory)、直接内存总线随机存取存储器(DRRAM,Direct Rambus Random Access Memory)。本发明实施例描述的存储器3旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 3 may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM, Read Only Memory), a programmable read-only memory (PROM, Programmable Read-Only Memory), an erasable programmable read-only memory (EPROM, Erasable Programmable Read-Only Memory). Only Memory), Electrically Erasable Programmable Read-Only Memory (EEPROM, Electrically Erasable Programmable Read-Only Memory), Magnetic Random Access Memory (FRAM, ferromagnetic random access memory), Flash Memory, Magnetic Surface Memory , optical disk, or CD-ROM (Compact Disc Read-Only Memory); the magnetic surface memory can be a magnetic disk memory or a magnetic tape memory. Volatile memory may be random access memory (RAM, Random Access Memory), which is used as an external cache. By way of illustration, but not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory Memory (DRAM, Dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, SynchronousDynamic Random Access Memory), double data rate synchronous dynamic random access memory (DDRSDRAM, Double Data Rate Synchronous Dynamic Random Access Memory), enhanced Synchronous dynamic random access memory (ESDRAM, Enhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM, Sync Link Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, Direct Rambus Random Access Memory) ). The memory 3 described in the embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.
上述本发明实施例揭示的方法可以应用于处理器2中,或者由处理器2实现。处理器2可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器2中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器2可以是通用处理器、DSP,或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。处理器2可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合本发明实施例所公开的方法的步骤,可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于存储介质中,该存储介质位于存储器3,处理器2读取存储器3中的程序,结合其硬件完成前述方法的步骤。The methods disclosed in the above embodiments of the present invention can be applied to the processor 2 or implemented by the processor 2 . The processor 2 may be an integrated circuit chip with signal processing capabilities. During the implementation process, each step of the above method can be completed through the integrated logic circuit of hardware in the processor 2 or instructions in the form of software. The above-mentioned processor 2 may be a general-purpose processor, a DSP, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The processor 2 can implement or execute each method, step and logical block diagram disclosed in the embodiment of the present invention. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly implemented by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the memory 3. The processor 2 reads the program in the memory 3 and completes the steps of the foregoing method in combination with its hardware.
处理器2执行所述程序时实现本发明实施例的各个方法中智能网卡对应的流程,为了简洁,在此不再赘述。When the processor 2 executes the program, it implements the processes corresponding to the smart network card in each method of the embodiment of the present invention. For the sake of simplicity, details will not be described here.
在示例性实施例中,本发明实施例还提供了一种存储介质,即计算机存储介质,具体为计算机可读存储介质,例如包括存储计算机程序的存储器3,上述计算机程序可由处理器2执行,以完成前述图5对应的实施例中的所述步骤,或者完成前述图4对应的实施例中的智能网卡所执行的所述步骤。计算机可读存储介质可以是FRAM、ROM、PROM、EPROM、EEPROM、Flash Memory、磁表面存储器、光盘、或CD-ROM等存储器。In an exemplary embodiment, the embodiment of the present invention also provides a storage medium, that is, a computer storage medium, specifically a computer-readable storage medium, such as a memory 3 that stores a computer program, and the above computer program can be executed by the processor 2, To complete the steps in the embodiment corresponding to Figure 5, or to complete the steps performed by the smart network card in the embodiment corresponding to Figure 4. The computer-readable storage medium may be memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface memory, optical disk, or CD-ROM.
在本申请所提供的几个实施例中,应该理解到,所揭露的设备和方法,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods, such as: multiple units or components may be combined, or can be integrated into another system, or some features can be ignored, or not implemented. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be electrical, mechanical, or other forms. of.
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units; Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各实施例中的各功能单元可以全部集成在一个处理模块中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, all functional units in the embodiments of the present invention can be integrated into one processing module, or each unit can be separately used as a unit, or two or more units can be integrated into one unit; the above-mentioned integration The unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:移动存储设备、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps to implement the above method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, It includes the steps of the above method embodiment; and the aforementioned storage media includes: mobile storage devices, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disks or optical disks, etc. A medium on which program code can be stored.
本发明所提供的几个方法实施例中所揭露的方法,在不冲突的情况下可以任意组合,得到新的方法实施例。The methods disclosed in several method embodiments provided by the present invention can be combined arbitrarily without conflict to obtain new method embodiments.
本发明所提供的几个产品实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的产品实施例。The features disclosed in several product embodiments provided by the present invention can be combined arbitrarily without conflict to obtain new product embodiments.
本发明所提供的几个方法或设备实施例中所揭露的特征,在不冲突的情况下可以任意组合,得到新的方法实施例或设备实施例。The features disclosed in several method or device embodiments provided by the present invention can be combined arbitrarily without conflict to obtain new method embodiments or device embodiments.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be covered by the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010757005.4ACN114070723B (en) | 2020-07-31 | 2020-07-31 | Virtual network configuration method and system of bare metal server and intelligent network card |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202010757005.4ACN114070723B (en) | 2020-07-31 | 2020-07-31 | Virtual network configuration method and system of bare metal server and intelligent network card |
| Publication Number | Publication Date |
|---|---|
| CN114070723A CN114070723A (en) | 2022-02-18 |
| CN114070723Btrue CN114070723B (en) | 2023-11-03 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202010757005.4AActiveCN114070723B (en) | 2020-07-31 | 2020-07-31 | Virtual network configuration method and system of bare metal server and intelligent network card |
| Country | Link |
|---|---|
| CN (1) | CN114070723B (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114546920B (en)* | 2022-02-20 | 2024-02-20 | 中电云计算技术有限公司 | Hot plug method for bare metal server data disc under Feiteng CPU architecture based on intelligent network card |
| CN114884810B (en)* | 2022-03-25 | 2024-12-10 | 阿里云计算有限公司 | Network data transmission method, access method and storage medium based on SDN |
| CN114995954B (en)* | 2022-05-31 | 2025-07-25 | 济南浪潮数据技术有限公司 | Bare metal server control method, device and medium |
| CN115189987A (en)* | 2022-06-22 | 2022-10-14 | 北京百度网讯科技有限公司 | Implementation method, system, device and program product of network virtualization |
| CN115134194A (en)* | 2022-06-22 | 2022-09-30 | 北京百度网讯科技有限公司 | Implementation method, system, device and program product of network virtualization |
| CN115941437B (en)* | 2022-09-30 | 2024-09-17 | 中国建设银行股份有限公司 | Bare metal server monitoring method and device, storage medium and electronic equipment |
| CN115776439A (en)* | 2022-10-18 | 2023-03-10 | 北京思特奇信息技术股份有限公司 | Method and system for configuring Underlay network of bare metal server |
| CN115509563B (en)* | 2022-11-15 | 2023-02-28 | 济南浪潮数据技术有限公司 | Mirror image file manufacturing method, device, equipment and medium |
| CN115766431A (en)* | 2022-11-17 | 2023-03-07 | 浪潮通信技术有限公司 | A method for implementing multiplexing of bare metal management network and service network ports on a virtualization platform |
| CN115720181B (en)* | 2022-11-18 | 2024-09-24 | 济南浪潮数据技术有限公司 | Bare metal node control method, system, electronic equipment and readable storage medium |
| CN117749704A (en)* | 2023-12-29 | 2024-03-22 | 中科驭数(北京)科技有限公司 | Network communication method, device, electronic equipment and storage medium |
| CN118175160B (en)* | 2024-05-13 | 2024-08-16 | 中移(苏州)软件技术有限公司 | Processing method and device of bare metal server and electronic equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2012160981A (en)* | 2011-02-02 | 2012-08-23 | Nec Corp | Management server device, inter-virtual-machine network configuration system, and network configuration method for them |
| CN105391568A (en)* | 2014-09-05 | 2016-03-09 | 华为技术有限公司 | SDN (Software Defined Network) implementation method, device and system |
| CN106803786A (en)* | 2015-11-26 | 2017-06-06 | 中国移动通信集团公司 | A kind of network element update method, system based on network function virtualization |
| CN107135134A (en)* | 2017-03-29 | 2017-09-05 | 广东网金控股股份有限公司 | Private network cut-in method and system based on virtual switch and SDN technologies |
| WO2018077198A1 (en)* | 2016-10-31 | 2018-05-03 | 华为技术有限公司 | Method, apparatus, and system for deploying virtual network |
| CN109120494A (en)* | 2018-08-28 | 2019-01-01 | 无锡华云数据技术服务有限公司 | The method of physical machine is accessed in cloud computing system |
| CN109697142A (en)* | 2017-10-20 | 2019-04-30 | 中移(苏州)软件技术有限公司 | Method and device for detecting bare metal server in cloud computing environment |
| CN110532065A (en)* | 2019-09-02 | 2019-12-03 | 广州市品高软件股份有限公司 | A kind of dispositions method and device of bare metal server |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10419243B2 (en)* | 2016-09-09 | 2019-09-17 | Johnson Controls Technology Company | Smart gateway devices, systems and methods for providing communication between HVAC system networks |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2012160981A (en)* | 2011-02-02 | 2012-08-23 | Nec Corp | Management server device, inter-virtual-machine network configuration system, and network configuration method for them |
| CN105391568A (en)* | 2014-09-05 | 2016-03-09 | 华为技术有限公司 | SDN (Software Defined Network) implementation method, device and system |
| CN106803786A (en)* | 2015-11-26 | 2017-06-06 | 中国移动通信集团公司 | A kind of network element update method, system based on network function virtualization |
| WO2018077198A1 (en)* | 2016-10-31 | 2018-05-03 | 华为技术有限公司 | Method, apparatus, and system for deploying virtual network |
| CN107135134A (en)* | 2017-03-29 | 2017-09-05 | 广东网金控股股份有限公司 | Private network cut-in method and system based on virtual switch and SDN technologies |
| CN109697142A (en)* | 2017-10-20 | 2019-04-30 | 中移(苏州)软件技术有限公司 | Method and device for detecting bare metal server in cloud computing environment |
| CN109120494A (en)* | 2018-08-28 | 2019-01-01 | 无锡华云数据技术服务有限公司 | The method of physical machine is accessed in cloud computing system |
| CN110532065A (en)* | 2019-09-02 | 2019-12-03 | 广州市品高软件股份有限公司 | A kind of dispositions method and device of bare metal server |
| Publication number | Publication date |
|---|---|
| CN114070723A (en) | 2022-02-18 |
| Publication | Publication Date | Title |
|---|---|---|
| CN114070723B (en) | Virtual network configuration method and system of bare metal server and intelligent network card | |
| CN109451084B (en) | A service access method and device | |
| US10375015B2 (en) | Methods and system for allocating an IP address for an instance in a network function virtualization (NFV) system | |
| CN104734931B (en) | Link establishing method and device between a kind of virtual network function | |
| JP6487979B2 (en) | Framework and interface for offload device-based packet processing | |
| EP3316532B1 (en) | Computer device, system and method for implementing load balancing | |
| US9749145B2 (en) | Interoperability for distributed overlay virtual environment | |
| CN108347493B (en) | Hybrid cloud management method, apparatus and computing device | |
| CN114338606B (en) | A public cloud network configuration method and related equipment | |
| CN106850324B (en) | virtual network interface object | |
| US10594586B2 (en) | Dialing test method, dialing test system, and computing node | |
| US20090063706A1 (en) | Combined Layer 2 Virtual MAC Address with Layer 3 IP Address Routing | |
| CN112583618B (en) | Method, device and computing equipment for providing network service for business | |
| US10771309B1 (en) | Border gateway protocol routing configuration | |
| WO2020024413A1 (en) | Method for controlling deployment of cloud computing platform, server, and storage medium | |
| CN108287723A (en) | A kind of application exchange method, device, physical machine and system | |
| US10237235B1 (en) | System for network address translation | |
| US10469402B2 (en) | Dynamic endpoint group binding for cross-tenant resource sharing in software defined networks | |
| CN111698346A (en) | Private network address conversion method and device, private network gateway and storage medium | |
| CN119254718A (en) | A method and device for implementing distributed DHCP service | |
| WO2024037619A1 (en) | Cloud computing technology-based virtual instance creation method and cloud management platform | |
| JP2024540761A (en) | Virtual network interface for managed layer 2 connectivity in computing service extension locations - Patents.com | |
| CN116781626A (en) | A load balancing method, device and electronic equipment | |
| CN116546012A (en) | Method and device for realizing edge cloud NAT gateway, electronic equipment and storage medium | |
| CN117632353A (en) | A virtual instance creation method and cloud management platform based on cloud computing technology |
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |