WO2017128953A1 - 服务器虚拟化网络共享的装置和方法 - Google Patents

服务器虚拟化网络共享的装置和方法 Download PDF

Info

Publication number
WO2017128953A1
WO2017128953A1 PCT/CN2017/070869 CN2017070869W WO2017128953A1 WO 2017128953 A1 WO2017128953 A1 WO 2017128953A1 CN 2017070869 W CN2017070869 W CN 2017070869W WO 2017128953 A1 WO2017128953 A1 WO 2017128953A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
packet information
message information
destination address
information
Prior art date
Application number
PCT/CN2017/070869
Other languages
English (en)
French (fr)
Inventor
姚俊
成晓庆
王兴猛
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017128953A1 publication Critical patent/WO2017128953A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/40Support for services or applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Definitions

  • the present invention relates to mobile communication technologies, and more particularly to an apparatus and method for server virtualization network sharing.
  • cloud computing is a very popular cutting-edge technology, which combines new technologies represented by virtualization, service management automation and standardization.
  • virtualization is the most important feature of cloud computing, mainly involving computing, storage, and network. It is mature for both computing virtualization and storage virtualization technologies, while network virtualization technology is relatively lagging behind.
  • a common method for the network virtualization technology is to provide a virtual machine network connection by installing a virtual switch or a network card supporting Single-root I/O Virtualization (SR-IOV) technology. Incoming and external communications.
  • SR-IOV Single-root I/O Virtualization
  • an embodiment of the present invention provides an apparatus and method for server virtualization network sharing, which can integrate a virtual conversion module, and implement network sharing of a virtual machine by uniformly configuring port resources, thereby saving a processor.
  • Resources and memory resources and can be ported on different hardware platforms, further facilitating the pooling of hardware resources.
  • an embodiment of the present invention provides a method for server virtualization network sharing, where the method includes:
  • the receiving the message information includes: receiving, by the peripheral component, the extended channel, the message information sent by the virtual machine.
  • the receiving the packet information includes: receiving the packet information sent by the external device by using the network port.
  • the method further includes: if the parsed packet information is the tunnel packet information, tunneling the tunnel packet information.
  • the method further includes: de-encapsulating the tunnel packet information if the parsed packet information is the tunnel packet information.
  • the method before the querying the predetermined forwarding rule, the method further includes: formulating or acquiring the predetermined forwarding rule.
  • configuring the corresponding port according to the destination address of the packet information including: if the destination address is a virtual machine address, configuring the corresponding peripheral component interconnection extension port to forward the packet information.
  • the corresponding port is configured according to the destination address of the packet information, including: if the destination address is an external device address, configuring the corresponding network port to forward the packet information.
  • an embodiment of the present invention provides a device for server virtualization network sharing, where the device includes: a receiving module, a virtual conversion module, and a port control module;
  • the receiving module is configured to receive message information
  • the virtual conversion module is configured to parse the packet information to obtain a destination address, and query a predetermined forwarding rule
  • the port control module is configured to configure a corresponding port according to the destination address
  • the sending module is configured to forward the packet information through the configured port according to the forwarding rule.
  • the receiving module is configured to receive the message information, where the receiving module is configured to: The message is sent to receive the message sent by the virtual machine through the peripheral component interconnect extension channel.
  • the receiving module is configured to receive the packet information, where the receiving module is configured to receive the packet information sent by the external device by using the network port.
  • the device further includes: a virtual scalable local area network module, where the virtual scalable local area network module is configured to tunnel the tunnel message information if the parsed message information is tunnel message information.
  • the device further includes: a virtual scalable local area network module, where the virtual scalable local area network module is configured to de-encapsulate the tunnel message information if the parsed message information is tunnel message information.
  • the apparatus further includes: a forwarding control module; the forwarding control module is configured to formulate or acquire the predetermined forwarding rule.
  • the port control module is configured to configure a corresponding port according to the destination address of the packet information, where the port control module is configured to: if the destination address is a virtual machine address, configure corresponding peripheral components to each other.
  • the extended port forwards the message information.
  • the port control module is configured to configure a corresponding port according to the destination address of the packet information, and the port control module is configured to: if the destination address is an external device address, configure the corresponding network port forwarding station. Message information.
  • an embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores an execution instruction, where the execution instruction is used to perform one or a combination of the steps in the foregoing method embodiments.
  • the receiving module receives the packet information
  • the virtual conversion module parses the packet information to obtain a destination address, and queries a predetermined forwarding rule
  • the port control module The corresponding port is configured according to the destination address of the packet information
  • the sending module forwards the packet information through the configured port according to the forwarding rule, so that the server virtual machine can implement information sharing according to a predetermined forwarding rule by uniformly configuring the port resource. This saves processor resources and memory resources, and can be ported on different hardware platforms, further facilitating hardware resource pooling.
  • FIG. 1 is a schematic structural diagram of Embodiment 1 of a method for server virtualization network sharing according to an embodiment of the present disclosure
  • Embodiment 1 of a device for server virtualized network sharing according to an embodiment of the present disclosure
  • FIG. 3 is a schematic structural diagram of Embodiment 2 of a device for server virtualized network sharing according to an embodiment of the present invention.
  • the method according to the embodiment of the present invention may be applied to a cloud platform that can carry cloud computing.
  • the cloud platform may be a server cluster or a computer cluster.
  • the server or the computer may be provided with multiple virtual machines, and the following modules belong to one.
  • the logical division is not specifically limited.
  • the method according to the embodiment of the present invention is to solve the problem that each virtual machine in the related art needs to be
  • the virtual switch should consume valuable processor resources and memory resources, and cannot be transplanted on different hardware platforms, which is not conducive to the technical problem of pooling hardware resources.
  • FIG. 1 is a schematic flowchart of Embodiment 1 of a method for server virtualization network sharing according to an embodiment of the present invention. As shown in FIG. 1 , the method includes:
  • receiving the packet information that needs to be shared where the packet information includes a destination address, a data packet, and the like.
  • parsing the received packet information obtaining a data packet, a destination address, and the like of the packet information, and querying a predetermined forwarding rule, where the predetermined forwarding rule specifies a forwarding rate, a forwarded port resource, etc. Save as a forwarding rule table.
  • the cloud platform corresponds to a plurality of servers, and each service corresponds to a plurality of virtual machines. Therefore, when information sharing is performed, the corresponding port is obtained through the parsed destination address, and the port may be virtualized with the server or the server. The machine communicates.
  • S104 Send the packet information by using the configured port according to the forwarding rule.
  • the corresponding forwarding rate and the configured port are sent to send the packet information.
  • a method for server virtualized network sharing receives a packet information, and then parses the packet information to obtain a destination address, and queries a predetermined forwarding rule, and then according to a destination address of the packet information.
  • the corresponding port is configured, and the packet information is forwarded through the configured port according to the forwarding rule, so that the server virtual machine can realize the information sharing by uniformly configuring the port resource and according to the predetermined forwarding rule, thereby saving the processor.
  • Resources and memory resources and can be ported on different hardware platforms, further facilitating the pooling of hardware resources.
  • the second embodiment solves the technical problem of information sharing between the virtual machine and the virtual machine, and the foregoing S101 includes:
  • the virtual machine when it needs to send packet information for sharing, it sends the message information through the virtual function driver, and the Peripheral Component Interconnect Express (PCIE) channel is extended through the Peripheral Component and follows the SR-IOV specification.
  • PCIE Peripheral Component Interconnect Express
  • the third embodiment solves the technical problem of information sharing between the external device and the virtual machine, and the foregoing S101 includes:
  • the external device may be a server, a smart phone, a tablet, a handheld, a computer, etc., but is not limited thereto.
  • an external device needs to send packet information for sharing, it sends packet information through the network port.
  • the network port can be an Ethernet port. It provides server and external network communication, network card control, and debugging channel services through multiple network port ports. In this way, by integrating the port resources of the external device, the processor resources and memory resources are saved, and the data transmission efficiency between the external device and the virtual machine is improved.
  • the method further includes:
  • the tunnel packet information is encapsulated in a tunnel.
  • the packet information sent by the virtual machine is received by the peripheral component interconnecting extension channel
  • the parsed packet information is the tunnel packet information
  • the data frame or the packet of the other protocol may be re-encapsulated through the tunnel protocol.
  • the method further includes:
  • the network port receives the packet information sent by the external device. If the parsed packet information is the tunnel packet information, the tunnel packet information is de-encapsulated, and the data frame or packet of other protocols can be re-routed through the tunnel protocol. Decapsulation, in order to submit the payload inside to the virtual machine, this way enables network services from many information sources to be transmitted through different tunnels on the same cloud platform, thereby avoiding information interference and improving data transmission efficiency.
  • the method before the querying the predetermined forwarding rule, the method further includes:
  • the predetermined forwarding rule is formulated or obtained.
  • the predetermined forwarding rule may be preset in advance by satisfying the OpenFlow specification, or the predetermined forwarding rule may be formulated when the predetermined forwarding rule fails to be queried, and the predetermined forwarding rule may be a forwarding rule.
  • the table records the correspondence between the virtual machine and the virtual machine and the forwarding between the virtual machine and the external device, so that the packet information is forwarded according to the corresponding forwarding rule, so that the packet information can be sent in an orderly manner according to the rules. Improve data transfer efficiency.
  • the SDN controller 50 formulates a predetermined forwarding rule according to the capability of forwarding the message information, and issues the Forwarding rules, thereby controlling the forwarding of message information, optimizing the scheme of message information forwarding, and improving data transmission efficiency.
  • SDN Software Defined Network
  • configuring a corresponding port according to the destination address of the packet information including:
  • the corresponding peripheral component interconnection extended port is configured to forward the packet information.
  • the control node of the cloud platform or the calculation The node interacts, collects all the PCIE port resources, and divides the port corresponding to the virtual machine according to the mapping relationship between the virtualized network, the virtual machine, and the PCIE port, and then configures the corresponding PCIE port to forward the packet information to the virtual machine through the PCIE channel.
  • the control node of the cloud platform or the calculation The node interacts, collects all the PCIE port resources, and divides the port corresponding to the virtual machine according to the mapping relationship between the virtualized network, the virtual machine, and the PCIE port, and then configures the corresponding PCIE port to forward the packet information to the virtual machine through the PCIE channel.
  • configuring a corresponding port according to the destination address of the packet information including:
  • the corresponding network port is configured to forward the packet information.
  • the destination address is an external device address
  • interact with the control node or the computing node of the cloud platform collect all port resources of the network port, and divide the external network according to the mapping relationship between the virtualized network, the virtual machine, and the network port.
  • the network port of the device is configured to forward the packet information to the external device to manage and schedule the port resources of the network port to implement orderly communication between the VM and the external device.
  • FIG. 2 is a schematic structural diagram of Embodiment 1 of a server virtualization network sharing apparatus according to an embodiment of the present disclosure. This embodiment relates to a specific process for implementing server virtualization network sharing. As shown in FIG. 2, the device includes: a receiving module 10, a virtual conversion module 20, a port control module 30, and a sending module 40;
  • the receiving module 10 is configured to receive message information
  • the virtual conversion module 20 is configured to parse the packet information to obtain a destination address, and query a predetermined forwarding rule.
  • the port control module 30 is configured to configure a corresponding port according to the destination address
  • the sending module 40 is configured to send the message information through the configured port according to the forwarding rule.
  • the receiving module receives the packet information
  • the virtual conversion module parses the packet information to obtain a destination address, and queries a predetermined forwarding rule
  • the port control module reports the packet according to the packet.
  • the destination address of the text information is used to configure the corresponding port.
  • the sending module forwards the packet information through the configured port according to the forwarding rule, so that the server virtual machine can uniformly configure the port resource and follow the predetermined forwarding rule. Realize information sharing, which saves processor resources and memory resources, and can be transplanted on different hardware platforms, further facilitating hardware resource pooling.
  • FIG. 3 is a schematic structural diagram of Embodiment 2 of a server virtualization network sharing device according to an embodiment of the present invention.
  • the receiving module 10 is used in this embodiment.
  • Set to receive message information which means:
  • the receiving module 10 is configured to receive message information sent by the virtual machine through the peripheral component interconnect extension channel.
  • the device provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • the receiving module 10 is configured to receive message information, which is:
  • the receiving module 10 is configured to receive packet information sent by an external device through a network port.
  • the device provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • the apparatus further includes: the virtual scalable local area network module 21;
  • the virtual scalable local area network module 21 is configured to tunnel the tunnel message information when the parsed message information is the tunnel message information.
  • the device provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • the apparatus further includes: a virtual scalable local area network module 21;
  • the virtual scalable local area network module 21 is configured to de-encapsulate the tunnel message information if the parsed message information is the tunnel message information.
  • the device provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • the apparatus further includes: a forwarding control module 31;
  • the forwarding control module 31 is configured to formulate or acquire the predetermined forwarding rule.
  • the device provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • the port control module 30 is configured to configure a corresponding port according to the destination address of the packet information, which is:
  • the port control module 30 is configured to: if the destination address is a virtual machine address, configure the corresponding peripheral component interconnect extension port to forward the message information.
  • the device provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • the port control module 30 is configured to configure a corresponding port according to the destination address of the packet information, which is:
  • the port control module 30 is configured to forward the packet information to the corresponding network port if the destination address is an external device address.
  • the device provided by the embodiment of the present invention may perform the foregoing method embodiments, and the implementation principles and technical effects thereof are similar, and details are not described herein again.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium stores an execution instruction, where the execution instruction is used to perform one or a combination of the steps in the foregoing method embodiments.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • the receiving module receives the packet information
  • the virtual conversion module parses the packet information to obtain the destination address, and queries
  • the predetermined forwarding rule the port control module configures the corresponding port according to the destination address of the packet information
  • the sending module forwards the packet information through the configured port according to the forwarding rule, so that the server virtual machine can uniformly configure the port resource according to the configuration.
  • the predetermined forwarding rules are used to realize information sharing, thereby saving processor resources and memory resources, and can be transplanted on different hardware platforms, which further facilitates hardware resource pooling.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种服务器虚拟化网络共享的方法和装置,通过接收模块接收报文信息,虚拟转换模块解析所述报文信息来获取目的地址,并查询预定的转发规则,端口控制模块根据报文信息的目的地址来配置对应的端口,由发送模块按照转发规则通过所配置的端口转发该报文信息,从而使得服务器虚拟机可以通过统一配置端口资源并按照预定的转发规则来实现信息共享,从而节约了的处理器资源和内存资源,并可以在不同硬件平台进行移植,进一步利于硬件资源池化。

