WO2016180141A1 - Virtual machine state management method and device - Google Patents

Virtual machine state management method and device Download PDF

Info

Publication number
WO2016180141A1
WO2016180141A1 PCT/CN2016/079093 CN2016079093W WO2016180141A1 WO 2016180141 A1 WO2016180141 A1 WO 2016180141A1 CN 2016079093 W CN2016079093 W CN 2016079093W WO 2016180141 A1 WO2016180141 A1 WO 2016180141A1
Authority
WO
WIPO (PCT)
Prior art keywords
status
state
function
virtual machine
status query
Prior art date
Application number
PCT/CN2016/079093
Other languages
French (fr)
Chinese (zh)
Inventor
顾忠禹
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016180141A1 publication Critical patent/WO2016180141A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/34Signalling channels for network management communication
    • H04L41/342Signalling channels for network management communication between virtual entities, e.g. orchestrators, SDN or NFV entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks

Abstract

Provided are a virtual machine (VM) state management method and device. The method comprises: sending, by a VM state management function or function example executed on an uplink interface of an edge relay (ER) and supporting a preset protocol example, a VM state query packet to a VM; receiving, by the VM state management function or the function example, a VM state query response packet of the VM, and acquiring, by the VM state management function or the function example, state information of the VM; and sending via an extended field of the preset protocol, by the VM state management function or the function example, the state information of the VM to a network virtualization edge (NVE). The present invention addresses the problem of incomplete management of a VM state, and achieves a real-time management of the VM state under a network virtualization overlay based-on L3 network (NVO3) environment.

Description

