















技术领域technical field
本发明涉及通信技术领域,尤其涉及建立VNFM与VIM之间的连接的方法、装置及系统。The present invention relates to the field of communication technologies, and in particular, to a method, device and system for establishing a connection between a VNFM and a VIM.
背景技术Background technique
随着虚拟化技术的飞速发展,在通用的物理设备上,实现网络中专用的网元设备的功能的网络功能虚拟化(英文:network function virtualization,缩写:NFV)系统逐渐受到人们的重视。With the rapid development of virtualization technology, a network function virtualization (English: network function virtualization, abbreviated: NFV) system that realizes the functions of dedicated network element devices in a network on a general-purpose physical device has gradually attracted people's attention.
在NFV系统中存在网络功能虚拟化调度节点(英文:network functionvirtualization orchestrator,缩写:NFVO)、虚拟机基础设施管理节点(英文:virtualized infrastructure manager,缩写:VIM)、虚拟网络功能管理节点(英文:virtualized network function manager,VNFM)、以及虚拟网络功能(英文:virtualizednetwork function,缩写:VNF)等功能节点。其中,VIM负责管理VNF所需的资源,VNFM负责管理VNF,NFVO负责对所有的VIM所管理的资源进行调度。实现一个VNF,首先需要为该VNF分配资源,即由NFVO通知管理该VNF的VNFM,由该VNFM向NFVO指定的VIM发送请求消息,以请求该VIM为该VNF分配资源。为保证该VNFM与该VIM之间能够通信,网络维护人员需提前将该VNFM的连接信息保存在该VIM中,并将该VIM的连接信息保存在该VNFM中,以手动的方式建立该VNFM和该VIM之间的连接。In the NFV system, there are network function virtualization scheduling nodes (English: network function virtualization orchestrator, abbreviation: NFVO), virtual machine infrastructure management nodes (English: virtualized infrastructure manager, abbreviation: VIM), virtual network function management nodes (English: virtualized network function manager, VNFM), virtual network function (English: virtualized network function, abbreviation: VNF) and other functional nodes. Among them, the VIM is responsible for managing the resources required by the VNF, the VNFM is responsible for managing the VNF, and the NFVO is responsible for scheduling all the resources managed by the VIM. To implement a VNF, it is first necessary to allocate resources for the VNF, that is, the NFVO informs the VNFM that manages the VNF, and the VNFM sends a request message to the VIM designated by the NFVO to request the VIM to allocate resources for the VNF. In order to ensure the communication between the VNFM and the VIM, network maintenance personnel need to save the connection information of the VNFM in the VIM in advance, save the connection information of the VIM in the VNFM, and manually establish the VNFM and the VNFM. The connection between the VIMs.
由于在网络运营的过程中,NFV系统中的VIM和VNF会根据网络运营的需要而改变,因此,当NFVO通知某个VNFM请求某个VIM为VNF分配资源时,该VNFM可能与该VIM之间并没有建立连接。若按照上述方法,以手动的方式建立该VNFM和该VIM之间的连接,则会由于建立连接的效率较低,而影响VNF的资源分配的效率。In the process of network operation, the VIM and VNF in the NFV system will change according to the needs of network operation. Therefore, when NFVO notifies a VNFM to request a VIM to allocate resources to the VNF, the VNFM may communicate with the VIM. No connection is established. If the connection between the VNFM and the VIM is manually established according to the above method, the efficiency of resource allocation of the VNF will be affected due to the low efficiency of establishing the connection.
发明内容SUMMARY OF THE INVENTION
本发明提供建立VNFM与VIM之间的连接的方法、装置及系统,能够自动建立VNFM与VIM之间的连接,从而提高资源VNF的资源分配的效率。The present invention provides a method, device and system for establishing a connection between a VNFM and a VIM, which can automatically establish a connection between the VNFM and the VIM, thereby improving the resource allocation efficiency of the resource VNF.
为达到上述目的,本发明采用如下技术方案:To achieve the above object, the present invention adopts the following technical solutions:
第一方面,本发明提供一种建立VNFM与VIM之间的连接的方法,包括:In a first aspect, the present invention provides a method for establishing a connection between a VNFM and a VIM, including:
VNFM接收管理节点发送的通知消息,所述通知消息中携带VIM的标识和所述VIM的连接信息,所述VIM的标识和所述VIM的连接信息用于所述VNFM建立与所述VIM的连接;The VNFM receives the notification message sent by the management node. The notification message carries the VIM's identifier and the VIM's connection information. The VIM's identifier and the VIM's connection information are used by the VNFM to establish a connection with the VIM. ;
当所述VNFM未建立与所述VIM的连接时,所述VNFM保存所述VIM的标识和所述VIM的连接信息;When the VNFM does not establish a connection with the VIM, the VNFM saves the identifier of the VIM and the connection information of the VIM;
所述VNFM向所述VIM发送请求消息,所述请求消息中携带所述VNFM的标识和所述VNFM的连接信息,所述VNFM的标识和所述VNFM的连接信息用于所述VIM建立与所述VNFM的连接。The VNFM sends a request message to the VIM, and the request message carries the identifier of the VNFM and the connection information of the VNFM, and the identifier of the VNFM and the connection information of the VNFM are used for the VIM to establish and The connection of the VNFM described above.
在第一方面的第一种可能的实现方式中,所述VNFM未建立与所述VIM的连接的判断方法包括:In a first possible implementation manner of the first aspect, the method for judging that the VNFM has not established a connection with the VIM includes:
所述VNFM确定所述VIM的标识和所述VNFM保存的至少一个已与所述VNFM建立连接的VIM的标识是否相同;The VNFM determines whether the identifier of the VIM is the same as the identifier of at least one VIM stored by the VNFM that has established a connection with the VNFM;
若所述VNFM确定所述VIM的标识和所述至少一个已与所述VNFM建立连接的VIM的标识均不相同,则所述VNFM未建立与所述VIM的连接;If the VNFM determines that the identifier of the VIM is different from the identifier of the at least one VIM that has established a connection with the VNFM, the VNFM has not established a connection with the VIM;
若所述VNFM确定所述VIM的标识和任意一个所述已与所述VNFM建立连接的VIM的标识相同,则所述VNFM已建立与所述VIM的连接。If the VNFM determines that the identifier of the VIM is the same as the identifier of any one of the VIMs that has established a connection with the VNFM, the VNFM has established a connection with the VIM.
结合前述的第一方面或第一方面的第一种可能的实现方式,在第二种可能的实现方式中,In combination with the aforementioned first aspect or the first possible implementation manner of the first aspect, in the second possible implementation manner,
所述VIM的连接信息至少包括所述VIM的IP地址;The connection information of the VIM includes at least the IP address of the VIM;
所述VNFM的连接信息至少包括所述VNFM的IP地址。The connection information of the VNFM includes at least the IP address of the VNFM.
结合前述的第一方面或第一方面的第一种可能的实现方式至第一方面的第二种可能的实现方式中的任一种实现方式,在第三种可能的实现方式中,所述方法还包括:With reference to the foregoing first aspect or any one of the first possible implementation manner of the first aspect to the second possible implementation manner of the first aspect, in the third possible implementation manner, the Methods also include:
所述通知消息和所述请求消息中还携带资源配额信息,所述资源配额信息用于指示允许所述VIM为所述VNFM分配的资源配额。The notification message and the request message also carry resource quota information, where the resource quota information is used to indicate the resource quota that the VIM is allowed to allocate for the VNFM.
第二方面,本发明提供一种建立VNFM与VIM之间的连接的方法,包括:In a second aspect, the present invention provides a method for establishing a connection between a VNFM and a VIM, including:
VIM接收VNFM发送的请求消息,所述请求消息中携带所述VNFM的标识和所述VNFM的连接信息,所述VNFM的标识和所述VNFM的连接信息用于所述VIM建立与所述VNFM的连接;The VIM receives a request message sent by the VNFM. The request message carries the VNFM's identifier and the VNFM's connection information. The VNFM's identifier and the VNFM's connection information are used by the VIM to establish a connection with the VNFM. connect;
当所述VIM未建立与所述VNFM的连接时,所述VIM保存所述VNFM的标识和所述VNFM的连接信息。When the VIM does not establish a connection with the VNFM, the VIM saves the identity of the VNFM and the connection information of the VNFM.
在第二方面的第一种可能的实现方式中,所述VIM未建立与所述VNFM的连接的判断方法包括:In a first possible implementation manner of the second aspect, the method for judging that the VIM has not established a connection with the VNFM includes:
所述VIM确定所述VNFM的标识和所述VIM保存的至少一个已与所述VIM建立连接的VNFM的标识是否相同;The VIM determines whether the identity of the VNFM is the same as the identity of at least one VNFM stored in the VIM that has established a connection with the VIM;
若所述VIM确定所述VNFM的标识和所述至少一个已与所述VIM建立连接的VNFM的标识均不相同,则所述VIM未建立与所述VNFM的连接;If the VIM determines that the identifier of the VNFM is different from the identifier of the at least one VNFM that has established a connection with the VIM, the VIM has not established a connection with the VNFM;
若所述VIM确定所述VNFM的标识和任意一个所述已与所述VIM建立连接的VNFM的标识相同,则所述VIM已建立与所述VNFM的连接。If the VIM determines that the identifier of the VNFM is the same as the identifier of any one of the VNFMs that has established a connection with the VIM, the VIM has established a connection with the VNFM.
结合前述的第二方面或第二方面的第一种可能的实现方式,在第二种可能的实现方式中,In combination with the aforementioned second aspect or the first possible implementation manner of the second aspect, in the second possible implementation manner,
所述VNFM的连接信息至少包括所述VNFM的IP地址。The connection information of the VNFM includes at least the IP address of the VNFM.
结合前述的第二方面或第二方面的第一种可能的实现方式至第二方面的第二种可能的实现方式中的任一种实现方式,在第三种可能的实现方式中,In combination with the aforementioned second aspect or any one of the first possible implementation manner of the second aspect to the second possible implementation manner of the second aspect, in the third possible implementation manner,
所述请求消息中还携带资源配额信息,所述资源配额信息用于指示允许所述VIM为所述VNFM分配的资源配额;The request message also carries resource quota information, where the resource quota information is used to indicate the resource quota that the VIM is allowed to allocate for the VNFM;
所述VIM保存所述VNFM的标识和所述VNFM的连接信息,包括:The VIM stores the identifier of the VNFM and the connection information of the VNFM, including:
所述VIM保存所述VNFM的标识、所述VNFM的连接信息以及所述资源配额信息。The VIM stores the identifier of the VNFM, the connection information of the VNFM, and the resource quota information.
第三方面,本发明提供一种建立VNFM与VIM之间的连接的方法,包括:In a third aspect, the present invention provides a method for establishing a connection between a VNFM and a VIM, including:
管理节点获取VIM的标识,所述VIM为满足待分配资源的虚拟网络功能VNF的资源需求信息的VIM;The management node obtains the identifier of the VIM, and the VIM is the VIM that satisfies the resource requirement information of the virtual network function VNF of the resource to be allocated;
所述管理节点根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息;The management node obtains, according to the identifier of the VIM, the connection information of the VIM corresponding to the identifier of the VIM;
所述管理节点向VNFM发送通知消息,所述通知消息中携带所述VIM的标识和所述VIM的连接信息,所述VIM的标识和所述VIM的连接信息用于所述VNFM建立与所述VIM的连接。The management node sends a notification message to the VNFM, where the notification message carries the identifier of the VIM and the connection information of the VIM, and the identifier of the VIM and the connection information of the VIM are used for the VNFM to establish a VIM connection.
在第三方面的第一种可能的实现方式中,所述管理节点根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息之前,所述方法还包括:In a first possible implementation manner of the third aspect, before the management node acquires, according to the identifier of the VIM, the connection information of the VIM corresponding to the identifier of the VIM, the method further includes:
所述管理节点确定所述VIM与所述VNFM之间是否已建立连接;The management node determines whether a connection has been established between the VIM and the VNFM;
所述管理节点根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息,包括:The management node obtains, according to the identifier of the VIM, the connection information of the VIM corresponding to the identifier of the VIM, including:
当所述管理节点确定所述VIM与所述VNFM之间未建立连接时,所述管理节点根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息。When the management node determines that a connection is not established between the VIM and the VNFM, the management node acquires the connection information of the VIM corresponding to the identification of the VIM according to the identification of the VIM.
结合第一方面的第一种可能的实现方式,在第二种可能的实现方式中,所述管理节点确定所述VIM与所述VNFM之间是否已建立连接,包括:With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner, the management node determines whether a connection has been established between the VIM and the VNFM, including:
所述管理节点根据预设的资源映射表确定所述VIM与所述VNFM之间是否已建立连接。The management node determines whether a connection has been established between the VIM and the VNFM according to a preset resource mapping table.
结合第一方面的第一种可能的实现方式,在第三种可能的实现方式中,所述管理节点获取VIM的标识之后,所述管理节点根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息之前,所述方法还包括:With reference to the first possible implementation manner of the first aspect, in a third possible implementation manner, after the management node acquires the identifier of the VIM, the management node acquires the identifier of the VIM according to the identifier of the VIM. Before identifying the corresponding connection information of the VIM, the method further includes:
所述管理节点向所述VIM发送资源预留请求消息,所述资源预留请求消息中携带所述VNFM的标识,所述VNFM的标识用于所述VIM确定是否已建立与所述VNFM的连接;The management node sends a resource reservation request message to the VIM, where the resource reservation request message carries an identifier of the VNFM, and the identifier of the VNFM is used by the VIM to determine whether a connection with the VNFM has been established ;
所述管理节点接收所述VIM发送的资源预留应答消息,所述资源预留应答消息中携带连接指示标识,所述连接指示标识表征所述VIM是否已建立与所述VNFM的连接;receiving, by the management node, a resource reservation reply message sent by the VIM, where the resource reservation reply message carries a connection indication identifier, and the connection indication identifier represents whether the VIM has established a connection with the VNFM;
所述管理节点确定所述VIM与所述VNFM之间是否已建立连接,包括:The management node determines whether a connection has been established between the VIM and the VNFM, including:
所述管理节点根据所述连接指示标识,确定所述VIM与所述VNFM之间是否已建立连接。The management node determines whether a connection has been established between the VIM and the VNFM according to the connection indication identifier.
结合前述的第三方面或第三方面的第一种可能的实现方式至第三方面的第三种可能的实现方式中的任一种实现方式,在第四种可能的实现方式中,管理节点获取VIM的标识之后,所述管理节点向VNFM发送通知消息之前,所述方法还包括:With reference to the foregoing third aspect or any one of the first possible implementation manner of the third aspect to the third possible implementation manner of the third aspect, in the fourth possible implementation manner, the management node After the identification of the VIM is acquired, and before the management node sends a notification message to the VNFM, the method further includes:
所述管理节点获取所述管理节点为所述VIM配置的资源配额信息,所述资源配额信息用于指示允许所述VIM为所述VNFM分配的资源配额;obtaining, by the management node, resource quota information configured by the management node for the VIM, where the resource quota information is used to indicate a resource quota that the VIM is allowed to allocate for the VNFM;
其中,所述通知消息中还携带所述资源配额信息。Wherein, the notification message also carries the resource quota information.
第四方面,本发明提供一种装置,包括:In a fourth aspect, the present invention provides a device, comprising:
接收单元,用于接收管理节点发送的通知消息,所述通知消息中携带VIM的标识和所述VIM的连接信息,所述VIM的标识和所述VIM的连接信息用于虚拟VNFM建立与所述VIM的连接;A receiving unit, configured to receive a notification message sent by a management node, where the notification message carries an identifier of the VIM and connection information of the VIM, and the identifier of the VIM and the connection information of the VIM are used for establishing a virtual VNFM with the VIM VIM connection;
保存单元,用于当所述VNFM未建立与所述VIM的连接时,保存所述接收单元接收的所述VIM的标识和所述VIM的连接信息;a saving unit, configured to save the identifier of the VIM and the connection information of the VIM received by the receiving unit when the VNFM does not establish a connection with the VIM;
发送单元,用于向所述VIM发送请求消息,所述请求消息中携带所述VNFM的标识和所述VNFM的连接信息,所述VNFM的标识和所述VNFM的连接信息用于所述VIM建立与所述VNFM的连接。A sending unit, configured to send a request message to the VIM, where the request message carries the identifier of the VNFM and the connection information of the VNFM, and the identifier of the VNFM and the connection information of the VNFM are used for establishing the VIM Connection to the VNFM.
在第四方面的第一种可能的实现方式中,In a first possible implementation manner of the fourth aspect,
所述保存单元,具体用于确定所述接收单元接收的所述VIM的标识和所述保存单元保存的至少一个已与所述VNFM建立连接的VIM的标识是否相同,若所述VIM的标识和所述至少一个已与所述VNFM建立连接的VIM的标识均不相同,则所述VNFM未建立与所述VIM的连接,若所述VIM的标识和任意一个所述已与所述VNFM建立连接的VIM的标识相同,则所述VNFM已建立与所述VIM的连接。The storage unit is specifically configured to determine whether the identification of the VIM received by the receiving unit and the identification of at least one VIM that has been connected to the VNFM saved by the storage unit are the same, if the identification of the VIM is the same as the identification of the VIM. The identifiers of the at least one VIM that has established a connection with the VNFM are all different, and the VNFM has not established a connection with the VIM. The identifiers of the VIMs are the same, then the VNFM has established a connection with the VIM.
结合前述的第四方面或第四方面的第一种可能的实现方式,在第二种可能的实现方式中,In combination with the foregoing fourth aspect or the first possible implementation manner of the fourth aspect, in the second possible implementation manner,
所述接收单元接收的所述VIM的连接信息至少包括所述VIM的源IP地址;The connection information of the VIM received by the receiving unit at least includes the source IP address of the VIM;
所述发送单元发送的所述VNFM的连接信息至少包括所述VNFM的IP地址。The connection information of the VNFM sent by the sending unit at least includes the IP address of the VNFM.
结合前述的第四方面或第四方面的第一种可能的实现方式至第四方面的第二种可能的实现方式中的任一种实现方式,在第三种可能的实现方式中,With reference to the foregoing fourth aspect or any one of the first possible implementation manner of the fourth aspect to the second possible implementation manner of the fourth aspect, in the third possible implementation manner,
所述接收单元接收的所述通知消息和所述发送单元发送的所述请求消息中还携带资源配额信息,所述资源配额信息用于指示允许所述VIM为所述VNFM分配的资源配额。The notification message received by the receiving unit and the request message sent by the sending unit further carry resource quota information, where the resource quota information is used to indicate the resource quota that the VIM is allowed to allocate for the VNFM.
第五方面,本发明提供一种装置,包括:In a fifth aspect, the present invention provides a device, comprising:
接收单元,用于接收VNFM发送的请求消息,所述请求消息中携带所述VNFM的标识和所述VNFM的连接信息,所述VNFM的标识和所述VNFM的连接信息用于VIM建立与所述VNFM的连接;A receiving unit, configured to receive a request message sent by the VNFM, where the request message carries the identifier of the VNFM and the connection information of the VNFM, and the identifier of the VNFM and the connection information of the VNFM are used by the VIM to establish a connection with the VNFM. VNFM connection;
保存单元,用于当所述VIM未建立与所述VNFM的连接时,保存所述接收单元接收的所述VNFM的标识和所述VNFM的连接信息。A saving unit, configured to save the identifier of the VNFM and the connection information of the VNFM received by the receiving unit when the VIM has not established a connection with the VNFM.
在第五方面的第一种可能的实现方式中,In a first possible implementation manner of the fifth aspect,
所述保存单元,具体用于确定所述接收单元接收的所述VNFM的标识和所述保存单元保存的至少一个已与所述VIM建立连接的VNFM的标识是否相同,若所述VNFM的标识和所述至少一个已与所述VIM建立连接的VNFM的标识均不相同,则所述VIM未建立与所述VNFM的连接,若所述VNFM的标识和任意一个所述已与所述VIM建立连接的VNFM的标识相同,则所述VIM已建立与所述VNFM的连接。The storage unit is specifically configured to determine whether the identifier of the VNFM received by the receiving unit and the identifier of at least one VNFM that has been connected to the VIM stored by the storage unit are the same, if the identifier of the VNFM and the VNFM are identical. The identifiers of the at least one VNFM that has established a connection with the VIM are all different, and the VIM has not established a connection with the VNFM. If the identifiers of the VNFMs are the same, the VIM has established a connection with the VNFM.
结合前述的第五方面或第五方面的第一种可能的实现方式,在第二种可能的实现方式中,In combination with the aforementioned fifth aspect or the first possible implementation manner of the fifth aspect, in the second possible implementation manner,
所述接收单元接收的所述VNFM的连接信息至少包括所述VNFM的IP地址。The connection information of the VNFM received by the receiving unit includes at least the IP address of the VNFM.
结合前述的第五方面或第五方面的第一种可能的实现方式至第五方面的第二种可能的实现方式中的任一种实现方式,在第三种可能的实现方式中,With reference to the aforementioned fifth aspect or any one of the first possible implementation manner of the fifth aspect to the second possible implementation manner of the fifth aspect, in the third possible implementation manner,
所述接收单元接收的所述请求消息中还携带资源配额信息,所述资源配额信息用于指示允许所述VIM为所述VNFM分配的资源配额;The request message received by the receiving unit further carries resource quota information, where the resource quota information is used to indicate the resource quota that the VIM is allowed to allocate for the VNFM;
所述保存单元,具体用于保存所述VNFM的标识、所述VNFM的连接信息以及所述资源配额信息。The storage unit is specifically configured to store the identifier of the VNFM, the connection information of the VNFM and the resource quota information.
第六方面,本发明提供一种装置,包括:In a sixth aspect, the present invention provides a device, comprising:
获取单元,用于获取VIM的标识,所述VIM为满足待分配资源的VNF的资源需求信息的VIM;an obtaining unit, configured to obtain an identifier of a VIM, where the VIM is a VIM that satisfies the resource requirement information of the VNF of the resource to be allocated;
所述获取单元,还用于根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息;The obtaining unit is further configured to obtain the connection information of the VIM corresponding to the identification of the VIM according to the identification of the VIM;
发送单元,用于向VNFM发送通知消息,所述通知消息中携带所述获取单元获取的所述VIM的标识和所述VIM的连接信息,所述VIM的标识和所述VIM的连接信息用于所述VNFM建立与所述VIM的连接。A sending unit, configured to send a notification message to the VNFM, where the notification message carries the identifier of the VIM and the connection information of the VIM acquired by the acquiring unit, and the identifier of the VIM and the connection information of the VIM are used for The VNFM establishes a connection with the VIM.
在第六方面的第一种可能的实现方式中,所述装置还包括确定单元,In a first possible implementation manner of the sixth aspect, the apparatus further includes a determining unit,
所述确定单元,用于在所述获取单元根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息之前,确定所述VIM与所述VNFM之间是否已建立连接;The determining unit is configured to determine whether a connection has been established between the VIM and the VNFM before the acquiring unit acquires, according to the VIM identifier, the VIM connection information corresponding to the VIM identifier ;
所述获取单元,具体用于当所述确定单元确定所述VIM与所述VNFM之间未建立连接时,根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息。The acquiring unit is specifically configured to acquire, according to the identifier of the VIM, the connection information of the VIM corresponding to the identifier of the VIM when the determining unit determines that a connection is not established between the VIM and the VNFM .
结合第六方面的第一种可能的实现方式,在第二种可能的实现方式中,In combination with the first possible implementation manner of the sixth aspect, in the second possible implementation manner,
所述确定单元,具体用于根据预设的资源映射表确定所述VIM与所述VNFM之间是否已建立连接。The determining unit is specifically configured to determine whether a connection has been established between the VIM and the VNFM according to a preset resource mapping table.
结合第六方面的第一种可能的实现方式,在第三种可能的实现方式中,所述装置还包括接收单元,With reference to the first possible implementation manner of the sixth aspect, in a third possible implementation manner, the apparatus further includes a receiving unit,
所述发送单元,还用于在所述获取单元获取VIM的标识之后,在所述获取单元根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息之前,向所述VIM发送资源预留请求消息,所述资源预留请求消息中携带所述VNFM的标识,所述VNFM的标识用于确定所述VIM是否已建立与所述VNFM的连接;The sending unit is further configured to, after the obtaining unit obtains the identification of the VIM, before the obtaining unit obtains the connection information of the VIM corresponding to the identification of the VIM according to the identification of the VIM, to the The VIM sends a resource reservation request message, where the resource reservation request message carries the identifier of the VNFM, and the identifier of the VNFM is used to determine whether the VIM has established a connection with the VNFM;
所述接收单元,用于接收所述VIM发送的资源预留应答消息,所述资源预留应答消息中携带连接指示标识,所述连接指示标识表征所述VIM是否已建立与所述VNFM的连接;The receiving unit is configured to receive a resource reservation reply message sent by the VIM, where the resource reservation reply message carries a connection indication identifier, and the connection indication identifier represents whether the VIM has established a connection with the VNFM ;
所述确定单元,具体用于根据所述接收单元接收的所述连接指示标识,确定所述VIM与所述VNFM之间是否已建立连接。The determining unit is specifically configured to determine whether a connection has been established between the VIM and the VNFM according to the connection indication identifier received by the receiving unit.
结合前述的第六方面或第六方面的第一种可能的实现方式至第六方面的第三种可能的实现方式中的任一种实现方式,在第四种可能的实现方式中,In conjunction with the aforementioned sixth aspect or any one of the first possible implementation manner of the sixth aspect to the third possible implementation manner of the sixth aspect, in the fourth possible implementation manner,
所述获取单元,还用于在获取VIM的标识之后,所述发送单元向VNFM发送通知消息之前,获取管理节点为所述VIM配置的资源配额信息,所述资源配额信息用于指示允许所述VIM为所述VNFM分配的资源配额;The acquiring unit is further configured to acquire resource quota information configured by the management node for the VIM after acquiring the identifier of the VIM and before the sending unit sends a notification message to the VNFM, where the resource quota information is used to indicate that the The resource quota allocated by the VIM for the VNFM;
其中,所述发送单元发送的所述通知消息中还携带所述获取单元获取的所述资源配额信息。The notification message sent by the sending unit further carries the resource quota information obtained by the obtaining unit.
第七方面,本发明提供一种装置,包括:In a seventh aspect, the present invention provides a device, comprising:
处理器,用于接收管理节点发送的通知消息,所述通知消息中携带VIM的标识和所述VIM的连接信息,所述VIM的标识和所述VIM的连接信息用于VNFM建立与所述VIM的连接;a processor, configured to receive a notification message sent by the management node, where the notification message carries the identifier of the VIM and the connection information of the VIM, and the identifier of the VIM and the connection information of the VIM are used for the VNFM to establish a connection with the VIM Connection;
所述处理器,还用于当所述VNFM未建立与所述VIM的连接时,保存所述VIM的标识和所述VIM的连接信息;The processor is further configured to save the identifier of the VIM and the connection information of the VIM when the VNFM does not establish a connection with the VIM;
所述处理器,还用于向所述VIM发送请求消息,所述请求消息中携带所述VNFM的标识和所述VNFM的连接信息,所述VNFM的标识和所述VNFM的连接信息用于所述VIM建立与所述VNFM的连接。The processor is further configured to send a request message to the VIM, where the request message carries the identifier of the VNFM and the connection information of the VNFM, and the identifier of the VNFM and the connection information of the VNFM are used for all The VIM establishes a connection with the VNFM.
在第七方面的第一种可能的实现方式中,In the first possible implementation manner of the seventh aspect,
所述处理器,具体用于确定所述VIM的标识和所述处理器保存的至少一个已与所述VNFM建立连接的VIM的标识是否相同,若所述VIM的标识和所述至少一个已与所述VNFM建立连接的VIM的标识均不相同,则所述VNFM未建立与所述VIM的连接,若所述VIM的标识和任意一个所述已与所述VNFM建立连接的VIM的标识相同,则所述VNFM已建立与所述VIM的连接。The processor is specifically configured to determine whether the identifier of the VIM and the identifier of at least one VIM that has been connected to the VNFM saved by the processor are the same, if the identifier of the VIM and the at least one identifier that has been connected to the VNFM are the same. The identifiers of the VIMs that the VNFM has established a connection with are all different, then the VNFM has not established a connection with the VIM, if the identifier of the VIM is the same as the identifier of any VIM that has established a connection with the VNFM, Then the VNFM has established a connection with the VIM.
结合前述的第七方面或第七方面的第一种可能的实现方式,在第二种可能的实现方式中,In conjunction with the aforementioned seventh aspect or the first possible implementation manner of the seventh aspect, in the second possible implementation manner,
所述处理器接收的所述VIM的连接信息至少包括所述VIM的IP地址;The connection information of the VIM received by the processor at least includes the IP address of the VIM;
所述处理器发送的所述VNFM的连接信息至少包括所述VNFM的IP地址。The connection information of the VNFM sent by the processor includes at least the IP address of the VNFM.
结合前述的第七方面或第七方面的第一种可能的实现方式至第七方面的第二种可能的实现方式中的任一种实现方式,在第三种可能的实现方式中,In conjunction with the aforementioned seventh aspect or any one of the first possible implementation manner of the seventh aspect to the second possible implementation manner of the seventh aspect, in the third possible implementation manner,
所述处理器接收的所述通知消息和所述请求消息中还携带资源配额信息,所述资源配额信息用于指示允许所述VIM为所述VNFM分配的资源配额。The notification message and the request message received by the processor further carry resource quota information, where the resource quota information is used to indicate the resource quota that the VIM is allowed to allocate for the VNFM.
第八方面,本发明提供一种装置,包括:In an eighth aspect, the present invention provides a device, comprising:
处理器,用于接收VNFM发送的请求消息,所述请求消息中携带所述VNFM的标识和所述VNFM的连接信息,所述VNFM的标识和所述VNFM的连接信息用于VIM建立与所述VNFM的连接;A processor, configured to receive a request message sent by the VNFM, where the request message carries an identifier of the VNFM and connection information of the VNFM, and the identifier of the VNFM and the connection information of the VNFM are used by the VIM to establish a connection with the VNFM. VNFM connection;
所述处理器,还用于当所述VIM未建立与所述VNFM的连接时,保存所述VNFM的标识和所述VNFM的连接信息。The processor is further configured to save the identifier of the VNFM and the connection information of the VNFM when the VIM has not established a connection with the VNFM.
在第八方面的第一种可能的实现方式中,In a first possible implementation manner of the eighth aspect,
所述处理器,具体用于确定所述VNFM的标识和所述处理器保存的至少一个已与所述VIM建立连接的VNFM的标识是否相同,若所述VNFM的标识和所述至少一个已与所述VIM建立连接的VNFM的标识均不相同,则所述VIM未建立与所述VNFM的连接,若所述VNFM的标识和任意一个所述已与所述VIM建立连接的VNFM的标识相同,则所述VIM已建立与所述VNFM的连接。The processor is specifically configured to determine whether the identifier of the VNFM is the same as the identifier of at least one VNFM saved by the processor that has established a connection with the VIM. The identifiers of the VNFMs that the VIM has established a connection with are all different, then the VIM has not established a connection with the VNFM, if the identifier of the VNFM is the same as the identifier of any one of the VNFMs that have established a connection with the VIM, Then the VIM has established a connection with the VNFM.
结合前述的第八方面或第八方面的第一种可能的实现方式,在第二种可能的实现方式中,In combination with the aforementioned eighth aspect or the first possible implementation manner of the eighth aspect, in the second possible implementation manner,
所述处理器接收的所述VNFM的连接信息至少包括所述VNFM的IP地址。The connection information of the VNFM received by the processor includes at least the IP address of the VNFM.
结合前述的第八方面或第八方面的第一种可能的实现方式至第八方面的第二种可能的实现方式中的任一种实现方式,在第三种可能的实现方式中,With reference to the aforementioned eighth aspect or any one of the first possible implementation manner of the eighth aspect to the second possible implementation manner of the eighth aspect, in the third possible implementation manner,
所述处理器接收的所述请求消息中还携带资源配额信息,所述资源配额信息用于指示允许所述VIM为所述VNFM分配的资源配额;The request message received by the processor further carries resource quota information, where the resource quota information is used to indicate the resource quota that the VIM is allowed to allocate for the VNFM;
所述处理器,具体用于保存所述VNFM的标识、所述VNFM的连接信息以及所述资源配额信息。The processor is specifically configured to save the identifier of the VNFM, the connection information of the VNFM and the resource quota information.
第九方面,本发明提供一种装置,包括:In a ninth aspect, the present invention provides a device, comprising:
处理器,用于获取VIM的标识,所述VIM为满足待分配资源的VNF的资源需求信息的VIM;a processor, configured to obtain an identifier of a VIM, where the VIM is a VIM that satisfies the resource requirement information of the VNF of the resource to be allocated;
所述处理器,还用于根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息;The processor is further configured to acquire, according to the identifier of the VIM, the connection information of the VIM corresponding to the identifier of the VIM;
所述处理器,还用于向VNFM发送通知消息,所述通知消息中携带所述获取单元获取的所述VIM的标识和所述VIM的连接信息,所述VIM的标识和所述VIM的连接信息用于所述VNFM建立与所述VIM的连接。The processor is further configured to send a notification message to the VNFM, where the notification message carries the identifier of the VIM and the connection information of the VIM acquired by the acquiring unit, and the identifier of the VIM and the connection of the VIM The information is used by the VNFM to establish a connection with the VIM.
在第九方面的第一种可能的实现方式中,In the first possible implementation manner of the ninth aspect,
所述处理器,还用于在根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息之前,确定所述VIM与所述VNFM之间是否已建立连接;The processor is further configured to determine whether a connection has been established between the VIM and the VNFM before acquiring the connection information of the VIM corresponding to the VIM identifier according to the VIM identifier;
所述处理器,具体用于当确定所述VIM与所述VNFM之间未建立连接时,根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息。The processor is specifically configured to acquire, according to the identifier of the VIM, the connection information of the VIM corresponding to the identifier of the VIM when it is determined that the connection is not established between the VIM and the VNFM.
结合第九方面的第一种可能的实现方式,在第二种可能的实现方式中,In combination with the first possible implementation manner of the ninth aspect, in the second possible implementation manner,
所述处理器,具体用于根据预设的资源映射表确定所述VIM与所述VNFM之间是否已建立连接。The processor is specifically configured to determine whether a connection has been established between the VIM and the VNFM according to a preset resource mapping table.
结合第九方面的第一种可能的实现方式,在第三种可能的实现方式中,In combination with the first possible implementation manner of the ninth aspect, in the third possible implementation manner,
所述处理器,还用于在获取VIM的标识之后,根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息之前,向所述VIM发送资源预留请求消息,所述资源预留请求消息中携带所述VNFM的标识,所述VNFM的标识用于确定所述VIM是否已建立与所述VNFM的连接;The processor is further configured to send a resource reservation request message to the VIM after acquiring the identifier of the VIM, before acquiring the connection information of the VIM corresponding to the identifier of the VIM according to the identifier of the VIM, The resource reservation request message carries the identifier of the VNFM, and the identifier of the VNFM is used to determine whether the VIM has established a connection with the VNFM;
所述处理器,还用于接收所述VIM发送的资源预留应答消息,所述资源预留应答消息中携带连接指示标识,所述连接指示标识表征所述VIM是否已建立与所述VNFM的连接;The processor is further configured to receive a resource reservation reply message sent by the VIM, where the resource reservation reply message carries a connection indication identifier, and the connection indication identifier represents whether the VIM has established a connection with the VNFM. connect;
所述处理器,具体用于根据所述连接指示标识,确定所述VIM与所述VNFM之间是否已建立连接。The processor is specifically configured to determine whether a connection has been established between the VIM and the VNFM according to the connection indication identifier.
结合前述的第九方面或第九方面的第一种可能的实现方式至第九方面的第三种可能的实现方式中的任一种实现方式,在第四种可能的实现方式中,In combination with the aforementioned ninth aspect or any one of the first possible implementation manner of the ninth aspect to the third possible implementation manner of the ninth aspect, in the fourth possible implementation manner,
所述处理器,还用于在获取VIM的标识之后,向VNFM发送通知消息之前,获取管理节点为所述VIM配置的资源配额信息,所述资源配额信息用于指示允许所述VIM为所述VNFM分配的资源配额;The processor is further configured to acquire resource quota information configured by the management node for the VIM after acquiring the identifier of the VIM and before sending a notification message to the VNFM, where the resource quota information is used to indicate that the VIM is allowed to be the Resource quota allocated by VNFM;
其中,所述处理器发送的所述通知消息中还携带所述获取单元获取的所述资源配额信息。Wherein, the notification message sent by the processor further carries the resource quota information obtained by the obtaining unit.
第十方面,本发明提供一种通信系统,包括:In a tenth aspect, the present invention provides a communication system, comprising:
如上述第四方面或第四方面的任一种实现方式所述的装置、如上述第五方面或第五方面的任一种实现方式所述的装置,以及如上述第六方面或第六方面的任一种实现方式所述的装置;或者,The apparatus according to the above fourth aspect or any implementation manner of the fourth aspect, the apparatus according to any one implementation manner of the above fifth aspect or the fifth aspect, and the above sixth aspect or the sixth aspect The device described in any implementation manner; or,
如上述第七方面或第七方面的任一种实现方式所述的装置、如上述第八方面或第八方面的任一种实现方式所述的装置,以及如上述第九方面或第九方面的任一种实现方式所述的装置。The apparatus according to the above seventh aspect or any implementation manner of the seventh aspect, the apparatus according to the above eighth aspect or any implementation manner of the eighth aspect, and the above ninth aspect or the ninth aspect The device described in any implementation manner of .
本发明提供一种建立VNFM与VIM之间的连接的方法、装置及系统,该方法可以包括VNFM接收管理节点发送通知消息,该通知消息中携带VIM的标识和该VIM的连接信息,当VNFM未建立与该VIM的连接时,VNFM保存该VIM的标识和该VIM的连接信息,并向该VIM发送请求消息,该请求消息中携带该VNFM的标识和该VNFM的连接信息,其中,该VNFM的标识和该VNFM的连接信息用于该VIM建立与该VNFM的连接。通过本发明提供的建立VNFM与VIM之间的连接的方法、装置及系统,VNFM接收到通知消息后,能够在确定未建立与该VIM的连接时,自动保该VIM的标识和该VIM的连接信息,并将该VNFM的标识和该VNFM的连接信息携带在该请求消息中发送至该VIM,使得该VIM能够自动保存该VNFM的标识和该VNFM的连接信息,以完成该VNFM与该VIM之间的连接的建立,提高了建立VIM与VNFM之间的连接的效率,进而提高了VNF的资源分配的效率。The present invention provides a method, device and system for establishing a connection between a VNFM and a VIM. The method may include that the VNFM receives a notification message sent by a management node, and the notification message carries the identifier of the VIM and the connection information of the VIM. When establishing a connection with the VIM, the VNFM saves the identification of the VIM and the connection information of the VIM, and sends a request message to the VIM, where the request message carries the identification of the VNFM and the connection information of the VNFM, wherein the VNFM's identification The identification and the connection information of the VNFM are used for the VIM to establish a connection with the VNFM. With the method, device and system for establishing a connection between a VNFM and a VIM provided by the present invention, after receiving the notification message, the VNFM can automatically keep the identification of the VIM and the connection of the VIM when it is determined that the connection with the VIM has not been established information, and the identification of the VNFM and the connection information of the VNFM are carried in the request message and sent to the VIM, so that the VIM can automatically save the identification of the VNFM and the connection information of the VNFM, so as to complete the connection between the VNFM and the VIM. The establishment of the connection between the VIM and the VNFM improves the efficiency of establishing the connection between the VIM and the VNFM, thereby improving the efficiency of the resource allocation of the VNF.
附图说明Description of drawings
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,而不是所有的实施例。In order to explain the embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only These are some, but not all, embodiments of the invention.
图1为一种现有的NFV系统的架构图;FIG. 1 is an architectural diagram of an existing NFV system;
图2为本发明实施例提供的建立VNFM与VIM之间的连接的方法的流程图一;2 is a flowchart 1 of a method for establishing a connection between a VNFM and a VIM provided by an embodiment of the present invention;
图3为本发明实施例提供的建立VNFM与VIM之间的连接的方法的流程图二;3 is a second flowchart of a method for establishing a connection between a VNFM and a VIM provided by an embodiment of the present invention;
图4为本发明实施例提供的建立VNFM与VIM之间的连接的方法的流程图三;4 is a third flowchart of a method for establishing a connection between a VNFM and a VIM provided by an embodiment of the present invention;
图5为本发明实施例提供的建立VNFM与VIM之间的连接的方法的交互图一;5 is an interaction diagram 1 of a method for establishing a connection between a VNFM and a VIM provided by an embodiment of the present invention;
图6为本发明实施例提供的建立VNFM与VIM之间的连接的方法的交互图二;6 is an interaction diagram 2 of a method for establishing a connection between a VNFM and a VIM provided by an embodiment of the present invention;
图7为本发明实施例提供的建立VNFM与VIM之间的连接的方法的交互图三;FIG. 7 is an interaction diagram 3 of a method for establishing a connection between a VNFM and a VIM provided by an embodiment of the present invention;
图8为本发明实施例提供的建立VNFM与VIM之间的连接的方法的交互图四;FIG. 8 is an interaction diagram 4 of a method for establishing a connection between a VNFM and a VIM provided by an embodiment of the present invention;
图9为本发明实施例提供的一种装置的结构示意图;9 is a schematic structural diagram of an apparatus provided by an embodiment of the present invention;
图10为本发明实施例提供的一种装置的结构示意图;10 is a schematic structural diagram of an apparatus provided by an embodiment of the present invention;
图11为本发明实施例提供的一种装置的结构示意图;FIG. 11 is a schematic structural diagram of an apparatus according to an embodiment of the present invention;
图12为本发明实施例提供的一种装置的结构示意图;12 is a schematic structural diagram of an apparatus provided by an embodiment of the present invention;
图13为本发明实施例提供的一种装置的结构示意图;13 is a schematic structural diagram of an apparatus provided by an embodiment of the present invention;
图14为本发明实施例提供的一种装置的硬件结构示意图;14 is a schematic diagram of a hardware structure of an apparatus provided by an embodiment of the present invention;
图15为本发明实施例提供的一种装置的硬件结构示意图;15 is a schematic diagram of a hardware structure of an apparatus provided by an embodiment of the present invention;
图16为本发明实施例提供的一种装置的硬件结构示意图;16 is a schematic diagram of a hardware structure of an apparatus provided by an embodiment of the present invention;
图17为本发明实施例提供的一种通信系统的框图。FIG. 17 is a block diagram of a communication system according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments.
如图1所示,为一种NFV系统的架构图。该NFV系统包括:NFVO、VNFM、VIM、运营支撑系统(英文:operations support system,缩写:OSS)或业务支撑系统(英文:businesssupport system,缩写:BSS)、网元管理节点(英文:element manager,缩写:EM)、VNF节点、虚拟网络功能基础设施(英文:network function virtualization infrastructure,缩写:NFVI)等功能节点,其中,OSS/BSS,或者是OSS/BSS的用户操作界面可以称为网络管理节点(英文:network manager,缩写:NM)。As shown in Figure 1, it is an architecture diagram of an NFV system. The NFV system includes: NFVO, VNFM, VIM, operation support system (English: operations support system, abbreviation: OSS) or business support system (English: business support system, abbreviation: BSS), network element management node (English: element manager, Abbreviation: EM), VNF node, virtual network function infrastructure (English: network function virtualization infrastructure, abbreviation: NFVI) and other functional nodes, wherein, OSS/BSS, or the user interface of OSS/BSS can be called network management node (English: network manager, abbreviation: NM).
在NFV系统中,NFVO、VNFM以及VIM构成了NFV系统的管理编排(英文:NFVmanagement and orchestration,缩写:NFV-MANO)域,其中,NFVO也可以称为网络功能虚拟化编排者。In an NFV system, NFVO, VNFM, and VIM constitute the management and orchestration (English: NFV management and orchestration, abbreviated: NFV-MANO) domain of the NFV system, where NFVO can also be called a network function virtualization orchestrator.
其中,NFVO可以对NFV系统中的VIM进行操作,管理及协调,NFVO与NFV系统中的所有VIM以及VNFM均相连。Among them, NFVO can operate, manage and coordinate the VIMs in the NFV system, and NFVO is connected to all VIMs and VNFMs in the NFV system.
VIM是基础设施和资源的管理入口,为VNF提供资源管理,包括为VNF提供基础设施相关硬件和虚拟化资源的配置维护、资源监控、告警、性能管理等功能。VIM is the management portal of infrastructure and resources. It provides resource management for VNFs, including configuration and maintenance, resource monitoring, alarms, and performance management of infrastructure-related hardware and virtualized resources for VNFs.
VNFM负责VNF的生命周期管理,如实例化、扩展/收缩、查询、更新及终止等。VNFM is responsible for VNF lifecycle management, such as instantiation, expansion/contraction, query, update, and termination.
在现有技术中,VNFM和VIM之间的连接都是需要手动建立的,当需要某个VIM为某个VNFM管理的某个VNF分配资源时,若该VNFM与该VIM之间还未建立连接,则此时需先手动建立该VNFM和该VIM之间的连接,当采用手动建立连接的方式时,由于VNFM与VIM之间建立连接的效率较低,因此会影响VNF的资源分配的效率。In the prior art, the connection between the VNFM and the VIM needs to be established manually. When a certain VIM is required to allocate resources to a certain VNF managed by a certain VNFM, if the connection between the VNFM and the VIM has not yet been established , the connection between the VNFM and the VIM needs to be manually established at this time. When the connection is established manually, the efficiency of establishing the connection between the VNFM and the VIM is low, which will affect the efficiency of VNF resource allocation.
本发明实施例提供的建立VNFM和VIM之间的连接的方法及装置,能够自动建立VNFM和VIM之间的连接,从而提高VNF的资源分配的效率。The method and device for establishing the connection between the VNFM and the VIM provided by the embodiments of the present invention can automatically establish the connection between the VNFM and the VIM, thereby improving the resource allocation efficiency of the VNF.
需要说明的是,在本发明实例中,上述NFV系统中的任意一种功能节点可能由一个实体设备实现,也可能由多个实体设备共同实现,NFV系统中的多个功能节点可能分别由不同的实体设备实现,也可能都由同一个实体设备实现。可以理解的是,NFV系统中的任意一种功能节点都可能是实体设备内的一个逻辑功能模块,也可能是由多个实体设备组成的一个逻辑功能模块。It should be noted that, in the example of the present invention, any functional node in the above-mentioned NFV system may be implemented by one entity device, or may be implemented jointly by multiple entity devices, and multiple functional nodes in the NFV system may be implemented by different It may also be implemented by the same entity device. It can be understood that any functional node in the NFV system may be a logical functional module in an entity device, or may be a logical functional module composed of multiple entity devices.
因此,在下述的本发明实施例中,可以由一个实体设备执行本发明实施例提供的方法中的各个步骤,可以由多个实体设备协作执行本发明实施例提供的方法中的各个步骤,对此本发明不作限定。Therefore, in the following embodiments of the present invention, each step in the method provided by the embodiment of the present invention may be performed by one entity device, and each step in the method provided by the embodiment of the present invention may be performed by multiple entity devices. This invention is not limited.
进一步地,为了更清楚地介绍本发明提供的建立VNFM和VIM之间的连接的方法,下文中均以逻辑功能模块(即NFV系统中的功能节点)作为执行主体进行说明,本领域技术人员可以理解,逻辑功能模块在具体实现时需依赖于其所在的实体设备上的硬件资源。Further, in order to introduce the method for establishing the connection between the VNFM and the VIM provided by the present invention more clearly, the following description will be performed with the logical function module (that is, the function node in the NFV system) as the execution subject. Those skilled in the art can It is understood that the specific implementation of the logic function module needs to depend on the hardware resources on the physical device where it is located.
在本发明实施例中,NFV系统可以应用于长期演进(英文:long term evolution,缩写:LTE)通信系统中,也可以应用于LTE的演进通信系统中,如LTE-A(英文全称:longterm evolution advanced)系统中,还可以应用于WCDMA等第三代移动通信(英文:3rd-Generation,缩写:3G)系统中等,本发明不作限制。In the embodiment of the present invention, the NFV system can be applied to a long term evolution (English: long term evolution, abbreviation: LTE) communication system, and can also be applied to an LTE evolution communication system, such as LTE-A (English full name: longterm evolution) advanced) system, it can also be applied to third-generation mobile communication (English: 3rd-Generation, abbreviation: 3G) systems such as WCDMA, etc., which is not limited in the present invention.
实施例一Example 1
本发明实施例提供一种建立VNFM与VIM之间的连接的方法,如图2所示,该方法可以包括:An embodiment of the present invention provides a method for establishing a connection between a VNFM and a VIM. As shown in FIG. 2 , the method may include:
S101、VNFM接收管理节点发送的通知消息,该通知消息中携带VIM的标识和该VIM的连接信息,该VIM的标识和该VIM的连接信息用于VNFM建立与该VIM的连接。S101. The VNFM receives a notification message sent by a management node, where the notification message carries an identifier of the VIM and connection information of the VIM, and the identifier of the VIM and the connection information of the VIM are used by the VNFM to establish a connection with the VIM.
在本发明实施例中,管理节点可以为VNFM所在的NFV系统中的NFVO,也可以为能够管理该NFV系统中所有VIM的功能节点。其中,管理节点中保存有该NFV系统中的每个VIM的相关信息,包括每个VIM的标识、每个VIM的连接信息,以及每个VIM的资源的分配情况等,从而管理节点可以根据这些相关信息确定能够为待分配资源的VNF分配资源的VIM。In this embodiment of the present invention, the management node may be an NFVO in the NFV system where the VNFM is located, or may be a functional node capable of managing all VIMs in the NFV system. Among them, the management node saves the relevant information of each VIM in the NFV system, including the identification of each VIM, the connection information of each VIM, and the resource allocation of each VIM, etc., so that the management node can be based on these The relevant information determines the VIM that can allocate resources to the VNF to which resources are to be allocated.
具体的,当需要为待分配资源的VNF分配资源时,管理节点可以根据该VNF的资源需求,确定一个VIM,并将该VIM的标识携带在通知消息中,发送至管理该VNF的VNFM,以通知该VNFM可以请求该VIM为该VNF分配资源。Specifically, when it is necessary to allocate resources to the VNF to be allocated resources, the management node can determine a VIM according to the resource requirements of the VNF, carry the identification of the VIM in the notification message, and send it to the VNFM that manages the VNF to Notify the VNFM that the VIM can be requested to allocate resources for the VNF.
进一步地,在本发明实施例中,管理节点将VIM的连接信息也携带在通知消息中发送至VNFM,该VNFM接收到该通知消息后,若该VNFM并未建立与该VIM的连接,则该VNFM能够根据该VIM的标识和该VIM的连接信息,建立与该VIM之间的连接。Further, in the embodiment of the present invention, the management node also carries the connection information of the VIM in the notification message and sends it to the VNFM. After the VNFM receives the notification message, if the VNFM has not established a connection with the VIM, the The VNFM can establish a connection with the VIM according to the identification of the VIM and the connection information of the VIM.
其中,VIM的连接信息至少可以包括该VIM的IP地址。The connection information of the VIM may at least include the IP address of the VIM.
进一步地,VIM的连接信息还可以包括该VIM的统一资源定位符(英文:uniformresource locator,缩写:URL)、用户名、认证密码等中的任一项信息。Further, the connection information of the VIM may also include any information of a uniform resource locator (English: uniform resource locator, abbreviation: URL), user name, authentication password, and the like of the VIM.
S102、当VNFM未建立与该VIM的连接时,VNFM保存该VIM的标识和该VIM的连接信息。S102. When the VNFM does not establish a connection with the VIM, the VNFM saves the identifier of the VIM and the connection information of the VIM.
在本发明实施例中,当VNFM接收到通知消息后,VNFM可以先确定确定其是否已建立了与该VIM的连接。由于在VNFM中,保存有已与该VNFM建立了连接的VIM的相关信息,例如,已与该VNFM建立了连接的VIM的标识等,因此,VNFM可以通过判断其是否保存有该VIM的标识,确定是否已建立了与该VIM的连接。In this embodiment of the present invention, after the VNFM receives the notification message, the VNFM may first determine whether it has established a connection with the VIM. Since the VNFM stores relevant information of the VIM that has established a connection with the VNFM, for example, the identification of the VIM that has established a connection with the VNFM, etc., the VNFM can determine whether it has the VIM identification stored, Determine if a connection to this VIM has been established.
具体的,VNFM确定其未建立与该VIM的连接的方法可以包括:Specifically, the method for the VNFM to determine that it has not established a connection with the VIM may include:
VNFM可以确定该VIM的标识和其保存的至少一个已与该VNFM建立连接的VIM的标识是否相同,即该VNFM将该VIM的标识与其保存的至少一个已与该VNFM建立连接的VIM的标识分别进行对比。The VNFM can determine whether the identifier of the VIM is the same as the identifier of at least one VIM that has established a connection with the VNFM, that is, the identifier of the VIM stored by the VNFM is different from the identifier of at least one VIM that has established a connection with the VNFM. comparing.
若该VNFM确定该VIM的标识和至少一个已与该VNFM建立连接的VIM的标识均不相同,则该VNFM可以确定未建立与该VIM的连接。If the VNFM determines that the identifier of the VIM is different from the identifier of at least one VIM that has established a connection with the VNFM, the VNFM may determine that the connection with the VIM has not been established.
若该VNFM确定该VIM的标识和任意一个已与该VNFM建立连接的VIM的标识相同,则该VNFM可以确定已建立与该VIM的连接。If the VNFM determines that the identifier of the VIM is the same as the identifier of any VIM that has established a connection with the VNFM, the VNFM can determine that a connection with the VIM has been established.
进一步地,当VNFM确定未建立与该VIM的连接时,VNFM建立与该VIM的连接,即可以理解为VNFM保存该VIM的标识和该VIM的连接信息。Further, when the VNFM determines that the connection with the VIM is not established, the VNFM establishes the connection with the VIM, that is, it can be understood that the VNFM stores the identification of the VIM and the connection information of the VIM.
示例性的,VNFM可以将该VIM连接信息保存到该VNFM内特定的单元中。该特定的单元可以为该VNFM中专门用于发送数据的传输单元;也可以该VNFM中新创建的一个虚拟的通信接口,该通信接口可以是该VNFM通过预设算法,根据该VIM的连接信息创建的,当该VNFM需要向该VIM发送数据时,该VNFM可以通过该通信接口进行发送。Exemplarily, the VNFM may save the VIM connection information in a specific unit in the VNFM. The specific unit may be a transmission unit in the VNFM specially used for sending data; it may also be a virtual communication interface newly created in the VNFM, and the communication interface may be the VNFM through a preset algorithm, according to the connection information of the VIM Created, when the VNFM needs to send data to the VIM, the VNFM can send data through the communication interface.
该VIM的标识能够唯一表征该VIM,当VNFM在保存了该VIM的标识后,VNFM可以在后续与该VIM进行通信的过程中,通过该VIM的标识识别该VIM。The identifier of the VIM can uniquely characterize the VIM. After the VNFM saves the identifier of the VIM, the VNFM can identify the VIM by the identifier of the VIM in the subsequent process of communicating with the VIM.
S103、VNFM向该VIM发送请求消息,该请求消息中携带该VNFM的标识和该VNFM的连接信息,该VNFM的标识和该VNFM的连接信息用于该VIM建立与该VNFM的连接。S103. The VNFM sends a request message to the VIM, where the request message carries the VNFM identifier and the VNFM connection information, where the VNFM identifier and the VNFM connection information are used for the VIM to establish a connection with the VNFM.
需要说明的是,在本发明实施例中,VNFM建立与VIM的连接,即为VNFM将VIM的标识以及VIM的连接信息保存到VNFM中;VIM建立与VNFM的连接,即为VIM将VNFM的标识以及VNFM的连接信息保存到VIM中;建立VNFM与VIM之间的连接可以理解为:VIM将VNFM的标识以及VNFM的连接信息保存到VIM中,且VNFM将VIM的标识以及VIM的连接信息保存到VNFM中。It should be noted that, in this embodiment of the present invention, the establishment of a connection between the VNFM and the VIM means that the VNFM stores the identity of the VIM and the connection information of the VIM in the VNFM; the establishment of a connection between the VIM and the VNFM means that the identity of the VNFM is stored by the VIM. And the connection information of the VNFM is saved in the VIM; establishing a connection between the VNFM and the VIM can be understood as: the VIM saves the identification of the VNFM and the connection information of the VNFM in the VIM, and the VNFM saves the identification of the VIM and the connection information of the VIM to the VIM. in VNFM.
因此,在本发明实施例中,当VNFM通过管理节点获取到VIM的标识以及VIM的连接信息并保存后,该VNFM还需将该VNFM的标识以及该VNFM的连接信息发送至该VIM,并由该VIM保存,即可成功建立该VNFM与该VIM之间的连接。Therefore, in the embodiment of the present invention, after the VNFM obtains and saves the identification of the VIM and the connection information of the VIM through the management node, the VNFM also needs to send the identification of the VNFM and the connection information of the VNFM to the VIM, and the If the VIM is saved, the connection between the VNFM and the VIM can be successfully established.
在本发明实施例中,当VNFM接收到管理节点发送的通知消息后,需要根据该通知消息向VIM发送请求消息,以请求该VIM为待分配资源的VNF分配资源。此时,VNFM可以将该VNFM的标识和该VNFM的连接信息携带在请求消息中,发送至该VIM,以使得该VIM接收到该请求消息后,能够保存该VNFM的标识和该VNFM的连接信息,以完成该VIM与该VNFM之间的连接的建立。In the embodiment of the present invention, after receiving the notification message sent by the management node, the VNFM needs to send a request message to the VIM according to the notification message, so as to request the VIM to allocate resources to the VNF to which resources are to be allocated. At this time, the VNFM can carry the VNFM's identification and the VNFM's connection information in the request message and send it to the VIM, so that the VIM can save the VNFM's identification and the VNFM's connection information after receiving the request message. , to complete the establishment of the connection between the VIM and the VNFM.
可以理解的是,当VNFM向VIM发送请求消息时,虽然该VNFM和该VIM之间的连接还未建立成功,但是该VNFM中已保存了该VIM的连接信息,即该VNFM已经确定了该VIM的IP地址以及相关的传输信息,因此,该VNFM可以根据该VIM的连接信息向该VIM发送请求消息,以使得该VIM能够接收并识别该请求消息。It can be understood that when the VNFM sends a request message to the VIM, although the connection between the VNFM and the VIM has not been established successfully, the VNFM has saved the connection information of the VIM, that is, the VNFM has determined the VIM. Therefore, the VNFM can send a request message to the VIM according to the connection information of the VIM, so that the VIM can receive and recognize the request message.
其中,VNFM的连接信息至少可以包括该VNFM的IP地址。The connection information of the VNFM may at least include the IP address of the VNFM.
进一步地,VNFM的连接信息还可以包括该VNFM的URL、用户名、认证密码等中的任一项信息。Further, the connection information of the VNFM may also include any information of the URL, user name, authentication password and the like of the VNFM.
本发明实施例提供一种建立VNFM与VIM之间的连接的方法,该方法可以包括VNFM接收管理节点发送通知消息,该通知消息中携带VIM的标识和该VIM的连接信息,当VNFM未建立与该VIM的连接时,VNFM保存该VIM的标识和该VIM的连接信息,并向该VIM发送请求消息,该请求消息中携带该VNFM的标识和该VNFM的连接信息,其中,该VNFM的标识和该VNFM的连接信息用于该VIM建立与该VNFM的连接。通过上述方法,VNFM接收到通知消息后,能够在确定未建立与该VIM的连接时,自动保该VIM的标识和该VIM的连接信息,并将该VNFM的标识和该VNFM的连接信息携带在该请求消息中发送至该VIM,以使得该VIM能够自动保存该VNFM的标识和该VNFM的连接信息,以完成该VNFM与该VIM之间的连接的建立,从而提高了建立VIM与VNFM之间的连接的效率,进而提高了VNF的资源分配的效率。An embodiment of the present invention provides a method for establishing a connection between a VNFM and a VIM. The method may include that the VNFM receives a notification message sent by a management node, and the notification message carries the identifier of the VIM and the connection information of the VIM. When the VIM is connected, the VNFM saves the identification of the VIM and the connection information of the VIM, and sends a request message to the VIM, where the request message carries the identification of the VNFM and the connection information of the VNFM, wherein the identification of the VNFM and the connection information of the VNFM are The connection information of the VNFM is used for the VIM to establish a connection with the VNFM. Through the above method, after receiving the notification message, the VNFM can automatically save the VIM's identity and the VIM's connection information when it is determined that the connection with the VIM has not been established, and carry the VNFM's identity and the VNFM's connection information in the The request message is sent to the VIM, so that the VIM can automatically save the identity of the VNFM and the connection information of the VNFM, so as to complete the establishment of the connection between the VNFM and the VIM, thereby improving the establishment of the connection between the VIM and the VNFM. The efficiency of the connection is improved, and the efficiency of the resource allocation of the VNF is improved.
本发明实施例提供一种建立VNFM与VIM之间的连接的方法,如图3所示,该方法可以包括:An embodiment of the present invention provides a method for establishing a connection between a VNFM and a VIM. As shown in FIG. 3 , the method may include:
S201、VIM接收VNFM发送的请求消息,该请求消息中携带该VNFM的标识和该VNFM的连接信息,该VNFM的标识和该VNFM的连接信息用于VIM建立与该VNFM之间的连接。S201. The VIM receives a request message sent by the VNFM, where the request message carries the identifier of the VNFM and the connection information of the VNFM, and the identifier of the VNFM and the connection information of the VNFM are used for the VIM to establish a connection with the VNFM.
其中,VNFM的连接信息至少可以包括该VNFM的IP地址。The connection information of the VNFM may at least include the IP address of the VNFM.
进一步地,VNFM的连接信息还可以包括该VNFM的URL、用户名、认证密码等中的任一项信息。Further, the connection information of the VNFM may also include any information of the URL, user name, authentication password and the like of the VNFM.
S202、当VIM未建立与该VNFM的连接时,VIM保存该VNFM的标识和该VNFM的连接信息。S202. When the VIM does not establish a connection with the VNFM, the VIM saves the identifier of the VNFM and the connection information of the VNFM.
在本发明实施例中,当VIM接收到VNFM发送的请求消息后,VIM可以先判断其是否建立了与该VNFM的连接。由于在VIM中,保存有已与其建立了连接的VNFM的相关信息,例如,已与该VIM建立了连接的VNFM的标识,因此,VIM可以通过判断其是否保存有该VNFM的标识,确定是否已建立了与该VNFM的连接。In this embodiment of the present invention, after the VIM receives the request message sent by the VNFM, the VIM may first determine whether it has established a connection with the VNFM. Since the VIM stores relevant information about the VNFM that has established a connection with it, for example, the identifier of the VNFM that has established a connection with the VIM, the VIM can determine whether it has A connection to this VNFM is established.
具体的,VIM确定其未建立与该VNFM的连接的方法,与如图2所示实施例中,VNFM确定其未建立与VIM的连接的方法类似,具体可参见如图2所示实施例中VNFM确定其未建立与VIM的连接的方法,此处不再赘述。Specifically, the method for the VIM to determine that it has not established a connection with the VNFM is similar to the method for the VNFM to determine that it has not established a connection with the VIM in the embodiment shown in FIG. 2 . For details, please refer to the embodiment shown in FIG. 2 . The method for determining that the VNFM has not established a connection with the VIM will not be repeated here.
进一步地,当VIM未建立与该VNFM的连接时,VIM需建立立与该VNFM的连接,即可以理解为VIM将该VNFM的标识和该VNFM的连接信息进行保存。Further, when the VIM does not establish a connection with the VNFM, the VIM needs to establish a connection with the VNFM, that is, it can be understood that the VIM stores the VNFM's identification and the VNFM's connection information.
示例性的,VIM可以将该VNFM连接信息保存到该VIM内特定的单元中。其中,该特定的单元可以为该VIM中专门用于发送数据的传输单元;也可以该VIM中新创建的一个虚拟的通信接口,该通信接口可以是该VIM通过预设算法,根据该VNFM的连接信息创建的,当该VIM需要向该VNFM发送数据时,该VIM可以通过该通信接口进行发送。Exemplarily, the VIM may save the VNFM connection information in a specific unit in the VIM. Wherein, the specific unit may be a transmission unit in the VIM specially used for sending data; it may also be a virtual communication interface newly created in the VIM, and the communication interface may be the VIM through a preset algorithm, according to the VNFM The connection information is created. When the VIM needs to send data to the VNFM, the VIM can send the data through the communication interface.
该VNFM的标识能够唯一表征该VNFM,当VIM在保存了该VNFM的标识后,VIM可以在后续需要与该VNFM进行通信时,通过该VNFM的标识识别该VNFM。The identifier of the VNFM can uniquely characterize the VNFM. After the VIM saves the identifier of the VNFM, the VIM can identify the VNFM through the identifier of the VNFM when it needs to communicate with the VNFM subsequently.
需要说明的是,VIM能够接收到该VNFM发送的请求消息,表明该VNFM已经保存了该VIM的标识以及该VIM的连接信息,因此,当VIM保存了该请求消息中携带的该VNFM的标识和该VNFM的连接信息后,该VIM与该VNFM之间的连接建立成功。It should be noted that the VIM can receive the request message sent by the VNFM, indicating that the VNFM has saved the identity of the VIM and the connection information of the VIM. After the connection information of the VNFM is obtained, the connection between the VIM and the VNFM is successfully established.
本发明实施例提供一种建立VNFM与VIM之间的连接的方法,该方法可以包括VIM接收VNFM发送的请求消息,该请求消息中携带该VNFM的标识和该VNFM的连接信息,当VIM未建立与该VNFM的连接时,VIM保存该VNFM的标识和该VNFM的连接信息。通过该方法,VIM能够在接收到VNFM发送的请求消息后,自动保存该请求消息中携带的该VNFM的标识和该VNFM的连接信息,以完成该VIM与该VNFM之间的连接的建立,而无需进行手动建立,从而大大提高了建立VIM与VNFM之间的连接的效率,进而提高了VNF的资源分配的效率。An embodiment of the present invention provides a method for establishing a connection between a VNFM and a VIM. The method may include the VIM receiving a request message sent by the VNFM, where the request message carries the VNFM's identifier and the VNFM's connection information. When connecting to the VNFM, the VIM saves the VNFM's identifier and the VNFM's connection information. Through this method, after receiving the request message sent by the VNFM, the VIM can automatically save the identifier of the VNFM and the connection information of the VNFM carried in the request message, so as to complete the establishment of the connection between the VIM and the VNFM, and There is no need to perform manual establishment, thereby greatly improving the efficiency of establishing the connection between the VIM and the VNFM, thereby improving the efficiency of resource allocation of the VNF.
本发明实施例提供一种建立VNFM与VIM之间的连接的方法,如图4所示,该方法可以包括:An embodiment of the present invention provides a method for establishing a connection between a VNFM and a VIM. As shown in FIG. 4 , the method may include:
S301、管理节点获取VIM的标识,该VIM为满足待分配资源的VNF的资源需求信息的VIM。S301. The management node acquires an identifier of a VIM, where the VIM is a VIM that satisfies resource requirement information of a VNF to which resources are to be allocated.
在本发明实施例中,管理节点可以为该待分配资源的VNF所在的NFV系统中的NFVO,也可以为能够管理该NFV系统中所有VIM的功能节点。In this embodiment of the present invention, the management node may be an NFVO in the NFV system where the VNF to be allocated resources is located, or may be a functional node capable of managing all VIMs in the NFV system.
在管理节点中,设置有资源映射表,该资源映射表中记录了该NFV系统中的每个VIM的相关信息,包括每个VIM的标识、连接信息、所管理的资源以及及资源的分配情况等,例如,每个VIM负责管理的中央处理器(英文:central processing unit,缩写:CPU)的数量,CPU的类型,内存的数量,以及未使用的CPU的类型及其数量,内存的数量等。In the management node, a resource mapping table is set, and the resource mapping table records the relevant information of each VIM in the NFV system, including the identification of each VIM, connection information, managed resources, and resource allocation. Etc., for example, the number of central processing units (English: central processing unit, abbreviation: CPU) that each VIM is responsible for managing, the type of CPU, the amount of memory, and the type and number of unused CPUs, the amount of memory, etc. .
VNF的资源需求信息可以为该VNF的虚拟网络功能描述器(英文:virtualizednetwork function descriptor,缩写:VNFD)的标识,配置风格(英文:deployment flavor)的标识等信息。管理节点可以根据该VNF的VNFD的标识指示的VNFD,确定该VNF需要的资源,例如,可以包括该VNF需要的CPU的数量,CPU的类型,内存数量等。The resource requirement information of the VNF may be an identifier of a virtualized network function descriptor (English: virtualized network function descriptor, abbreviation: VNFD) of the VNF, an identifier of a deployment flavor (English: deployment flavor) and other information. The management node can determine the resources required by the VNF according to the VNFD indicated by the VNFD identifier of the VNF, for example, the number of CPUs required by the VNF, the type of CPU, the amount of memory, and the like.
因此,当管理节点通过查询该资源映射表,确定能够满足待分配资源的VNF的资源需求信息VIM后,可以在该资源映射表中获取该VIM的标识,并直接确定由该VIM为该VNF分配资源。Therefore, when the management node determines the resource requirement information VIM of the VNF that can satisfy the resource to be allocated by querying the resource mapping table, it can obtain the identifier of the VIM in the resource mapping table, and directly determine that the VIM allocates the VNF for the VNF. resource.
管理节点也可以在获取到该VIM的标识后,先指示该VIM进行资源预留,即向该VIM发送资源预留请求消息,该资源预留信息中携带了该资源需求信息,若该VIM经过自身判断确定其满足该资源需求信息,则该VIM会向管理节点发送资源预留应答消息,当管理节点接收到该资源预留应答消息时,可以确定由该VIM为该VNF分配资源。The management node may also instruct the VIM to perform resource reservation after obtaining the identifier of the VIM, that is, send a resource reservation request message to the VIM, and the resource reservation information carries the resource requirement information. If its own judgment determines that it meets the resource requirement information, the VIM will send a resource reservation response message to the management node. When the management node receives the resource reservation response message, it can determine that the VIM allocates resources to the VNF.
S302、管理节点根据该VIM的标识,获取与该VIM的标识对应的该VIM的连接信息。S302. The management node acquires the connection information of the VIM corresponding to the identifier of the VIM according to the identifier of the VIM.
具体的,管理节点可以直接在该资源映射表中查找与该VIM的标识对应的该VIM的连接信息。Specifically, the management node may directly look up the connection information of the VIM corresponding to the identifier of the VIM in the resource mapping table.
S303、管理节点向VNFM发送通知消息,该通知消息中携带该VIM的标识和该VIM的连接信息,该VIM的标识和该VIM的连接信息用于该VNFM建立与该VIM之间的连接。S303. The management node sends a notification message to the VNFM, where the notification message carries the identifier of the VIM and the connection information of the VIM, and the identifier of the VIM and the connection information of the VIM are used for the VNFM to establish a connection with the VIM.
在本发明实施例中,当管理节点确定能够为该VNF分配资源的VIM的标识后,管理节点会将该VIM的标识携带在通知消息中发送至管理该VNF的VNFM,以通知该VNFM可以向该VIM发送请求消息,以请求该VIM为该VNF分配资源。In this embodiment of the present invention, after the management node determines the identifier of the VIM that can allocate resources for the VNF, the management node will carry the identifier of the VIM in a notification message and send it to the VNFM that manages the VNF, so as to notify the VNFM that the VNFM can send The VIM sends a request message to request the VIM to allocate resources for the VNF.
为避免该VNFM在接收到通知消息后,由于该VNFM和该VIM之间还未建立连接,而导致该VNFM无法向该VIM发送请求消息的情况,在本发明实施例中,管理节点可以在向该VNFM发送通知消息之前,先获取该VIM的连接信息,并将该VIM的标识和该VIM的连接信息都携带在通知消息中发送至该VNFM,以使得该VNFM接收到通知消息后,能够在未建立与该VIM的连接的情况下,根据通知消息中携带的该VIM的标识和该VIM的连接信息建立与该VIM的连接,以保证该VNFM能够向该VIM发送请求消息。In order to avoid the situation that the VNFM cannot send a request message to the VIM because the VNFM and the VIM have not yet established a connection after receiving the notification message, in this embodiment of the present invention, the management node can Before the VNFM sends the notification message, it first obtains the connection information of the VIM, and sends both the identification of the VIM and the connection information of the VIM in the notification message to the VNFM, so that after receiving the notification message, the VNFM can If the connection with the VIM is not established, the connection with the VIM is established according to the identification of the VIM and the connection information of the VIM carried in the notification message, so as to ensure that the VNFM can send the request message to the VIM.
本发明实施例提供一种建立VNFM与VIM之间的连接的方法,可以包括管理节点获取VIM的标识和与该VIM的标识对应的该VIM的连接信息,并向VNFM发送通知消息,其中,该VIM为满足待分配资源的VNF的资源需求信息的VIM,该通知消息中携带该VIM的标识和该VIM的连接信息,该VIM的标识和该VIM的连接信息用于该VNFM建立与该VIM的连接。通过该方法,管理节点能够将VIM的标识和该VIM的连接信息携带在通知消息中,发送至VNFM,使得该VNFM能够自动保存该VIM的标识和该VIM的连接信息,以自动建立与该VIM的连接,从而提高了建立VIM与VNFM之间的连接的效率,进而提高了VNF的资源分配的效率。An embodiment of the present invention provides a method for establishing a connection between a VNFM and a VIM, which may include a management node acquiring an identifier of the VIM and connection information of the VIM corresponding to the identifier of the VIM, and sending a notification message to the VNFM, wherein the The VIM is the VIM that satisfies the resource requirement information of the VNF to be allocated resources. The notification message carries the identification of the VIM and the connection information of the VIM. The identification of the VIM and the connection information of the VIM are used by the VNFM to establish a connection with the VIM. connect. Through this method, the management node can carry the identification of the VIM and the connection information of the VIM in the notification message and send it to the VNFM, so that the VNFM can automatically save the identification of the VIM and the connection information of the VIM, so as to automatically establish a connection with the VIM Therefore, the efficiency of establishing the connection between the VIM and the VNFM is improved, and the efficiency of the resource allocation of the VNF is further improved.
实施例二Embodiment 2
本发明实施例提供一种建立VNFM与VIM之间的连接的方法,可以应用于需要为VNF分配资源的场景中,如图5所示,该方法可以包括:An embodiment of the present invention provides a method for establishing a connection between a VNFM and a VIM, which can be applied to a scenario where resources need to be allocated to a VNF. As shown in FIG. 5 , the method may include:
S401、管理节点获取VIM的标识,该VIM为满足待分配资源的VNF的资源需求信息的VIM。S401. The management node acquires an identifier of a VIM, where the VIM is a VIM that satisfies resource requirement information of a VNF to which resources are to be allocated.
需要说明的是,待分配资源的VNF可以为待实例化的VNF,也可以为待扩展的VNF。It should be noted that the VNF to which the resource is to be allocated may be the VNF to be instantiated or the VNF to be extended.
即在上述S401之前,当该VNF所在的NFV系统中的网元管理节点(英文:elementmanager,缩写:EM)、NM、VNFM或者NFVO等功能节点发起对该VNF的实例化,或者发起对该VNF的扩展(英文:scale)后,由管理该VNF的VNFM向管理节点发送授予生命周期管理请求(英文:grant lifecycle operation)消息。That is, before the above S401, when the network element management node (English: elementmanager, abbreviation: EM), NM, VNFM or NFVO and other functional nodes in the NFV system where the VNF is located initiates the instantiation of the VNF, or initiates the VNF After the expansion of the VNF (English: scale), the VNFM that manages the VNF sends a grant lifecycle management request (English: grant lifecycle operation) message to the management node.
其中,授予生命周期管理请求消息包括该VNF的VNFD的标识和部署风格的标识等资源需求信息,以指示管理节点根据该资源需求信息对该VNF进行实例化或者扩展。从而,管理节点可以根据保存的资源映射表和该VNF的资源需求信息,为该VNF确定满足该资源需求信息的VIM,即能够为该VNF分配资源的VIM。The granting lifecycle management request message includes resource requirement information such as the VNFD identifier of the VNF and the deployment style identifier, so as to instruct the management node to instantiate or expand the VNF according to the resource requirement information. Therefore, the management node can determine the VIM that satisfies the resource requirement information for the VNF according to the saved resource mapping table and the resource requirement information of the VNF, that is, the VIM that can allocate resources to the VNF.
具体的,上述S401的实现方式可以参见如图4所示的实施例中的S301的实现方式,此处不再赘述。Specifically, for the implementation manner of the foregoing S401, reference may be made to the implementation manner of S301 in the embodiment shown in FIG. 4, and details are not described herein again.
需要说明的是,待分配资源的VNF需要的资源可能只需由一个VIM为该VNF进行分配,也可能同时需要由多个VIM为该VNF进行分配,即满足该资源需求信息的VIM可能至少存在一个,该至少一个VIM中,可能每个VIM都与管理该VNF的VNFM之间建立了连接,也可能都与该VNFM之间没有建立连接,或者,该至少一个VIM中包括了与该VNFM之间建立了连接的VIM,和与该VNFM之间没有建立连接的VIM。It should be noted that the resources required by the VNF to be allocated resources may only need to be allocated by one VIM for the VNF, or may need to be allocated by multiple VIMs for the VNF at the same time, that is, the VIM that meets the resource requirement information may exist at least. One, in the at least one VIM, each VIM may establish a connection with the VNFM that manages the VNF, or may not establish a connection with the VNFM, or the at least one VIM includes a connection with the VNFM. A VIM that has established a connection with the VNFM, and a VIM that has not established a connection with the VNFM.
在本发明实施例中,假设,该VIM为该至少一个VIM中的一个,且该VIM与该VNFM之间并未建立连接。In this embodiment of the present invention, it is assumed that the VIM is one of the at least one VIM, and no connection is established between the VIM and the VNFM.
S402、管理节点根据该VIM的标识,获取与该VIM的标识对应的该VIM的连接信息。S402. The management node acquires the connection information of the VIM corresponding to the identifier of the VIM according to the identifier of the VIM.
S403、管理节点向VNFM发送通知消息,该通知消息中携带该VIM的标识和该VIM的连接信息。S403. The management node sends a notification message to the VNFM, where the notification message carries the identifier of the VIM and the connection information of the VIM.
具体的,上述S402-S403的实现方式,具体可参见如图4所示实施例中S302-S303的是实现方式,此处不再赘述。Specifically, for the implementation manner of the above S402-S403, reference may be made to the implementation manner of S302-S303 in the embodiment shown in FIG. 4, and details are not repeated here.
S404、该VNFM接收到通知消息后,当该VNFM未建立与该VIM的连接时,VNFM保存该VIM的标识和该VIM的连接信息。S404. After the VNFM receives the notification message, when the VNFM has not established a connection with the VIM, the VNFM saves the VIM identifier and the VIM connection information.
S405、该VNFM向该VIM发送请求消息,该请求消息中携带该VNFM的标识和该VNFM的连接信息。S405. The VNFM sends a request message to the VIM, where the request message carries the identifier of the VNFM and the connection information of the VNFM.
具体的,上述S404-S405的实现方式和如图2所示实施例中S102-S103的实现方式相同,具体可参见如图2所示实施例中对S102-S103的相关描述,此处不再赘述。Specifically, the implementation manner of the above S404-S405 is the same as the implementation manner of S102-S103 in the embodiment shown in FIG. 2 . For details, please refer to the relevant description of S102-S103 in the embodiment shown in FIG. 2 , which is not repeated here. Repeat.
进一步地,需要说明的是,当该VNFM将其标识和连接信息携带在请求消息中发送至该VIM时,由于在本发明实施例中,该请求消息用于指示该VIM为该VNF分配资源,因此,该请求消息还携带与资源相关的信息,例如,虚拟机(英文:virtual machine,缩写:VM)的配置参数,以及网络连接信息等。Further, it should be noted that when the VNFM carries its identification and connection information in a request message and sends it to the VIM, since in this embodiment of the present invention, the request message is used to instruct the VIM to allocate resources for the VNF, Therefore, the request message also carries information related to resources, for example, configuration parameters of a virtual machine (English: virtual machine, abbreviation: VM), and network connection information.
S406、该VIM接收到该请求消息后,当该VIM未建立与该VNFM的连接时,该VIM保存该VNFM的标识和该VNFM的连接信息。S406. After the VIM receives the request message, when the VIM has not established a connection with the VNFM, the VIM saves the VNFM's identifier and the VNFM's connection information.
具体的,上述S406的实现方式可以参见如图3所示实施例中S102的实现方式,此处不再赘述。Specifically, for the implementation manner of the foregoing S406, reference may be made to the implementation manner of S102 in the embodiment shown in FIG. 3, and details are not described herein again.
需要说明的是,该VIM在根据请求消息中携带的该VNFM的标识和该VNFM的连接信息,建立与该VNFM的连接时,由于在本发明实施例中,该请求消息用于指示该VIM为该VNF分配资源,因此,当该VIM接收到该请求消息后,还需根据该请求消息指示,启动相关的VM,并对启动的VM进行参数配置,以及对启动的VM进行相应的网络连接,以完成对该VNF的资源分配操作。It should be noted that, when the VIM establishes a connection with the VNFM according to the identification of the VNFM and the connection information of the VNFM carried in the request message, because in this embodiment of the present invention, the request message is used to indicate that the VIM is The VNF allocates resources. Therefore, when the VIM receives the request message, it needs to start the relevant VM according to the request message, configure the parameters of the started VM, and perform the corresponding network connection to the started VM. to complete the resource allocation operation for the VNF.
S407、该VIM向该VNFM发送应答消息。S407. The VIM sends a response message to the VNFM.
当该VIM成功为该VNF分配资源后,会向该VNFM发送应答消息,以通知该VNFM为已为该VNF分配了资源。进而,该VNFM即可继续进行实例化该VNF或者扩展该VNF的后续操作,例如,包括对该VNF进行部署参数的配置,并通知EM,该VNF的实例化已经完成或者该VNF的扩展已经完成,再由EM对该VNF进行应用参数的配置等。具体可参见现有技术中的相关描述,此处不作具体描述。After the VIM successfully allocates resources to the VNF, it will send a response message to the VNFM to notify the VNFM that resources have been allocated to the VNF. Further, the VNFM can continue to perform subsequent operations of instantiating the VNF or expanding the VNF, for example, including configuring the deployment parameters of the VNF, and notifying the EM that the instantiation of the VNF has been completed or the expansion of the VNF has been completed. , and then configure the application parameters of the VNF by the EM. For details, reference may be made to relevant descriptions in the prior art, which are not described in detail here.
可以理解的是,在本发明实施例中,若该VNFM能够接收到该应答消息,则该VNFM即可确定该VIM已保存了该VNFM的标识和该VNFM的连接信息,进而确定该VIM与该VNFM之间的连接已建立成功。It can be understood that, in this embodiment of the present invention, if the VNFM can receive the response message, the VNFM can determine that the VIM has saved the VNFM identifier and the VNFM connection information, and then determine that the VIM is connected to the VNFM. The connection between the VNFMs has been established successfully.
本发明实施例提供一种建立VNFM与VIM之间的连接的方法,如图6所示,该方法可以包括:An embodiment of the present invention provides a method for establishing a connection between a VNFM and a VIM. As shown in FIG. 6 , the method may include:
S501、管理节点获取VIM的标识,该VIM为满足待分配资源的VNF的资源需求信息的VIM。S501. The management node acquires an identifier of a VIM, where the VIM is a VIM that satisfies resource requirement information of a VNF to which resources are to be allocated.
其中,S501的具体实施方式可以参见上述S401的具体实现过程,此处不再赘述。For the specific implementation of S501, reference may be made to the specific implementation process of S401, which will not be repeated here.
S502、管理节点确定该VIM与VNFM之间是否已建立连接。S502. The management node determines whether a connection has been established between the VIM and the VNFM.
具体的,管理节点可以直接根据资源映射表确定该VIM与该VNFM之间是否已建立了连接。Specifically, the management node may directly determine whether a connection has been established between the VIM and the VNFM according to the resource mapping table.
需要说明的是,由于在资源映射表中记录有该VIM与该NFV系统中的VNFM之间的连接情况,即管理节点可以通过查询该资源映射表,确定该NFV系统中的哪些VNFM与该VIM之间建立了连接,从而管理节点可以通过查询该资源映射表确定该VNFM是否为已与该VIM之间建立了连接的VNFM。It should be noted that, since the connection between the VIM and the VNFM in the NFV system is recorded in the resource mapping table, that is, the management node can query the resource mapping table to determine which VNFMs in the NFV system are related to the VIM. A connection is established between the two, so that the management node can determine whether the VNFM is a VNFM that has established a connection with the VIM by querying the resource mapping table.
或者,在资源映射表中也记录有该VNFM与该NFV系统中的VIM之间的连接情况,即管理节点可以通过查询该资源映射表,确定该NFV系统中的哪些VIM与该VNFM之间建立了连接,从而管理节点可以通过查询该资源映射表确定该VIM是否为已与该VNFM之间建立了连接的VNFM。Alternatively, the connection between the VNFM and the VIM in the NFV system is also recorded in the resource mapping table, that is, the management node can query the resource mapping table to determine which VIMs in the NFV system are established between the VNFM and the VNFM Therefore, the management node can determine whether the VIM is a VNFM that has established a connection with the VNFM by querying the resource mapping table.
S503、当管理节点确定该VIM与该VNFM之间未建立连接时,管理节点根据该VIM的标识,获取与该VIM的标识对应的该VIM的连接信息。S503. When the management node determines that a connection is not established between the VIM and the VNFM, the management node acquires the connection information of the VIM corresponding to the identification of the VIM according to the identification of the VIM.
S504、管理节点向该VNFM发送通知消息,该通知消息中携带该VIM的标识和该VIM的连接信息。S504. The management node sends a notification message to the VNFM, where the notification message carries the identifier of the VIM and the connection information of the VIM.
需要说明的是,若管理节点确定该VIM与该VNFM之间已建立连接,则管理节点不需要获取该VIM的连接信息,只将该VIM的标识携带在通知消息中发送至该VNFM。It should be noted that, if the management node determines that a connection has been established between the VIM and the VNFM, the management node does not need to obtain the connection information of the VIM, but only carries the VIM identifier in the notification message and sends it to the VNFM.
若管理节点确定该VIM与该VNFM之间未建立连接,则管理节点需要获取该VIM的连接信息,并将该VIM的连接信息和该VIM的标识都携带在通知消息中发送至该VNFM,以便于该VNFM根据该VIM的标识和该VIM的连接信息建立与该VIM的连接。If the management node determines that there is no connection between the VIM and the VNFM, the management node needs to obtain the connection information of the VIM, and send the connection information of the VIM and the identity of the VIM in the notification message to the VNFM, so that The VNFM establishes a connection with the VIM according to the identification of the VIM and the connection information of the VIM.
S505、该VNFM接收到通知消息后,当该VNFM未建立与该VIM的连接时,VNFM保存该VIM的标识和该VIM的连接信息。S505: After the VNFM receives the notification message, when the VNFM has not established a connection with the VIM, the VNFM saves the VIM identifier and the VIM connection information.
S506、该VNFM向该VIM发送请求消息,该请求消息中携带该VNFM的标识和该VNFM的连接信息。S506. The VNFM sends a request message to the VIM, where the request message carries the identifier of the VNFM and the connection information of the VNFM.
S507、该VIM接收到该请求消息后,当该VIM未建立与该VNFM的连接时,该VIM保存该VNFM的标识和该VNFM的连接信息。S507. After the VIM receives the request message, when the VIM has not established a connection with the VNFM, the VIM saves the identity of the VNFM and the connection information of the VNFM.
S508、该VIM向该VNFM发送应答消息。S508. The VIM sends a response message to the VNFM.
具体的,上述S505-S508的实现方式和如图5所示实施例中S404-S407的实现方式相同,具体可参见如图3所示实施例中的相关描述,此处不再赘述。Specifically, the implementation manners of the foregoing S505-S508 are the same as the implementation manners of S404-S407 in the embodiment shown in FIG. 5 . For details, refer to the relevant descriptions in the embodiment shown in FIG. 3 , which will not be repeated here.
进一步地,结合图6,如图7所示,在上述S501之后,S502之前,本发明实施例提供的建立VNFM与VIM之间的连接的方法,还可以包括:Further, with reference to FIG. 6, as shown in FIG. 7, after the above S501 and before S502, the method for establishing a connection between the VNFM and the VIM provided by the embodiment of the present invention may further include:
S509、管理节点向该VIM发送资源预留请求消息。S509. The management node sends a resource reservation request message to the VIM.
其中,该资源预留请求消息中携带该VNFM的标识,该VNFM的标识用于该VIM确定是否已建立与该VNFM的连接。该资源预留请求消息中还携带该资源需求信息,该预留请求消息用于指示该VIM确定其是否满足该资源需求信息。Wherein, the resource reservation request message carries the identifier of the VNFM, and the identifier of the VNFM is used for the VIM to determine whether a connection with the VNFM has been established. The resource reservation request message also carries the resource requirement information, and the reservation request message is used to instruct the VIM to determine whether it satisfies the resource requirement information.
S510、该VIM接收到该资源预留请求消息后,确定该VIM是否满足该资源需求信息。S510. After receiving the resource reservation request message, the VIM determines whether the VIM meets the resource requirement information.
具体的,第一VIM根据该资源预留请求消息确定是否满足该资源需求信息的具体方式可以参见现有技术中的相关描述,此处不再赘述。Specifically, for the specific manner in which the first VIM determines whether the resource requirement information is satisfied according to the resource reservation request message, reference may be made to the relevant description in the prior art, and details are not repeated here.
S511、当该VIM确定满足该资源需求信息时,该VIM根据该VNFM的标识确定是否已建立与该VNFM的连接。S511. When the VIM determines that the resource requirement information is satisfied, the VIM determines whether a connection with the VNFM has been established according to the identifier of the VNFM.
需要说明的是,在本发明实施例中,当该VIM确定其满足该资源需求信息时,该VIM可以进一步根据该资源预留请求消息中携带的VNFM的标识确定该VIM是否已建立与该VNFM的连接。It should be noted that, in this embodiment of the present invention, when the VIM determines that it satisfies the resource requirement information, the VIM may further determine whether the VIM has established a relationship with the VNFM according to the VNFM identifier carried in the resource reservation request message. Connection.
具体的,VIM根据VNFM的标识确定是否已建立与该VNFM的连接的方式,可以参见如图3所示实施例中的S202中的相关描述,此处不再赘述。Specifically, for the manner in which the VIM determines whether the connection with the VNFM has been established according to the identifier of the VNFM, reference may be made to the relevant description in S202 in the embodiment shown in FIG. 3 , and details are not repeated here.
进一步地,VIM在根据VNFM的标识确定是否已建立与该VNFM的连接后,可形成一个连接指示标识,用于表征该VIM是否已建立与该VNFM的连接。例如,当该连接指示标识为1时,表征该VIM已建立与该VNFM的连接;当该连接指示标识为0时,表征该VIM未建立与该VNFM的连接。Further, after the VIM determines whether a connection with the VNFM has been established according to the identification of the VNFM, a connection indication identification can be formed to represent whether the VIM has established a connection with the VNFM. For example, when the connection indicator is 1, it indicates that the VIM has established a connection with the VNFM; when the connection indicator is 0, it indicates that the VIM has not established a connection with the VNFM.
S5012、该VIM向管理节点发送资源预留应答消息,该资源预留应答消息中携带连接指示标识。S5012: The VIM sends a resource reservation reply message to the management node, where the resource reservation reply message carries a connection indication identifier.
需要说明的是,在本发明实施例中,若该VIM确定其满足该资源需求信息,则该VIM会向管理节点发送资源预留应答消息,以通知管理节点,该VIM可以为该VNF分配资源。即管理节点可以根据该VIM发送资源预留应答消息,进一步确定该VIM为满足该资源需求信息的VIM。It should be noted that, in this embodiment of the present invention, if the VIM determines that it satisfies the resource requirement information, the VIM will send a resource reservation response message to the management node to notify the management node that the VIM can allocate resources to the VNF . That is, the management node can send a resource reservation response message according to the VIM, and further determine that the VIM is a VIM that satisfies the resource requirement information.
进一步地,如图7所示,上述S502可以为:Further, as shown in FIG. 7 , the above S502 may be:
S502a、管理节点根据该连接指示标识,确定该VIM与该VNFM之间是否已建立连接。S502a, the management node determines, according to the connection indication identifier, whether a connection has been established between the VIM and the VNFM.
进一步地,在本发明实施例中,当管理节点确定了满足该VNF的资源需求信息的VIM后,管理节点还可以获取该VIM的资源配额信息,该资源配额信息用于指示允许该VIM为该VNFM分配的资源配额(英文:quota)。Further, in the embodiment of the present invention, after the management node determines the VIM that satisfies the resource requirement information of the VNF, the management node can also obtain the resource quota information of the VIM, and the resource quota information is used to indicate that the VIM is allowed to be the VIM. The resource quota (English: quota) allocated by the VNFM.
示例性的,该资源配额信息可以为一个具体的百分比,例如30%,那么该资源配额信息即可指示允许该VIM为该VNFM分配的资源配额为,该VIM的资源总量的30%。该资源配额信息也可为某一特定种类的资源的配额,例如,20%的计算资源,那么该资源配额信息即可指示允许该VIM为该VNFM分配的最大计算资源量为,该VIM的计算资源总量的20%等。对此,本发明实施例不作限制。Exemplarily, the resource quota information may be a specific percentage, such as 30%, then the resource quota information may indicate that the resource quota that the VIM is allowed to allocate to the VNFM is 30% of the total resources of the VIM. The resource quota information can also be the quota of a certain type of resources, for example, 20% of computing resources, then the resource quota information can indicate that the VIM is allowed to allocate the maximum amount of computing resources for the VNFM is, the computing resources of the VIM 20% of the total resources, etc. In this regard, the embodiments of the present invention are not limited.
需要说明的是,资源配额信息可以为管理节点针对某一个VNFM,为该VIM配置的,即该资源配额信息用于指示允许该VIM为某一个VNFM分配的资源配额。资源配额信息也可以为管理节点为该VIM配置的,用于指示允许该VIM为任意一个VNFM分配的资源配额。It should be noted that the resource quota information may be configured by the management node for a certain VNFM for the VIM, that is, the resource quota information is used to indicate the resource quota that the VIM is allowed to allocate for a certain VNFM. The resource quota information may also be configured by the management node for the VIM, and is used to indicate the resource quota that the VIM is allowed to allocate for any VNFM.
其中,资源配额可以指允许该VIM每一次为该VNFM分配的最大资源量,例如,该资源配额信息为2,当该VNFM每一次向该请求VIM分配资源时,允许该VIM最多为该VNFM分配2个CPU。The resource quota may refer to the maximum amount of resources that the VIM is allowed to allocate to the VNFM each time, for example, the resource quota information is 2, when the VNFM allocates resources to the requesting VIM each time, the VIM is allowed to allocate at most to the VNFM 2 CPUs.
资源配额也可以指允许该VIM总共为该VNFM分配的最大资源量,例如,假设该资源配额信息为6,当该VNFM请求该VIM为由其管理的VNF1分配4个CPU时,由于4<6,因此,该VIM允许为该VNFM分配该4个CPU。当该VNFM再次请求该VIM为由其管理的VNF2分配3个CPU时,此时,该VNFM共向该VIM请求为其分配7个CPU,由于7>6,因此,该VIM拒绝再为该VNFM分配3个CPU。The resource quota can also refer to the maximum amount of resources that the VIM is allowed to allocate to the VNFM. For example, assuming that the resource quota information is 6, when the VNFM requests the VIM to allocate 4 CPUs for the VNF1 managed by it, since 4<6 , so the VIM allows the 4 CPUs to be allocated to the VNFM. When the VNFM requests the VIM to allocate 3 CPUs to the VNF2 managed by it again, at this time, the VNFM requests the VIM to allocate 7 CPUs to it. Since 7>6, the VIM refuses to allocate 7 CPUs to the VNFM. Allocate 3 CPUs.
需要说明的是,VIM为由某个VNFM负责管理的VNF分配资源,即可以理解为该VIM为该VNFM分配资源。It should be noted that the VIM allocates resources to a VNF managed by a certain VNFM, that is, it can be understood that the VIM allocates resources to the VNFM.
进一步的,管理节点可以直接将为VIM配置的资源配额信息发送至该VIM。当该资源配信息为该VIM针对与某一个VNFM的资源配额信息时,管理节点也可向该VNFM分配该资源配额信息,并有该VNFM转发至该VIM。Further, the management node may directly send the resource quota information configured for the VIM to the VIM. When the resource allocation information is the resource quota information of the VIM for a certain VNFM, the management node may also allocate the resource quota information to the VNFM, and the VNFM forwards the information to the VIM.
具体的,当该资源配信息为该VIM针对与某一个VNFM的资源配额信息时,结合图6,如图8所示,上述S502之后,S504之前本发明实施例提供的建立VNFM与VIM之间的连接的方法还包括:Specifically, when the resource allocation information is the resource quota information of the VIM for a certain VNFM, with reference to FIG. 6 , as shown in FIG. 8 , after the above S502, before S504, the embodiment of the present invention provides the establishment between the VNFM and the VIM. The connection method also includes:
S513、管理节点获取管理节点为该VIM配置的资源配额信息。S513: The management node acquires resource quota information configured by the management node for the VIM.
需要说明的是,上述S513和S503的执行顺序不作限制,即可以在执行S503之前执行S513,也可以在执行S503之后执行S513。It should be noted that the execution order of the above S513 and S503 is not limited, that is, S513 may be executed before S503 is executed, or S513 may be executed after S503 is executed.
进一步地,如图8所示,上述S504可以包括:Further, as shown in FIG. 8 , the above S504 may include:
S504a、管理节点向VNFM发送通知消息,该通知消息中携带该VIM的标识、该VIM的连接信息以及该资源配额信息。S504a. The management node sends a notification message to the VNFM, where the notification message carries the identifier of the VIM, the connection information of the VIM, and the resource quota information.
管理节点将该资源配额信息携带在通知消息中发送至该VNFM后,可以由该VNFM将该资源配额信息转发至该VIM中。具体的,上述S506可以包括:After the management node carries the resource quota information in the notification message and sends it to the VNFM, the VNFM can forward the resource quota information to the VIM. Specifically, the above S506 may include:
S506a、该VNFM向该VIM发送请求消息,该请求消息中携带该VNFM的标识、该VNFM的连接信息以及该资源配额信息。S506a, the VNFM sends a request message to the VIM, where the request message carries the identifier of the VNFM, the connection information of the VNFM, and the resource quota information.
上述S507可以包括:The above S507 may include:
S507a、该VIM接收到该请求消息后,当该VIM未建立与该VNFM的连接时,该VIM保存该VNFM的标识、该VNFM的连接信息以及该资源配额信息。S507a: After the VIM receives the request message, when the VIM has not established a connection with the VNFM, the VIM saves the identifier of the VNFM, the connection information of the VNFM and the resource quota information.
进一步地,VIM在建立与VNFM的连接的过程中,将该资源配额信息进行保存后,当该VIM为该VNFM分配资源时,若该VNFM向该VIM请求的资源量超过该资源配额信息所指示的资源配额,则该VIM可以拒绝为该VNFM进行资源分配。Further, after the VIM saves the resource quota information in the process of establishing a connection with the VNFM, when the VIM allocates resources to the VNFM, if the amount of resources requested by the VNFM to the VIM exceeds the amount indicated by the resource quota information. resource quota, the VIM can refuse to allocate resources for the VNFM.
可选的,当VNFM向VIM请求的资源量超过针对该VNFM的资源配额时,在本发明实施例中,还可以通过如下几种方式为该VNFM进行资源分配。Optionally, when the amount of resources requested by the VNFM from the VIM exceeds the resource quota for the VNFM, in this embodiment of the present invention, resources may also be allocated for the VNFM in the following manners.
下面结合VIM1、VIM2、VNFM1,以及VNFM2,对如下几种方式进行示例性的说明。The following manners are exemplarily described below in conjunction with VIM1, VIM2, VNFM1, and VNFM2.
方式1:Way 1:
S10、VIM1接收VNFM1的请求消息后,根据该请求消息确定VNFM1向VIM1请求的资源,超过了针对VNFM1的资源配额。S10. After the VIM1 receives the request message from the VNFM1, it is determined according to the request message that the resource requested by the VNFM1 from the VIM1 exceeds the resource quota for the VNFM1.
其中,资源配额是指允许VIM1总共为VNFM1分配的最大资源量。The resource quota refers to the maximum amount of resources that the VIM1 is allowed to allocate to the VNFM1 in total.
S11、VIM1向管理节点发送通知消息,通知管理节点VNFM1请求的资源量超过了该资源配额。S11. The VIM1 sends a notification message to the management node, notifying the management node that the amount of resources requested by the VNFM1 exceeds the resource quota.
示例性的,VIM1可以通知管理节点,VNFM1请求的资源量和该资源配额之间的关系、请求的超出的资源量的信息等。例如,针对VNFM1的资源配额为VIM1的资源总量的40%,VNFM1在本次向VIM1请求资源分配前,已经向VIM1请求了VIM1的20%的资源,本次VNFM1向VIM1请求VIM1的30%的资源,那么,VIM1可以通知管理节点,VNFM1的剩余的可用资源量为VIM1的资源总量的20%,例如,VIM1的资源总量为10个CPU,那么VNFM1的剩余的可用资源量为2个CPU。Exemplarily, the VIM1 may notify the management node of the relationship between the amount of resources requested by the VNFM1 and the resource quota, the information of the requested excess amount of resources, and the like. For example, the resource quota for VNFM1 is 40% of the total resources of VIM1. VNFM1 has requested 20% of VIM1's resources from VIM1 before requesting VIM1 for resource allocation. This time, VNFM1 has requested 30% of VIM1's resources from VIM1. resources, then VIM1 can notify the management node that the remaining available resources of VNFM1 are 20% of the total resources of VIM1. For example, the total resources of VIM1 are 10 CPUs, then the remaining available resources of VNFM1 are 2 CPUs.
S12、管理节点根据保存的资源使用信息进行判断或决策。S12, the management node judges or makes a decision according to the saved resource usage information.
其中,资源使用信息用于表征VIM1的资源分配情况,记录于该管理节点保存的资源映射表中。The resource usage information is used to represent the resource allocation situation of the VIM1, and is recorded in the resource mapping table saved by the management node.
示例性的,若管理节点通过对VIM1的资源使用信息进行查询,确定VNFM2在VIM1上已使用的资源量较少,该VNFM2在VIM1上的剩余的可用资源量较多,则管理节点可以调整VNFM1和VNFM2在VIM1上的资源配额。Exemplarily, if the management node determines, by querying the resource usage information of VIM1, that the amount of resources used by VNFM2 on VIM1 is relatively small, and the remaining available resources of VNFM2 on VIM1 are relatively large, the management node can adjust VNFM1. and the resource quota of VNFM2 on VIM1.
S13、管理节点向VIM1发送针对VNFM1的更新后的资源配额信息。S13. The management node sends the updated resource quota information for the VNFM1 to the VIM1.
示例性的,管理节点可以将VNFM1在VIM1上的资源配额,从VIM1的资源总量的40%调整到60%,而将VNFM2在VIM1上的资源配额,从VIM1的资源总量的60%调整到40%。Exemplarily, the management node may adjust the resource quota of VNFM1 on VIM1 from 40% to 60% of the total resource of VIM1, and adjust the resource quota of VNFM2 on VIM1 from 60% of the total resource of VIM1. to 40%.
S14、VIM1根据接收到的更新后的资源配额信息,为VNFM1分配资源,并向VNFM1发送应答消息。S14. The VIM1 allocates resources to the VNFM1 according to the received updated resource quota information, and sends a response message to the VNFM1.
需要说明的是,VIM1根据更新后的资源配额信息,确定可以满足VNFM1的请求,从而VIM1可以为VNFM1分配资源。It should be noted that the VIM1 determines that the request of the VNFM1 can be satisfied according to the updated resource quota information, so that the VIM1 can allocate resources to the VNFM1.
方式2:Way 2:
S20、VIM1接收VNFM1的请求消息,根据该请求消息确定VNFM1向VIM1请求的资源,超过了针对VNFM1的资源配额。S20. The VIM1 receives the request message from the VNFM1, and determines according to the request message that the resource requested by the VNFM1 from the VIM1 exceeds the resource quota for the VNFM1.
S21、VIM1向管理节点发送通知消息,通知管理节点,VNFM1请求的资源量超过了该资源配额。S21. The VIM1 sends a notification message to the management node to notify the management node that the amount of resources requested by the VNFM1 exceeds the resource quota.
S22、管理节点根据保存的资源使用信息进行判断或决策。S22, the management node makes judgment or decision according to the saved resource usage information.
示例性的,若管理节点通过对VIM1的资源使用信息进行查询,确定VIM1的剩余资源量较少,则管理节点可以再对其他VIM的资源使用信息进行查询,确定一个剩余资源量较多的其他VIM,例如VIM2,为VNFM1分配资源。Exemplarily, if the management node determines that the remaining resource amount of VIM1 is small by querying the resource usage information of VIM1, the management node can then query the resource usage information of other VIMs to determine one other VIM1 with more remaining resources. A VIM, such as VIM2, allocates resources to VNFM1.
S23、管理节点向VNFM1发送VIM2的标识。S23. The management node sends the identifier of VIM2 to VNFM1.
S24、接收到VIM2的标识后,VNFM1向VIM2发送请求消息。S24. After receiving the identifier of VIM2, VNFM1 sends a request message to VIM2.
S25、VIM2接收到该请求消息后,为VNFM1分配资源。S25. After receiving the request message, VIM2 allocates resources to VNFM1.
S26、VIM2向VNFM1发送应答消息。S26. VIM2 sends a response message to VNFM1.
方式3:Way 3:
S30、VIM1接收VNFM1的请求消息后,根据该请求消息确定VNFM1向VIM1请求的资源,超过了针对VNFM1的资源配额。S30. After the VIM1 receives the request message from the VNFM1, it is determined according to the request message that the resource requested by the VNFM1 from the VIM1 exceeds the resource quota for the VNFM1.
S31、VIM向VNFM1发送拒绝消息。S31. The VIM sends a rejection message to the VNFM1.
示例性的,该拒绝消息中可以携带VNFM1请求的资源量和该资源配额之间的关系、请求的超出的资源量的信息等。Exemplarily, the rejection message may carry the relationship between the amount of resources requested by the VNFM1 and the resource quota, and information on the amount of the requested excess resources, and the like.
S32、VNFM1根据拒绝消息进行决策。S32, VNFM1 makes a decision according to the rejection message.
示例性的,VNFM1可以根据该拒绝消息对待分配资源的VNF进行缩容,以使得VNFM1在该VIM上的剩余的可用资源量,能够满足缩容后的该VNF所需的资源量。Exemplarily, the VNFM1 may shrink the VNF to which resources are to be allocated according to the rejection message, so that the remaining available resources of the VNFM1 on the VIM can meet the resources required by the reduced VNF.
S33、VNFM1重新向VIM1发送更新后的请求消息。S33: VNFM1 re-sends the updated request message to VIM1.
其中,该请求消息中携带了更新后的资源信息。The request message carries the updated resource information.
S34、VIM1接收到该请求消息后,根据该请求消息,为VNFM1分配资源。S34. After receiving the request message, the VIM1 allocates resources to the VNFM1 according to the request message.
S35、VIM1并向VNFM1发送应答消息。S35, VIM1 sends a response message to VNFM1.
本发明实施例提供一种建立VNFM与VIM之间的连接的方法,该方法可以包括VNFM接收管理节点发送通知消息,该通知消息中携带VIM的标识和该VIM的连接信息,当VNFM未建立与该VIM的连接时,VNFM保存该VIM的标识和该VIM的连接信息,并向该VIM发送请求消息,该请求消息中携带该VNFM的标识和该VNFM的连接信息,其中,该VNFM的标识和该VNFM的连接信息用于该VIM建立与该VNFM的连接。通过上述方法,VNFM接收到通知消息后,能够在确定未建立与该VIM的连接时,自动保该VIM的标识和该VIM的连接信息,并将该VNFM的标识和该VNFM的连接信息携带在该请求消息中发送至该VIM,以使得该VIM能够自动保存该VNFM的标识和该VNFM的连接信息,以完成该VNFM与该VIM之间的连接的建立,从而提高了建立VIM与VNFM之间的连接的效率,进而提高了VNF的资源分配的效率。An embodiment of the present invention provides a method for establishing a connection between a VNFM and a VIM. The method may include that the VNFM receives a notification message sent by a management node, and the notification message carries the identifier of the VIM and the connection information of the VIM. When the VIM is connected, the VNFM saves the identification of the VIM and the connection information of the VIM, and sends a request message to the VIM, where the request message carries the identification of the VNFM and the connection information of the VNFM, wherein the identification of the VNFM and the connection information of the VNFM are The connection information of the VNFM is used for the VIM to establish a connection with the VNFM. Through the above method, after receiving the notification message, the VNFM can automatically save the VIM's identity and the VIM's connection information when it is determined that the connection with the VIM has not been established, and carry the VNFM's identity and the VNFM's connection information in the The request message is sent to the VIM, so that the VIM can automatically save the identity of the VNFM and the connection information of the VNFM, so as to complete the establishment of the connection between the VNFM and the VIM, thereby improving the establishment of the connection between the VIM and the VNFM. The efficiency of the connection is improved, and the efficiency of the resource allocation of the VNF is improved.
实施例三Embodiment 3
如图9所示,本发明实施例提供一种装置,所述装置可以是如图2,或如图5至如图8中的任一附图所示的实施例中所述的VNFM的实体装置,也可以是NFV系统中能够执行所述VNFM能够执行的方法流程的一个逻辑功能模块所在的实体装置,该实体装置可以独立安装在所述VNFM的实体装置内,也可以为一个能够与VNFM的实体装置通信的实体装置。该装置还可以通过芯片的形式呈现,该芯片中承载了能够实现所述VNFM能够执行的方法流程的应用程序。As shown in FIG. 9 , an embodiment of the present invention provides an apparatus, and the apparatus may be the entity of the VNFM described in the embodiment shown in FIG. 2 or any of the drawings in FIG. 5 to FIG. 8 . The device can also be an entity device in the NFV system where a logical function module capable of executing the method process that the VNFM can execute is located. The entity device that communicates with the entity device. The apparatus may also be presented in the form of a chip, and the chip carries an application program capable of implementing the method process that the VNFM can execute.
所述装置可以包括:The apparatus may include:
接收单元10,用于接收管理节点发送的通知消息,所述通知消息中携带VIM的标识和所述VIM的连接信息,所述VIM的标识和所述VIM的连接信息用于VNFM建立与所述VIM的连接。The receiving unit 10 is configured to receive a notification message sent by the management node, where the notification message carries the identifier of the VIM and the connection information of the VIM, and the identifier of the VIM and the connection information of the VIM are used for the VNFM to establish a connection with the VIM. VIM connection.
保存单元11,用于当所述VNFM未建立与所述VIM的连接时,保存所述接收单元10接收的所述VIM的标识和所述VIM的连接信息。The saving unit 11 is configured to save the identification of the VIM and the connection information of the VIM received by the receiving unit 10 when the VNFM has not established a connection with the VIM.
发送单元12,用于向所述VIM发送请求消息,所述请求消息中携带所述VNFM的标识和所述VNFM的连接信息,所述VNFM的标识和所述VNFM的连接信息用于所述VIM建立与所述VNFM的连接。A sending unit 12, configured to send a request message to the VIM, where the request message carries the VNFM identifier and the VNFM connection information, and the VNFM identifier and the VNFM connection information are used for the VIM A connection to the VNFM is established.
可选的,所述保存单元11,具体用于确定所述接收单元10接收的所述VIM的标识和所述保存单元11保存的至少一个已与所述VNFM建立连接的VIM的标识是否相同。Optionally, the storage unit 11 is specifically configured to determine whether the identifier of the VIM received by the receiving unit 10 and the identifier of at least one VIM that has been connected to the VNFM stored by the storage unit 11 are the same.
若所述VIM的标识和所述至少一个已与所述VNFM建立连接的VIM的标识均不相同,则所述VNFM未建立与所述VIM的连接,若所述VIM的标识和任意一个所述已与所述VNFM建立连接的VIM的标识相同,则所述VNFM已建立与所述VIM的连接。If the identifier of the VIM is different from the identifier of the at least one VIM that has established a connection with the VNFM, the VNFM has not established a connection with the VIM. If the identification of the VIM that has established a connection with the VNFM is the same, the VNFM has established a connection with the VIM.
可选的,所述接收单元10接收的所述VIM的连接信息至少包括所述VIM的IP地址。Optionally, the connection information of the VIM received by the receiving unit 10 includes at least the IP address of the VIM.
所述发送单元12发送的所述VNFM的连接信息至少包括所述VNFM的IP地址。The connection information of the VNFM sent by the sending unit 12 includes at least the IP address of the VNFM.
可选的,所述接收单元10接收的所述通知消息和所述发送单元12发送的所述请求消息中还携带资源配额信息,所述资源配额信息用于指示允许所述VIM为所述VNFM分配的资源配额。Optionally, the notification message received by the receiving unit 10 and the request message sent by the sending unit 12 also carry resource quota information, where the resource quota information is used to indicate that the VIM is allowed to be the VNFM Allocated resource quota.
本发明实施例提供一种装置,该装置能够接收管理节点发送通知消息,该通知消息中携带VIM的标识和该VIM的连接信息,当VNFM未建立与该VIM的连接时,该装置能够保存该VIM的标识和该VIM的连接信息,并向该VIM发送请求消息,该请求消息中携带该VNFM的标识和该VNFM的连接信息,其中,该VNFM的标识和该VNFM的连接信息用于该VIM建立与该VNFM的连接。通过本发明实施例提供的装置,接收到通知消息后,能够在VNFM确定未建立与该VIM的连接时,自动保该VIM的标识和该VIM的连接信息,并将该VNFM的标识和该VNFM的连接信息携带在该请求消息中发送至该VIM,以使得该VIM能够自动保存该VNFM的标识和该VNFM的连接信息,以完成该VNFM与该VIM之间的连接的建立,而无需进行手动建立,从而大大提高了建立VIM与VNFM之间的连接的效率,进而提高了VNF的资源分配的效率。An embodiment of the present invention provides a device, which can receive a notification message sent by a management node, where the notification message carries an identifier of a VIM and connection information of the VIM, and when the VNFM does not establish a connection with the VIM, the device can save the The identifier of the VIM and the connection information of the VIM, and send a request message to the VIM, the request message carries the identifier of the VNFM and the connection information of the VNFM, wherein the identifier of the VNFM and the connection information of the VNFM are used for the VIM Establish a connection to this VNFM. With the device provided by the embodiment of the present invention, after receiving the notification message, when the VNFM determines that the connection with the VIM has not been established, the identification of the VIM and the connection information of the VIM can be automatically saved, and the identification of the VNFM and the VNFM can be automatically saved. The connection information is carried in the request message and sent to the VIM, so that the VIM can automatically save the identity of the VNFM and the connection information of the VNFM, so as to complete the establishment of the connection between the VNFM and the VIM without manual Therefore, the efficiency of establishing the connection between the VIM and the VNFM is greatly improved, and the efficiency of resource allocation of the VNF is further improved.
如图10所示,本发明实施例提供一种装置,所述装置可以是如图3,或如图5至如图8中的任一附图所示的实施例中所述的VIM的实体装置,也可以是NFV系统中能够执行所述VIM能够执行的方法流程的一个逻辑功能模块所在的实体装置,该实体装置可以独立安装在所述VIM的实体装置内,也可以为一个能够与VIM的实体装置通信的实体装置。该装置还可以通过芯片的形式呈现,该芯片中承载了能够实现所述VNFM能够执行的方法流程的应用程序。As shown in FIG. 10 , an embodiment of the present invention provides an apparatus, and the apparatus may be the entity of the VIM described in the embodiment shown in FIG. 3 or any of the drawings in FIG. 5 to FIG. 8 . The device can also be an entity device in the NFV system where a logical function module capable of executing the method process that the VIM can execute is located. The entity device that communicates with the entity device. The apparatus may also be presented in the form of a chip, and the chip carries an application program capable of implementing the method process that the VNFM can execute.
所述装置可以包括:The apparatus may include:
接收单元20,用于接收VNFM发送的请求消息,所述请求消息中携带所述VNFM的标识和所述VNFM的连接信息,所述VNFM的标识和所述VNFM的连接信息用于VIM建立与所述VNFM的连接。The receiving unit 20 is configured to receive a request message sent by the VNFM, where the request message carries the identifier of the VNFM and the connection information of the VNFM, and the identifier of the VNFM and the connection information of the VNFM are used for the VIM to establish and The connection of the VNFM described above.
保存单元21,用于当所述VIM未建立与所述VNFM的连接时,保存所述接收单元20接收的所述VNFM的标识和所述VNFM的连接信息。The saving unit 21 is configured to save the identifier of the VNFM and the connection information of the VNFM received by the receiving unit 20 when the VIM has not established a connection with the VNFM.
可选的,所述保存单元21,具体用于确定所述接收单元20接收的所述VNFM的标识和所述保存单元21保存的至少一个已与所述VIM建立连接的VNFM的标识是否相同。Optionally, the storage unit 21 is specifically configured to determine whether the identifier of the VNFM received by the receiving unit 20 and the identifier of at least one VNFM that has been connected to the VIM stored by the storage unit 21 are the same.
若所述VNFM的标识和所述至少一个已与所述VIM建立连接的VNFM的标识均不相同,则所述VIM未建立与所述VNFM的连接,若所述VNFM的标识和任意一个所述已与所述VIM建立连接的VNFM的标识相同,则所述VIM已建立与所述VNFM的连接。If the identifier of the VNFM is different from the identifier of the at least one VNFM that has established a connection with the VIM, the VIM has not established a connection with the VNFM. If the identification of the VNFM that has established a connection with the VIM is the same, the VIM has established a connection with the VNFM.
可选的,所述接收单元20接收的所述VNFM的连接信息至少包括所述VNFM的IP地址。Optionally, the connection information of the VNFM received by the receiving unit 20 includes at least the IP address of the VNFM.
可选的,所述接收单元20接收的所述请求消息中还携带资源配额信息,所述资源配额信息用于指示允许所述VIM为所述VNFM分配的资源配额。Optionally, the request message received by the receiving unit 20 further carries resource quota information, where the resource quota information is used to indicate the resource quota that the VIM is allowed to allocate for the VNFM.
所述保存单元21,具体用于保存所述VNFM的标识、所述VNFM的连接信息以及所述资源配额信息。The storage unit 21 is specifically configured to store the identifier of the VNFM, the connection information of the VNFM, and the resource quota information.
本发明实施例提供一种装置,该装置能够接收VNFM发送的请求消息,该请求消息中携带该VNFM的标识和该VNFM的连接信息,当VIM未建立与该VNFM的连接时,该装置能够保存该VNFM的标识和该VNFM的连接信息。通过本发明实施例提供的装置,能够在接收到VNFM发送的请求消息后,自动保存该请求消息中携带的该VNFM的标识和该VNFM的连接信息,以完成该VIM与该VNFM之间的连接的建立,从而提高了建立VIM与VNFM之间的连接的效率,进而提高了VNF的资源分配的效率。An embodiment of the present invention provides a device, which can receive a request message sent by a VNFM, where the request message carries an identifier of the VNFM and connection information of the VNFM, and when the VIM does not establish a connection with the VNFM, the device can save The identifier of the VNFM and the connection information of the VNFM. With the device provided by the embodiment of the present invention, after receiving the request message sent by the VNFM, the identifier of the VNFM and the connection information of the VNFM carried in the request message can be automatically saved, so as to complete the connection between the VIM and the VNFM Therefore, the efficiency of establishing the connection between the VIM and the VNFM is improved, and the efficiency of the resource allocation of the VNF is further improved.
如图11所示,本发明实施例提供一种装置,所述装置可以是如图4,或如图5至如图8中的任一附图所示的实施例中所述的管理节点的实体装置,也可以是NFV系统中能够执行所述管理节点能够执行的方法流程的一个逻辑功能模块所在的实体装置,该实体装置可以独立安装在所述管理节点的实体装置内,也可以为一个能够与管理节点的实体装置通信的个实体装置。该装置还可以通过芯片的形式呈现,该芯片中承载了能够实现所述管理节点能够执行的方法流程的应用程序。As shown in FIG. 11 , an embodiment of the present invention provides an apparatus, and the apparatus may be a management node of the management node described in the embodiment shown in FIG. 4 or any one of the drawings in FIG. 5 to FIG. 8 . The entity device may also be an entity device in the NFV system where a logical function module capable of executing the method process that the management node can execute is located, and the entity device may be independently installed in the entity device of the management node, or may be a A physical device capable of communicating with the physical device of the management node. The apparatus may also be presented in the form of a chip, and the chip carries an application program capable of implementing the method process that the management node can execute.
所述装置可以包括:The apparatus may include:
获取单元30,用于获取VIM的标识,所述VIM为满足待分配资源的VNF的资源需求信息的VIM。The obtaining unit 30 is configured to obtain an identifier of a VIM, where the VIM is a VIM that satisfies resource requirement information of a VNF to which resources are to be allocated.
所述获取单元30,还用于根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息。The acquiring unit 30 is further configured to acquire, according to the identifier of the VIM, the connection information of the VIM corresponding to the identifier of the VIM.
发送单元31,用于向VNFM发送通知消息,所述通知消息中携带所述获取单元30获取的所述VIM的标识和所述VIM的连接信息,所述VIM的标识和所述VIM的连接信息用于所述VNFM建立与所述VIM的连接。The sending unit 31 is configured to send a notification message to the VNFM, where the notification message carries the identifier of the VIM and the connection information of the VIM acquired by the acquiring unit 30, the identifier of the VIM and the connection information of the VIM for the VNFM to establish a connection with the VIM.
可选的,结合图11,如图12所示,所述装置还包括确定单元32。Optionally, with reference to FIG. 11 , as shown in FIG. 12 , the apparatus further includes a determination unit 32 .
所述确定单元32,用于在所述获取单元30根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息之前,确定所述VIM与所述VNFM之间是否已建立连接。The determining unit 32 is configured to determine whether there is a connection between the VIM and the VNFM before the acquiring unit 30 acquires the connection information of the VIM corresponding to the identifier of the VIM according to the identifier of the VIM. establish connection.
所述获取单元30,具体用于当所述确定单元32确定所述VIM与所述VNFM之间未建立连接时,根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息。The acquiring unit 30 is specifically configured to acquire, according to the identifier of the VIM, the identifier of the VIM corresponding to the identifier of the VIM when the determining unit 32 determines that a connection is not established between the VIM and the VNFM. connection information.
可选的,所述确定单元32,具体用于根据预设的资源映射表确定所述VIM与所述VNFM之间是否已建立连接。Optionally, the determining unit 32 is specifically configured to determine whether a connection has been established between the VIM and the VNFM according to a preset resource mapping table.
可选的,结合图12,如图13所示,所述装置还包括接收单元33。Optionally, with reference to FIG. 12 , as shown in FIG. 13 , the apparatus further includes a receiving unit 33 .
所述发送单元31,还用于在所述获取单元30获取VIM的标识之后,在所述获取单元30根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息之前,向所述VIM发送资源预留请求消息,所述资源预留请求消息中携带所述VNFM的标识,所述VNFM的标识用于确定所述VIM是否已建立与所述VNFM的连接。The sending unit 31 is further configured to, after the obtaining unit 30 obtains the identification of the VIM, before the obtaining unit 30 obtains the connection information of the VIM corresponding to the identification of the VIM according to the identification of the VIM. , sending a resource reservation request message to the VIM, where the resource reservation request message carries an identifier of the VNFM, and the identifier of the VNFM is used to determine whether the VIM has established a connection with the VNFM.
所述接收单元33,用于接收所述VIM发送的资源预留应答消息,所述资源预留应答消息中携带连接指示标识,所述连接指示标识表征所述VIM是否已建立与所述VNFM的连接。The receiving unit 33 is configured to receive a resource reservation reply message sent by the VIM, where the resource reservation reply message carries a connection indication identifier, and the connection indication identifier represents whether the VIM has established a connection with the VNFM. connect.
所述确定单元32,具体用于根据所述接收单元33接收的所述连接指示标识,确定所述VIM与所述VNFM之间是否已建立连接。The determining unit 32 is specifically configured to determine whether a connection has been established between the VIM and the VNFM according to the connection indication identifier received by the receiving unit 33 .
可选的,所述获取单元30,还用于在获取VIM的标识之后,所述发送单元31向VNFM发送通知消息之前,获取管理节点为所述VIM配置的资源配额信息,所述资源配额信息用于指示允许所述VIM为所述VNFM分配的资源配额。Optionally, the acquiring unit 30 is further configured to acquire the resource quota information configured by the management node for the VIM after acquiring the identifier of the VIM and before the sending unit 31 sends a notification message to the VNFM, the resource quota information. Used to indicate the resource quota that the VIM is allowed to allocate for the VNFM.
其中,所述发送单元31发送的所述通知消息中还携带所述获取单元获取的所述资源配额信息。The notification message sent by the sending unit 31 further carries the resource quota information obtained by the obtaining unit.
本发明实施例提供一种装置,该装置能够获取VIM的标识和与该VIM的标识对应的该VIM的连接信息,并向VNFM发送通知消息,其中,该VIM为满足待分配资源的VNF的资源需求信息的VIM,该通知消息中携带该VIM的标识和该VIM的连接信息,该VIM的标识和该VIM的连接信息用于该VNFM建立与该VIM的连接。通过本发明实施例提供的装置,能够将VIM的标识和该VIM的连接信息携带在通知消息中,发送至VNFM,使得该VNFM能够自动保存该VIM的标识和该VIM的连接信息,以自动建立与该VIM的连接,从而提高了建立VIM与VNFM之间的连接的效率,进而提高了VNF的资源分配的效率。An embodiment of the present invention provides an apparatus, which can acquire an identifier of a VIM and connection information of the VIM corresponding to the identifier of the VIM, and send a notification message to a VNFM, where the VIM is a resource of a VNF that satisfies the resource to be allocated The VIM of the demand information, the notification message carries the identification of the VIM and the connection information of the VIM, and the identification of the VIM and the connection information of the VIM are used for the VNFM to establish a connection with the VIM. With the device provided by the embodiment of the present invention, the identification of the VIM and the connection information of the VIM can be carried in the notification message and sent to the VNFM, so that the VNFM can automatically save the identification of the VIM and the connection information of the VIM, so as to automatically establish The connection with the VIM improves the efficiency of establishing the connection between the VIM and the VNFM, thereby improving the efficiency of resource allocation of the VNF.
实施例四Embodiment 4
如图14所示,本发明实施例提供一种装置,所述装置可以是上述实施例中所述的VNFM所在的实体装置,也可以为一个能够与所述VNFM所在的实体装置通信的实体装置。所述装置能够执行所述VNFM能够执行的方法流程,具体的,所述装置可以包括:处理器40、存储器41、通信接口42、以及系统总线43。所述处理器40、所述存储器41以及通信接口42之间通过所述系统总线43连接并完成相互间的通信。As shown in FIG. 14 , an embodiment of the present invention provides a device, and the device may be the entity device where the VNFM described in the above embodiment is located, or an entity device that can communicate with the entity device where the VNFM is located. . The apparatus can execute the method process that the VNFM can execute. Specifically, the apparatus may include: a processor 40 , a memory 41 , a communication interface 42 , and a
所述处理器40可以是一个中央处理器(英文:central processing unit,缩写:CPU),或者是特定集成电路(英文:application specific integrated circuit,缩写:ASIC),或者是被配置成实施本发明实施例的一个或多个集成电路。The processor 40 may be a central processing unit (English: central processing unit, abbreviation: CPU), or a specific integrated circuit (English: application specific integrated circuit, abbreviation: ASIC), or be configured to implement the implementation of the present invention. example of one or more integrated circuits.
所述存储器41可以包括易失性存储器(英文:Volatile memory),例如随机存取存储器(英文:random-access memory,缩写:RAM);所述存储器41也可以包括非易失性存储器(英文:non-volatile memory),例如只读存储器(英文:read-only memory,缩写:ROM),快闪存储器(英文:flash memory),硬盘(英文:hard disk drive,缩写:HDD)或固态硬盘(英文:solid-state drive,缩写:SSD);所述存储器41还可以包括上述种类的存储器的组合。The memory 41 may include a volatile memory (English: Volatile memory), such as random-access memory (English: random-access memory, abbreviation: RAM); the memory 41 may also include a non-volatile memory (English: non-volatile memory), such as read-only memory (English: read-only memory, abbreviation: ROM), flash memory (English: flash memory), hard disk (English: hard disk drive, abbreviation: HDD) or solid-state drive (English: hard disk drive, abbreviation: HDD) : solid-state drive, abbreviation: SSD); the storage 41 may also include a combination of the above-mentioned types of storage.
所述通信接口42用于与其他节点进行交互,例如与VIM、管理节点等功能节点进行交互。The communication interface 42 is used for interacting with other nodes, for example, interacting with functional nodes such as VIM and management nodes.
当所述装置运行时,所述处理器40和所述存储器41可以执行图2、或如图5至如图8中的任一附图所述的方法流程,具体包括:When the apparatus is running, the processor 40 and the memory 41 may execute the method flow described in FIG. 2 or any one of the drawings in FIG. 5 to FIG. 8 , specifically including:
处理器40,用于通过所述通信接口42接收管理节点发送的通知消息,所述通知消息中携带VIM的标识和所述VIM的连接信息,并当所述VNFM未建立与所述VIM的连接时,保存所述VIM的标识和所述VIM的连接信息,以及通过所述通信接口42向所述VIM发送请求消息,所述请求消息中携带所述VNFM的标识和所述VNFM的连接信息,其中,所述VIM的标识和所述VIM的连接信息用于VNFM建立与所述VIM的连接,所述VNFM的标识和所述VNFM的连接信息用于所述VIM建立与所述VNFM的连接。The processor 40 is configured to receive a notification message sent by the management node through the communication interface 42, where the notification message carries the identifier of the VIM and the connection information of the VIM, and when the VNFM does not establish a connection with the VIM At the time, the identification of the VIM and the connection information of the VIM are stored, and a request message is sent to the VIM through the communication interface 42, and the request message carries the identification of the VNFM and the connection information of the VNFM, The identifier of the VIM and the connection information of the VIM are used for the VNFM to establish a connection with the VIM, and the identifier of the VNFM and the connection information of the VNFM are used for the VIM to establish a connection with the VNFM.
所述存储器41,用于存储所述通知消息的代码、所述VIM的标识的代码、所述VIM的连接信息的代码、所述请求消息的代码、所述VNFM的标识的代码、所述VNFM的连接信息的代码,以及控制所述处理器40完成上述过程的软件程序,从而所述处理器40通过执行所述软件程序并调用所述通知消息的代码、所述VIM的标识的代码、所述VIM的连接信息的代码、所述请求消息的代码、所述VNFM的标识的代码,以及所述VNFM的连接信息的代码,完成上述过程。The memory 41 is used to store the code of the notification message, the code of the identification of the VIM, the code of the connection information of the VIM, the code of the request message, the code of the identification of the VNFM, the code of the VNFM The code of the connection information, and the software program that controls the processor 40 to complete the above process, so that the processor 40 executes the software program and invokes the code of the notification message, the code of the identification of the VIM, the The code of the connection information of the VIM, the code of the request message, the code of the identification of the VNFM, and the code of the connection information of the VNFM are used to complete the above process.
可选的,所述处理器40,具体用于确定所述VIM的标识和所述处理器保存的至少一个已与所述VNFM建立连接的VIM的标识是否相同.Optionally, the processor 40 is specifically configured to determine whether the identifier of the VIM is the same as the identifier of at least one VIM saved by the processor that has established a connection with the VNFM.
若所述VIM的标识和所述至少一个已与所述VNFM建立连接的VIM的标识均不相同,则所述VNFM未建立与所述VIM的连接,若所述VIM的标识和任意一个所述已与所述VNFM建立连接的VIM的标识相同,则所述VNFM已建立与所述VIM的连接。If the identifier of the VIM is different from the identifier of the at least one VIM that has established a connection with the VNFM, the VNFM has not established a connection with the VIM. If the identification of the VIM that has established a connection with the VNFM is the same, the VNFM has established a connection with the VIM.
可选的,所述处理器40接收的所述VIM的连接信息至少包括所述VIM的IP地址。Optionally, the connection information of the VIM received by the processor 40 includes at least the IP address of the VIM.
所述处理器40发送的所述VNFM的连接信息至少包括所述VNFM的IP地址。The connection information of the VNFM sent by the processor 40 includes at least the IP address of the VNFM.
可选的,所述处理器40接收的所述通知消息和所述请求消息中还携带资源配额信息,所述资源配额信息用于指示允许所述VIM为所述VNFM分配的资源配额。Optionally, the notification message and the request message received by the processor 40 further carry resource quota information, where the resource quota information is used to indicate a resource quota that the VIM is allowed to allocate for the VNFM.
本发明实施例提供一种装置,该装置能够接收管理节点发送通知消息,该通知消息中携带VIM的标识和该VIM的连接信息,当VNFM未建立与该VIM的连接时,该装置能够保存该VIM的标识和该VIM的连接信息,并向该VIM发送请求消息,该请求消息中携带该VNFM的标识和该VNFM的连接信息,其中,该VNFM的标识和该VNFM的连接信息用于该VIM建立与该VNFM的连接。通过本发明实施例提供的装置,接收到通知消息后,能够在VNFM确定未建立与该VIM的连接时,自动保该VIM的标识和该VIM的连接信息,并将该VNFM的标识和该VNFM的连接信息携带在该请求消息中发送至该VIM,以使得该VIM能够自动保存该VNFM的标识和该VNFM的连接信息,以完成该VNFM与该VIM之间的连接的建立,从而提高了建立VIM与VNFM之间的连接的效率,进而提高了VNF的资源分配的效率。An embodiment of the present invention provides a device, which can receive a notification message sent by a management node, where the notification message carries an identifier of a VIM and connection information of the VIM, and when the VNFM does not establish a connection with the VIM, the device can save the The identifier of the VIM and the connection information of the VIM, and send a request message to the VIM, the request message carries the identifier of the VNFM and the connection information of the VNFM, wherein the identifier of the VNFM and the connection information of the VNFM are used for the VIM Establish a connection to this VNFM. With the device provided by the embodiment of the present invention, after receiving the notification message, when the VNFM determines that the connection with the VIM has not been established, the identification of the VIM and the connection information of the VIM can be automatically saved, and the identification of the VNFM and the VNFM can be automatically saved. The connection information is carried in the request message and sent to the VIM, so that the VIM can automatically save the identity of the VNFM and the connection information of the VNFM to complete the establishment of the connection between the VNFM and the VIM, thereby improving the establishment of The efficiency of the connection between the VIM and the VNFM further improves the efficiency of the resource allocation of the VNF.
如图15所示,本发明实施例提供一种装置,所述装置可以是上述实施例中所述的VIM所在的实体装置,也可以为一个能够与所述VIM所在的实体装置通信的实体装置。所述装置能够执行VIM能够执行的方法流程,具体的,所述装置可以包括:处理器50、存储器51、通信接口52、以及系统总线53。所述处理器50、所述存储器51以及通信接口52之间通过所述系统总线53连接并完成相互间的通信。As shown in FIG. 15 , an embodiment of the present invention provides a device, and the device may be the entity device where the VIM is located in the foregoing embodiment, or an entity device that can communicate with the entity device where the VIM is located. . The apparatus can execute the method process that the VIM can execute. Specifically, the apparatus may include: a processor 50 , a memory 51 , a communication interface 52 , and a
所述处理器50可以是一个CPU或者是ASIC,或者是被配置成实施本发明实施例的一个或多个集成电路。The processor 50 may be a CPU or an ASIC, or one or more integrated circuits configured to implement embodiments of the present invention.
所述存储器51可以包括易失性存储器,例如RAM;所述存储器51也可以包括非易失性存储器,例如ROM,快闪存储器,HDD或SSD;所述存储器51还可以包括上述种类的存储器的组合。The memory 51 may include volatile memory, such as RAM; the memory 51 may also include non-volatile memory, such as ROM, flash memory, HDD or SSD; the memory 51 may also include the above-mentioned types of memory. combination.
所述通信接口52用于与其他节点进行交互,例如与VNFM、管理节点等功能节点进行交互。The communication interface 52 is used for interacting with other nodes, for example, interacting with functional nodes such as VNFM and management nodes.
当所述装置运行时,所述处理器50和所述存储器51可以执行图3、或如图5至如图8中的任一附图所述的方法流程,具体包括:When the apparatus is running, the processor 50 and the memory 51 may execute the method flow described in FIG. 3 or any one of the drawings in FIG. 5 to FIG. 8 , specifically including:
处理器50,用于通过所述通信接口52接收VNFM发送的请求消息,所述请求消息中携带所述VNFM的标识和所述VNFM的连接信息,当所述VIM未建立与所述VNFM的连接时,保存所述VNFM的标识和所述VNFM的连接信息,所述VNFM的标识和所述VNFM的连接信息用于VIM建立与所述VNFM的连接;所述存储器51,用于存储所述请求消息的代码、所述VNFM的标识的代码、所述VNFM的连接信息的代码,以及控制所述处理器50完成上述过程的软件程序,从而所述处理器50通过执行所述软件程序并调用所述请求消息的代码、所述VNFM的标识的代码,以及所述VNFM的连接信息的代码,以完成上述过程。The processor 50 is configured to receive a request message sent by the VNFM through the communication interface 52, where the request message carries the identifier of the VNFM and the connection information of the VNFM, when the VIM does not establish a connection with the VNFM When the VNFM is stored, the identifier of the VNFM and the connection information of the VNFM are stored, and the identifier of the VNFM and the connection information of the VNFM are used for the VIM to establish a connection with the VNFM; the memory 51 is used to store the request The code of the message, the code of the identification of the VNFM, the code of the connection information of the VNFM, and the software program that controls the processor 50 to complete the above process, so that the processor 50 executes the software program and calls the The code of the request message, the code of the identification of the VNFM, and the code of the connection information of the VNFM are used to complete the above process.
可选的,所述处理器50,具体用于确定所述VNFM的标识和所述处理器50保存的至少一个已与所述VIM建立连接的VNFM的标识是否相同。Optionally, the processor 50 is specifically configured to determine whether the identifier of the VNFM is the same as the identifier of at least one VNFM saved by the processor 50 that has established a connection with the VIM.
若所述VNFM的标识和所述至少一个已与所述VIM建立连接的VNFM的标识均不相同,则所述VIM未建立与所述VNFM的连接,若所述VNFM的标识和任意一个所述已与所述VIM建立连接的VNFM的标识相同,则所述VIM已建立与所述VNFM的连接。If the identifier of the VNFM is different from the identifier of the at least one VNFM that has established a connection with the VIM, the VIM has not established a connection with the VNFM. If the identification of the VNFM that has established a connection with the VIM is the same, the VIM has established a connection with the VNFM.
可选的,所述处理器50接收的所述VNFM的连接信息至少包括所述VNFM的IP地址。Optionally, the connection information of the VNFM received by the processor 50 includes at least the IP address of the VNFM.
可选的,所述处理器50接收的所述请求消息中还携带资源配额信息,所述资源配额信息用于指示允许所述VIM为所述VNFM分配的资源配额。Optionally, the request message received by the processor 50 further carries resource quota information, where the resource quota information is used to indicate a resource quota that the VIM is allowed to allocate for the VNFM.
所述处理器50,具体用于保存所述VNFM的标识、所述VNFM的连接信息以及所述资源配额信息。The processor 50 is specifically configured to save the identifier of the VNFM, the connection information of the VNFM, and the resource quota information.
本发明实施例提供一种装置,该装置能够接收VNFM发送的请求消息,该请求消息中携带该VNFM的标识和该VNFM的连接信息,当VIM未建立与该VNFM的连接时,该装置能够保存该VNFM的标识和该VNFM的连接信息。通过本发明实施例提供的装置,能够在接收到VNFM发送的请求消息后,自动保存该请求消息中携带的该VNFM的标识和该VNFM的连接信息,以完成该VIM与该VNFM之间的连接的建立,从而提高了建立VIM与VNFM之间的连接的效率,进而提高了VNF的资源分配的效率。An embodiment of the present invention provides a device, which can receive a request message sent by a VNFM, where the request message carries an identifier of the VNFM and connection information of the VNFM, and when the VIM does not establish a connection with the VNFM, the device can save The identifier of the VNFM and the connection information of the VNFM. With the device provided by the embodiment of the present invention, after receiving the request message sent by the VNFM, the identifier of the VNFM and the connection information of the VNFM carried in the request message can be automatically saved, so as to complete the connection between the VIM and the VNFM Therefore, the efficiency of establishing the connection between the VIM and the VNFM is improved, and the efficiency of the resource allocation of the VNF is further improved.
如图16所示,本发明实施例提供一种装置,所述装置可以是上述实施例中所述的管理节点所在的实体装置,也可以为一个能够与所述管理节点所在的实体装置通信的实体装置。所述装置能够执行管理节点能够执行的方法流程,具体的,所述装置可以包括:处理器60、存储器61、通信接口62、以及系统总线63。所述处理器60、所述存储器61以及通信接口62之间通过所述系统总线63连接并完成相互间的通信。As shown in FIG. 16 , an embodiment of the present invention provides a device. The device may be an entity device where the management node described in the above embodiment is located, or a device capable of communicating with the entity device where the management node is located. physical device. The apparatus can execute the method process that the management node can execute. Specifically, the apparatus may include: a processor 60 , a memory 61 , a communication interface 62 , and a
所述处理器60可以是一个CPU或者是ASIC,或者是被配置成实施本发明实施例的一个或多个集成电路。The processor 60 may be a CPU or an ASIC, or one or more integrated circuits configured to implement embodiments of the present invention.
所述存储器61可以包括易失性存储器,例如RAM;所述存储器61也可以包括非易失性存储器,例如ROM,快闪存储器,HDD或SSD;所述存储器61还可以包括上述种类的存储器的组合。The memory 61 may include volatile memory, such as RAM; the memory 61 may also include non-volatile memory, such as ROM, flash memory, HDD or SSD; the memory 61 may also include the above-mentioned types of memory. combination.
所述通信接口62用于与其他节点进行交互,例如与VNFM、VIM等功能节点进行交互。The communication interface 62 is used for interacting with other nodes, for example, interacting with functional nodes such as VNFM and VIM.
当所述装置运行时,所述处理器60和所述存储器61可以执行图4至如图8中的任一附图所述的方法流程,具体包括:When the apparatus is running, the processor 60 and the memory 61 may execute the method flow described in any one of FIG. 4 to FIG. 8 , specifically including:
处理器60,用于获取VIM的标识,并根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息,以及通过所述通信接口60向VNFM发送通知消息,所述通知消息中携带所述获取单元获取的所述VIM的标识和所述VIM的连接信息,所述VIM的标识和所述VIM的连接信息用于所述VNFM建立与所述VIM的连接,所述VIM为满足待分配资源的VNF的资源需求信息的VIM。The processor 60 is configured to obtain the identification of the VIM, and according to the identification of the VIM, obtain the connection information of the VIM corresponding to the identification of the VIM, and send a notification message to the VNFM through the communication interface 60, the The notification message carries the identifier of the VIM and the connection information of the VIM acquired by the acquiring unit, and the identifier of the VIM and the connection information of the VIM are used for the VNFM to establish a connection with the VIM, and the The VIM is the VIM that satisfies the resource requirement information of the VNF to which resources are to be allocated.
所述存储器61,用于存储所述VIM的标识的代码、所述VIM的连接信息的代码、所述通知消息的代码、所述资源需求信息的代码,以及控制所述处理器60完成上述过程的软件程序,从而所述处理器60通过执行所述软件程序并调用所述VIM的标识的代码、所述VIM的连接信息的代码、所述通知消息的代码,以及所述资源需求信息的代码,以完成上述过程。The memory 61 is used to store the code of the identification of the VIM, the code of the connection information of the VIM, the code of the notification message, the code of the resource requirement information, and control the processor 60 to complete the above process The software program, so that the processor 60 executes the software program and calls the code of the identification of the VIM, the code of the connection information of the VIM, the code of the notification message, and the code of the resource requirement information , to complete the above process.
可选的,所述处理器60,还用于在根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息之前,确定所述VIM与所述VNFM之间是否已建立连接。Optionally, the processor 60 is further configured to, before acquiring the connection information of the VIM corresponding to the identifier of the VIM according to the identifier of the VIM, determine whether there is a connection between the VIM and the VNFM. establish connection.
所述处理器60,具体用于当确定所述VIM与所述VNFM之间未建立连接时,根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息。The processor 60 is specifically configured to acquire, according to the identifier of the VIM, the connection information of the VIM corresponding to the identifier of the VIM when it is determined that the connection is not established between the VIM and the VNFM.
可选的,所述处理器60,具体用于根据预设的资源映射表确定所述VIM与所述VNFM之间是否已建立连接。Optionally, the processor 60 is specifically configured to determine whether a connection has been established between the VIM and the VNFM according to a preset resource mapping table.
可选的,所述处理器60,还用于在获取VIM的标识之后,根据所述VIM的标识,获取与所述VIM的标识对应的所述VIM的连接信息之前,向所述VIM发送资源预留请求消息,所述资源预留请求消息中携带所述VNFM的标识,所述VNFM的标识用于确定所述VIM是否已建立与所述VNFM的连接。Optionally, the processor 60 is further configured to, after acquiring the identifier of the VIM, send resources to the VIM before acquiring the connection information of the VIM corresponding to the identifier of the VIM according to the identifier of the VIM A reservation request message, where the resource reservation request message carries an identifier of the VNFM, and the identifier of the VNFM is used to determine whether the VIM has established a connection with the VNFM.
所述处理器60,还用于接收所述VIM发送的资源预留应答消息,所述资源预留应答消息中携带连接指示标识,所述连接指示标识表征所述VIM是否已建立与所述VNFM的连接。The processor 60 is further configured to receive a resource reservation reply message sent by the VIM, where the resource reservation reply message carries a connection indication identifier, and the connection indication identifier represents whether the VIM has established a connection with the VNFM. Connection.
所述处理器60,具体用于根据所述连接指示标识,确定所述VIM与所述VNFM之间是否已建立连接。The processor 60 is specifically configured to determine whether a connection has been established between the VIM and the VNFM according to the connection indication identifier.
可选的,所述处理器60,还用于在获取VIM的标识之后,向VNFM发送通知消息之前,获取管理节点为所述VIM配置的资源配额信息,所述资源配额信息用于指示允许所述VIM为所述VNFM分配的资源配额。Optionally, the processor 60 is further configured to acquire resource quota information configured by the management node for the VIM after acquiring the identifier of the VIM and before sending a notification message to the VNFM, where the resource quota information is used to indicate that all The VIM is the resource quota allocated by the VNFM.
其中,所述处理器60发送的所述通知消息中还携带所述获取单元获取的所述资源配额信息。The notification message sent by the processor 60 further carries the resource quota information acquired by the acquiring unit.
本发明实施例提供一种装置,该装置能够获取VIM的标识和与该VIM的标识对应的该VIM的连接信息,并向VNFM发送通知消息,其中,该VIM为满足待分配资源的VNF的资源需求信息的VIM,该通知消息中携带该VIM的标识和该VIM的连接信息,该VIM的标识和该VIM的连接信息用于该VNFM建立与该VIM的连接。通过本发明实施例提供的装置,能够将VIM的标识和该VIM的连接信息携带在通知消息中,发送至VNFM,使得该VNFM能够自动保存该VIM的标识和该VIM的连接信息,以自动建立与该VIM的连接,从而提高了建立VIM与VNFM之间的连接的效率,进而提高了VNF的资源分配的效率。An embodiment of the present invention provides an apparatus, which can acquire an identifier of a VIM and connection information of the VIM corresponding to the identifier of the VIM, and send a notification message to a VNFM, where the VIM is a resource of a VNF that satisfies the resource to be allocated The VIM of the demand information, the notification message carries the identification of the VIM and the connection information of the VIM, and the identification of the VIM and the connection information of the VIM are used for the VNFM to establish a connection with the VIM. With the device provided by the embodiment of the present invention, the identification of the VIM and the connection information of the VIM can be carried in the notification message and sent to the VNFM, so that the VNFM can automatically save the identification of the VIM and the connection information of the VIM, so as to automatically establish The connection with the VIM improves the efficiency of establishing the connection between the VIM and the VNFM, thereby improving the efficiency of resource allocation of the VNF.
实施例五Embodiment 5
如图17所示,本发明实施例提供一种通信系统,该通信系统可以包括如图9所示的装置、如图10所示的装置、如图11至图13中的任一附图所示的装置,以及VNF;或者,该通信系统可以包括如图14所示的装置、如图15所示的装置、如图16所示的装置,以及VNF。As shown in FIG. 17 , an embodiment of the present invention provides a communication system, and the communication system may include the device shown in FIG. 9 , the device shown in FIG. 10 , or the device shown in any one of FIGS. 11 to 13 . The apparatus shown in FIG. 14, the apparatus shown in FIG. 15, the apparatus shown in FIG. 16, and the VNF may be included in the communication system.
其中,如图9所示的装置和如图14所示的装置都可以称为VNFM;如图10所示的装置和如图15所示的装置都可以称为VIM;如图11至图13中的任一幅图所示的装置,和如图16所示的装置都可以称为管理节点。The device shown in FIG. 9 and the device shown in FIG. 14 can both be called VNFM; the device shown in FIG. 10 and the device shown in FIG. 15 can be called VIM; FIGS. 11 to 13 The apparatus shown in any of the figures, and the apparatus shown in FIG. 16 may be referred to as management nodes.
在本发明实施例提供的通信系统中管理节点能够获取VIM的标识和与该VIM的标识对应的该VIM的连接信息,并向VNFM发送通知消息,该通知消息中携带该VIM的标识和该VIM的连接信息,该VIM的标识和该VIM的连接信息用于该VNFM建立与该VIM的连接;VNFM接收到该通知消息后,当VNFM未建立与该VIM的连接时,VNFM保存该VIM的标识和该VIM的连接信息,并向该VIM发送请求消息,该请求消息中携带该VNFM的标识和该VNFM的连接信息,该VNFM的标识和该VNFM的连接信息用于该VIM建立与该VNFM的连接;该VIM接收到该请求消息后,当VIM未建立与该VNFM的连接时,VIM保存该VNFM的标识和该VNFM的连接信息,其中,该VNFM为负责管理待分配资源的VNF,该VIM为满足该VNF的资源需求信息的VIM。In the communication system provided by the embodiment of the present invention, the management node can obtain the identifier of the VIM and the connection information of the VIM corresponding to the identifier of the VIM, and send a notification message to the VNFM, where the notification message carries the identifier of the VIM and the VIM The connection information of the VIM, the identification of the VIM and the connection information of the VIM are used for the VNFM to establish a connection with the VIM; after the VNFM receives the notification message, when the VNFM does not establish a connection with the VIM, the VNFM saves the identification of the VIM and the connection information of the VIM, and send a request message to the VIM, the request message carries the identity of the VNFM and the connection information of the VNFM, the identity of the VNFM and the connection information of the VNFM are used for the VIM to establish a connection with the VNFM. connection; after the VIM receives the request message, when the VIM does not establish a connection with the VNFM, the VIM saves the identity of the VNFM and the connection information of the VNFM, wherein the VNFM is the VNF responsible for managing resources to be allocated, and the VIM The VIM for the resource requirement information of this VNF.
可以理解的是,本发明实施例提供的通信系统中的VNFM,能够执行如图2,或图5至如图8中的任一幅图所述的建立VNFM与VIM之间的连接的方法,该对VNFM内的各模块或器件的具体功能和执行方法的流程可以参照如图2,或图5至如图8中的任一幅图所示的实施例中的描述,此处不再赘述。It can be understood that, the VNFM in the communication system provided by the embodiment of the present invention can perform the method for establishing a connection between the VNFM and the VIM as described in FIG. 2 or any one of FIG. 5 to FIG. 8 , The specific functions and execution methods of the modules or devices in the VNFM may refer to the descriptions in the embodiments shown in FIG. 2 , or any one of FIG. 5 to FIG. 8 , and will not be repeated here. .
本发明实施例提供的通信系统中的VIM,能够执行如图3,或图5至如图8中的任一幅图所述的建立VNFM与VIM之间的连接的方法,该对VIM内的各模块或器件的具体功能和执行方法的流程可以参照如图3,或图5至如图8中的任一幅图所示的实施例中的描述,此处不再赘述。The VIM in the communication system provided by the embodiment of the present invention can perform the method for establishing a connection between the VNFM and the VIM as described in FIG. 3 or any one of FIG. 5 to FIG. 8 . For the specific functions of each module or device and the flow of the execution method, reference may be made to the description in the embodiment shown in FIG. 3 or any one of FIG. 5 to FIG. 8 , which will not be repeated here.
本发明实施例提供的通信系统中的管理节点,能够执行如图4,或图5至如图8中的任一幅图所述的建立VNFM与VIM之间的连接的方法,该对管理节点内的各模块或器件的具体功能和执行方法的流程可以参照如图4至如图8中的任一幅图所示的实施例中的描述,此处不再赘述。The management node in the communication system provided by the embodiment of the present invention can execute the method for establishing the connection between the VNFM and the VIM as described in any one of FIG. 4 or FIG. 5 to FIG. 8 , the pair of management nodes For the specific functions of each module or device and the flow of the execution method, reference may be made to the descriptions in the embodiments shown in any one of FIG. 4 to FIG. 8 , which will not be repeated here.
通过本发明实施例提供的通信系统,当VNFM接收到管理节点发送的通知消息后,能够在VNFM确定未建立与该VIM的连接时,自动保该VIM的标识和该VIM的连接信息,并将该VNFM的标识和该VNFM的连接信息携带在该请求消息中发送至该VIM,使得该VIM能够在确定未建立与该VNFM的连接时,自动保存该VNFM的标识和该VNFM的连接信息,以完成该VNFM与该VIM之间的连接的建立,从而提高了建立VIM与VNFM之间的连接的效率,进而提高了VNF的资源分配的效率。With the communication system provided by the embodiment of the present invention, after the VNFM receives the notification message sent by the management node, when the VNFM determines that the connection with the VIM has not been established, the identification of the VIM and the connection information of the VIM can be automatically saved, and the The identification of the VNFM and the connection information of the VNFM are carried in the request message and sent to the VIM, so that the VIM can automatically save the identification of the VNFM and the connection information of the VNFM when it is determined that the connection with the VNFM is not established, so as to The establishment of the connection between the VNFM and the VIM is completed, thereby improving the efficiency of establishing the connection between the VIM and the VNFM, thereby improving the efficiency of resource allocation of the VNF.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and conciseness of the description, only the division of the above-mentioned functional modules is used for illustration. In practical applications, the above-mentioned functions can be allocated to different functional modules as required. The internal structure of the device is divided into different functional modules to complete all or part of the functions described above. For the specific working process of the system, apparatus and unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. 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 may be Incorporation may either be integrated into another system, or some features may be omitted, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(英文全称:Read-Only Memory,英文缩写:ROM)、随机存取存储器(英文全称:Random Access Memory,英文缩写:RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially 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 for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (full English name: Read-Only Memory, English abbreviation: ROM), random access memory (English full name: Random Access Memory, English abbreviation: RAM), magnetic Various media that can store program codes, such as discs or optical discs.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应所述以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention. should be included within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2015/078801WO2016179803A1 (en) | 2015-05-12 | 2015-05-12 | Method, device and system for establishing connection between vnfm and vim |
| Publication Number | Publication Date |
|---|---|
| CN107534678A CN107534678A (en) | 2018-01-02 |
| CN107534678Btrue CN107534678B (en) | 2020-01-21 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201580079212.6AActiveCN107534678B (en) | 2015-05-12 | 2015-05-12 | Method, device and system for establishing connection between VNFM and VIM |
| Country | Link |
|---|---|
| CN (1) | CN107534678B (en) |
| WO (1) | WO2016179803A1 (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110839034B (en)* | 2019-11-15 | 2022-05-13 | 腾讯科技(深圳)有限公司 | Communication connection control method and related equipment |
| CN114760048A (en)* | 2020-12-28 | 2022-07-15 | 中兴通讯股份有限公司 | Method, equipment and system for establishing data secure connection between VNFM and VNF |
| CN113518016B (en)* | 2021-06-22 | 2022-08-30 | 新华三大数据技术有限公司 | Message sending method, VNFM and computer readable storage medium |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104410672A (en)* | 2014-11-12 | 2015-03-11 | 华为技术有限公司 | Method for upgrading network function virtualization application, method and device for forwarding service |
| CN104601592A (en)* | 2015-01-31 | 2015-05-06 | 华为技术有限公司 | Method for accessing cloud service and access device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101718374B1 (en)* | 2013-01-11 | 2017-03-21 | 후아웨이 테크놀러지 컴퍼니 리미티드 | Network function virtualization for a network device |
| US9621425B2 (en)* | 2013-03-27 | 2017-04-11 | Telefonaktiebolaget L M Ericsson | Method and system to allocate bandwidth for heterogeneous bandwidth request in cloud computing networks |
| WO2015031866A1 (en)* | 2013-08-30 | 2015-03-05 | Clearpath Networks, Inc. | System and method of network functions virtualization of network services within and across clouds |
| CN104219127B (en)* | 2014-08-30 | 2018-06-26 | 华为技术有限公司 | A kind of creation method and equipment of virtual network example |
| CN104270428B (en)* | 2014-09-19 | 2018-03-09 | 上海华为技术有限公司 | A kind of cloud polymerization and relevant device |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104410672A (en)* | 2014-11-12 | 2015-03-11 | 华为技术有限公司 | Method for upgrading network function virtualization application, method and device for forwarding service |
| CN104601592A (en)* | 2015-01-31 | 2015-05-06 | 华为技术有限公司 | Method for accessing cloud service and access device |
| Publication number | Publication date |
|---|---|
| CN107534678A (en) | 2018-01-02 |
| WO2016179803A1 (en) | 2016-11-17 |
| Publication | Publication Date | Title |
|---|---|---|
| US10701139B2 (en) | Life cycle management method and apparatus | |
| CN110221918B (en) | Association method, device and system of NS and VNF | |
| US10764132B2 (en) | Scale-out association method and apparatus, and system | |
| US10924966B2 (en) | Management method, management unit, and system | |
| CN106134141B (en) | A method and device for updating network service descriptor NSD | |
| US10541862B2 (en) | VNF processing policy determining method, apparatus, and system | |
| US10848366B2 (en) | Network function management method, management unit, and system | |
| CN110086681A (en) | Configuration method, system and its Virtual NE and network management system of virtual network strategy | |
| WO2019029310A1 (en) | Network management method and system | |
| US11088924B2 (en) | Network management method, device, and system | |
| CN106776998A (en) | A kind of database service provides method and server | |
| US11301284B2 (en) | Method for managing VNF instantiation and device | |
| WO2016155291A1 (en) | Method and apparatus for managing virtualized network function scaling | |
| CN107534678B (en) | Method, device and system for establishing connection between VNFM and VIM | |
| US10637748B2 (en) | Method and apparatus for establishing interface between VNFMS, and system | |
| CN107408058B (en) | A method, device and system for deploying virtual resources | |
| CN107615872B (en) | A method, device and system for releasing connection | |
| CN103677994B (en) | Distributed data processing system, device and method | |
| CN103516628B (en) | A kind of realize network strategy update method, Apparatus and system | |
| CN108881407A (en) | A kind of information processing method and device | |
| WO2017128820A1 (en) | Virtualized network function management method, network device and system | |
| WO2018014351A1 (en) | Method and apparatus for resource configuration | |
| WO2015117498A1 (en) | Method for discovering topology network, network device and storage medium | |
| WO2018014356A1 (en) | Loading method and apparatus |
| 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 |