Description

服务器虚拟化网络共享的装置和方法 技术领域
本发明涉及移动通信技术,尤指一种服务器虚拟化网络共享的装置和方法。
背景技术
目前,云计算是作为目前非常热门的前沿技术,它融合了以虚拟化、服务管理自动化和标准化为代表的新技术。其中,虚拟化是云计算最重要的特征,主要涉及计算、存储、网络三个领域,对于计算虚拟化和存储虚拟化技术都比较成熟,而网络虚拟化技术相对滞后。
相关技术中,对于网络虚拟化技术常用的方法是通过安装虚拟交换机或者支持单根I/O虚拟化(Single-root I/O Virtualization,简称:SR-IOV)技术的网卡提供虚拟机的网络接入和对外通信。
但是,采用相关技术,由于每台虚拟机对外通信都需要对应的虚拟交换机或者SR-IOV技术网卡,则会耗费宝贵的处理器资源和内存资源,且无法在不同硬件平台进行移植,不利于硬件资源的池化
发明内容
为了解决上述技术问题,本发明实施例中提供了一种服务器虚拟化网络共享的装置和方法,能够集成虚拟转换模块,通过统一配置端口资源来实现虚拟机的网络共享,从而节约了的处理器资源和内存资源,并可以在不同硬件平台进行移植,进一步利于硬件资源池化。
第一方面,本发明实施例提供服务器虚拟化网络共享的方法,该方法包括:
接收报文信息;
解析所述报文信息获取目的地址,查询预定的转发规则;
根据所述目的地址配置对应的端口;
按照所述转发规则通过所配置的端口发送所述报文信息。
可选地,所述接收报文信息,包括:通过外设组件互连扩展通道接收虚拟机发送的报文信息。
可选地,所述接收报文信息,包括:通过网口接收外部设备发送的报文信息。
可选地,在解析所述报文信息之后,还包括:若解析的报文信息为隧道报文信息时,将所述隧道报文信息进行隧道封装。
可选地,在解析所述报文信息之后,还包括:若解析的报文信息为隧道报文信息时,将所述隧道报文信息进行解隧道封装。
可选地,所述查询预定的转发规则之前,还包括:制定或者获取所述预定的转发规则。
可选地,根据报文信息的目的地址配置对应的端口,包括:若目的地址为虚拟机地址时,则配置对应的外设组件互连扩展端口转发所述报文信息。
可选地,根据报文信息的目的地址配置对应的端口,包括:若目的地址为外部设备地址时,则配置对应的网口转发所述报文信息。
第二方面,本发明实施例提供一种服务器虚拟化网络共享的装置,该装置包括:接收模块、虚拟转换模块和端口控制模块;
所述接收模块,设置为接收报文信息;
所述虚拟转换模块,设置为解析所述报文信息获取目的地址,查询预定的转发规则;
所述端口控制模块,设置为根据所述目的地址配置对应的端口;
所述发送模块,设置为按照所述转发规则通过所配置的端口转发所述报文信息。
可选地,所述接收模块设置为接收报文信息,是指:所述接收模块设 置为通过外设组件互连扩展通道接收虚拟机发送的报文信息。
可选地,所述接收模块设置为接收报文信息,是指:所述接收模块设置为通过网口接收外部设备发送的报文信息。
可选地,该装置还包括:虚拟可扩展局域网模块;所述虚拟可扩展局域网模块,设置为若解析的报文信息为隧道报文信息时,将所述隧道报文信息进行隧道封装。
可选地,该装置还包括:虚拟可扩展局域网模块;所述虚拟可扩展局域网模块,设置为若解析的报文信息为隧道报文信息时,将所述隧道报文信息进行解隧道封装。
可选地,该装置还包括:转发控制模块;所述转发控制模块设置为制定或者获取所述预定的转发规则。
可选地,所述端口控制模块设置为根据报文信息的目的地址配置对应的端口,是指:所述端口控制模块设置为若目的地址为虚拟机地址时,则配置对应的外设组件互连扩展端口转发所述报文信息。
可选地,所述端口控制模块设置为根据报文信息的目的地址配置对应的端口,是指:所述端口控制模块设置为若目的地址为外部设备地址时,则配置对应的网口转发所述报文信息。
第三方面,本发明实施例还提供了一种计算机存储介质,所述计算机存储介质存储有执行指令,所述执行指令用于执行上述方法实施例中的步骤之一或其组合。
本发明实施例提供的一种服务器虚拟化网络共享的方法和装置,通过接收模块接收报文信息,虚拟转换模块解析所述报文信息来获取目的地址,并查询预定的转发规则,端口控制模块根据报文信息的目的地址来配置对应的端口,由发送模块按照转发规则通过所配置的端口转发该报文信息,从而使得服务器虚拟机可以通过统一配置端口资源按照预定的转发规则来实现信息共享,从而节约了的处理器资源和内存资源,并可以在不同硬件平台进行移植,进一步利于硬件资源池化。
本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。
附图说明
附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。
图1为本发明实施例提供的服务器虚拟化网络共享的方法实施例一的结构示意图;
图2为本发明实施例提供的服务器虚拟化网络共享的装置实施例一的流程示意图;
图3为本发明实施例提供的服务器虚拟化网络共享的装置实施例二的结构示意图。
具体实施方式
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
本发明实施例涉及的方法可以应用于可以承载云计算的云平台,该云平台可以是服务器集群或者是计算机集群,其中服务器或者计算机上可以设有多个虚拟机,以下各模块的划分属于一种逻辑划分,具体实施并未特别限制。
本发明实施例涉及的方法,旨在解决相关技术中每台虚拟机都需要对 应的虚拟交换机,则需要耗费宝贵的处理器资源和内存资源,且无法在不同硬件平台进行移植,不利于硬件资源的池化的技术问题。
下面以具体地实施例对本发明的技术方案进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。
图1为本发明实施例提供的服务器虚拟化网络共享的方法实施例一的流程示意图,如图1所示,该方法包括:
S101、接收报文信息。
可选的,接收需要共享的报文信息,该报文信息包括目的地址、数据包等内容。
S102、解析所述报文信息获取目的地址,查询预定的转发规则。
可选的,解析接收到的报文信息,并获取该报文信息的数据包,目的地址等,查询预定的转发规则,该预定的转发规则规定了转发的速率,转发的端口资源等,可以以转发规则表的形式进行保存。
S103、根据报文信息的目的地址配置对应的端口。
可选的,云平台对应有很多服务器,每台服务上对应有很多台虚拟机,因此,在进行信息共享时,通过解析后的目的地址来获取对应的端口,该端口可以与服务器或者是虚拟机进行通信。
S104、按照所述转发规则通过所配置的端口发送所述报文信息。
可选的,按照上述预定的转发规则表,查找到对应的转发速率和所配置的端口发送所述报文信息。
本发明实施例提供的一种服务器虚拟化网络共享的方法,通过接收报文信息,然后,解析所述报文信息来获取目的地址,并查询预定的转发规则,再根据报文信息的目的地址来配置对应的端口,最后按照转发规则通过所配置的端口转发该报文信息,从而使得服务器虚拟机可以通过统一配置端口资源并按照预定的转发规则来实现信息共享,从而节约了的处理器 资源和内存资源,并可以在不同硬件平台进行移植,进一步利于硬件资源池化。
可选地,在上述实施例一的基础上,本实施例二解决的是虚拟机与虚拟机之间的信息共享的技术问题,上述S101包括:
通过外设组件互连扩展通道接收虚拟机发送的报文信息。
可选的,虚拟机需要发送报文信息进行共享时,会通过虚拟功能驱动发送报文信息,通过外设组件互连扩展(Peripheral Component Interconnect Express,简称:PCIE)通道,并遵循SR-IOV规范,接收所述虚拟机发送的报文信息,其中,每个PCIE通道可以支持多个虚拟机对应的虚拟功能资源,这样通过集成虚拟机之间的端口资源,节约了的处理器资源和内存资源,提高了虚拟机与虚拟机之间的数据传送效率。
可选的,在上述实施例一的基础上,本实施例三解决的是外部设备与虚拟机之间的信息共享的技术问题,上述S101包括:
通过网口接收外部设备发送的报文信息。
可选的,外部设备具体可以是服务器、智能手机、平板电脑、手持机、计算机等,但并不以此为限。当外部设备需要发送报文信息进行共享时,会通过网口发送报文信息,该网口可以是以太网端口,通过多个网口端口提供服务器和外部网络通信、网卡控制、调试通道服务。这样通过集成外部设备的端口资源,节约了的处理器资源和内存资源,提高了外部设备与虚拟机之间的数据传送效率。
可选地,在上述实施例二的基础上,在解析所述报文信息之后,还包括:
若解析的报文信息为隧道报文信息时,将所述隧道报文信息进行隧道封装。
可选的,通过外设组件互连扩展通道接收虚拟机发送的报文信息时,若解析的报文信息为隧道报文信息时,可以通过隧道协议将其它协议的数据帧或包重新封装,这种方式能够使来自许多信息源的网络业务在同一个 云平台通过不同的隧道进行传输,从而可以避免信息干扰,提高数据传输效率。
可选地,在上述实施例三的基础上,在解析所述报文信息之后,还包括:
通过网口接收外部设备发送的报文信息,若解析的报文信息为隧道报文信息时,将所述隧道报文信息进行解隧道封装,可以通过隧道协议将其它协议的数据帧或包重新解封装,以便把里面的净荷提交给虚拟机,这种方式能够使来自许多信息源的网络业务在同一个云平台通过不同的隧道进行传输,从而可以避免信息干扰,提高数据传输效率。
可选地,在上述实施例的基础上,所述查询预定的转发规则之前,还包括:
制定或者获取所述预定的转发规则。
可选的,可以是满足OpenFlow规范提前预设所述预定的转发规则,或者在在查询预定的转发规则失败时,则制定所述预定的所述转发规则,该预定的转发规则可以以转发规则表的形式记录虚拟机与虚拟机之间,虚拟机与外部设备之间转发的对应关系,以便报文信息按照对应转发规则的进行流量转发,从而便于报文信息按照规则进行有序发送,进而提高数据传输效率。
在软件定义网络(Software Defined Network,简称:SDN)的应用场景中,云平台中有SDN控制器时,SDN控制器50会根据转发报文信息的能力来制定预定的转发规则,并下发该转发规则,从而控制报文信息的转发,优化了报文信息转发的方案,提高了数据传输效率。
可选地,在上述实施例的基础上,根据报文信息的目的地址配置对应的端口,包括:
若目的地址为虚拟机地址时,则配置对应的外设组件互连扩展端口转发所述报文信息。
可选的,若目的地址为虚拟机地址时,与云平台的控制节点或者计算 节点交互,收集所有PCIE端口资源,并按照虚拟化网络、虚拟机和PCIE端口的映射关系划分所述虚拟机对应的端口,则配置对应的PCIE端口通过PCIE通道转发所述报文信息给虚拟机,以便统一管理和调度PCIE端口资源,实现虚拟机与虚拟机之间的有序通信。
可选地,在上述实施例的基础上,根据报文信息的目的地址配置对应的端口,包括:
若目的地址为外部设备地址时,则配置对应的网口转发所述报文信息。
可选的,若目的地址为外部设备地址时,与云平台的控制节点或者计算节点交互,收集所有网口端口资源,并按照虚拟化网络、虚拟机和网口端口的映射关系划分所述外部设备对应的网口端口,则配置对应的网口端口转发所述报文信息给外部设备,以便统一管理和调度网口端口资源,实现虚拟机与外部设备之间的有序通信。
图2为本发明实施例提供的服务器虚拟化网络共享装置实施例一的结构示意图。本实施例涉及的是实现服务器虚拟化网络共享的具体过程。如图2所示,该装置包括:接收模块10、虚拟转换模块20、端口控制模块30和发送模块40;
所述接收模块10,设置为接收报文信息;
所述虚拟转换模块20,设置为解析所述报文信息获取目的地址,查询预定的转发规则;
所述端口控制模块30,设置为根据所述目的地址配置对应的端口;
所述发送模块40,设置为按照所述转发规则通过所配置的端口发送所述报文信息。
本发明实施例提供的一种服务器虚拟化网络共享的装置,通过接收模块接收报文信息,虚拟转换模块解析所述报文信息来获取目的地址,并查询预定的转发规则,端口控制模块根据报文信息的目的地址来配置对应的端口,由发送模块按照转发规则通过所配置的端口转发该报文信息,从而使得服务器虚拟机可以通过统一配置端口资源并按照预定的转发规则来 实现信息共享,从而节约了的处理器资源和内存资源,并可以在不同硬件平台进行移植,进一步利于硬件资源池化。
可选地,图3为本发明实施例提供的服务器虚拟化网络共享装置实施例二的结构示意图,如图3所示,在上述实施例的基础上,在本实施例中所述接收模块10设置为接收报文信息,是指:
所述接收模块10设置为通过外设组件互连扩展通道接收虚拟机发送的报文信息。
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
可选的,如图3所示,在上述实施例的基础上,在本实施例中所述接收模块10设置为接收报文信息,是指:
所述接收模块10设置为通过网口接收外部设备发送的报文信息。
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
可选地,在上述实施例的基础上,该装置还包括:所述虚拟可扩展局域网模块21;
所述虚拟可扩展局域网模块21,设置为若解析的报文信息为隧道报文信息时,将所述隧道报文信息进行隧道封装。
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
可选地,在上述实施例的基础上,该装置还包括:虚拟可扩展局域网模块21;
所述虚拟可扩展局域网模块21,设置为若解析的报文信息为隧道报文信息时,将所述隧道报文信息进行解隧道封装。
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
可选地,在上述实施例的基础上,该装置还包括:转发控制模块31;
所述转发控制模块31设置为制定或者获取所述预定的转发规则。
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
可选地,如图3所示,在上述实施例的基础上,所述端口控制模块30设置为根据报文信息的目的地址配置对应的端口,是指:
所述端口控制模块30设置为若目的地址为虚拟机地址时,则配置对应的外设组件互连扩展端口转发所述报文信息。
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
可选地,如图3所示,在上述实施例的基础上,所述端口控制模块30设置为根据报文信息的目的地址配置对应的端口,是指:
所述端口控制模块30设置为若目的地址为外部设备地址时,则配置对应的网口转发所述报文信息。
本发明实施例提供的装置,可以执行上述方法实施例,其实现原理和技术效果类似,在此不再赘述。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质中存储有执行指令,该执行指令用于执行上述方法实施例中的步骤之一或其组合。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
虽然本发明所揭露的实施方式如上,但所述的内容仅为便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属领域内的技术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形 式及细节上进行任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。
工业实用性
如上所述,本发明实施例提供的一种服务器虚拟化网络共享的方法和装置具有以下有益效果:通过接收模块接收报文信息,虚拟转换模块解析所述报文信息来获取目的地址,并查询预定的转发规则,端口控制模块根据报文信息的目的地址来配置对应的端口,由发送模块按照转发规则通过所配置的端口转发该报文信息,从而使得服务器虚拟机可以通过统一配置端口资源按照预定的转发规则来实现信息共享,从而节约了的处理器资源和内存资源,并可以在不同硬件平台进行移植,进一步利于硬件资源池化。