虚拟机状态管理方法及装置Virtual machine state management method and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种虚拟机状态管理方法及装置。The present invention relates to the field of communications, and in particular to a virtual machine state management method and apparatus.
背景技术Background technique
在数据中心中,如何通过虚拟化技术,例如虚拟机,提供虚拟网络(Virtual Network,简称为VN)是一个热门的话题,涉及到网络的虚拟化等众多方面,引起设备供应商和运营商的多方关注。例如,电气和电子工程师协会(Institute for Electrical and Electronic Engineers,简称为IEEE)推出802.1Qbg(边缘虚拟桥),支持虚拟机(IEEE术语为虚拟站。需要区分提供虚拟站的平台,称为EVB站。),如何连接到虚拟化平台外的交换机(Edge Virtual Bridging,简称为EVB桥)。图1是相关技术中的EVB的体系结构示意图,如图1所示,通过虚拟机接口发现和配置协议(Virtual Station Interface discovery and configuration protocol,简称为VDP),分组数据汇聚协议(Packet Data Convergence Protocol,简称为PDCP)和扩展能力端口模式协议(Extented Capability Port,简称为ECP)等一系列协议,实现虚拟机接口(Virtual Station Interface,简称为VSI)到EVB桥的连接。另外,在国际互联网工程任务组(The Internet Engineering Task Force简称为IETF)中也专门成立了一个工作组基于层3的网络虚拟化(Network Virtualization Overlay based-on L3Network,简称为NVO3),对其进行研究。图2是相关技术中NVO3虚拟网络提供的架构示意图,如图2所示,对具体如何实现VN的提供,有了一致的认识。In the data center, how to provide a virtual network (Virtual Network, VN for short) through virtualization technology, such as virtual machines, is a hot topic, involving many aspects such as virtualization of the network, causing equipment suppliers and operators. Concerned by many parties. For example, the Institute for Electrical and Electronic Engineers (IEEE) introduced 802.1Qbg (Edge Virtual Bridge) to support virtual machines (IEEE terminology is virtual stations. It is necessary to distinguish the platform that provides virtual stations, called EVB stations). How to connect to a switch outside the virtualization platform (Edge Virtual Bridging, referred to as EVB bridge). FIG. 1 is a schematic diagram of an architecture of an EVB in the related art. As shown in FIG. 1 , a virtual data interface discovery and configuration protocol (VDP), a packet data convergence protocol (Packet Data Convergence Protocol) A series of protocols, such as the PDCP and the Extented Capability Port (ECP), implement the connection of the Virtual Machine Interface (VSI) to the EVB bridge. In addition, in the Internet Engineering Task Force (IETF), a working group based on Network Virtualization Overlay based-on L3Network (NVO3) was established. the study. FIG. 2 is a schematic diagram of the architecture provided by the NVO3 virtual network in the related art. As shown in FIG. 2, there is a consistent understanding of how to implement the VN.
如图2所示,有一个集中的网络虚拟化控制设备(Network Virtualization Authority,简称为NVA),实现对业务提供的控制,VN中的多个虚拟机(Virtual Machine,简称为VM)连接到网络虚拟化边缘设备(Network Virtualization Edge,简称为NVE),并进一步与NVE中的该VN的虚拟路由转发功能(Virtual Routing and Forwarding,简称为VRF)进行关联,多个不同NVE种的同一VN的不同的VRF,通过NVE直接的重叠网络隧道实现连接,从而实现VN。当然,VN可以通过NVE(一般驻留在数据中心无关)和互联网实现连接。As shown in Figure 2, there is a centralized Network Virtualization Authority (NVA) to control the service provision. Multiple Virtual Machines (VMs) in the VN are connected to the network. The Virtual Virtual Network (Network Virtualization Edge, NVE for short) is further associated with the Virtual Routing and Forwarding (VRF) function of the VN in the NVE. The same VN of different NVEs is different. The VRF is connected through the NVE direct overlapping network tunnel to implement the VN. Of course, the VN can be connected to the Internet through NVE (which generally resides in the data center).
但对NVO3如何实现VN的具体的解决方案,还莫衷一是。特别是对VM如何接入NVE这一段的控制协议,一种观点认为,可以通过IEEE的VDP来承担。直观的,VDP是实现VSI/VM到EVB桥(主要是和面向通道的桥接口(Station-facing bridge port,简称为SBP))的关联工作,这和VM加入NVE的VN非常相似,是一种可能的解决方案。在NVO3中有较多的讨论,例如,因为VDP是一种L2的协议,为了实现NVO3的虚拟网络,需要进行L3地址信息的支持,以及需要支持VN-ID信息的传递等。而对VM状态的管理,目前还主要关注于VM的生成和删除等等的生命周期管理,具体的包括VM处于初始化状态、就绪状态和激活状态等。在激活状态下,就认为VM是正常工作的。则是与VDP所处的位置有关,或者进一步在相关技术体制下,Hypervisor也就只能获得这些VM的信息。 But there is no consensus on how NVO3 can implement a specific solution for VN. In particular, the control protocol for how the VM accesses the NVE segment is considered to be borne by the IEEE VDP. Intuitively, VDP is the implementation of the VSI/VM to EVB bridge (mainly with the Station-facing bridge port (SBP)), which is very similar to the VN that the VM joins the NVE. Possible solution. There is more discussion in NVO3. For example, because VDP is an L2 protocol, in order to implement NVO3 virtual network, L3 address information needs to be supported, and VN-ID information needs to be supported. The management of the VM state mainly focuses on the lifecycle management of the generation and deletion of the VM, and specifically includes the VM being in an initialization state, a ready state, and an activation state. In the active state, the VM is considered to be working properly. It is related to the location of the VDP, or further under the relevant technical system, the Hypervisor can only obtain the information of these VMs.
但是,在VM处于激活状态,或者运行状态下,VM本身是需要执行特别的工作,或者多项工作的,由于某种原因,这些工作或者功能有可能是不工作的,或者功能不能执行。这对VN的中的其他VM而言,该VM实际上是不可用的,但是VDP技术体制不能提供对该问题的解决方案。However, in the active state of the VM, or in the running state, the VM itself needs to perform special work, or multiple tasks. For some reason, these jobs or functions may not work, or the functions cannot be executed. This is actually not available to other VMs in the VN, but the VDP technology architecture does not provide a solution to this problem.
针对相关技术中,相关协议对虚拟机VM状态的管理还不完善的问题,目前还没有有效的解决方案。In view of the related art, the management of the VM state of the virtual machine is not perfect, and there is no effective solution at present.
发明内容Summary of the invention
本发明提供了一种虚拟机状态管理方法及装置,以至少解决相关技术中相关协议对虚拟机VM状态的管理还不完善的问题。The present invention provides a virtual machine state management method and apparatus, so as to at least solve the problem that the related protocols in the related art are not perfect for managing the virtual machine VM state.
根据本发明的一个实施例,提供了一种虚拟机状态管理方法,包括:According to an embodiment of the present invention, a virtual machine state management method is provided, including:
在支持预设协议实例的边缘中继ER的上行接口上运行的虚拟机VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文;The virtual machine VM state management function or function instance running on the uplink interface of the edge relay ER supporting the preset protocol instance sends a VM status query message to the virtual machine VM;
所述VM状态管理功能或功能实例接收所述VM的VM状态查询反馈报文并获得所述VM的状态信息;The VM state management function or function instance receives a VM status query feedback message of the VM and obtains status information of the VM;
所述VM状态管理功能或功能实例将所述VM的状态信息通过预设协议的扩展字段发送给NVE网络虚拟化边缘设备。The VM state management function or function instance sends the state information of the VM to the NVE network virtualization edge device through an extension field of the preset protocol.
在本发明的实施例中,所述运行的虚拟机VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文,或者接收VM状态查询反馈报文包括:In the embodiment of the present invention, the running virtual machine VM state management function or function instance sends a VM status query message to the virtual machine VM, or receives the VM status query feedback message, including:
所述VM状态管理功能或功能实例通过第一预定义的以太网帧向所述ER连接的VM发送所述状态查询报文,其中,在所述第一预定义的以太网帧为广播类型的情况下,所述VM状态管理功能或功能实例向所述ER连接的所有VM发送所述状态查询报文,在所述第一预定义的以太网帧为单播类型的情况下,所述VM状态管理功能或功能实例以指定的VM的MAC地址为目的地址向指定的VM发送所述VM状态查询报文;The VM state management function or function instance sends the status query message to the ER-connected VM through a first predefined Ethernet frame, wherein the first predefined Ethernet frame is of a broadcast type In the case where the VM state management function or function instance sends the status query message to all VMs connected to the ER, in a case where the first predefined Ethernet frame is of a unicast type, the VM The state management function or the function instance sends the VM status query message to the specified VM with the MAC address of the specified VM as the destination address;
所述VM以第二预定义的以太网帧发送VM状态查询反馈报文。The VM sends a VM status query feedback message in a second predefined Ethernet frame.
在本发明的实施例中,所述VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文之前,所述方法包括:In the embodiment of the present invention, before the VM state management function or the function instance sends the VM state query message to the virtual machine VM, the method includes:
所述VM状态管理功能或功能实例接收NVE通过预设协议扩展的三元组TLV字段传送的状态查询命令信息,其中,所述状态查询命令信息用于指示所述VM状态管理功能或功能实例反馈/收集的所述VM的状态信息。The VM status management function or function instance receives status query command information transmitted by the NVE through a preset protocol extended triplet TLV field, wherein the status query command information is used to indicate the VM status management function or function instance feedback / Collected status information of the VM.
在本发明的实施例中,所述VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文之后,包括: In the embodiment of the present invention, after the VM state management function or the function instance sends the VM status query message to the virtual machine VM, the method includes:
接收状态查询反馈报文并获得所述VM的状态信息,并结合站点中保存的VM状态信息,形成VM的状态信息;Receiving a status query feedback message and obtaining state information of the VM, and combining the VM state information saved in the site to form status information of the VM;
在本发明的实施例中,如果在预设时间段内没有收到所述VM回复的情况下,按照设定次数重复发送所述VM状态查询报文之后,在没有收到所述VM回复的情况下,判定所述VM不可达,形成不可达的VM状态信息。In the embodiment of the present invention, if the VM reply is not received within the preset time period, after the VM status query message is repeatedly sent according to the set number of times, the VM reply is not received. In the case, it is determined that the VM is unreachable, and unreachable VM state information is formed.
在本发明的实施例中,所述VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文的发送时机包括以下至少之一:In an embodiment of the present invention, the sending timing of the VM status management function or the function instance sending the VM status query message to the virtual machine VM includes at least one of the following:
在接收NVE发送的状态查询命令信息的情况下,所述VM状态管理功能或功能实例向VM发送VM状态查询报文;In the case of receiving status query command information sent by the NVE, the VM state management function or function instance sends a VM status query message to the VM;
定期发送VM状态查询报文。Send VM status query messages periodically.
在本发明的实施例中,所述预设协议包括为:In an embodiment of the invention, the preset protocol is:
虚拟机接口发现和配置协议VDP,及所述VDP支持协议:分组数据汇聚协议CDCP和扩展能力端口模式协议ECP。Virtual Machine Interface Discovery and Configuration Protocol VDP, and the VDP Support Protocol: Packet Data Convergence Protocol CDCP and Extended Capability Port Mode Protocol ECP.
在本发明的实施例中,所述虚拟机状态管理方法,包括:In an embodiment of the present invention, the virtual machine state management method includes:
所述NVE直接使用第三预定义的以太网帧,向虚拟机VM发送VM状态查询报文;所述VM使用第四预定义的以太网帧直接向NVE反馈VM状态信息。所述第三预定义的以太网帧和所述第四预定义的以太网帧不同于所述第一预定义的以太网帧和第二预定义的以太网帧的类型值。The NVE directly sends a VM status query message to the virtual machine VM using the third predefined Ethernet frame; the VM directly feeds back the VM status information to the NVE using the fourth predefined Ethernet frame. The third predefined Ethernet frame and the fourth predefined Ethernet frame are different from the type values of the first predefined Ethernet frame and the second predefined Ethernet frame.
根据本发明的另一个实施例,还提供了一种虚拟机状态管理装置,包括:According to another embodiment of the present invention, a virtual machine state management apparatus is further provided, including:
第一发送模块,设置为在支持预设协议实例的边缘中继ER的上行接口上运行的虚拟机VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文;a first sending module, configured to send a VM state query message to the virtual machine VM by using a virtual machine VM state management function or a function instance running on an uplink interface of the edge relay ER supporting the preset protocol instance;
第一接收模块,设置为所述VM状态管理功能或功能实例接收所述VM的VM状态查询反馈报文并获得所述VM的状态信息;a first receiving module, configured to receive, by the VM state management function or a function instance, a VM status query feedback message of the VM, and obtain status information of the VM;
第二发送模块,设置为所述VM状态管理功能或功能实例将所述VM的状态信息通过预设协议的扩展字段发送给NVE网络虚拟化边缘设备。The second sending module is configured to send the state information of the VM to the NVE network virtualization edge device by using an extended field of the preset protocol.
在本发明的实施例中,所述第一发送模块包括:In an embodiment of the invention, the first sending module includes:
预定义发送单元,设置为所述VM状态管理功能或功能实例通过第一预定义的以太网帧向所述ER连接的VM发送所述状态查询报文,其中,在所述第一预定义的以太网帧为广播类型的情况下,所述VM状态管理功能或功能实例向所述ER连接的所有VM发送所述状态查询报文,在所述第一预定义的以太网帧为单播类型的情况下,所述VM状态管理功能或功能实例以指定的VM的MAC地址为目的地址向指定的VM发送所述VM状态查询报文; a predefined sending unit, configured to send the status query message to the VM of the ER connection by using the first predefined Ethernet frame, wherein the first predefined In the case that the Ethernet frame is of a broadcast type, the VM state management function or function instance sends the status query message to all VMs connected to the ER, where the first predefined Ethernet frame is a unicast type. The VM status management function or the function instance sends the VM status query message to the specified VM with the MAC address of the specified VM as the destination address;
所述第一接收模块还设置为接收所述VM以第二预定义的以太网帧发送VM状态查询反馈报文。The first receiving module is further configured to receive the VM to send a VM status query feedback message in a second predefined Ethernet frame.
在本发明的实施例中,所述装置包括:In an embodiment of the invention, the apparatus comprises:
第二接收模块,设置为所述VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文之前,所述VM状态管理功能或功能实例接收NVE通过预设协议扩展的三元组TLV字段传送的状态查询命令信息,其中,所述状态查询命令信息用于指示所述VM状态管理功能或功能实例反馈/收集的所述VM状态信息。The second receiving module is configured to: before the VM state management function or the function instance sends the VM state query message to the virtual machine VM, the VM state management function or the function instance receives the triplet TLV field extended by the NVE through the preset protocol. The transmitted status query command information, wherein the status query command information is used to indicate the VM status information that the VM status management function or function instance feeds back/collects.
在本发明的实施例中,所述装置包括:In an embodiment of the invention, the apparatus comprises:
判定模块,设置为在接收状态查询反馈的状态信息,并将结合站点中保存的VM状态信息,形成VM的状态信息;并且,如果在预设时间段内没有收到所述VM回复的情况下,按照设定次数重复发送所述VM状态查询报文之后,在没有收到所述VM回复的情况下,判定所述VM不可达,即形成VM不可达的状态信息;The determining module is configured to query the state information of the feedback in the receiving state, and combine the VM state information saved in the site to form the state information of the VM; and, if the VM reply is not received within the preset time period After the VM status query message is repeatedly sent according to the set number of times, if the VM reply is not received, it is determined that the VM is unreachable, that is, the VM unreachable status information is formed;
所述第二发送模块,还设置为向所述NVE报告所述VM不可达的状态信息。The second sending module is further configured to report status information of the VM unreachable to the NVE.
在本发明的实施例中,所述第一发送模块,还设置为在接收NVE发送的状态查询命令信息的情况下,所述VM状态管理功能或功能实例向VM发送VM状态查询报文;In an embodiment of the present invention, the first sending module is further configured to: when receiving the status query command information sent by the NVE, the VM status management function or the function instance sends a VM status query message to the VM;
所述第一发送模块,还设置为定期发送VM状态查询报文。The first sending module is further configured to periodically send a VM status query message.
在本发明的实施例中,所述预设协议包括为:虚拟机接口发现和配置协议VDP,及所述VDP支持协议:分组数据汇聚协议CDCP,扩展能力端口模式协议ECP。In an embodiment of the present invention, the preset protocol includes: a virtual machine interface discovery and configuration protocol VDP, and the VDP support protocol: a packet data convergence protocol CDCP, and an extended capability port mode protocol ECP.
通过本发明,在支持预设协议实例的边缘中继ER的上行接口上运行的虚拟机VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文,该VM状态管理功能或功能实例接收该VM的VM状态查询反馈报文并获得该VM状态信息,该VM状态管理功能或功能实例将该VM的状态信息通过预设协议的扩展字段发送给NVE网络虚拟化边缘设备,解决了相关协议对虚拟机VM状态的管理还不完善的问题,实现了NVO3环境下的虚拟机状态的实时管理。Through the present invention, a virtual machine VM state management function or a function instance running on an uplink interface supporting an edge relay ER of a preset protocol instance sends a VM state query message to the virtual machine VM, and the VM state management function or function instance receives The VM status of the VM queries the feedback message and obtains the VM status information. The VM status management function or function instance sends the status information of the VM to the NVE network virtualization edge device through an extension field of the preset protocol, and the related protocol is resolved. The problem of the virtual machine VM state management is still not perfect, realizing the real-time management of the virtual machine state in the NVO3 environment.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是相关技术中的EVB的体系结构示意图;1 is a schematic diagram of an architecture of an EVB in the related art;
图2是相关技术中NVO3虚拟网络提供的架构示意图;2 is a schematic diagram of an architecture provided by an NVO3 virtual network in the related art;
图3是根据本发明实施例的一种虚拟机状态管理方法的流程图; FIG. 3 is a flowchart of a virtual machine state management method according to an embodiment of the present invention; FIG.
图4是根据本发明实施例的一种虚拟机状态管理装置的结构框图一;4 is a structural block diagram 1 of a virtual machine state management apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的一种虚拟机状态管理装置的结构框图二;FIG. 5 is a structural block diagram 2 of a virtual machine state management apparatus according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的一种虚拟机状态管理装置的结构框图三;6 is a structural block diagram 3 of a virtual machine state management apparatus according to an embodiment of the present invention;
图7是根据本发明实施例的一种虚拟机状态管理装置的结构框图四;FIG. 7 is a structural block diagram 4 of a virtual machine state management apparatus according to an embodiment of the present invention; FIG.
图8是根据本发明实施例的网络功能结构示意图;FIG. 8 is a schematic structural diagram of a network function according to an embodiment of the present invention; FIG.
图9是根据本发明实施例的以太网帧结构示意图;9 is a schematic structural diagram of an Ethernet frame according to an embodiment of the present invention;
图10是根据本发明实施例的VM状态收集命令以太网帧格式的详细定义示意图;10 is a schematic diagram showing a detailed definition of an Ethernet frame format of a VM state collection command according to an embodiment of the present invention;
图11是根据本发明实施例VM状态VDP TLV定义意图;11 is a VM state VDP TLV definition intent according to an embodiment of the present invention;
图12是根据本发明实施例另一种VM状态VDP TLV定义意图;FIG. 12 is another VM state VDP TLV definition intent according to an embodiment of the present invention; FIG.
图13是根据本发明实施例基于VDP扩展的VM状态管理的流程示意图。FIG. 13 is a flow chart of VM state management based on VDP extension according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It is to be understood that the terms "first", "second" and the like in the specification and claims of the present invention are used to distinguish similar objects, and are not necessarily used to describe a particular order or order.
在本实施例中提供了一种虚拟机状态管理方法,图3是根据本发明实施例的一种虚拟机状态管理方法的流程图,如图3所示,该流程包括如下步骤:In this embodiment, a virtual machine state management method is provided. FIG. 3 is a flowchart of a virtual machine state management method according to an embodiment of the present invention. As shown in FIG. 3, the process includes the following steps:
步骤S302,在支持预设协议实例的边缘中继ER的上行接口上运行的虚拟机VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文;Step S302: The virtual machine VM state management function or function instance running on the uplink interface of the edge relay ER supporting the preset protocol instance sends a VM status query message to the virtual machine VM.
步骤S304,该VM状态管理功能或功能实例接收该VM的VM状态查询反馈报文并获得该VM的状态信息;Step S304, the VM state management function or function instance receives the VM state query feedback message of the VM and obtains state information of the VM.
步骤S306,该VM状态管理功能或功能实例将该VM的状态信息通过预设协议的扩展字段发送给NVE网络虚拟化边缘设备。Step S306, the VM state management function or function instance sends the state information of the VM to the NVE network virtualization edge device through an extension field of the preset protocol.
通过上述步骤,在支持预设协议实例的边缘中继ER的上行接口上运行的虚拟机VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文,该VM状态管理功能或功能实例接收该VM的VM状态查询反馈报文并获得该VM状态信息,该VM状态管理功能或功能实例将该VM的状态信息通过预设协议的扩展字段发送给NVE网络虚拟化边缘设备,解决了相关协议对虚拟机VM状态的管理还不完善的问题,实现了NVO3环境下的虚拟机状态的实时管理。 Through the above steps, the virtual machine VM state management function or function instance running on the uplink interface supporting the edge relay ER of the preset protocol instance sends a VM state query message to the virtual machine VM, and the VM state management function or function instance receives The VM status of the VM queries the feedback message and obtains the VM status information. The VM status management function or function instance sends the status information of the VM to the NVE network virtualization edge device through an extension field of the preset protocol, and the related protocol is resolved. The problem of the virtual machine VM state management is still not perfect, realizing the real-time management of the virtual machine state in the NVO3 environment.
在本实施例中,该运行的虚拟机VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文,或者接收VM状态查询反馈报文包括:In this embodiment, the running virtual machine VM state management function or function instance sends a VM status query message to the virtual machine VM, or receives the VM status query feedback message, including:
该VM状态管理功能或功能实例通过第一预定义的以太网帧向该ER连接的VM发送该状态查询报文,其中,在该第一预定义的以太网帧为广播类型的情况下,该VM状态管理功能或功能实例向该ER连接的所有VM发送该状态查询报文,在该第一预定义的以太网帧为单播类型的情况下,该VM状态管理功能或功能实例以指定的VM的MAC地址为目的地址向指定的VM发送该VM状态查询报文;The VM state management function or function instance sends the status query message to the ER connected VM through the first predefined Ethernet frame, where the first predefined Ethernet frame is a broadcast type, The VM state management function or function instance sends the status query message to all VMs connected to the ER. When the first predefined Ethernet frame is of a unicast type, the VM state management function or function instance is specified. The MAC address of the VM is the destination address, and the VM status query message is sent to the specified VM.
该VM以第二预定义的以太网帧发送VM状态查询反馈报文。The VM sends a VM status query feedback message in a second predefined Ethernet frame.
在本实施例中,该VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文之前,该VM状态管理功能或功能实例接收NVE通过预设协议扩展的三元组TLV字段传送的状态查询命令信息,其中,该状态查询命令信息用于指示该VM状态管理功能或功能实例反馈/收集的该VM的状态信息。In this embodiment, before the VM state management function or the function instance sends the VM state query message to the virtual machine VM, the VM state management function or the function instance receives the state transmitted by the NVE through the preset protocol extended triplet TLV field. Querying command information, wherein the status query command information is used to indicate status information of the VM fed back/collected by the VM state management function or function instance.
在本实施例中,该VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文之后,接收状态查询反馈报文并获得该VM的状态信息,并结合站点中保存的VM状态信息,形成VM的状态信息;In this embodiment, after the VM state management function or the function instance sends the VM state query message to the virtual machine VM, the state query feedback message is received, and the state information of the VM is obtained, and the VM state information saved in the site is combined. Forming status information of the VM;
进一步,如果在预设时间段内没有收到该VM回复的情况下,按照设定次数重复发送该VM状态查询报文之后,在没有收到该VM回复的情况下,判定该VM不可达,形成不可达的VM状态信息;Further, if the VM status reply message is repeatedly sent according to the set number of times in the case that the VM reply is not received within the preset time period, if the VM reply is not received, the VM is determined to be unreachable. Forming unreachable VM state information;
在本实施例中,该VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文的发送时机包括以下至少之一:In this embodiment, the sending timing of the VM status management function or the function instance sending the VM status query message to the virtual machine VM includes at least one of the following:
在接收NVE发送的状态查询命令信息的情况下,该VM状态管理功能或功能实例向VM发送VM状态查询报文;In the case of receiving the status query command information sent by the NVE, the VM status management function or the function instance sends a VM status query message to the VM;
定期发送VM状态查询报文。Send VM status query messages periodically.
在本实施例中,该预设协议包括为:In this embodiment, the preset protocol is included as:
虚拟机接口发现和配置协议VDP,及该VDP支持协议:分组数据汇聚协议CDCP和扩展能力端口模式协议ECP。Virtual Machine Interface Discovery and Configuration Protocol VDP, and the VDP support protocol: Packet Data Convergence Protocol CDCP and Extended Capability Port Mode Protocol ECP.
在本实施例中,该NVE直接使用第三预定义的以太网帧,向虚拟机VM发送VM状态查询报文;该VM使用第四预定义的以太网帧直接向NVE反馈VM状态信息。该第三预定义的以太网帧和第四预定义的以太网帧不同于该第一预定义的以太网帧和第二预定义的以太网帧的类型值。In this embodiment, the NVE directly sends a VM status query message to the virtual machine VM by using the third predefined Ethernet frame; the VM directly feeds the VM status information to the NVE using the fourth predefined Ethernet frame. The third predefined Ethernet frame and the fourth predefined Ethernet frame are different from the type values of the first predefined Ethernet frame and the second predefined Ethernet frame.
在本实施例中还提供了一种虚拟机状态管理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者 软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a virtual machine state management device is also provided, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or The implementation of a combination of software and hardware is also possible and conceived.
图4是根据本发明实施例的一种虚拟机状态管理装置的结构框图一,如图4所示,该装置包括:FIG. 4 is a structural block diagram 1 of a virtual machine state management apparatus according to an embodiment of the present invention. As shown in FIG. 4, the apparatus includes:
第一发送模块42,设置为在支持预设协议实例的边缘中继ER的上行接口上运行的虚拟机VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文;The first sending module 42 is configured to send a VM state query message to the virtual machine VM by using a virtual machine VM state management function or a function instance running on an uplink interface of the edge relay ER supporting the preset protocol instance;
第一接收模块44,设置为该VM状态管理功能或功能实例接收该VM的VM状态查询反馈报文并获得该VM的状态信息;The first receiving module 44 is configured to receive the VM status query feedback message of the VM by using the VM state management function or the function instance, and obtain status information of the VM;
第二发送模块46,设置为该VM状态管理功能或功能实例将该VM的状态信息通过预设协议的扩展字段发送给NVE网络虚拟化边缘设备。The second sending module 46 is configured to send the status information of the VM to the NVE network virtualization edge device by using the VM status management function or the function instance.
通过上述装置,在支持预设协议实例的边缘中继ER的上行接口上运行的虚拟机VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文,该VM状态管理功能或功能实例接收该VM的VM状态查询反馈报文并获得该VM状态信息,该VM状态管理功能或功能实例将该VM的状态信息通过预设协议的扩展字段发送给NVE网络虚拟化边缘设备,解决了相关协议对虚拟机VM状态的管理还不完善的问题,实现了NVO3环境下的虚拟机状态的实时管理。Through the above device, the virtual machine VM state management function or function instance running on the uplink interface supporting the edge relay ER of the preset protocol instance sends a VM state query message to the virtual machine VM, and the VM state management function or function instance receives The VM status of the VM queries the feedback message and obtains the VM status information. The VM status management function or function instance sends the status information of the VM to the NVE network virtualization edge device through an extension field of the preset protocol, and the related protocol is resolved. The problem of the virtual machine VM state management is still not perfect, realizing the real-time management of the virtual machine state in the NVO3 environment.
图5是根据本发明实施例的一种虚拟机状态管理装置的结构框图二,如图5所示,该装置包括:该第一发送模块42包括:FIG. 5 is a block diagram showing the structure of a virtual machine state management apparatus according to an embodiment of the present invention. As shown in FIG. 5, the apparatus includes: the first sending module 42 includes:
预定义发送单元52,设置为该VM状态管理功能或功能实例通过第一预定义的以太网帧向该ER连接的VM发送该状态查询报文,其中,在该第一预定义的以太网帧为广播类型的情况下,该VM状态管理功能或功能实例向该ER连接的所有VM发送该状态查询报文,在该第一预定义的以太网帧为单播类型的情况下,该VM状态管理功能或功能实例以指定的VM的MAC地址为目的地址向指定的VM发送该VM状态查询报文;a predefined sending unit 52, configured to send the status query message to the VM of the ER connection by using the first predefined Ethernet frame, wherein the first predefined Ethernet frame is in the first predefined Ethernet frame In the case of a broadcast type, the VM state management function or function instance sends the status query message to all VMs connected to the ER. In the case where the first predefined Ethernet frame is of a unicast type, the VM status The management function or the function instance sends the VM status query message to the specified VM with the MAC address of the specified VM as the destination address;
该第一接收模块44还设置为接收该VM以第二预定义的以太网帧发送VM状态查询反馈报文。The first receiving module 44 is further configured to receive the VM to send a VM status query feedback message in a second predefined Ethernet frame.
图6是根据本发明实施例的一种虚拟机状态管理装置的结构框图三,如图6所示,该装置包括:FIG. 6 is a structural block diagram 3 of a virtual machine state management apparatus according to an embodiment of the present invention. As shown in FIG. 6, the apparatus includes:
第二接收模块62,设置为该VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文之前,该VM状态管理功能或功能实例接收NVE通过预设协议扩展的三元组TLV字段传送的状态查询命令信息,其中,该状态查询命令信息用于指示该VM状态管理功能或功能实例反馈/收集的该VM状态信息。The second receiving module 62 is configured to send the VM state management function or the function instance to the triplet TLV field extended by the preset protocol before the VM state management function or the function instance sends the VM state query message to the virtual machine VM. State query command information, wherein the state query command information is used to indicate the VM state information that the VM state management function or function instance feeds back/collects.
图7是根据本发明实施例的一种虚拟机状态管理装置的结构框图四,如图7所示,该装置包括:FIG. 7 is a structural block diagram 4 of a virtual machine state management apparatus according to an embodiment of the present invention. As shown in FIG. 7, the apparatus includes:
判定模块72,设置为在接收状态查询反馈的状态信息,并将结合站点中保存的VM状态 信息,形成VM的状态信息;并且,如果在预设时间段内没有收到该VM回复的情况下,按照设定次数重复发送该VM状态查询报文之后,在没有收到该VM回复的情况下,判定该VM不可达,即形成VM不可达的状态信息;The determining module 72 is configured to query the state information of the feedback in the receiving state, and combine the VM state saved in the site. Information, forming status information of the VM; and, if the VM reply is not received within the preset time period, after the VM status query message is repeatedly sent according to the set number of times, the VM reply is not received. Next, determining that the VM is unreachable, that is, forming state information that the VM is unreachable;
该第二发送模块46,还设置为向该NVE报告该VM不可达的信息,其中,该不可达的信息指示该NVE刷新虚拟路由转发功能VRF的该VM不可达的状态信息。The second sending module 46 is further configured to report the VM unreachable information to the NVE, where the unreachable information indicates that the NVE refreshes the VM unreachable state information of the virtual route forwarding function VRF.
在本实施例中,该第一发送模块42,还设置为在接收NVE发送的状态查询命令信息的情况下,该VM状态管理功能或功能实例向VM发送VM状态查询报文;In this embodiment, the first sending module 42 is further configured to send the VM status query message to the VM when receiving the status query command information sent by the NVE;
该第一发送模块42,还设置为定期发送VM状态查询报文。The first sending module 42 is further configured to periodically send a VM status query message.
在上述实施例中,该预设协议包括为:虚拟机接口发现和配置协议VDP,及该VDP支持协议:分组数据汇聚协议CDCP,扩展能力端口模式协议ECP。In the foregoing embodiment, the preset protocol includes: a virtual machine interface discovery and configuration protocol VDP, and the VDP support protocol: a packet data convergence protocol CDCP, and an extended capability port mode protocol ECP.
在另外一个实施例中,还提供了一种数据中心中NVO3环境下、基于VDP的虚拟机状态管理的实现方法和系统。具体地,包括:In another embodiment, a method and system for implementing VDP-based virtual machine state management in an NVO3 environment in a data center is also provided. Specifically, it includes:
ER的上行接口支持VDP实例,同时支持VDP对VM的状态的收集的功能实体/实例。The uplink interface of the ER supports the VDP instance, and at the same time supports the functional entity/instance of the collection of the state of the VM by the VDP.
进一步,具体的,状态收集功能实体,通过特定的以太网广播帧发送状态征询报文。ER所连接的所有VM,在收到该状态查询报文后,以该VM的MAC地址,以状态收集功能实体的MAC地址为目的地址发送状态信息。Further, specifically, the state collection function entity sends a status inquiry message through a specific Ethernet broadcast frame. After receiving the status query message, all VMs connected to the ER send status information with the MAC address of the VM and the MAC address of the status collection function entity as the destination address.
所述特定的以太网帧,通过特定的以太网帧类型进行定义。The specific Ethernet frame is defined by a specific Ethernet frame type.
优选的,VM状态收集功能实例,也可以通过单播的以太网帧,来进行状态收集,具体的,使用VM的MAC地址直接发送单播的状态查询报文。Preferably, the VM status collection function instance can also collect the status by using a unicast Ethernet frame. Specifically, the unicast status query message is directly sent by using the MAC address of the VM.
VM状态收集功能实例,在收集到VM的状态信息后,通过VDP协议的扩展,将信息发送给NVE。After the VM status collection function is collected, the VM information is sent to the NVE through the extension of the VDP protocol.
进一步,VM状态管理功能实体/实例可以接收NVE通过VDP扩展TLV传送的状态查询命令信息。Further, the VM state management function entity/instance may receive status query command information transmitted by the NVE through the VDP extension TLV.
进一步,VM状态收集功能实例在发送状态查询报文后,在规定的时间内没有收到回复,则可以再进行设定次数的报文发送,如果没有收到回复,则判定该VM不可达。需要向NVE报告VM不可达信息,并刷新NVE中的VRF的VM状态信息。Further, after the VM status collection function sends a status inquiry message and does not receive a response within a specified time, the number of times of the message can be sent again. If no response is received, the VM is determined to be unreachable. The VM unreachable information needs to be reported to the NVE, and the VM state information of the VRF in the NVE is refreshed.
进一步,VM状态收集功能实例状态查询报文的发送时机,可以是NVE发送来的状态查询,或者VM状态收集功能实例本身定义的保活(keepalive)时钟设定触发的。Further, the timing of sending the VM status collection function instance status query message may be triggered by a status query sent by the NVE or by a keepalive clock setting defined by the VM status collection function instance itself.
经过这样的扩展,可以基于VDP协议的扩展实现在NVO3环境下的虚拟机状态的动态刷新和管理。Through such an extension, the dynamic refresh and management of the virtual machine state in the NVO3 environment can be realized based on the extension of the VDP protocol.
图8是根据本发明实施例的网络功能结构示意图,如图8所示,其中,为了收集VM的 运行状态,最基本的方法是与之进行通信,显式地询问其状态。在EVB的情况下,由于可以使用VDP来进行相关的信息传递,因此,一个可行的解决方案,是由驻留VDP功能实体的ER的上行接口(Uplink Relay Port,简称为URP)上,再运行一个VM状态收集功能实例,来实现VM的状态的收集。FIG. 8 is a schematic diagram of a network function structure according to an embodiment of the present invention, as shown in FIG. The most basic way to run the state is to communicate with it and explicitly ask for its status. In the case of EVB, since VDP can be used for related information transmission, a feasible solution is to run on the Uplink Relay Port (URP) of the ER hosting the VDP functional entity. A VM state collection function instance to achieve the collection of the state of the VM.
需要说明的是,在VM和NVE之间,也可以运行其他的协议,来实现状态的收集。It should be noted that other protocols may be run between the VM and the NVE to implement state collection.
具体的,由于VSI和SBP之间,存在L2报文传输通道,这样本发明,就是使用ER和VM之间的L2隧道来进行状态收集。Specifically, since there is an L2 message transmission channel between the VSI and the SBP, the present invention uses the L2 tunnel between the ER and the VM for state collection.
具体的,是定义一种新的/指定类型以太网帧格式,专门用于URP和VM之间进行信息交互。新的以太网帧,是指不同于现有的以太网类型,是专门用于VM状态信息交互的一种以太网类型。一般而言在大规模部署时,这个类型需要IEEE的批准。具体的数值,是在IEEE可以提供的类型中选择一个,并需要IEEE批准。一个具体的参考例子是,在以太网上承载PPP协议(Point to Point Protocol over Ethernet,简称为PPPoE)发现阶段报文的以太网类型值为0x8863(即16进制的8863)。Specifically, a new/specified type Ethernet frame format is defined, which is specifically used for information interaction between the URP and the VM. The new Ethernet frame refers to an Ethernet type that is different from the existing Ethernet type and is specifically used for VM state information interaction. In general, this type requires IEEE approval when deployed on a large scale. The specific value is one of the types that the IEEE can provide and requires IEEE approval. A specific reference example is that the Ethernet type value of the PPP (Point to Point Protocol over Ethernet, PPPoE) discovery phase packet is 0x8863 (that is, 886 in hexadecimal).
需要说明的是,这里需要2个指定类型的以太网帧,一个用于查询命令;另外一个用于查询命令的状态反馈。当然,都需要IEEE的批准。It should be noted that two specified types of Ethernet frames are needed here, one for querying commands and the other for status feedback of query commands. Of course, both require IEEE approval.
图9是根据本发明实施例的以太网帧结构示意图,如图9所示,而具体的状态的信息获得,还需要做进一步的命令定义。具体的,是通过该以太网帧的载荷部分来实现。在载荷部分,定义一个新的报头。图10是根据本发明实施例的VM状态收集命令以太网帧格式的详细定义示意图,如图10所示。FIG. 9 is a schematic structural diagram of an Ethernet frame according to an embodiment of the present invention. As shown in FIG. 9 , information of a specific state is obtained, and further command definition is needed. Specifically, it is implemented by the payload portion of the Ethernet frame. In the payload section, define a new header. FIG. 10 is a schematic diagram showing a detailed definition of an Ethernet frame format of a VM state collection command according to an embodiment of the present invention, as shown in FIG.
其中编码字段定义具体实现的功能。包括:状态询问,可以询问单个VM,或者所有VM。这可以通过以太网帧的目的地址来实现,或者区分。具体的,如果是广播地址,则询问域中的所有VM的状态。如果是单播地址,则指定的VM返回其状态信息。The code field defines the function of the specific implementation. Including: status queries, you can ask for a single VM, or all VMs. This can be done by the destination address of the Ethernet frame, or by distinction. Specifically, if it is a broadcast address, the status of all VMs in the domain is queried. If it is a unicast address, the specified VM returns its status information.
Keepalive命令,定期发送,询问VM的状态,如果在几个keepalive命令后,仍然收不到VM的反馈,则认为该VM是不可达的。The Keepalive command is sent periodically to ask for the status of the VM. If the VM's feedback is still not received after several keepalive commands, the VM is considered unreachable.
VN-ID字段,用于区分不同的VN信息,这个是可选的。The VN-ID field is used to distinguish different VN information, which is optional.
Session-ID,用于区分不同的通信,具体的VM返回状态信息时也需要返回该session-ID信息,以区分是哪一个状态询问。Session-ID is used to distinguish different communications. When a specific VM returns status information, it also needs to return the session-ID information to distinguish which status query.
另外一个选项是,VM地址/名称,或者一组VM的地址/名称,用于指示具体是针对操作的VM。Another option is the VM address/name, or the address/name of a group of VMs, used to indicate the VM that is specifically for the operation.
版本信息,可以定义为001,用于区分后续的版本。Version information, which can be defined as 001, is used to distinguish subsequent versions.
长度字段,用于指示状态查询报头长度。不包括以太网帧的头部。Length field, used to indicate the length of the status query header. Does not include the header of the Ethernet frame.
为实现的简洁性,可以选择2个以太网帧类型,其中一个用于命令,另外一个用于状态 信息的传递。For the simplicity of implementation, you can choose 2 Ethernet frame types, one for the command and the other for the state. Delivery of information.
或者也可以通过编码类型,来进行命令和状态报文的区分。例如,0x00,0x01,用于表示前述的2个命令;用0x04,0x05,表示状态的反馈信息。对这样的报文,可以进一步定义具体的状态编码。例如,0x00表示VM处于正常工作状态;0xFF表示,VM不可用,以及其他的编码表示其他不同的状态。Alternatively, the command type and the status message can be distinguished by the coding type. For example, 0x00, 0x01, used to represent the above two commands; with 0x04, 0x05, the status feedback information. For such a message, a specific state code can be further defined. For example, 0x00 indicates that the VM is in normal operation; 0xFF indicates that the VM is not available, and other encodings indicate other different states.
这里,仅仅做一个示范,具体的定义值,可以根据实际情况进行选择,而不影响本发明的本质内容。Here, only a demonstration, specific definition values, can be selected according to actual conditions without affecting the essential content of the present invention.
由于VDP用于关联VSI和SBP,并没有相关的内容来传递VM的具体的工作状态,因此,需要对VDP进行扩展,实现VM的状态的传递。Since the VDP is used to associate the VSI and the SBP, and there is no relevant content to deliver the specific working state of the VM, the VDP needs to be extended to implement the delivery of the state of the VM.
具体的,可以定义一种新的VDP TLV类型,VM状态TLV。可以用保留的TLV值0x06-0x7E中选择一个。Specifically, a new VDP TLV type, VM state TLV, can be defined. One of the reserved TLV values 0x06-0x7E can be selected.
图11是根据本发明实施例VM状态VDP TLV定义意图,如图11所示,而具体的TLV(Type Length Value)定义,如图11所示。具体的包括TLV类型,以及TLV信息长度和状态字段。FIG. 11 is a definition of a VM state VDP TLV according to an embodiment of the present invention, as shown in FIG. 11, and a specific TLV (Type Length Value) definition, as shown in FIG. Specifically, it includes the TLV type, as well as the TLV information length and status fields.
进一步,该TLV包括命令字段,用于指示NVE的VM状态查询命令。或者,优选的,图12是根据本发明实施例另一种VM状态VDP TLV定义意图,如图12所示,可以通过状态字段的前4位用于状态查询命令的定义,而后4位用于VM状态的定义。Further, the TLV includes a command field for indicating a VM status query command of the NVE. Or, preferably, FIG. 12 is another VM state VDP TLV definition intent according to an embodiment of the present invention. As shown in FIG. 12, the first 4 bits of the status field may be used for the definition of the status query command, and the last 4 bits are used for The definition of the VM state.
需要说明的是,也可以利用VDP的现有关联TLV定义的过滤信息字段来进行状态的字段定义。It should be noted that the field definition of the state may also be performed by using the filtering information field defined by the existing associated TLV of the VDP.
通过上述的定义和描述,实现了VM状态的信息收集和如何通过VDP的扩展,来实现将VM状态信息,传递给NVE。Through the above definition and description, the information collection of the VM state and how to extend the VDP are implemented to deliver the VM state information to the NVE.
而具体的VM状态的传递时机,可以是VM在状态发生变化时,主动发送给NVE,或者VM状态信息收集功能实例在获得VM状态发生变化时,进行传递,也可能是NVE主动发起,或者定期对VM进行状态询问。The specific VM state delivery timing may be that the VM actively sends the NVE to the NVE when the state changes, or the VM state information collection function instance transmits the VM state when the VM state changes, or may be initiated by the NVE actively, or periodically. A status inquiry is made to the VM.
图13是根据本发明实施例基于VDP扩展的VM状态管理的流程示意图,如图13所示,包括如下步骤。FIG. 13 is a schematic flowchart of VM state management based on VDP extension according to an embodiment of the present invention. As shown in FIG. 13, the following steps are included.
步骤S1001、可选的,NVE向VM状态管理功能实体/实例发送VM状态查询信息。Step S1001, optionally, the NVE sends VM state query information to the VM state management function entity/instance.
步骤S1002、VM状态管理功能实体/实例,在VM的keepalive计时器时间到,或者在接收到NVE发送的VM状态查询命令或者keepalive命令时,也或者VM状态管理功能实体/实例设定的定时状态查询时间到,启动VM状态查询。Step S1002: The VM state management function entity/instance, when the VM's keepalive timer expires, or when receiving the VM state query command or the keepalive command sent by the NVE, or the timing state set by the VM state management function entity/instance When the query time is up, the VM status query is started.
步骤S1003、发送VM状态查询报文。Step S1003: Send a VM status query message.
步骤S1004、VM返回其状态信息。 In step S1004, the VM returns its status information.
步骤S1005.VM状态管理功能实体/实例将收到的VM状态信息,发送给NVE,或者做记录、以备后用。或者如果在设定的时间内,再次发送该命令,重复设定次数的命令再次发送,如果仍然不能收到VM的回复,则判定该VM为不可达。Step S1005. The VM state management function entity/instance sends the received VM state information to the NVE, or records it for later use. Or if the command is sent again within the set time, the command of repeating the set number of times is sent again, and if the reply of the VM is still not received, it is determined that the VM is unreachable.
步骤S1006、VM状态管理功能实体/实例将所述VM状态信息,包括VM反馈的信息,或者判定的VM不可达信息,发送给NVE。Step S1006: The VM state management function entity/instance sends the VM state information, including information fed back by the VM, or the determined VM unreachable information to the NVE.
其他实施例Other embodiments
上述实施例中,是充分保证利用现有协议的情况下的解决方案,即利用现有的VDP协议的扩展,来完成VM的实时状态查询,而不存在不一致。In the above embodiment, the solution in the case of utilizing the existing protocol is fully ensured, that is, the extension of the existing VDP protocol is used to complete the real-time status query of the VM without inconsistency.
另外一个解决方案,是在VDP协议运行的状态报告之外,NVE直接和VM进行通信,获得VM的实时状态信息。Another solution is that in addition to the status report of the VDP protocol operation, the NVE communicates directly with the VM to obtain real-time status information of the VM.
具体的方案是,定义另外2个不同的以太网帧类型,用于NVE和VM之间的状态查询和反馈。The specific solution is to define two other different Ethernet frame types for status query and feedback between the NVE and the VM.
具体的帧的定义和前述的定义类似。不同的是,由于NVE支持多个虚拟网络VN,所以报文中的VN-ID字段是必选项,保证VM的状态信息送到正确的VN。The definition of a specific frame is similar to the previous definition. The difference is that since the NVE supports multiple virtual network VNs, the VN-ID field in the message is mandatory, and the state information of the VM is guaranteed to be sent to the correct VN.
而具体的实现方面是类似的。例如可以通过广播向NVE所连接的VN中的所有VM发送查询命令,或者通过单播地址向某个特定的VM发送查询命令。而VM一般都是用单播地址反馈状态信息。The specific implementation aspects are similar. For example, a query command may be sent to all VMs in the VN to which the NVE is connected by broadcasting, or a query command may be sent to a specific VM through a unicast address. VMs generally use unicast addresses to feed back state information.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, The optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行上述实施例的方法步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the storage medium may be configured to store program code for performing the method steps of the above embodiment:
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行上述实施例的方法步骤。Optionally, in this embodiment, the processor performs the method steps of the foregoing embodiments according to the stored program code in the storage medium.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算 装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art will appreciate that the various modules or steps of the present invention described above can be used with general calculations. The devices are implemented, they may be centralized on a single computing device, or distributed over a network of multiple computing devices, optionally they may be implemented in program code executable by the computing device, such that they may be stored Executed by the computing device in a storage device, and in some cases, the steps shown or described may be performed in an order different than that herein, or separately fabricated into individual integrated circuit modules, or Multiple modules or steps are made into a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
基于本发明实施例提供的上述技术方案,在支持预设协议实例的边缘中继ER的上行接口上运行的虚拟机VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文,该VM状态管理功能或功能实例接收该VM的VM状态查询反馈报文并获得该VM状态信息,该VM状态管理功能或功能实例将该VM的状态信息通过预设协议的扩展字段发送给NVE网络虚拟化边缘设备,解决了相关协议对虚拟机VM状态的管理还不完善的问题,实现了NVO3环境下的虚拟机状态的实时管理。 Based on the foregoing technical solution provided by the embodiment of the present invention, a virtual machine VM state management function or a function instance running on an uplink interface supporting an edge relay ER of a preset protocol instance sends a VM state query message to the virtual machine VM, where the VM The state management function or function instance receives the VM state query feedback message of the VM and obtains the VM state information, and the VM state management function or function instance sends the state information of the VM to the NVE network virtualization through an extension field of the preset protocol. The edge device solves the problem that the management of the virtual machine VM state is not perfect by the related protocol, and real-time management of the virtual machine state in the NVO3 environment is realized.

