CN109120494B - Method for accessing physical machine in cloud computing system - Google Patents
Method for accessing physical machine in cloud computing system Download PDFInfo
- Publication number
- CN109120494B CN109120494B CN201811035964.4A CN201811035964A CN109120494B CN 109120494 B CN109120494 B CN 109120494B CN 201811035964 A CN201811035964 A CN 201811035964A CN 109120494 B CN109120494 B CN 109120494B
- Authority
- CN
- China
- Prior art keywords
- physical
- virtual
- network
- switch
- node
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/09—Mapping addresses
- H04L61/10—Mapping addresses of different types
- H04L61/103—Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/455—Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F9/45533—Hypervisors; Virtual machine monitors
- G06F9/45558—Hypervisor-specific management and integration aspects
- G06F2009/45595—Network integration; Enabling network access in virtual machine instances
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明提供了在云计算系统中接入物理机的方法,包括在虚拟集群中所配置的若干节点创建虚拟网络,并将所有节点接入第一交换机,将物理集群中的至少一个物理机均接入与第一交换机相互通信的第二交换机;物理集群中的所有物理机不区分功能性节点,而由云平台将待接入的物理机的配置参数以及虚拟网络所分配的VLAN ID动态地配置到所述待接入的物理机所属的物理网卡在第二交换机所对应的端口,并将虚拟集群中的至少一个节点定义为计算节点。通过该方法,提高了物理机接入云计算系统的安全性与平滑性,避免在物理集群端出现流量汇聚现象,节约了公网IP资源,提高了虚拟机与物理机之间数据访问效率、安全性及物理机的兼容性。
The present invention provides a method for connecting physical machines in a cloud computing system, including creating a virtual network with several nodes configured in a virtual cluster, and connecting all nodes to a first switch, and connecting at least one physical machine in the physical cluster to Access to the second switch that communicates with the first switch; all physical machines in the physical cluster do not distinguish between functional nodes, and the cloud platform dynamically assigns the configuration parameters of the physical machines to be accessed and the VLAN ID assigned by the virtual network Configure the port corresponding to the physical network card of the physical machine to be accessed on the second switch, and define at least one node in the virtual cluster as a computing node. Through this method, the security and smoothness of the physical machine access to the cloud computing system are improved, traffic aggregation at the physical cluster end is avoided, public network IP resources are saved, and the data access efficiency between the virtual machine and the physical machine is improved. Security and compatibility with physical machines.
Description
技术领域technical field
本发明涉及云计算技术领域,尤其涉及一种在云计算系统中接入物理机的方法。The invention relates to the technical field of cloud computing, in particular to a method for accessing a physical machine in a cloud computing system.
背景技术Background technique
在云计算环境下,程序、应用、数据库等运行在物理服务器(即物理机,PM)中。用户(guest)登录虚拟机(VM),通过网络访问部署上述程序、应用或者数据库的物理服务器。多个虚拟机之间通过软件定义网络(SND)技术提供虚拟网络功能,用以实现多个虚拟机之间或者容器(Docker)之间或者虚拟机与容器之间基于VLAN、VXLAN、GRE 或者GENEVE类型的网络通信。In a cloud computing environment, programs, applications, databases, etc. run on physical servers (ie, physical machines, PMs). A user (guest) logs in to a virtual machine (VM), and accesses the physical server on which the above program, application or database is deployed through the network. The virtual network function is provided between multiple virtual machines through software-defined network (SND) technology to realize VLAN, VXLAN, GRE or GENEVE between multiple virtual machines or between containers (Docker) or between virtual machines and containers. type of network communication.
随着虚拟机数量的不断增加,对由多个物理机所构成的物理集群的规模提出了更高的要求。为了应对用户对虚拟机的访问需求及计算能力的提高,就需要在物理集群中部署更多的物理机或者物理服务器。在此场景中就要对物理集群的前端部署可编程的物理交换机。结合图1所示,由于各个物理机制造厂商所采用的通信指令的不同,从而造成在物理集群中部署物理机(通常为增加物理机)时存在物理机兼容性不佳的缺陷。同时,在该现有技术中,物理集群作为资源池中形成计算节点、存储节点或者网络节点的部分,只能依靠管理员对物理机与虚拟网络进行网络协议的转换,从而导致现有技术中物理机部署时的灵活性不佳。As the number of virtual machines continues to increase, higher requirements are placed on the scale of a physical cluster composed of multiple physical machines. In order to cope with the user's access requirements for virtual machines and the improvement of computing power, it is necessary to deploy more physical machines or physical servers in the physical cluster. In this scenario, a programmable physical switch must be deployed on the front end of the physical cluster. As shown in FIG. 1 , due to the different communication instructions adopted by various physical machine manufacturers, there is a defect of poor compatibility of physical machines when deploying physical machines (usually adding physical machines) in a physical cluster. At the same time, in this prior art, as a part of computing nodes, storage nodes, or network nodes in the resource pool, the physical cluster can only rely on the administrator to convert the network protocol between the physical machine and the virtual network, resulting in The flexibility of physical machine deployment is not good.
更为重要的是,当物理机与和虚拟机进行通信时,需要给每一个物理机分配一个外网IP。当物理机的数量非常大时,显然就会需要分配大量的外网IP,从而造成了外网IP资源的浪费。此外,VLAN ID存在上限的瓶颈,最大只有4096个,因此在接入数量更多的物理机时,就无法为每个物理机实现分配VLAN ID。More importantly, when the physical machine communicates with the virtual machine, an external network IP needs to be assigned to each physical machine. When the number of physical machines is very large, it is obvious that a large number of external network IPs need to be allocated, resulting in a waste of external network IP resources. In addition, there is a bottleneck of the upper limit of VLAN IDs, and the maximum number is only 4096. Therefore, when more physical machines are connected, it is impossible to allocate VLAN IDs for each physical machine.
同时,申请人还发现在基于图1所示出的云平台中,通常将物理集群10中的一个或者多个物理机定义为网络节点A、计算节点B、存储节点C或者其他功能节点。然而这种对物理机在物理集群10中的功能角色进行分类的部署手段,会造成需要在云平台的统一管理下,自动的在物理机与虚拟机之间做网络IP地址的转换。这就在一定程度上造成了部署物理机的难度,并导致了因为不同硬件厂商所提供的物理机在部署过程中兼容性较差的问题。At the same time, the applicant also found that in the cloud platform shown in FIG. 1 , one or more physical machines in the physical cluster 10 are usually defined as network node A, computing node B, storage node C or other functional nodes. However, this deployment method of classifying the functional roles of physical machines in the physical cluster 10 will result in the need to automatically convert network IP addresses between physical machines and virtual machines under the unified management of the cloud platform. This makes it difficult to deploy physical machines to a certain extent, and leads to the poor compatibility of physical machines provided by different hardware manufacturers during the deployment process.
进一步的,基于图1所示出的云平台中,如果将多个物理机区分为网络节点A、计算节点B、存储节点C或者其他功能节点,则存在网络节点A产生严重的流量汇聚现象。一旦网络节点A断电、宕机或者存在系统异常,则会导致用户对云平台中虚拟集群400中的虚拟机401~虚拟机40i的访问产生致命影响。因此,图1所示出的云平台架构无法有效地部署到公有云环境中,且存在物理机容易遭受攻击,从而导致安全性不高的缺陷。Further, based on the cloud platform shown in FIG. 1 , if multiple physical machines are divided into network node A, computing node B, storage node C or other functional nodes, there will be serious traffic aggregation phenomenon in network node A. Once the network node A is powered off, down, or has a system abnormality, it will cause a fatal impact on the user's access to the virtual machines 401 - 40i in the virtual cluster 400 in the cloud platform. Therefore, the cloud platform architecture shown in Figure 1 cannot be effectively deployed in a public cloud environment, and there is a defect that physical machines are vulnerable to attacks, resulting in low security.
有鉴于此,有必要对现有技术中的在云计算系统中接入物理机的方法予以改进,以解决上述问题。In view of this, it is necessary to improve the method for connecting a physical machine in a cloud computing system in the prior art to solve the above problems.
发明内容Contents of the invention
本发明的目的在于揭露一种云计算系统中接入物理机的方法,以提高物理机接入云计算系统的安全性与平滑性,防止在物理集群端出现流量汇聚现象,同时节约公网IP资源,提高虚拟机与物理机之间的数据访问效率及安全性,并提高所对接入的不同厂商提供的物理机的兼容性。The purpose of the present invention is to disclose a method for accessing a physical machine in a cloud computing system, so as to improve the security and smoothness of the physical machine accessing the cloud computing system, prevent traffic aggregation at the physical cluster end, and save public network IP resources, improve the data access efficiency and security between virtual machines and physical machines, and improve the compatibility of physical machines provided by different manufacturers for access.
为实现上述目的,本发明提供了一种在云计算系统中接入物理机的方法,包括:To achieve the above object, the present invention provides a method for accessing a physical machine in a cloud computing system, including:
在虚拟集群中所配置的若干节点创建虚拟网络,并将所有节点接入第一交换机,将物理集群中的至少一个物理机均接入与第一交换机相互通信的第二交换机;Several nodes configured in the virtual cluster create a virtual network, and all nodes are connected to a first switch, and at least one physical machine in the physical cluster is connected to a second switch that communicates with the first switch;
其中,所述物理集群中的所有物理机不区分功能性节点,而由云平台将待接入的物理机的配置参数以及虚拟网络所分配的VLAN ID动态地配置到所述待接入的物理机所属的物理网卡在第二交换机所对应的端口,并将虚拟集群中的至少一个节点定义为计算节点。Wherein, all the physical machines in the physical cluster do not distinguish between functional nodes, and the cloud platform dynamically configures the configuration parameters of the physical machines to be accessed and the VLAN ID allocated by the virtual network to the physical nodes to be accessed. The port corresponding to the physical network card to which the machine belongs is on the second switch, and at least one node in the virtual cluster is defined as a computing node.
作为本发明的进一步改进,所述配置参数包括:待接入的物理机的MAC 地址信息、待接入的物理机所属的物理网卡接入第二交换机所对应的端口信息及待接入的物理机的权限。As a further improvement of the present invention, the configuration parameters include: the MAC address information of the physical machine to be accessed, the port information corresponding to the physical network card of the physical machine to be accessed to access the second switch, and the physical network card to be accessed. machine permissions.
作为本发明的进一步改进,所述第一交换机与第二交换机之间配置防火墙、二层交换机或者三层交换机中的一个或者多个。As a further improvement of the present invention, one or more of a firewall, a Layer 2 switch or a Layer 3 switch is arranged between the first switch and the second switch.
作为本发明的进一步改进,所述虚拟网络由VXLAN虚拟网络、GRE虚拟网络、VLAN虚拟网络、GENEVE虚拟网络中的一种或者任意两种虚拟网络所组成的混合型虚拟网络。As a further improvement of the present invention, the virtual network is a hybrid virtual network composed of one of VXLAN virtual network, GRE virtual network, VLAN virtual network, and GENEVE virtual network, or any two virtual networks.
作为本发明的进一步改进,所述虚拟集群与第一交换机之间基于 VXLAN虚拟网络、GRE虚拟网络、VLAN虚拟网络或者GENEVE虚拟网络进行隔离,所述物理集群与第二交换机之间基于VLAN进行隔离。As a further improvement of the present invention, the virtual cluster is isolated from the first switch based on VXLAN virtual network, GRE virtual network, VLAN virtual network or GENEVE virtual network, and the physical cluster is isolated from the second switch based on VLAN .
作为本发明的进一步改进,所述物理网卡与第二交换机连接的端口的工作模式为Access模式,以自动添加或者移除Vlan Tag。As a further improvement of the present invention, the working mode of the port connecting the physical network card to the second switch is Access mode, so as to automatically add or remove the Vlan Tag.
作为本发明的进一步改进,将虚拟集群中的至少一个节点定义为计算节点,所述计算节点与第一交换机连接的端口之间的工作模式为trunk模式。As a further improvement of the present invention, at least one node in the virtual cluster is defined as a computing node, and the working mode between the computing node and the port connected to the first switch is trunk mode.
作为本发明的进一步改进,所述物理机选自具物理网卡的裸金属服务器、部署应用的服务器、桌面型计算机或者移动通讯装置。As a further improvement of the present invention, the physical machine is selected from a bare metal server with a physical network card, a server for deploying applications, a desktop computer or a mobile communication device.
作为本发明的进一步改进,所述物理集群中的所有物理机的功能性节点包括:具存储功能的物理存储节点、具计算功能的物理计算节点以及具数据转发功能的物理网络节点。As a further improvement of the present invention, the functional nodes of all physical machines in the physical cluster include: physical storage nodes with storage functions, physical computing nodes with computing functions, and physical network nodes with data forwarding functions.
作为本发明的进一步改进,云平台将虚拟网络所分配的VLAN ID动态地配置到所述待接入的物理机所属的物理网卡在第二交换机所对应的端口之后还包括:在虚拟集群所有节点中配置VLAN ID与虚拟网络之间的VNI 映射关系的步骤,所述节点被配置为虚拟机或者容器。As a further improvement of the present invention, the cloud platform dynamically configures the VLAN ID assigned by the virtual network to the physical network card to which the physical machine to be accessed belongs. After the port corresponding to the second switch, it also includes: all nodes in the virtual cluster In the step of configuring the VNI mapping relationship between the VLAN ID and the virtual network, the node is configured as a virtual machine or a container.
作为本发明的进一步改进,所述虚拟集群中的两个节点均被定义为计算节点,两个计算节点之间分别通过彼此所配置的第一交换机,对不同类型的虚拟网络进行转换,并对两个计算节点所对应的物理机的物理网卡所转发的数据包作出响应。As a further improvement of the present invention, the two nodes in the virtual cluster are both defined as computing nodes, and the two computing nodes respectively pass through the first switches configured with each other to convert different types of virtual networks, and to The data packets forwarded by the physical network cards of the physical machines corresponding to the two computing nodes respond.
作为本发明的进一步改进,所述虚拟集群中的节点基于openvswitch流表规则处理从计算节点向物理机返回的数据包;As a further improvement of the present invention, nodes in the virtual cluster process data packets returned from computing nodes to physical machines based on openvswitch flow table rules;
所述节点配置br-int、br-tun及br-phy,并通过br-tun处理隧道网络数据包,通过br-phy处理物理机网络数据包,通过br-int处理虚拟机和流量分类,所述虚拟机与br-int连接,br-int与br-phy之间通过虚拟网线连接,br-int与 br-tun之间通过虚拟网线连接,br-phy和br-tun不直接连接。The nodes are configured with br-int, br-tun, and br-phy, and process tunnel network data packets through br-tun, process physical machine network data packets through br-phy, and process virtual machines and traffic classification through br-int. The above virtual machine is connected to br-int, br-int is connected to br-phy through a virtual network cable, br-int is connected to br-tun through a virtual network cable, and br-phy and br-tun are not directly connected.
与现有技术相比,本发明的有益效果是:Compared with prior art, the beneficial effect of the present invention is:
通过本发明所揭示的一种在云计算系统中接入物理机的方法,显著地提高了物理机接入云计算系统的安全性与平滑性;同时,由于物理集群中的所有物理机不区分功能性节点,因此能够有效的避免了在物理集群端出现流量汇聚现象;最后,本发明还节约了公网IP资源,提高了虚拟机与物理机之间的数据访问效率、安全性及物理机的兼容性。Through a method for accessing physical machines in a cloud computing system disclosed by the present invention, the security and smoothness of physical machines accessing the cloud computing system are significantly improved; at the same time, since all physical machines in the physical cluster do not distinguish Functional nodes, so it can effectively avoid traffic aggregation phenomenon at the physical cluster end; finally, the present invention also saves public network IP resources, improves data access efficiency, security and physical machine access efficiency between virtual machines and physical machines compatibility.
附图说明Description of drawings
图1为现有技术中的云计算系统的拓扑结构图;Fig. 1 is a topological structure diagram of a cloud computing system in the prior art;
图2为基于本发明所示出的在云计算系统中接入物理机的方法在第一种实施例中所形成的云计算系统的拓扑结构图,其中,图2中的物理机选自裸金属服务器;Fig. 2 is the topological structure diagram of the cloud computing system formed in the first embodiment based on the method for accessing the physical machine in the cloud computing system shown in the present invention, wherein, the physical machine in Fig. 2 is selected from bare metal server;
图3为虚拟集群中的Node_1与物理集群中的物理机进行通信时的示意图;Fig. 3 is the schematic diagram when Node_1 in the virtual cluster communicates with the physical machine in the physical cluster;
图4为虚拟集群中的节点Node_1中的虚拟机VM1对不同类型的虚拟网络进行转换的示意图;FIG. 4 is a schematic diagram of the virtual machine VM1 in the node Node_1 in the virtual cluster converting different types of virtual networks;
图5为物理机访问虚拟集群中的一个虚拟机时基于ARP方式进行网络通信的过程示意图;5 is a schematic diagram of the process of network communication based on ARP when a physical machine accesses a virtual machine in a virtual cluster;
图6为虚拟集群中的节点Node_1出现异常时由节点Node_2代替节点Node_1并作为计算节点并与物理集群中的一台物理机进行通信时的示意图,其中,图6中的物理机选自裸金属服务器;Figure 6 is a schematic diagram of when Node_1 in the virtual cluster is abnormal and Node_2 is used to replace Node_1 as a computing node and communicate with a physical machine in the physical cluster, where the physical machine in Figure 6 is selected from bare metal server;
图7为图1所示出的现有技术中的云计算系统与本发明所组建的云计算系统中在同网络跨节点以及跨网络跨节点两种场景下虚拟机与物理机之间最大带宽的传输速率进行对比的示意图;Fig. 7 shows the maximum bandwidth between the virtual machine and the physical machine in the cloud computing system in the prior art shown in Fig. 1 and in the cloud computing system established by the present invention in the same network cross-node and cross-network cross-node scenarios Schematic diagram of the comparison of the transmission rate;
图8为基于本发明所示出的在云计算系统中接入物理机的方法在第一种变形实施例中所形成的云计算系统的拓扑结构图;FIG. 8 is a topological structure diagram of a cloud computing system formed in a first modified embodiment based on the method for accessing a physical machine in a cloud computing system shown in the present invention;
图9为基于本发明所示出的在云计算系统中接入物理机的方法在第二种变形实施例中所形成的云计算系统的拓扑结构图,其中,图9中的物理机选自裸金属服务器。Fig. 9 is a topological structure diagram of a cloud computing system formed in a second modified embodiment based on the method for accessing a physical machine in a cloud computing system shown in the present invention, wherein the physical machine in Fig. 9 is selected from bare metal server.
具体实施方式Detailed ways
下面结合附图所示的各实施方式对本发明进行详细说明,但应当说明的是,这些实施方式并非对本发明的限制,本领域普通技术人员根据这些实施方式所作的功能、方法、或者结构上的等效变换或替代,均属于本发明的保护范围之内。The present invention will be described in detail below in conjunction with the implementations shown in the drawings, but it should be noted that these implementations are not limitations of the present invention, and those of ordinary skill in the art based on the functions, methods, or structural changes made by these implementations Equivalent transformations or substitutions all fall within the protection scope of the present invention.
本说明书具体方式部分所采用的技术术语在不同的场景应当作不同的解释,例如术语“宿主机”在虚拟集群400中运行程序或者应用或者向用户发起的请求进行响应的主机。同时,在本申请中,术语“连接”既可以是计算机拓扑架构上的连接,也可是电学上的连接,也可是基于报文或者数据链路所形成的单向数据传输和/或双向数据传输。The technical terms used in the specific manner of this specification should be interpreted differently in different scenarios, for example, the term "host" is a host that runs programs or applications in the virtual cluster 400 or responds to requests initiated by users. At the same time, in this application, the term "connection" can refer to a computer topology connection, an electrical connection, or a one-way data transmission and/or two-way data transmission based on a message or a data link. .
实施例一:Embodiment one:
参图1所示,物理集群10中的物理节点分为网络节点和普通节点,物理节点都连接到第二交换机300上(即裸机交换机),第一交换机(未示出,可参考图2中的第一交换机200)连接虚拟集群400中的一个或者多个虚拟机。在图1中,为简化表示,仅示出一个虚拟机。As shown in FIG. 1, the physical nodes in the physical cluster 10 are divided into network nodes and ordinary nodes. The physical nodes are all connected to the second switch 300 (ie, the bare metal switch), and the first switch (not shown, refer to FIG. 2 The first switch 200) is connected to one or more virtual machines in the virtual cluster 400. In FIG. 1, only one virtual machine is shown for simplified representation.
在现有技术中,需要对裸机(即物理机)进行分类。图1中,为了简化表示,将多个裸机(即物理机)分成网络节点A、计算节点B及存储节点C。计算节点B及存储节点C的流量需要汇聚到网络节点A才能和不同网络类型的资源通信。这里的网络类型表示云平台支持的网络类型,裸机网络类型都是VLAN,如果云平台中VM所在的虚拟网络也是VLAN类型,那么无需将流量汇聚即可正常通信;当裸机需要和VXLAN类型的虚拟网络设备通信时,流量必须汇聚到网络节点A,由网络节点A通过VXLAN封装后再到达虚拟集群400的宿主机(相当于图1所示出的虚拟机)。In the prior art, it is necessary to classify bare machines (that is, physical machines). In FIG. 1 , multiple bare metal machines (that is, physical machines) are divided into network node A, computing node B, and storage node C for simplified representation. The traffic of computing node B and storage node C needs to converge to network node A to communicate with resources of different network types. The network type here indicates the network type supported by the cloud platform. The bare metal network type is VLAN. If the virtual network where the VM in the cloud When the network devices communicate, the traffic must be converged to the network node A, and then the network node A is encapsulated by VXLAN and then reaches the host machine of the virtual cluster 400 (equivalent to the virtual machine shown in FIG. 1 ).
现有技术所形成的这种云平台不仅会增加架构复杂度,同时需要汇聚普通节点(即计算节点B及存储节点C)的流量到网络节点A,而且需要将裸机的网络节点A和虚拟机的宿主机建立VXLAN隧道,大大增加了管理成本,不稳定因素较多。尤其是,当网络节点A出现故障宕机后,普通节点(即计算节点B及存储节点C)的流量无法汇聚到网络节点A,导致裸机无法和虚拟集群400中的虚拟机进行通信。This kind of cloud platform formed by the existing technology will not only increase the complexity of the architecture, but also need to converge the traffic of ordinary nodes (namely computing node B and storage node C) to network node A, and also need to integrate bare metal network node A and virtual machine The establishment of VXLAN tunnels on the host machine greatly increases the management cost, and there are many unstable factors. In particular, when network node A fails and goes down, the traffic of ordinary nodes (ie computing node B and storage node C) cannot converge to network node A, resulting in the inability of the bare metal to communicate with the virtual machines in the virtual cluster 400 .
因此,这种架构要求必须将至少一台裸机(即物理机)作为网络节点A,从而导致需要消耗额外的物理资源。由此,本申请说明书的具体实施方式部分重点对图1所揭示的现有技术所存在的技术问题进行有针对性的完善。Therefore, this architecture requires that at least one bare metal machine (that is, a physical machine) must be used as the network node A, resulting in consumption of additional physical resources. Therefore, the specific implementation part of the description of the present application focuses on the targeted improvement of the technical problems existing in the prior art disclosed in FIG. 1 .
参图2所示,在本申请中的虚拟集群400可以是分布式架构的虚拟集群 400(即Content Management System,CMS)分布式架构。虚拟集群400中包含Node_1、Node_2…..Node_n等n个节点。这n个节点可被配置为虚拟机,也可被配置为容器(Docker)。n个节点均接入第一交换机200。从系统架构而言,第一交换机200角色是虚拟集群400中与物理集群10中的一个或者多个物理机(即物理机10a、物理机10b····物理机10i)通过第二交换机300进行相互通信。即物理机10a、物理机10b····物理机10i与第二交换机300所配置的端口连接入云计算系统的虚拟集群400。具体的,该 Node_1、Node_2…..Node_n等n个节点上安装的操作系统为Linux操作系统。As shown in FIG. 2, the virtual cluster 400 in this application may be a distributed architecture of the virtual cluster 400 (that is, Content Management System, CMS). The virtual cluster 400 includes n nodes such as Node_1 , Node_2 . . . Node_n. These n nodes can be configured as virtual machines or as containers (Docker). The n nodes are all connected to the first switch 200 . From the perspective of system architecture, the role of the first switch 200 is that one or more physical machines in the virtual cluster 400 and the physical cluster 10 (that is, the physical machine 10a, the physical machine 10b...the physical machine 10i) pass through the second switch 300 communicate with each other. That is, the ports configured by the physical machine 10a, the physical machine 10b...the physical machine 10i and the second switch 300 are connected to the virtual cluster 400 of the cloud computing system. Specifically, the operating systems installed on n nodes such as Node_1, Node_2...Node_n are Linux operating systems.
具体的,在本实施方式中,该第一交换机200与第二交换机300之间可配置或者设置任意类型的具有单向数据广播或者双向数据传输的设备100,该设备100可以是防火墙50(参图3及图6所示)、二层交换机(未示出) 或者三层交换机(未示出)中的一个或者多个。同时,当第一交换机200与第二交换机300之间配置或者设置防火墙50及二层交换机或者三层交换机时,可以采用直连方式,以连接第一交换机200与第二交换机300。Specifically, in this embodiment, any type of device 100 with one-way data broadcast or two-way data transmission can be configured or set between the first switch 200 and the second switch 300, and the device 100 can be a firewall 50 (refer to 3 and 6), one or more of a Layer 2 switch (not shown) or a Layer 3 switch (not shown). Meanwhile, when a firewall 50 and a Layer 2 switch or a Layer 3 switch are configured or set between the first switch 200 and the second switch 300 , a direct connection method can be used to connect the first switch 200 and the second switch 300 .
具体的,参图3所示,本实施方式所揭示的一种在云计算系统中接入物理机的方法,包括:Specifically, as shown in FIG. 3, a method for accessing a physical machine in a cloud computing system disclosed in this embodiment includes:
在虚拟集群400中所配置的若干节点创建虚拟网络,并将所有节点接入第一交换机200,将物理集群10中的至少一个物理机(即物理机10a、物理机10b····物理机10i)均接入与第一交换机200相互通信的第二交换机300。物理集群10中的所有物理机(即物理机10a、物理机10b····物理机10i) 不区分功能性节点,而由云平台将待接入的物理机的配置参数以及虚拟网络所分配的VLAN ID动态地配置到所述待接入的物理机所属的物理网卡在第二交换机300所对应的端口,以将虚拟集群400中的至少一个节点定义为计算节点。计算节点可以是一个,也可以是两个或者多个;其中,将VLAN ID 动态配置到第二交换机300所对应的端口的操作由SDN控制器执行。Several nodes configured in the virtual cluster 400 create a virtual network, and all nodes are connected to the first switch 200, and at least one physical machine in the physical cluster 10 (ie, the physical machine 10a, the physical machine 10b...the physical machine 10i) Both access the second switch 300 that communicates with the first switch 200 . All physical machines in the physical cluster 10 (that is, physical machine 10a, physical machine 10b...physical machine 10i) do not distinguish between functional nodes, but are assigned by the cloud platform to the configuration parameters of the physical machines to be accessed and the virtual network The VLAN ID is dynamically configured to the port corresponding to the physical network card of the physical machine to be accessed on the second switch 300, so as to define at least one node in the virtual cluster 400 as a computing node. There may be one computing node, or two or more computing nodes; wherein, the operation of dynamically configuring the VLAN ID to the port corresponding to the second switch 300 is performed by the SDN controller.
虚拟网络分配VLAN ID后将所述VLAN ID存储于数据库中;其中,数据库被配置于云平台中,例如,可将数据库部署到图2中节点node1_1~节点 Node_n所形成的虚拟机或者容器中,通过虚拟网络打通网络通信。同时由于虚拟机或者容器本身支持HA或者故障迁移,从而降低了数据库故障的概率;或者将数据库部署到物理机中,通过物理机所属的物理网络打通网络通信,以更好的提高数据库的性能和稳定性。After the virtual network distributes the VLAN ID, the VLAN ID is stored in the database; wherein, the database is configured in the cloud platform, for example, the database can be deployed to a virtual machine or container formed by node node1_1~node Node_n in Figure 2, Open network communication through virtual network. At the same time, since the virtual machine or container itself supports HA or fault migration, the probability of database failure is reduced; or the database is deployed on a physical machine, and the network communication is opened up through the physical network to which the physical machine belongs to better improve the performance and performance of the database. stability.
进一步的,在本实施方式中还可包括在云平台中创建虚拟网络并为虚拟网络分配VLAN ID后,将所述VLAN ID存储于数据库中;其中,数据库包括:Oracle数据库、DB2数据库、Postgre SQL数据库、Microsoft SQL Server 数据库、MicrosoftAccess数据库或者MySQL数据库,并优选为MySQL数据库。因此,在虚拟网络中创建虚拟网卡时,便可根据与创建的虚拟网络所对应的VLAN ID去配置与物理机连接的第二交换机300的端口。在本实施例中,通过这种接入方式,可以使物理机获得被创建的虚拟网络的虚拟IP 地址,从而有效的降低了公网IP资源的浪费。Further, in this embodiment, it can also include creating a virtual network in the cloud platform and assigning a VLAN ID to the virtual network, storing the VLAN ID in a database; wherein, the database includes: Oracle database, DB2 database, Postgre SQL Database, Microsoft SQL Server database, Microsoft Access database or MySQL database, and preferably MySQL database. Therefore, when creating a virtual network card in the virtual network, the port of the second switch 300 connected to the physical machine can be configured according to the VLAN ID corresponding to the created virtual network. In this embodiment, through this access method, the physical machine can obtain the virtual IP address of the created virtual network, thereby effectively reducing the waste of public network IP resources.
同时,在本实施方式中,该配置参数包括:待接入的物理机的MAC地址信息、待接入的物理机所属的物理网卡接入第二交换机300所对应的端口信息及待接入的物理机的权限。At the same time, in this embodiment, the configuration parameters include: the MAC address information of the physical machine to be accessed, the port information corresponding to the physical network card of the physical machine to be accessed to access the second switch 300, and the The permissions of the physical machine.
虚拟集群400能够将物理机10a、物理机10b….物理机10i的MAC地址、IP地址等创建时提供的参数配置到内部的DHCP服务中,方便物理机被部署或者接入物理集群10后自动获取IP。所述IP是指物理集群10中的某个物理机所具备的IP地址(即图9中的裸金属服务器10a所形成的IP地址, 10.10.100.100)。The virtual cluster 400 can configure the parameters provided during the creation of the physical machine 10a, physical machine 10b....physical machine 10i, such as the MAC address and IP address, into the internal DHCP service, so that the physical machine is automatically deployed or connected to the physical cluster 10. Get an IP. The IP refers to the IP address of a certain physical machine in the physical cluster 10 (that is, the IP address formed by the bare metal server 10a in FIG. 9 , 10.10.100.100).
DHCP服务在云平台中使用DHCP-AGENT实现,DHCP-AGENT用于管理云平台中所有虚拟网络对应的dhcp端口,用来提供DHCP服务。 DHCP-AGENT运行于云平台中某个或者某两个固定节点上(非虚拟机的宿主机),使用namespace实现网络资源隔离,使用veth设备将namespace连接到br-int虚拟交换机上,同时在namespace中启动dnsmasq进程,提供DHCP服务,这样物理机所发起的DHCP请求就可以通过br-int虚拟交换机进入到 DHCP进程所在的namespace,能够正确获取到分配的IP地址。The DHCP service is implemented in the cloud platform using DHCP-AGENT, and the DHCP-AGENT is used to manage the dhcp ports corresponding to all virtual networks in the cloud platform to provide DHCP services. DHCP-AGENT runs on one or two fixed nodes (non-virtual machine hosts) in the cloud platform, uses namespace to realize network resource isolation, uses veth device to connect namespace to br-int virtual switch, and at the same time, in namespace Start the dnsmasq process to provide DHCP services, so that the DHCP request initiated by the physical machine can enter the namespace where the DHCP process is located through the br-int virtual switch, and the assigned IP address can be obtained correctly.
在本实施方式中,在云计算系统中部署或者接入物理机时,会创建物理机对应虚拟网络中的虚拟网卡,同时SDN控制器将虚拟集群400生成的物理机的VLAN配置到第二交换机300端口中,以建立需要部署或者接入的物理机和虚拟集群400中的一个节点(node)之间的物理通路。In this embodiment, when deploying or accessing a physical machine in the cloud computing system, a virtual network card in the virtual network corresponding to the physical machine will be created, and at the same time, the SDN controller will configure the VLAN of the physical machine generated by the virtual cluster 400 to the second switch 300 port to establish a physical path between the physical machine to be deployed or accessed and a node in the virtual cluster 400 .
参图7所示,通过本发明所揭示的方法所组建的云计算系统中在同网络跨节点以及跨网络跨节点两种场景下虚拟机(即图2中的各个Node)与物理机之间最大带宽的传输速率分别为8.87Gbit/s与8.28Gbit/s,相对于现有技术中的虚拟机与物理机之间最大带宽的传输速率分别为8.45Gbit/s与 7.51Gbit/s的传输速率而言,通过本发明所组建的云计算系统中,在同网络 (相同类型的虚拟网络)跨节点的场景下,以及跨网络(不同类型的虚拟网络)跨节点的场景下,虚拟机与物理机之间的通信能力优于虚拟集群400内部的节点间的通信能力。As shown in FIG. 7, in the cloud computing system formed by the method disclosed in the present invention, in the same network cross-node and cross-network cross-node scenarios, the virtual machine (that is, each Node in FIG. 2) and the physical machine The transmission rates of the maximum bandwidth are 8.87Gbit/s and 8.28Gbit/s respectively, compared to the transmission rates of the maximum bandwidth between the virtual machine and the physical machine in the prior art are 8.45Gbit/s and 7.51Gbit/s respectively In other words, in the cloud computing system established by the present invention, in the same network (the same type of virtual network) cross-node scenario, and in the cross-network (different type of virtual network) cross-node scenario, the virtual machine and physical The communication capability between machines is better than the communication capability between nodes inside the virtual cluster 400.
其中,物理集群10中的所有物理机的功能性节点包括:具存储功能的物理存储节点、具计算功能的物理计算节点以及具数据转发功能的物理网络节点。因此,在本实施方式中,虚拟网络类型的转换是在虚拟集群400中的一个或者多个节点中完成的,因此不需要第一交换机200和/或第二交换机 300进行转换处理,从而极大地缓解了第一交换机200和/或第二交换机300 的转换压力。该节点(Node)可被配置为虚拟机(VM)或者容器(Docker)。在本实施方式中,我们以节点(Node)被配置为一个虚拟机(VM)为范例进行示范性说明。The functional nodes of all physical machines in the physical cluster 10 include: physical storage nodes with storage functions, physical computing nodes with computing functions, and physical network nodes with data forwarding functions. Therefore, in this embodiment, the conversion of the virtual network type is completed in one or more nodes in the virtual cluster 400, so the first switch 200 and/or the second switch 300 are not required to perform conversion processing, thereby greatly improving The switching pressure of the first switch 200 and/or the second switch 300 is relieved. The node (Node) can be configured as a virtual machine (VM) or a container (Docker). In this embodiment, we take a node (Node) configured as a virtual machine (VM) as an example for demonstration.
同时,在本实施方式中,物理机选自具物理网卡的裸金属服务器、部署应用的服务器、桌面型计算机(例如PC)或者移动通讯装置(例如手机、平板电脑)。在本实施方式中,我们将物理机以裸金属服务器(Bare Metal) 为例进行示范性说明。Meanwhile, in this embodiment, the physical machine is selected from a bare metal server with a physical network card, a server for deploying applications, a desktop computer (such as a PC) or a mobile communication device (such as a mobile phone, a tablet computer). In this embodiment, we take a physical machine as a bare metal server (Bare Metal) as an example for demonstration.
裸金属服务器是一种集合了CPU、RAM、VirtIO-NIC、VirtIO-Blk、外部设备,其支持云盘、支持VPC网络、支持存储/网络设备热插拔、支持多块弹性物理网卡,同时对X86、ARM、Power等CPU具良好的兼容性。因此,当需要对云计算系统中的物理集群10进行扩展时,裸金属服务器成为了一种较为优选的方案。A bare metal server is a collection of CPU, RAM, VirtIO-NIC, VirtIO-Blk, and external devices. It supports cloud disks, VPC networks, hot-swappable storage/network devices, and multiple elastic physical network cards. X86, ARM, Power and other CPUs have good compatibility. Therefore, when the physical cluster 10 in the cloud computing system needs to be expanded, the bare metal server becomes a more preferred solution.
在本实施方式中,该虚拟网络由VXLAN虚拟网络、GRE虚拟网络、 VLAN虚拟网络、GENEVE虚拟网络中的一种或者任意两种虚拟网络所组成的混合型虚拟网络。虚拟集群400与第一交换机200之间基于VXLAN虚拟网络、GRE虚拟网络、VLAN虚拟网络或者GENEVE虚拟网络进行隔离,在本实施例中,该虚拟集群400与第一交换机200之间基于VXLAN虚拟网络进行连接。物理集群10与第二交换机300之间基于VLAN进行隔离。物理网卡与第二交换机300连接的端口的工作模式为Access模式,以自动添加或者移除Vlan Tag。同时,将虚拟集群400中的一个节点定义为计算节点。In this embodiment, the virtual network is one of VXLAN virtual network, GRE virtual network, VLAN virtual network, and GENEVE virtual network, or a hybrid virtual network composed of any two virtual networks. The virtual cluster 400 and the first switch 200 are isolated based on a VXLAN virtual network, GRE virtual network, VLAN virtual network or GENEVE virtual network. In this embodiment, the virtual cluster 400 and the first switch 200 are based on a VXLAN virtual network to connect. The isolation between the physical cluster 10 and the second switch 300 is based on VLAN. The working mode of the port connecting the physical network card to the second switch 300 is Access mode, so as to automatically add or remove the Vlan Tag. Meanwhile, a node in the virtual cluster 400 is defined as a computing node.
参图2或者图8所示,Node_1、Node_2…..Node_n等n个节点均可单独定义为一个计算节点。同时,具体结合图6所示,在本实施方式中,我们将 Node_1作为唯一的一个计算节点,并将该计算节点与第一交换机200连接的端口之间的工作模式为trunk模式。Referring to FIG. 2 or FIG. 8, n nodes such as Node_1, Node_2...Node_n can be individually defined as a computing node. At the same time, specifically as shown in FIG. 6, in this embodiment, we use Node_1 as the only computing node, and the working mode between the computing node and the port connected to the first switch 200 is trunk mode.
同时,在本实施方式中,云平台将虚拟网络所分配的VLAN ID动态地配置到所述待接入的物理机所属的物理网卡对应交换机的端口之后还包括:在虚拟集群400所有节点中配置VLAN ID与虚拟网络之间的VNI映射关系的步骤。具体的,在本实施例中,物理集群10中的物理机被配置为裸金属服务器,即裸金属服务器10a、裸金属服务器10b….裸金属服务器10i。At the same time, in this embodiment, after the cloud platform dynamically configures the VLAN ID assigned by the virtual network to the port of the switch corresponding to the physical network card of the physical machine to be accessed, it also includes: configuring in all nodes of the virtual cluster 400 Steps for VNI mapping relationship between VLAN ID and virtual network. Specifically, in this embodiment, the physical machines in the physical cluster 10 are configured as bare metal servers, that is, bare metal servers 10a, bare metal servers 10b....bare metal servers 10i.
具体的,在本实施例中,将虚拟网络所分配的VLAN ID动态地配置到所述待接入的物理机所属的物理网卡对应交换机的端口的具体执行可由全局控制第一交换机200及第二交换机300的SDN控制器实现。该SDN控制器可运行于虚拟集群400中的任意一个节点(或者容器中)或者与虚拟集群 400互联的物理集群10中的任意一个物理机中。Specifically, in this embodiment, the specific implementation of dynamically configuring the VLAN ID assigned by the virtual network to the port of the switch corresponding to the physical network card to which the physical machine to be accessed belongs can be performed by the global control of the first switch 200 and the second switch 200. The SDN controller of the switch 300 is implemented. The SDN controller can run on any node (or container) in the virtual cluster 400 or any physical machine in the physical cluster 10 interconnected with the virtual cluster 400.
在云计算系统的节点内部,在实现虚拟网络类型转换时可根据待接入的物理机,例如裸金属服务器所具备的源MAC地址进行过滤,只有MAC地址在云平台录入过的裸金属服务器10a、裸金属服务器10b….裸金属服务器10i 对应的数据包才允许通过,否则会被丢弃。规则举例:Inside the nodes of the cloud computing system, when implementing virtual network type conversion, it can be filtered according to the source MAC address of the physical machine to be connected, such as the bare metal server, and only the bare metal server 10a whose MAC address has been entered on the cloud platform , BMS 10b... BMS 10i corresponding data packets are allowed to pass, otherwise they will be discarded. Example rules:
第一条规则代码如下:The code for the first rule is as follows:
br-phy in_port=2,dl_vlan=2,br-phy in_port=2, dl_vlan=2,
dl_dst=60:da:83:3d:45:05,actions=mod_vlan_vid:1270,NORMALdl_dst=60:da:83:3d:45:05,actions=mod_vlan_vid:1270,NORMAL
第二条规则代码如下:The code for the second rule is as follows:
br-int in_port=11,dl_vlan=1270,br-int in_port=11, dl_vlan=1270,
dl_src=60:da:83:3d:45:05,actions=mod_vlan_vid:2,NORMALdl_src=60:da:83:3d:45:05,actions=mod_vlan_vid:2,NORMAL
相对于现有技术中通过物理交换机实现虚拟网络类型转换的技术路线而言,在本实施方式中使用openvswitch流表规则实现。Compared with the technical route of implementing virtual network type conversion through a physical switch in the prior art, it is implemented by using openvswitch flow table rules in this embodiment.
其中,上述第一条规则表示:对于从云平台物理机出去的数据包,目标 MAC地址是物理机的物理网卡会将VLAN设置为1270。Among them, the above-mentioned first rule means: for the data packets going out from the physical machine of the cloud platform, the destination MAC address is the physical network card of the physical machine and the VLAN will be set to 1270.
上述第二条规则表示:对于VLAN是1270同时源MAC地址是待接入的物理机的,将设置一个内部VLAN标签,保证可以和云平台同中的虚拟网络400 中的网络设备进行双向或者单向通信。The above-mentioned second rule means: for the VLAN is 1270 and the source MAC address is the physical machine to be connected, an internal VLAN tag will be set to ensure that the network devices in the virtual network 400 in the same cloud platform can perform bidirectional or single to the communication.
同时,本实施方式所揭示的方法,可以满足任意云平台的虚拟网络类型转换,物理机或者待接入的物理机一直使用VLAN类型不变。没有虚拟网络类型转换的开销成本,降低了第二交换机300的负载与流量压力,同时也不会增加物理集群10的负载,尤其是不会在物理集群10中的一个物理机或者计算装置上产生流量汇聚。At the same time, the method disclosed in this embodiment can satisfy the virtual network type conversion of any cloud platform, and the physical machine or the physical machine to be connected always uses the same VLAN type. There is no overhead cost of virtual network type conversion, which reduces the load and traffic pressure of the second switch 300, and at the same time does not increase the load of the physical cluster 10, especially on a physical machine or computing device in the physical cluster 10. Traffic aggregation.
由于云平台内部的多种虚拟网络类型均是基于VLAN来实现的,多个物理节点之间传递数据使用了不同的隧道技术(Tunnel)来实现,而当数据包达到物理机后,均转换成了VLAN类型,而在本申请中是将物理机发送的数据包直接接入云平台的物理集群10,相当于VLAN和VLAN相同类型的数据包通信,因此使得接入云计算系统的物理机的场景下具有灵活性更高、性能更高的技术优势。Since various types of virtual networks inside the cloud platform are implemented based on VLANs, different tunneling technologies (Tunnel) are used to transmit data between multiple physical nodes, and when the data packets reach the physical machine, they are converted into In this application, the data packet sent by the physical machine is directly connected to the physical cluster 10 of the cloud platform, which is equivalent to VLAN and the same type of data packet communication of the VLAN, so that the physical machine connected to the cloud computing system It has the technical advantages of higher flexibility and higher performance in the scenario.
同时,结合图6所示,在本实施方式中,虚拟集群400中的节点基于 openvswitch流表规则处理从计算节点向物理机返回的数据包。节点配置 br-int、br-tun及br-phy,并通过br-tun处理隧道网络数据包,通过br-phy处理物理机网络数据包,通过br-int处理虚拟机和流量分类,所述虚拟机与br-int 连接,br-int与br-phy之间通过虚拟网线连接,即通过图6中的Patch-port1 与Patch-port2连接,br-int与br-tun之间通过虚拟网线连接,br-tun和br-phy 不连接。Meanwhile, as shown in FIG. 6 , in this embodiment, the nodes in the virtual cluster 400 process the data packets returned from the computing nodes to the physical machines based on the rules of the openvswitch flow table. Nodes are configured with br-int, br-tun and br-phy, and process tunnel network data packets through br-tun, process physical machine network data packets through br-phy, and process virtual machines and traffic classification through br-int. The computer is connected to br-int, and br-int and br-phy are connected through a virtual network cable, that is, connected through Patch-port1 and Patch-port2 in Figure 6, and br-int and br-tun are connected through a virtual network cable. br-tun and br-phy are not connected.
具体的,申请人以云平台中一台虚拟机VM1(其位于Node-1中)访问物理机101为例来介绍网络通信路径,这里假设使用PING的方式来访问,具体代码如下:Specifically, the applicant uses a virtual machine VM1 (which is located in Node-1) in the cloud platform to access the physical machine 101 as an example to introduce the network communication path. Here, it is assumed to use PING to access, and the specific code is as follows:
arp,in_port=2,dl_vlan=1,arp_tpa=169.255.128.11arp, in_port=2, dl_vlan=1, arp_tpa=169.255.128.11
actions=mod_vlan_vid:1814,NORMAL.actions=mod_vlan_vid:1814,NORMAL.
首先,虚拟机VM1发送ARP广播数据包获取物理机101的IP (10.10.100.100)对应的MAC地址,数据包优先通过虚拟机VM的虚拟网卡到达br-int,br-int根据内部流表规则匹配,发现目的IP地址是物理机101的,会将数据包发往br-phy;br-phy中会将虚拟机VM1对应的数据包的内部VLAN 转换成物理机101对应的VLAN。此时,由于之前在创建虚拟网卡时就打通了物理路径,此数据包可以成功到达物理机101所属的物理网卡。物理机101所属的物理网卡返回ARP REPLY数据包。虚拟机VM1开始发送ICMP数据包,流程和发送ARP数据包类型。至此,虚拟机VM1成功访问物理机101。First, the virtual machine VM1 sends an ARP broadcast packet to obtain the MAC address corresponding to the IP (10.10.100.100) of the physical machine 101, and the data packet first reaches br-int through the virtual network card of the virtual machine VM, and br-int is matched according to the rules of the internal flow table If the destination IP address is found to belong to the physical machine 101, the data packet will be sent to br-phy; the internal VLAN of the data packet corresponding to the virtual machine VM1 will be converted into the VLAN corresponding to the physical machine 101 in br-phy. At this time, since the physical path has been established when the virtual network card is created, the data packet can successfully reach the physical network card to which the physical machine 101 belongs. The physical network card to which the physical machine 101 belongs returns an ARP REPLY data packet. The virtual machine VM1 starts to send ICMP data packets, process and send ARP data packet types. So far, the virtual machine VM1 has successfully accessed the physical machine 101 .
结合图5所示,在实施方式中,这里以物理机10a访问云平台的虚拟集群400中的虚拟机VM1为例来介绍网络通信路径。具体的,在本实施方式中,以ARP方式通信。具体请参下文步骤S1至步骤S8所示。As shown in FIG. 5 , in the implementation manner, the network communication path is introduced here by taking the physical machine 10a accessing the virtual machine VM1 in the virtual cluster 400 of the cloud platform as an example. Specifically, in this implementation manner, communication is performed in the ARP manner. For details, please refer to steps S1 to S8 below.
S1、物理机10a发送ARP广播数据包获取虚拟机VM1的MAC地址。S1. The physical machine 10a sends an ARP broadcast packet to obtain the MAC address of the virtual machine VM1.
S2、数据包达到第二交换机300。由于物理机10a所属的物理网卡使用的access 10模式。将从物理机10a所属的物理网卡进入第二交换机300的数据包添加Vlan 10的Tag。S2. The data packet reaches the second switch 300 . Because of the access 10 mode used by the physical network card to which the physical machine 10a belongs. A tag of Vlan 10 is added to the data packet entering the second switch 300 from the physical network card to which the physical machine 10a belongs.
S3、数据包到达防火墙50,并使用防火墙50对数据包进行过滤,以通过防火墙规则过滤不合法或者异常数据包。S3. The data packet arrives at the firewall 50, and the firewall 50 is used to filter the data packet, so as to filter illegal or abnormal data packets through firewall rules.
S4、数据包到达与虚拟集群400连接的第一交换机200。由于虚拟集群 400中的计算节点(Node_1)和第一交换机200使用trunk模式,并且允许 Vlan 10通过。S4. The data packet arrives at the first switch 200 connected to the virtual cluster 400 . Since the computing node (Node_1) in the virtual cluster 400 and the first switch 200 use the trunk mode, and allow Vlan 10 to pass through.
S5、数据包可以正常到达计算节点(即图2或者图6中的Node_1)的物理网卡(NIC(Baremetal))。S5. The data packet can normally reach the physical network card (NIC (Baremetal)) of the computing node (ie, Node_1 in FIG. 2 or FIG. 6 ).
S6、到达br-phy虚拟交换机。S6. Arrive at the br-phy virtual switch.
作为计算节点的Node_1中的br-phy虚拟交换机将外部Vlan转换成内部 vlanThe br-phy virtual switch in Node_1 as a computing node converts the external Vlan to the internal vlan
in_port=11,dl_vlan=10,actions=mod_vlan_vid:2,NORMAL。in_port=11, dl_vlan=10, actions=mod_vlan_vid:2, NORMAL.
其中,in_port表示入口,in_port=11中的端口11表示物理网卡,dl_vlan=10 是指Vlan10;action表示针对符合条件的数据包需要做的动作。mod_vlan_vid 表示修改Vlan,也就是将Vlan10修改为本地Vlan2;NORMAL表示做广播动作,以将此数据包发送到所有能够到达的端口。进一步的,在本实施方式中,该广播范围限制为具有相同Vlan tag的端口。也就是说将外部Vlan=10 的数据包转换成内部Vlan=2。Wherein, in_port represents the entrance, port 11 in in_port=11 represents the physical network card, dl_vlan=10 represents Vlan10; action represents the action that needs to be done for the qualified data packet. mod_vlan_vid means modifying Vlan, that is, changing Vlan10 to local Vlan2; NORMAL means doing broadcast action to send this data packet to all reachable ports. Furthermore, in this embodiment, the broadcast range is limited to ports with the same Vlan tag. That is to say, the data packets of external Vlan=10 are converted into internal Vlan=2.
然后,将该数据包广播发送所有当前计算节点(Node_1)上所有同类型的虚拟网络的虚拟端口上。Then, the data packet is broadcast and sent to the virtual ports of all virtual networks of the same type on all current computing nodes (Node_1).
in_port=2,dl_vlan=2,actions=mod_vlan_vid:10,NORMALin_port=2, dl_vlan=2, actions=mod_vlan_vid:10, NORMAL
上面的流表规则用来处理从计算节点(Node_1)出去的数据包。若假设是VM1针对物理机10a发送的ARP的返回包。则表示对于内部vlan=2的 Vlan修改为外部Vlan=10,同时将数据包广播发送。在本实施方式中,由于物理网卡在br-phy虚拟交换机上,并且是trunk模式。因此,物理网卡 NIC(Baremetal)可以接收到广播的数据包,从而发送到第二交换机300。The above flow table rules are used to process the data packets going out from the computing node (Node_1). Suppose it is an ARP return packet sent by VM1 to the physical machine 10a. It means that the Vlan of internal vlan=2 is changed to external Vlan=10, and the data packet is broadcasted at the same time. In this embodiment, since the physical network card is on the br-phy virtual switch, it is in trunk mode. Therefore, the physical network card NIC (Baremetal) can receive the broadcast data packet and send it to the second switch 300 .
S7、将vlan与vxlan进行转换。参图4所示,在本实施方式中,br-tun 是用来处理隧道网络数据包的虚拟交换机,br-phy是负责收发虚拟集群400 中的一个或者多个节点与物理集群10中的一个或者多个物理机之间所转发的数据包的虚拟交换机,br-int用来处理虚拟机(当某个节点中仅创建一个虚拟机时,也可理解为该节点,即节点Node_1~节点Node_n)和流量分类的虚拟交换机。S7. Convert vlan to vxlan. As shown in FIG. 4, in this embodiment, br-tun is a virtual switch for processing tunnel network packets, and br-phy is responsible for sending and receiving one or more nodes in the virtual cluster 400 and one of the physical clusters 10 Or a virtual switch for data packets forwarded between multiple physical machines, br-int is used to process virtual machines (when only one virtual machine is created in a node, it can also be understood as the node, that is, node Node_1~node Node_n ) and virtual switches for traffic classification.
VM1连接在br-int虚拟交换机上。br-tun将overlay类型的数据包(比如 vxlan)转换成local vlan;br-phy将物理机10avlan的数据包转换成local vlan; br-int上是localvlan之间的通信,并且br-tun和br-phy都和br-int相连,也就是说从br-tun或者br-phy上进来的数据包都可以到达br-int,并且都转换成了local vlan。这里分两条路径来访问VM1,分别从br-tun和从br-phy,发现数据包在到达br-int后,都已经转换成了local vlan,也就是说无论之前的虚拟网络类型是哪种类型的虚拟网络,对于VM1而言只需要localvlan相同就能通信;虚拟网络类型的处理在各自虚拟交换机上来处理,以实现不同网络类型之间的通信。VM1 is connected to the br-int virtual switch. br-tun converts overlay type data packets (such as vxlan) into local vlan; br-phy converts data packets of physical machine 10avlan into local vlan; br-int is the communication between local vlan, and br-tun and br -phy is connected to br-int, that is to say, the incoming data packets from br-tun or br-phy can reach br-int, and all of them are converted into local vlan. Here, there are two paths to access VM1, from br-tun and br-phy respectively, and it is found that the data packets have been converted to local vlan after arriving at br-int, that is to say, no matter what type of virtual network is before Type of virtual network, for VM1, it only needs the same localvlan to communicate; the processing of virtual network type is processed on the respective virtual switch to realize the communication between different network types.
S8、数据包达到VM1,从而完成整个虚拟机VM1对物理机101的访问过程。S8. The data packet reaches VM1, thereby completing the entire process of accessing the physical machine 101 by the virtual machine VM1.
实施例二:Embodiment two:
结合图9所示,本实施例所示出的一种在云计算系统中接入物理机的方法与实施例一相比,其主要区别在于,在本实施例中,该虚拟集群400中的两个节点均被定义为计算节点。两个计算节点之间分别通过彼此所配置的第一交换机(即图6中的第一交换机200与第一交换机210),对不同类型的虚拟网络进行转换,并对两个计算节点所对应的物理机的物理网卡所转发的数据包作出响应,即对物理集群10中的物理机10a的物理网卡及物理机10b 的物理网卡所转发的数据包分别作出响应。As shown in FIG. 9 , compared with Embodiment 1, a method for accessing a physical machine in a cloud computing system shown in this embodiment is mainly different in that, in this embodiment, the virtual cluster 400 Both nodes are defined as compute nodes. The two computing nodes respectively pass through the first switches configured with each other (that is, the first switch 200 and the first switch 210 in FIG. The data packet forwarded by the physical network card of the physical machine responds, that is, responds to the data packets forwarded by the physical network card of the physical machine 10 a and the physical network card of the physical machine 10 b in the physical cluster 10 respectively.
具体的,如图9所示,虚拟集群400中的节点Node_1与节点Node_2 均被定义为计算节点。节点Node-1的NIC(VXLAN)连接第一交换机200,同时将第一交换机200与节点Node-2所配置的NIC(VXLAN)建立连接。第一交换机200与节点Node_1的NIC(Baremetal)及节点Node_2的NIC (Baremetal)建立连接。Specifically, as shown in FIG. 9 , the nodes Node_1 and Node_2 in the virtual cluster 400 are both defined as computing nodes. The NIC (VXLAN) of the node Node-1 is connected to the first switch 200, and at the same time, a connection is established between the first switch 200 and the NIC (VXLAN) configured on the node Node-2. The first switch 200 establishes a connection with the NIC (Baremetal) of the node Node_1 and the NIC (Baremetal) of the node Node_2.
节点Node_1和节点Node_2分别是云平台内部的物理节点,表示虚拟机运行的宿主机。每个计算节点中br-tun表示处理隧道通信的虚拟交换机; br-phy表示处理物理机通信的虚拟机交换机;br-int表示处理虚拟机通信的虚拟交换机,同时将数据包进行分类并发送到不同的虚拟交换机进行处理。 br-int分别和br-tun及br-phy连接;patch-port1和patch-port2表示虚拟网线的两端,用来连接br-int与br-phy(即两台虚拟交换机)。br-int与br-tun之间通过虚拟网线连接,br-phy和br-tun不直接连接,以防止虚拟集群400内发生网络风暴,避免云平台出现瘫痪现象,并进一步影响物理集群10对用户发起的各项访问请求的响应速度及用户体验。Nodes Node_1 and Node_2 are physical nodes inside the cloud platform, respectively, and represent host machines on which virtual machines run. In each computing node, br-tun represents the virtual switch that handles tunnel communication; br-phy represents the virtual machine switch that handles physical machine communication; br-int represents the virtual switch that handles virtual machine communication, and at the same time classifies and sends data packets to Different virtual switches are handled. br-int is connected to br-tun and br-phy respectively; patch-port1 and patch-port2 represent the two ends of the virtual network cable, which are used to connect br-int and br-phy (that is, two virtual switches). br-int and br-tun are connected through a virtual network cable, and br-phy and br-tun are not directly connected to prevent network storms in the virtual cluster 400, avoid paralysis of the cloud platform, and further affect the physical cluster 10 pairs of users The response speed and user experience of various access requests initiated.
NIC(VXLAN)和NIC(Baremetal)表示处理vxlan通信和物理机通信的物理网卡,br-int虚拟交换机在将数据包分类后,数据包进入不同的虚拟交换机中(比如:br-phy),每个虚拟交换机都会连接一张物理网卡。当数据包到达br-phy后,会从NIC(Baremetal)出去到达第二交换机300。这里 NIC(Baremetal)连接到第二交换机300的端口使用trunk模式,用来允许多个 vlan通过,从而支持多个vlan和vxlan进行通信。图9中的trunk 10-20表示允许vlan 10-vlan20这个范围内的vlan数据包通过此网卡。NIC (VXLAN) and NIC (Baremetal) represent physical network cards that handle vxlan communication and physical machine communication. After the br-int virtual switch classifies the data packets, the data packets enter different virtual switches (for example: br-phy), each Each virtual switch is connected to a physical NIC. When the data packet reaches the br-phy, it will go out from the NIC (Baremetal) to the second switch 300 . Here, the port where the NIC (Baremetal) is connected to the second switch 300 uses a trunk mode to allow multiple vlans to pass through, thereby supporting multiple vlans and vxlans to communicate. Trunk 10-20 in Figure 9 indicates that vlan data packets in the range of vlan 10-vlan20 are allowed to pass through this network card.
上文说到br-int是用来对数据包进行分类和处理的,VM都是连接到 br-int上的,每个VM在br-int虚拟交换机上都对应一个内部Tag,用来进行二层网络隔离。例如,图9中Tag2表示VM1网卡的内部Vlan是“2”,图9 中Tag3表示VM2网卡的内部Vlan是“3”只有Tag相同的端口才能进行通信,从而实现了网络隔离功能。需要声明的是,在本申请中,所涉及的技术术语“通信”可以是单向通信,即可以是主从关系,也可以是控制关系;同时,也可以是双向通信。As mentioned above, br-int is used to classify and process data packets. VMs are connected to br-int. Each VM corresponds to an internal Tag on the br-int virtual switch for secondary layer network isolation. For example, Tag2 in Figure 9 indicates that the internal Vlan of the VM1 network card is "2", and Tag3 in Figure 9 indicates that the internal Vlan of the VM2 network card is "3". Only ports with the same Tag can communicate, thereby realizing the network isolation function. It should be declared that in this application, the technical term "communication" involved may be one-way communication, that is, a master-slave relationship or a control relationship; at the same time, it may also be a two-way communication.
物理机可以分布在不同机柜、机房或者区域,中间通过一个或者多个二层设备打通,所有物理机均由裸机平台统一管理,不区分物理机的类型。物理机的数据包直接通过其配置的物理网卡发送到第二交换机300无需汇聚到特殊设备进行处理;物理机所属的物理网卡对应第二交换机300的端口使用 access模式,用来自动添加和移除vlan tag。Physical machines can be distributed in different cabinets, computer rooms, or areas, and connected through one or more layer-2 devices. All physical machines are managed by the bare-metal platform, regardless of the type of physical machine. The data packets of the physical machine are directly sent to the second switch 300 through its configured physical network card without converging to a special device for processing; the physical network card to which the physical machine belongs corresponds to the port of the second switch 300 using access mode for automatic addition and removal vlan tag.
本实施例所示出的一种在云计算系统中接入物理机的方法与实施例一中所包含的相同的技术特征或者技术方案,请参实施例一所示,在此不再赘述。A method for accessing a physical machine in a cloud computing system shown in this embodiment has the same technical features or technical solutions as those contained in Embodiment 1. Please refer to Embodiment 1, and details will not be repeated here.
实施例三:Embodiment three:
结合图6所示出的本发明一种在云计算系统中接入物理机的方法的第三种具体实施方式。图6为虚拟集群400中的Node_1出现异常时由Node_2 代替Node_1与物理集群10中的一台物理机进行通信时的示意图。A third specific implementation manner of a method for accessing a physical machine in a cloud computing system according to the present invention is shown in conjunction with FIG. 6 . FIG. 6 is a schematic diagram of when Node_1 in the virtual cluster 400 is abnormal and Node_2 replaces Node_1 to communicate with a physical machine in the physical cluster 10 .
本实施例与实施例一和/或实施例二相比,其主要区别在于,在本实施例中,假设计算节点node_1宕机了,从图6中可以看到,实际只影响了计算节点node_1中的VM1与对应的物理机的通信,物理机仍然可以和其他计算节点,例如Node_2中的虚拟机(如VM2)继续通信。Compared with Embodiment 1 and/or Embodiment 2, the main difference between this embodiment is that in this embodiment, it is assumed that the computing node node_1 is down, as can be seen from Figure 6, only the computing node node_1 is actually affected In the communication between VM1 and the corresponding physical machine, the physical machine can still communicate with other computing nodes, such as the virtual machine (such as VM2) in Node_2.
结合图1所示,虽然现有技术中,与物理机连接的第二交换机300可以通过做堆叠或者bond的方式来解决单点问题,但是理论上来说第二交换机 300故障的概率还是很大,不能从根本上解决此问题。当云平台的虚拟集群 400与物理机通信流量压力非常大时,该第二交换机300很有可能成为瓶颈,无法处理两边的数据包,增加故障概率,出现延迟、丢包、通信中断等问题。As shown in FIG. 1, although in the prior art, the second switch 300 connected to the physical machine can be stacked or bonded to solve the single point problem, theoretically speaking, the probability of failure of the second switch 300 is still very high. This problem cannot be solved fundamentally. When the communication flow pressure between the virtual cluster 400 of the cloud platform and the physical machine is very high, the second switch 300 is likely to become a bottleneck, unable to process the data packets on both sides, increasing the probability of failure, causing problems such as delay, packet loss, and communication interruption.
本发明将虚拟网络类型的转换任务转移到了位于虚拟集群400中的一个或者多个虚拟机宿主机上处理,即将虚拟集群400中的一个或者多个节点执行虚拟网络类型的转换,从而可以极大的缓解第二交换机300的压力,降低了第二交换机300故障概率,第二交换机300只需要作为普通二层交换机即可,更重要的是,在实施例所结披露的技术方案能够从根本上避免位于物理集群10中的物理机作为计算节点所产生的流量汇聚的问题,不会因为某个作为计算 的物理机的故障或者瘫痪,而导致网络拥塞及响应延迟的现象。The present invention transfers the conversion task of the virtual network type to one or more virtual machine hosts located in the virtual cluster 400 for processing, that is, one or more nodes in the virtual cluster 400 perform the conversion of the virtual network type, thereby greatly The pressure on the second switch 300 is alleviated, and the probability of failure of the second switch 300 is reduced. The second switch 300 only needs to be used as a common Layer 2 switch. More importantly, the technical solution disclosed in the embodiment can fundamentally The problem of traffic aggregation generated by the physical machines in the physical cluster 10 as computing nodes is avoided, and network congestion and response delays will not be caused due to failure or paralysis of a physical machine used as computing.
本实施例所示出的一种在云计算系统中接入物理机的方法与实施例一和/或实施例二中所包含的相同的技术特征或者技术方案,请参实施例一和/ 或实施例二所示,在此不再赘述。A method for accessing a physical machine in a cloud computing system shown in this embodiment has the same technical features or technical solutions as those contained in Embodiment 1 and/or Embodiment 2, please refer to Embodiment 1 and/or As shown in Embodiment 2, details are not repeated here.
实施例四:Embodiment four:
结合图8所示出的本发明一种在云计算系统中接入物理机的方法的第三种具体实施方式。A third specific implementation manner of a method for accessing a physical machine in a cloud computing system according to the present invention is shown in conjunction with FIG. 8 .
本实施例与实施例一至实施例三中任意一个实施例相比,其主要区别在于,在本实施例中,虚拟集群400与物理集群10之间通过第一交换机200 与第二交换机300直连,且彼此之间并不设置如实施例一中所示出的防火墙 50(参图3及图6所示)或者二层交换机(未示出)或者三层交换机(未示出)。Compared with any one of Embodiments 1 to 3, this embodiment is mainly different in that, in this embodiment, the virtual cluster 400 and the physical cluster 10 are directly connected through the first switch 200 and the second switch 300 , and there is no firewall 50 (shown in FIG. 3 and FIG. 6 ) or a layer-2 switch (not shown) or a layer-3 switch (not shown) as shown in the first embodiment.
本实施例与实施例一至实施例三中任意一个实施例中相同的技术特征,请参上文所示,在此不再赘述。For the technical features that are the same in this embodiment as in any one of Embodiments 1 to 3, please refer to the above, and details will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器(processor)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) execute all or part of the steps of the method described in each embodiment of the present invention. 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 disk and other media that can store program codes. .
上文所列出的一系列的详细说明仅仅是针对本发明的可行性实施方式的具体说明,它们并非用以限制本发明的保护范围,凡未脱离本发明技艺精神所作的等效实施方式或变更均应包含在本发明的保护范围之内。The series of detailed descriptions listed above are only specific descriptions for feasible implementations of the present invention, and they are not intended to limit the protection scope of the present invention. Any equivalent implementation or implementation that does not depart from the technical spirit of the present invention All changes should be included within the protection scope of the present invention.
对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本发明内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。It will be apparent to those skilled in the art that the invention is not limited to the details of the above-described exemplary embodiments, but that the invention can be embodied in other specific forms without departing from the spirit or essential characteristics of the invention. Accordingly, the embodiments should be regarded in all points of view as exemplary and not restrictive, the scope of the invention being defined by the appended claims rather than the foregoing description, and it is therefore intended that the scope of the invention be defined by the appended claims rather than by the foregoing description. All changes within the meaning and range of equivalents of the elements are embraced in the present invention. Any reference sign in a claim should not be construed as limiting the claim concerned.
此外,应当理解,虽然本说明书按照实施方式加以描述,但并非每个实施方式仅包含一个独立的技术方案,说明书的这种叙述方式仅仅是为清楚起见,本领域技术人员应当将说明书作为一个整体,各实施例中的技术方案也可以经适当组合,形成本领域技术人员可以理解的其他实施方式。In addition, it should be understood that although this specification is described according to implementation modes, not each implementation mode only includes an independent technical solution, and this description in the specification is only for clarity, and those skilled in the art should take the specification as a whole , the technical solutions in the various embodiments can also be properly combined to form other implementations that can be understood by those skilled in the art.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811035964.4A CN109120494B (en) | 2018-08-28 | 2018-08-28 | Method for accessing physical machine in cloud computing system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811035964.4A CN109120494B (en) | 2018-08-28 | 2018-08-28 | Method for accessing physical machine in cloud computing system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109120494A CN109120494A (en) | 2019-01-01 |
| CN109120494B true CN109120494B (en) | 2019-08-30 |
Family
ID=64858624
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811035964.4A Active CN109120494B (en) | 2018-08-28 | 2018-08-28 | Method for accessing physical machine in cloud computing system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109120494B (en) |
Families Citing this family (21)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110912733B (en) * | 2019-10-31 | 2022-11-04 | 北京浪潮数据技术有限公司 | Bare computer topological relation determining method, system, equipment and computer medium |
| CN111064649B (en) * | 2019-12-11 | 2022-02-15 | 锐捷网络股份有限公司 | Method and device for realizing binding of layered ports, control equipment and storage medium |
| CN111147345B (en) * | 2019-12-20 | 2022-01-07 | 航天信息股份有限公司 | Cloud environment network isolation device and method and cloud system |
| CN111556110B (en) * | 2020-04-21 | 2022-09-06 | 贵州新致普惠信息技术有限公司 | Automatic adaptation method for different physical service networks of private cloud system |
| CN111614541B (en) * | 2020-06-09 | 2022-02-18 | 浪潮云信息技术股份公司 | How to join a public cloud network physical host to a VPC |
| CN111726251B (en) * | 2020-06-12 | 2023-04-25 | 浪潮电子信息产业股份有限公司 | Networking method, system and device for SDS (sodium dodecyl sulfate) storage domain in virtualized system |
| CN114070723B (en) * | 2020-07-31 | 2023-11-03 | 中移(苏州)软件技术有限公司 | Virtual network configuration method and system of bare metal server and intelligent network card |
| CN111934971B (en) * | 2020-08-12 | 2022-04-05 | 杭州默安科技有限公司 | Method and device for local network access from mapping service spanning three-layer network to multiple VLANs and multiple IPs |
| CN114362976B (en) * | 2020-09-27 | 2025-07-11 | 华为云计算技术有限公司 | A bare metal docking storage method, device and system |
| CN112256393B (en) * | 2020-10-22 | 2022-04-12 | 上海云轴信息科技有限公司 | Resource management method and equipment for bare metal server |
| CN112600903B (en) * | 2020-12-09 | 2023-01-20 | 浪潮云信息技术股份公司 | Elastic virtual network card migration method |
| CN112653575B (en) * | 2020-12-11 | 2022-08-30 | 网宿科技股份有限公司 | Network configuration method, controller and flow guiding system |
| CN112929206B (en) * | 2021-01-22 | 2023-02-28 | 浪潮思科网络科技有限公司 | Method and device for configuring cloud physical machine in cloud network environment |
| CN113285873B (en) * | 2021-05-18 | 2022-03-11 | 广州锦行网络科技有限公司 | Virtual-real mixed network system supporting virtual construction of real route |
| CN114448805B (en) * | 2021-12-27 | 2024-07-30 | 天翼云科技有限公司 | Virtual network device, virtual overlay network, configuration and message transmission method |
| CN114278517A (en) * | 2021-12-31 | 2022-04-05 | 无锡优耐特能源科技有限公司 | Wind farm monitoring system based on time series database |
| CN114422296B (en) * | 2022-01-05 | 2024-02-20 | 北京天一恩华科技股份有限公司 | Multi-scene virtual network construction system, method, terminal and storage medium |
| CN114610447B (en) * | 2022-03-14 | 2025-08-05 | 浪潮云信息技术股份公司 | A method and system for implementing a bare metal server based on a smart network card |
| CN115022248B (en) * | 2022-05-25 | 2023-11-03 | 烽火通信科技股份有限公司 | HQoS service access method and device |
| CN116132221B (en) * | 2023-04-04 | 2023-08-25 | 鹏城实验室 | Virtual-real interconnection method, device, equipment and storage medium of network target range platform |
| CN116132386B (en) * | 2023-04-19 | 2023-06-27 | 安超云软件有限公司 | Mixed workload drainage method and computer cluster |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104767649A (en) * | 2015-04-30 | 2015-07-08 | 杭州华三通信技术有限公司 | Bare metal server deployment method and device |
| CN106375176A (en) * | 2016-08-29 | 2017-02-01 | 无锡华云数据技术服务有限公司 | Method for accessing physical machine to cloud platform |
| CN107135134A (en) * | 2017-03-29 | 2017-09-05 | 广东网金控股股份有限公司 | Private network cut-in method and system based on virtual switch and SDN technologies |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US8976661B2 (en) * | 2012-01-11 | 2015-03-10 | Nec Laboratories America, Inc. | Network self-protection |
| CN103297353B (en) * | 2012-02-22 | 2022-05-31 | 华为技术有限公司 | Access method and system of user terminal equipment and broadband network gateway |
| CN102710432B (en) * | 2012-04-27 | 2015-04-15 | 北京云杉世纪网络科技有限公司 | System and method for managing virtual network in cloud computation data center |
| CN103716337B (en) * | 2012-09-29 | 2016-12-21 | 中国银联股份有限公司 | The method that system for cloud computing system and wherein data process |
| JP2017079399A (en) * | 2015-10-20 | 2017-04-27 | 富士通株式会社 | Transmission apparatus and transmission system |
-
2018
- 2018-08-28 CN CN201811035964.4A patent/CN109120494B/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104767649A (en) * | 2015-04-30 | 2015-07-08 | 杭州华三通信技术有限公司 | Bare metal server deployment method and device |
| CN106375176A (en) * | 2016-08-29 | 2017-02-01 | 无锡华云数据技术服务有限公司 | Method for accessing physical machine to cloud platform |
| CN107135134A (en) * | 2017-03-29 | 2017-09-05 | 广东网金控股股份有限公司 | Private network cut-in method and system based on virtual switch and SDN technologies |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109120494A (en) | 2019-01-01 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109120494B (en) | Method for accessing physical machine in cloud computing system | |
| JP7784388B2 (en) | Loop prevention for virtual L2 networks | |
| US10645201B2 (en) | Packet handling during service virtualized computing instance migration | |
| CN104717137B (en) | Manage the method and system of the data flow in overlay network | |
| US10063470B2 (en) | Data center network system based on software-defined network and packet forwarding method, address resolution method, routing controller thereof | |
| CN106953788B (en) | virtual network controller and control method | |
| CN102067533B (en) | Port grouping for association with virtual interfaces | |
| US11398956B2 (en) | Multi-Edge EtherChannel (MEEC) creation and management | |
| CN101809943B (en) | Method and system for virtual port communication | |
| CN103997513B (en) | A Programmable Virtual Network Service System | |
| WO2019204023A1 (en) | Cross-regional virtual network peering | |
| US10536362B2 (en) | Configuring traffic flow monitoring in virtualized computing environments | |
| US11595303B2 (en) | Packet handling in software-defined net working (SDN) environments | |
| US10103980B1 (en) | Methods and apparatus for maintaining an integrated routing and bridging interface | |
| CN103905523A (en) | Cloud computing network virtualization method and system based on SDN | |
| WO2015149253A1 (en) | Data center system and virtual network management method of data center | |
| WO2016062169A1 (en) | Message transmission method and apparatus | |
| CN104579898A (en) | Tenant isolating method and system | |
| CN103581324A (en) | Cloud computing resource pool system and implement method thereof | |
| CN106209562A (en) | In a kind of network VLAN ID distribution method and controller | |
| CN117561705A (en) | Routing strategy for graphics processing units | |
| CN102316043A (en) | Port virtualization method, switch and communication system | |
| CN112583655B (en) | Data transmission method, device, electronic device and readable storage medium | |
| WO2023165137A1 (en) | Cross-cluster network communication system and method | |
| CN116132542A (en) | Container network management method, container network plug-in and related equipment |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| CP01 | Change in the name or title of a patent holder | ||
| CP01 | Change in the name or title of a patent holder |
Address after: 214000, science and software park, Binhu District, Jiangsu, Wuxi 6 Patentee after: Huayun data holding group Co.,Ltd. Address before: 214000, science and software park, Binhu District, Jiangsu, Wuxi 6 Patentee before: WUXI CHINAC DATA TECHNICAL SERVICE Co.,Ltd. |
|
| PP01 | Preservation of patent right | ||
| PP01 | Preservation of patent right |
Effective date of registration: 20251027 Granted publication date: 20190830 |