Claims (16)

  1. 一种服务器虚拟化网络共享的方法,所述方法包括:
    接收报文信息;
    解析所述报文信息获取目的地址,查询预定的转发规则;
    根据所述目的地址配置对应的端口;
    按照所述转发规则通过所配置的端口发送所述报文信息。
  2. 根据权利要求1所述的方法,其中,所述接收报文信息,包括:
    通过外设组件互连扩展通道接收虚拟机发送的报文信息。
  3. 根据权利要求1所述的方法,其中,所述接收报文信息,包括:
    通过网口接收外部设备发送的报文信息。
  4. 根据权利要求2所述的方法,其中,在解析所述报文信息之后,还包括:
    若解析的报文信息为隧道报文信息时,将所述隧道报文信息进行隧道封装。
  5. 根据权利要求3所述的方法,其中,在解析所述报文信息之后,还包括:
    若解析的报文信息为隧道报文信息时,将所述隧道报文信息进行解隧道封装。
  6. 根据权利要求4或5任一项所述的方法,其中,所述查询预定的转发规则之前,还包括:
    制定或者获取所述预定的转发规则。
  7. 根据权利要求6所述的方法,其中,根据报文信息的目的地址配置对应的端口,包括:
    若目的地址为虚拟机地址时,则配置对应的外设组件互连扩展端口转发所述报文信息。
  8. 根据权利要求6所述的方法,其中,根据报文信息的目的地址 配置对应的端口,包括:
    若目的地址为外部设备地址时,则配置对应的网口转发所述报文信息。
  9. 一种服务器虚拟化网络共享的装置,所述装置包括:接收模块、虚拟转换模块、端口控制模块和发送模块;
    所述接收模块,设置为接收报文信息;
    所述虚拟转换模块,设置为解析所述报文信息获取目的地址,查询预定的转发规则;
    所述端口控制模块,设置为根据所述目的地址配置对应的端口;
    所述发送模块,设置为按照所述转发规则通过所配置的端口发送所述报文信息。
  10. 根据权利要求9所述的装置,其中,所述接收模块设置为接收报文信息,是指:
    所述接收模块设置为通过外设组件互连扩展通道接收虚拟机发送的报文信息。
  11. 根据权利要求9所述的装置,其中,所述接收模块设置为接收报文信息,是指:
    所述接收模块设置为通过网口接收外部设备发送的报文信息。
  12. 根据权利要求10所述的装置,其中,该装置还包括:虚拟可扩展局域网模块;
    所述虚拟可扩展局域网模块,设置为若解析的报文信息为隧道报文信息时,将所述隧道报文信息进行隧道封装。
  13. 根据权利要求11所述的装置,其中,该装置还包括:虚拟可扩展局域网模块;
    所述虚拟可扩展局域网模块,设置为若解析的报文信息为隧道报文信息时,将所述隧道报文信息进行解隧道封装。
  14. 根据权利要求12或13任一项所述的装置,其中,该装置还包括:转发控制模块;
    所述转发控制模块设置为制定或者获取所述预定的转发规则。
  15. 根据权利要求14所述的装置,其中,所述端口控制模块设置为根据报文信息的目的地址配置对应的端口,是指:
    所述端口控制模块设置为若目的地址为虚拟机地址时,则配置对应的外设组件互连扩展端口转发所述报文信息。
  16. 根据权利要求14所述的装置,其中,所述端口控制模块设置为根据报文信息的目的地址配置对应的端口,是指:
    所述端口控制模块设置为若目的地址为外部设备地址时,则配置对应的网口转发所述报文信息。