Claims (13)

  1. 一种虚拟机状态管理方法,包括:A virtual machine state management method includes:
    在支持预设协议实例的边缘中继ER的上行接口上运行的虚拟机VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文;The virtual machine VM state management function or function instance running on the uplink interface of the edge relay ER supporting the preset protocol instance sends a VM status query message to the virtual machine VM;
    所述VM状态管理功能或功能实例接收所述VM的VM状态查询反馈报文并获得所述VM的状态信息;The VM state management function or function instance receives a VM status query feedback message of the VM and obtains status information of the VM;
    所述VM状态管理功能或功能实例将所述VM的状态信息通过预设协议的扩展字段发送给NVE网络虚拟化边缘设备。The VM state management function or function instance sends the state information of the VM to the NVE network virtualization edge device through an extension field of the preset protocol.
  2. 根据权利要求1所述的方法,其中,所述运行的虚拟机VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文,或者接收VM状态查询反馈报文包括:The method of claim 1, wherein the running virtual machine VM state management function or function instance sends a VM status query message to the virtual machine VM, or receiving the VM status query feedback message includes:
    所述VM状态管理功能或功能实例通过第一预定义的以太网帧向所述ER连接的VM发送所述状态查询报文,其中,在所述第一预定义的以太网帧为广播类型的情况下,所述VM状态管理功能或功能实例向所述ER连接的所有VM发送所述状态查询报文,在所述第一预定义的以太网帧为单播类型的情况下,所述VM状态管理功能或功能实例以指定的VM的MAC地址为目的地址向指定的VM发送所述VM状态查询报文;The VM state management function or function instance sends the status query message to the ER-connected VM through a first predefined Ethernet frame, wherein the first predefined Ethernet frame is of a broadcast type In the case where the VM state management function or function instance sends the status query message to all VMs connected to the ER, in a case where the first predefined Ethernet frame is of a unicast type, the VM The state management function or the function instance sends the VM status query message to the specified VM with the MAC address of the specified VM as the destination address;
    所述VM以第二预定义的以太网帧发送VM状态查询反馈报文。The VM sends a VM status query feedback message in a second predefined Ethernet frame.
  3. 根据权利要求1所述的方法,其中,所述VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文之前,所述方法包括:The method of claim 1, wherein before the VM state management function or function instance sends a VM status query message to the virtual machine VM, the method comprises:
    所述VM状态管理功能或功能实例接收NVE通过预设协议扩展的三元组TLV字段传送的状态查询命令信息,其中,所述状态查询命令信息用于指示所述VM状态管理功能或功能实例反馈/收集所述VM的状态信息。The VM status management function or function instance receives status query command information transmitted by the NVE through a preset protocol extended triplet TLV field, wherein the status query command information is used to indicate the VM status management function or function instance feedback / Collect status information of the VM.
  4. 根据权利要求1所述的方法,其中,所述VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文之后,包括:The method of claim 1, wherein after the VM state management function or the function instance sends the VM status query message to the virtual machine VM, the method includes:
    接收状态查询反馈报文并获得所述VM的状态信息,并结合站点中保存的VM状态信息,形成VM的状态信息;Receiving a status query feedback message and obtaining state information of the VM, and combining the VM state information saved in the site to form status information of the VM;
    进一步,如果在预设时间段内没有收到所述VM回复的情况下,按照设定次数重复发送所述VM状态查询报文之后,在没有收到所述VM回复的情况下,判定所述VM不可达,形成不可达的VM状态信息。Further, if the VM status query message is repeatedly sent according to the set number of times in the case that the VM reply is not received within the preset time period, if the VM reply is not received, the The VM is unreachable and forms unreachable VM status information.
  5. 根据权利要求1所述的方法,其中,所述VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文的发送时机包括以下至少之一:The method of claim 1, wherein the sending of the VM state query message to the virtual machine VM by the VM state management function or the function instance comprises at least one of the following:
    在接收NVE发送的状态查询命令信息的情况下,所述VM状态管理功能或功能实例向VM发送VM状态查询报文; In the case of receiving status query command information sent by the NVE, the VM state management function or function instance sends a VM status query message to the VM;
    定期发送VM状态查询报文。Send VM status query messages periodically.
  6. 根据权利要求1至权利要求5任一项所述的方法,其中,所述预设协议包括为:The method according to any one of claims 1 to 5, wherein the preset protocol comprises:
    虚拟机接口发现和配置协议VDP,及所述VDP支持协议:分组数据汇聚协议CDCP和扩展能力端口模式协议ECP。Virtual Machine Interface Discovery and Configuration Protocol VDP, and the VDP Support Protocol: Packet Data Convergence Protocol CDCP and Extended Capability Port Mode Protocol ECP.
  7. 根据权利要求1或权利要求2所述的方法,其中,所述虚拟机状态管理方法,包括:The method of claim 1 or claim 2, wherein the virtual machine state management method comprises:
    所述NVE直接使用第三预定义的以太网帧,向虚拟机VM发送VM状态查询报文;所述VM使用第四预定义的以太网帧直接向NVE反馈VM状态信息。所述第三预定义的以太网帧和所述第四预定义的以太网帧不同于所述第一预定义的以太网帧和第二预定义的以太网帧的类型值。The NVE directly sends a VM status query message to the virtual machine VM using the third predefined Ethernet frame; the VM directly feeds back the VM status information to the NVE using the fourth predefined Ethernet frame. The third predefined Ethernet frame and the fourth predefined Ethernet frame are different from the type values of the first predefined Ethernet frame and the second predefined Ethernet frame.
  8. 一种虚拟机状态管理装置,包括:A virtual machine state management device includes:
    第一发送模块,设置为在支持预设协议实例的边缘中继ER的上行接口上运行的虚拟机VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文;a first sending module, configured to send a VM state query message to the virtual machine VM by using a virtual machine VM state management function or a function instance running on an uplink interface of the edge relay ER supporting the preset protocol instance;
    第一接收模块,设置为所述VM状态管理功能或功能实例接收所述VM的VM状态查询反馈报文并获得所述VM的状态信息;a first receiving module, configured to receive, by the VM state management function or a function instance, a VM status query feedback message of the VM, and obtain status information of the VM;
    第二发送模块,设置为所述VM状态管理功能或功能实例将所述VM的状态信息通过预设协议的扩展字段发送给NVE网络虚拟化边缘设备。The second sending module is configured to send the state information of the VM to the NVE network virtualization edge device by using an extended field of the preset protocol.
  9. 根据权利要求8所述的装置,其中,所述第一发送模块包括:The apparatus of claim 8, wherein the first transmitting module comprises:
    预定义发送单元,设置为所述VM状态管理功能或功能实例通过第一预定义的以太网帧向所述ER连接的VM发送所述状态查询报文,其中,在所述第一预定义的以太网帧为广播类型的情况下,所述VM状态管理功能或功能实例向所述ER连接的所有VM发送所述状态查询报文,在所述第一预定义的以太网帧为单播类型的情况下,所述VM状态管理功能或功能实例以指定的VM的MAC地址为目的地址向指定的VM发送所述VM状态查询报文;a predefined sending unit, configured to send the status query message to the VM of the ER connection by using the first predefined Ethernet frame, wherein the first predefined In the case that the Ethernet frame is of a broadcast type, the VM state management function or function instance sends the status query message to all VMs connected to the ER, where the first predefined Ethernet frame is a unicast type. The VM status management function or the function instance sends the VM status query message to the specified VM with the MAC address of the specified VM as the destination address;
    所述第一接收模块还设置为接收所述VM以第二预定义的以太网帧发送VM状态查询反馈报文。The first receiving module is further configured to receive the VM to send a VM status query feedback message in a second predefined Ethernet frame.
  10. 根据权利要求8所述的装置,其中,所述装置包括:The device of claim 8 wherein said device comprises:
    第二接收模块,设置为所述VM状态管理功能或功能实例向虚拟机VM发送VM状态查询报文之前,所述VM状态管理功能或功能实例接收NVE通过预设协议扩展的三元组TLV字段传送的状态查询命令信息,其中,所述状态查询命令信息设置为指示所述VM状态管理功能或功能实例反馈/收集的所述VM的状态信息。The second receiving module is configured to: before the VM state management function or the function instance sends the VM state query message to the virtual machine VM, the VM state management function or the function instance receives the triplet TLV field extended by the NVE through the preset protocol. The transmitted status query command information, wherein the status query command information is set to indicate status information of the VM fed back/collected by the VM status management function or function instance.
  11. 根据权利要求8所述的装置,其中,所述装置包括: The device of claim 8 wherein said device comprises:
    判定模块,设置为在接收状态查询反馈的状态信息,并将结合站点中保存的VM状态信息,形成VM的状态信息;并且,如果在预设时间段内没有收到所述VM回复的情况下,按照设定次数重复发送所述VM状态查询报文之后,在没有收到所述VM回复的情况下,判定所述VM不可达,即形成VM不可达的状态信息;The determining module is configured to query the state information of the feedback in the receiving state, and combine the VM state information saved in the site to form the state information of the VM; and, if the VM reply is not received within the preset time period After the VM status query message is repeatedly sent according to the set number of times, if the VM reply is not received, it is determined that the VM is unreachable, that is, the VM unreachable status information is formed;
    所述第二发送模块,还设置为向所述NVE报告所述VM不可达的状态信息。The second sending module is further configured to report status information of the VM unreachable to the NVE.
  12. 根据权利要求8所述的装置,其中,包括:The apparatus of claim 8 comprising:
    所述第一发送模块,还设置为在接收NVE发送的状态查询命令信息的情况下,所述VM状态管理功能或功能实例向VM发送VM状态查询报文;The first sending module is further configured to: when receiving the status query command information sent by the NVE, the VM status management function or the function instance sends a VM status query message to the VM;
    所述第一发送模块,还设置为定期发送VM状态查询报文。The first sending module is further configured to periodically send a VM status query message.
  13. 根据权利要求8至权利要求12任一项所述的装置,其中,所述预设协议包括为:The apparatus according to any one of claims 8 to 12, wherein the preset protocol is comprised of:
    虚拟机接口发现和配置协议VDP,及所述VDP支持协议:分组数据汇聚协议CDCP,扩展能力端口模式协议ECP。 Virtual Machine Interface Discovery and Configuration Protocol VDP, and the VDP support protocol: Packet Data Convergence Protocol CDCP, Extended Capability Port Mode Protocol ECP.
