The method provided by the invention is used for the communication between the control plane of the virtual switch and the user state data plane. According to one embodiment, a method for communicating between a control plane of a virtual switch and a subscriber state data plane is provided. The control plane sends a request message to the data plane communication port, the data plane receives a request message in the data plane communication port, if the request message needs to request message response, data plane communication port to send a response message corresponding to the control plane, the control plane receives the response message in the request message communication port; data plane control plane to the notification message send a notification message receiving port, the control plane receives a notification message in the notification message receiving port. This method is a simple and efficient virtual switch control plane and data plane state independent user communication, the existing virtual switches and kernel state data plane communication control plane need only change the data plane communication port to achieve communication with user data plane.
【技术实现步骤摘要】
一种虚拟交换机控制平面与用户态数据平面通信的方法
本申请涉及网络通信领域,特别涉及一种虚拟交换机控制平面与用户态数据平面通信的方法。
技术介绍
随着虚拟化技术的广泛应用,虚拟交换机需要支撑越来越多的关键业务,这些关键业务对虚拟交换机的数据平面的性能及高可用性也提出越来越高的要求。传统的虚拟交换机数据平面通常位于系统的内核态,性能不能满足新型业务的需求。也有新一代的虚拟交换机将数据平面在用户态实现从而可以利用DPDK等高性能数据平面技术,但通常将用户态数据平面和控制平面在一个系统进程中实现,这样导致用户态数据平面的高可靠性不能得到满足。因此,本领域存在高可靠的独立的高性能的虚拟交换机用户态数据平面的需求,由此产生出对虚拟交换机控制平面与用户态数据平面通信方法的需求。
技术实现思路
本申请叙述的方法用于虚拟交换机控制平面与用户态数据平面之间进行通信,从而使得虚拟交换机用户态数据平面可以与控制平面实现分离以提高用户态数据平面的可靠性。根据一个实施例,提供了一种用于虚拟交换机控制平面与用户态数据平面之间进行通信的方法,该方法包括:控制平面发送请求消息至数据平面通信端口,数据平面在数据平面通信端口上接收请求消息,如果请求消息需要应答,数据平面向对应的控制平面的请求消息通信端口发送应答消息,控制平面在请求消息通信端口上接收应答消息;数据平面向控制平面通知消息接收端口发送通知消息,控制平面在通知消息接收端口上接收通知消息。在前述实施例的上下文中,虚拟交换机数据平面为用户态数据平面。在前述实施例的上下文中,每个消息包含一种消息类型ID,一种消息类型ID对应于数据平面中一类可以 ...
【技术保护点】
一种虚拟交换机控制平面与用户态数据平面通信的方法,其特征在于,所述方法包括:控制平面发送请求消息至数据平面通信端口,数据平面在数据平面通信端口上接收请求消息;如果请求消息需要应答,数据平面向对应的控制平面的请求消息通信端口发送应答消息,控制平面在请求消息通信端口上接收应答消息;数据平面向控制平面通知消息接收端口发送通知消息,控制平面在通知消息接收端口上接收通知消息。
【技术特征摘要】
1.一种虚拟交换机控制平面与用户态数据平面通信的方法,其特征在于,所述方法包括:控制平面发送请求消息至数据平面通信端口,数据平面在数据平面通信端口上接收请求消息;如果请求消息需要应答,数据平面向对应的控制平面的请求消息通信端口发送应答消息,控制平面在请求消息通信端口上接收应答消息;数据平面向控制平面通知消息接收端口发送通知消息,控制平面在通知消息接收端口上接收通知消息。2.根据权利要求1所述的方法,其特征在于,该方法还包括:虚拟交换机数据平面为用户态数据平面。3.根据权利要求1所述的方法,其特征在于,该方法还包括:每个消息包含一种消息类型ID,一种消息类型ID对应于数据平面中...
【专利技术属性】
技术研发人员:肖骏,
申请(专利权)人:云络动力北京科技有限公司,
类型:发明
国别省市:北京,11
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。