PCT/CN2017/070869 2016-01-26 2017-01-11 服务器虚拟化网络共享的装置和方法 WO2017128953A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610053042.0A CN106998347A (zh) 2016-01-26 2016-01-26 服务器虚拟化网络共享的装置和方法
CN201610053042.0 2016-01-26

Publications (1)

Publication Number Publication Date
WO2017128953A1 true WO2017128953A1 (zh) 2017-08-03

Family

ID=59397469

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/070869 WO2017128953A1 (zh) 2016-01-26 2017-01-11 服务器虚拟化网络共享的装置和方法

Country Status (2)

Country Link
CN (1) CN106998347A (zh)
WO (1) WO2017128953A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992426A (zh) * 2021-11-15 2022-01-28 北京知道未来信息技术有限公司 一种报文分发方法、装置、存储介质及电子设备
CN115277558A (zh) * 2022-07-29 2022-11-01 中国电信股份有限公司 报文发送方法、装置、计算机存储介质及电子设备
WO2024083008A1 (zh) * 2022-10-17 2024-04-25 维沃移动通信有限公司 数据传输方法、装置、系统、电子设备及介质

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600338A (zh) * 2018-03-30 2018-09-28 山东乾云启创信息科技股份有限公司 一种虚拟化环境中的文件共享方法、装置及系统
CN111064814B (zh) * 2018-10-16 2022-01-04 中国电信股份有限公司 基于PCP的VxLAN NAT穿越的方法、系统和网关
CN114070755B (zh) * 2020-07-29 2023-08-01 中移(苏州)软件技术有限公司 虚拟机网络流量确定方法、装置、电子设备和存储介质
WO2022261881A1 (zh) * 2021-06-17 2022-12-22 华为技术有限公司 一种网卡管理系统、报文处理方法及设备
CN114006859B (zh) * 2021-09-18 2023-05-30 深圳震有科技股份有限公司 一种报文转发方法、终端及计算机可读存储介质
CN113676421B (zh) * 2021-10-25 2022-01-28 之江实验室 一种基于PCIe的多端口网络报文收发方法
CN113992592B (zh) * 2021-10-27 2023-11-17 锐捷网络股份有限公司 一种报文转发方法、装置、端口引流系统及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103414626A (zh) * 2013-08-28 2013-11-27 盛科网络(苏州)有限公司 基于网络虚拟化的报文处理方法及装置
CN103905303A (zh) * 2012-12-28 2014-07-02 中国移动通信集团公司 一种虚拟机vm跨网迁移后的数据处理方法、装置及系统
US20140365622A1 (en) * 2013-06-06 2014-12-11 Cisco Technology, Inc. Software defined networking for storage area networks
CN105245456A (zh) * 2015-10-20 2016-01-13 浪潮(北京)电子信息产业有限公司 一种云服务器内卸载sdn虚拟网络功能的方法和系统

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150033222A1 (en) * 2013-07-25 2015-01-29 Cavium, Inc. Network Interface Card with Virtual Switch and Traffic Flow Policy Enforcement
US9152593B2 (en) * 2013-09-06 2015-10-06 Cisco Technology, Inc. Universal PCI express port
CN104468358B (zh) * 2013-09-25 2018-05-11 新华三技术有限公司 分布式虚拟交换机系统的报文转发方法及设备
US9912612B2 (en) * 2013-10-28 2018-03-06 Brocade Communications Systems LLC Extended ethernet fabric switches
US9253028B2 (en) * 2013-12-13 2016-02-02 International Business Machines Corporation Software-defined networking tunneling extensions
KR20160138448A (ko) * 2014-03-08 2016-12-05 다이아만티 인코포레이티드 통합 네트워크 및 스토리지를 위한 방법 및 시스템
CN103873374B (zh) * 2014-03-27 2017-08-11 新华三技术有限公司 虚拟化系统中的报文处理方法及装置
US9703743B2 (en) * 2014-03-31 2017-07-11 Juniper Networks, Inc. PCIe-based host network accelerators (HNAS) for data center overlay network
CN105207873B (zh) * 2015-08-31 2019-02-26 华为技术有限公司 一种报文处理方法和装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103905303A (zh) * 2012-12-28 2014-07-02 中国移动通信集团公司 一种虚拟机vm跨网迁移后的数据处理方法、装置及系统
US20140365622A1 (en) * 2013-06-06 2014-12-11 Cisco Technology, Inc. Software defined networking for storage area networks
CN103414626A (zh) * 2013-08-28 2013-11-27 盛科网络(苏州)有限公司 基于网络虚拟化的报文处理方法及装置
CN105245456A (zh) * 2015-10-20 2016-01-13 浪潮(北京)电子信息产业有限公司 一种云服务器内卸载sdn虚拟网络功能的方法和系统

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992426A (zh) * 2021-11-15 2022-01-28 北京知道未来信息技术有限公司 一种报文分发方法、装置、存储介质及电子设备
CN115277558A (zh) * 2022-07-29 2022-11-01 中国电信股份有限公司 报文发送方法、装置、计算机存储介质及电子设备
CN115277558B (zh) * 2022-07-29 2024-06-07 中国电信股份有限公司 报文发送方法、装置、计算机存储介质及电子设备
WO2024083008A1 (zh) * 2022-10-17 2024-04-25 维沃移动通信有限公司 数据传输方法、装置、系统、电子设备及介质