PCT/CN2016/079093 2015-07-31 2016-04-12 Virtual machine state management method and device WO2016180141A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510466806.4 2015-07-31
CN201510466806.4A CN106411552A (en) 2015-07-31 2015-07-31 Virtual machine state management method and apparatus thereof

Publications (1)

Publication Number Publication Date
WO2016180141A1 true WO2016180141A1 (en) 2016-11-17

Family

ID=57248796

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/079093 WO2016180141A1 (en) 2015-07-31 2016-04-12 Virtual machine state management method and device

Country Status (2)

Country Link
CN (1) CN106411552A (en)
WO (1) WO2016180141A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111399972B (en) * 2019-01-02 2023-05-09 中国移动通信有限公司研究院 Method and device for capturing packets by virtual machine and computer readable storage medium
CN114416274A (en) * 2021-10-18 2022-04-29 徐州医科大学 Virtual resource management system and method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100218183A1 (en) * 2009-02-26 2010-08-26 Microsoft Corporation Power-saving operating system for virtual environment
CN102647288A (en) * 2011-02-16 2012-08-22 中兴通讯股份有限公司 VM (Virtual Machine) data access protection method and system
CN102724080A (en) * 2012-06-29 2012-10-10 杭州华三通信技术有限公司 Network management system and network management method
CN103997414A (en) * 2013-02-18 2014-08-20 华为技术有限公司 Configuration information generation method and network control unit
US20150195178A1 (en) * 2014-01-09 2015-07-09 Ciena Corporation Method for resource optimized network virtualization overlay transport in virtualized data center environments

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100218183A1 (en) * 2009-02-26 2010-08-26 Microsoft Corporation Power-saving operating system for virtual environment
CN102647288A (en) * 2011-02-16 2012-08-22 中兴通讯股份有限公司 VM (Virtual Machine) data access protection method and system
CN102724080A (en) * 2012-06-29 2012-10-10 杭州华三通信技术有限公司 Network management system and network management method
CN103997414A (en) * 2013-02-18 2014-08-20 华为技术有限公司 Configuration information generation method and network control unit
US20150195178A1 (en) * 2014-01-09 2015-07-09 Ciena Corporation Method for resource optimized network virtualization overlay transport in virtualized data center environments