Also Published As

Publication number Publication date
CN106998347A (zh) 2017-08-01

Similar Documents

Publication Publication Date Title
WO2017128953A1 (zh) 服务器虚拟化网络共享的装置和方法
US11563669B2 (en) Method for implementing network virtualization and related apparatus and communications system
US20200204450A1 (en) Method, Apparatus, and System for Implementing Software-Defined Network SDN
US9231849B2 (en) Apparatus and method for controlling virtual switches
EP3525423A1 (en) Packet processing method in cloud computing system, host, and system
US10868856B2 (en) Network element and method of running applications in a cloud computing system
US20170163533A1 (en) Forwarding Packet In Stacking System
CN114745255B (zh) 硬件芯片、dpu、服务器、通信方法及相关装置
CN110430114B (zh) 一种虚拟路由器及实现sdn网络与传统ip网络互联的方法
US20120093035A1 (en) Unified fabric port
US10182132B2 (en) Method, apparatus and system for communication between OpenFlow device and IP network device
WO2015117411A1 (zh) 业务数据传输方法及装置
US11736403B2 (en) Systems and methods for enhanced autonegotiation
CN111954100A (zh) 一种接口升级方法、装置以及光网络单元管理方法、装置
WO2015188331A1 (zh) 转发控制方法、驱动器及sdn网络
EP3691210A1 (en) Flexible ethernet message forwarding method and apparatus
US10498637B2 (en) Switch processing method, controller, switch, and switch processing system
CN114362872A (zh) 一种基于tsn网络的多网协同边缘智能设备
CN106101205B (zh) 一种用于远程数据透传的透传云系统及其透传方法
KR20200046424A (ko) 가상머신들의 개선된 연결구조를 포함하는 호스트 장치
WO2016197798A1 (zh) 一种实现配置同步的方法、虚拟机及备机
WO2017088504A1 (zh) 一种虚拟化基站共享传输资源的方法及装置
CN102307143A (zh) 多模基站媒体面报文的处理方法和装置
WO2023035777A1 (zh) 网络配置方法、代理组件、控制器、电子设备和存储介质
CN101997820B (zh) 一种集中式串口重定向的方法和系统

Legal Events

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

Ref document number: 17743568

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17743568

Country of ref document: EP

Kind code of ref document: A1