Also Published As

Publication number Publication date
CN106411552A (en) 2017-02-15

Similar Documents

Publication Publication Date Title
US10530847B2 (en) Virtual application delivery chassis system
JP6785376B2 (en) IoT device connectivity, discovery, networking
CN107070691B (en) Cross-host communication method and system of Docker container
CN102761482B (en) A kind of method for building up of bgp neighbor and equipment
WO2018049966A1 (en) Method, apparatus and system for controlling video monitoring system
CN103534984A (en) Port setting method, apparatus and computer program product for routing
KR101139836B1 (en) Method and system for two-phase mechanism for discovering web services based management service
CN104168140A (en) VTEP abnormal condition processing method and device
CN103631652A (en) Method and system for achieving virtual machine migration
US10284436B2 (en) Cloud based wake-on-LAN for thin clients
WO2016180141A1 (en) Virtual machine state management method and device
US9197557B2 (en) Relay server and relay communication system
CN111163463B (en) Method, device, equipment and storage medium for wireless equipment to access router
WO2018006684A1 (en) Message processing method and device, and router
US11128558B2 (en) Automatic routing configuration between hosts and network layer devices
CN102333094A (en) Safety control method and equipment
CN105208072B (en) The long-range control method and device of virtual switch
CN104468159A (en) Management method and device of dynamic host configuration protocol server and relay
WO2018108133A1 (en) Data network information processing method, device, terminal and storage medium
WO2017219777A1 (en) Packet processing method and device
CN111225080B (en) Method for acquiring gateway down-hanging equipment information
WO2016177135A1 (en) Resource management method, device, and control terminal
CN111385371B (en) MAC address acquisition method, device and equipment
WO2016141715A1 (en) Method and system of realizing virtual network
CN109639849A (en) A kind of address lookup processing method and service discovery device

Legal Events

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

Ref document number: 16791991

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16791991

Country of ref document: EP

Kind code of ref document: A1