[go: up one dir, main page]

CN114884810A - Network data transmission method, access method and storage medium based on SDN - Google Patents

Network data transmission method, access method and storage medium based on SDN Download PDF

Info

Publication number
CN114884810A
CN114884810A CN202210301446.2A CN202210301446A CN114884810A CN 114884810 A CN114884810 A CN 114884810A CN 202210301446 A CN202210301446 A CN 202210301446A CN 114884810 A CN114884810 A CN 114884810A
Authority
CN
China
Prior art keywords
gateway
network card
sdn
elastic network
elastic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210301446.2A
Other languages
Chinese (zh)
Other versions
CN114884810B (en
Inventor
赵福发
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Cloud Computing Ltd
Original Assignee
Alibaba Cloud Computing Ltd
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 Alibaba Cloud Computing Ltd filed Critical Alibaba Cloud Computing Ltd
Priority to CN202210301446.2A priority Critical patent/CN114884810B/en
Publication of CN114884810A publication Critical patent/CN114884810A/en
Application granted granted Critical
Publication of CN114884810B publication Critical patent/CN114884810B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]

Landscapes

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

Abstract

The invention discloses a network data transmission method, an access method and a storage medium based on an SDN. Wherein, the method comprises the following steps: controlling a first elastic network card for transmitting data to access a Software Defined Network (SDN); determining a gateway related to a first elastic network card in a Software Defined Network (SDN), wherein the elastic network card information of the first elastic network card is configured on the gateway; acquiring first configuration information between a gateway and a Virtual Private Cloud (VPC) system, wherein the first configuration information is used for representing that data are allowed to be transmitted between the gateway and the VPC system; and transmitting data associated with the first flexible network card between the gateway and the VPC system based on the first configuration information. The invention solves the technical problem of low efficiency of data transmission.

Description

基于SDN的网络数据传输方法、接入方法和存储介质SDN-based network data transmission method, access method and storage medium

技术领域technical field

本发明涉及计算机领域,具体而言,涉及一种基于SDN的网络数据传输方法、接入方法和存储介质。The present invention relates to the field of computers, and in particular, to an SDN-based network data transmission method, an access method and a storage medium.

背景技术Background technique

目前,在资源的分配与处理时,通常是网络功能虚拟化(Network FunctionsVirtualization,简称为NFV)部署在弹性云服务器(Elastic Cloud Server,简称为ECS)中,由于弹性网卡通常是依赖计算节点上的资源而部署的,因此,受限于节点上的资源,弹性网卡的设置数量有限,同时,该方法也无法实现弹性网卡与VPC网络之间的互通,存在数据传输的效率低的技术问题。At present, in the allocation and processing of resources, Network Functions Virtualization (NFV) is usually deployed in the Elastic Cloud Server (ECS), because the elastic network card usually depends on the computing node. Therefore, limited by the resources on the node, the number of elastic network cards is limited. At the same time, this method cannot realize the intercommunication between the elastic network card and the VPC network, and there is a technical problem of low data transmission efficiency.

针对上述的问题,目前尚未提出有效的解决方案。For the above problems, no effective solution has been proposed yet.

发明内容SUMMARY OF THE INVENTION

本发明实施例提供了一种基于SDN的网络数据传输方法、接入方法和存储介质,以至少解决数据传输的效率低的技术问题。Embodiments of the present invention provide an SDN-based network data transmission method, access method, and storage medium, so as to at least solve the technical problem of low data transmission efficiency.

根据本发明实施例的一个方面,提供了一种基于SDN的网络数据传输方法。该方法可以包括:控制用于传输数据的第一弹性网卡接入软件定义网络SDN;确定第一弹性网卡在软件定义网络SDN中所关联的网关,其中,第一弹性网卡的弹性网卡信息配置在网关上;获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据。According to an aspect of the embodiments of the present invention, an SDN-based network data transmission method is provided. The method may include: controlling a first elastic network card for data transmission to access a software-defined network SDN; determining a gateway associated with the first elastic network card in the software-defined network SDN, wherein the elastic network card information of the first elastic network card is configured in on the gateway; obtain the first configuration information between the gateway and the virtual private cloud VPC system, wherein the first configuration information is used to represent the data that is allowed to be transmitted between the gateway and the VPC system; based on the first configuration information, between the gateway and the VPC system Data associated with the first ENIC is transmitted.

根据本发明实施例的另一个方面,提供了一种基于SDN的网络数据接入方法。该方法可以包括:确定与客户端对应,且用于传输数据的第一弹性网卡;控制第一弹性网卡接入软件定义网络SDN;确定第一弹性网卡在软件定义网络SDN中所关联的网关,其中,第一弹性网卡的弹性网卡信息配置在网关上;获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据,以将客户端接入至VPC系统上的网络功能虚拟化NFV资源中。According to another aspect of the embodiments of the present invention, an SDN-based network data access method is provided. The method may include: determining a first elastic network card corresponding to the client and used to transmit data; controlling the first elastic network card to access the software-defined network SDN; determining a gateway associated with the first elastic network card in the software-defined network SDN, Wherein, the elastic network card information of the first elastic network card is configured on the gateway; the first configuration information between the gateway and the virtual private cloud VPC system is obtained, wherein the first configuration information is used to indicate that data transmission is allowed between the gateway and the VPC system; Based on the first configuration information, data associated with the first elastic network card is transmitted between the gateway and the VPC system, so as to access the client to the network function virtualization NFV resource on the VPC system.

根据本发明实施例的另一个方面,还提供了另一种基于SDN的网络数据传输方法。该方法可以包括:通过调用第一接口确定第一弹性网卡在接入的软件定义网络SDN中所关联的网关,其中,第一接口包括第一参数,第一参数的参数值为网关,第一弹性网卡的弹性网卡信息配置在网关上;获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;基于第一配置信息确定在网关和VPC系统之间待传输的第一弹性网卡所关联的数据;通过调用第二接口输出第一弹性网卡所关联的数据,其中,第二接口包括第二参数,第二参数的参数值为第一弹性网卡所关联的数据。According to another aspect of the embodiments of the present invention, another SDN-based network data transmission method is also provided. The method may include: determining a gateway associated with the first elastic network card in the accessed software-defined network SDN by invoking a first interface, wherein the first interface includes a first parameter, the parameter value of the first parameter is the gateway, and the first The elastic network card information of the elastic network card is configured on the gateway; the first configuration information between the gateway and the virtual private cloud VPC system is obtained, wherein the first configuration information is used to indicate that data transmission is allowed between the gateway and the VPC system; based on the first configuration The information determines the data associated with the first elastic network card to be transmitted between the gateway and the VPC system; the data associated with the first elastic network card is output by calling the second interface, wherein the second interface includes the second parameter, and the second parameter The parameter value is the data associated with the first ENIC.

根据本发明实施例的一个方面,提供了一种基于SDN的网络数据传输装置。该装置可以包括:第一控制单元,用于控制用于传输数据的第一弹性网卡接入软件定义网络SDN;第一确定单元,用于确定第一弹性网卡在软件定义网络SDN中所关联的网关,其中,第一弹性网卡的弹性网卡信息配置在网关上;第一获取单元,用于获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;第一传输单元,用于基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据。According to an aspect of the embodiments of the present invention, an SDN-based network data transmission apparatus is provided. The apparatus may include: a first control unit, configured to control the first elastic network card used for data transmission to access the software-defined network SDN; a first determination unit, configured to determine the associated first elastic network card in the software-defined network SDN a gateway, wherein the elastic network card information of the first elastic network card is configured on the gateway; the first obtaining unit is used to obtain the first configuration information between the gateway and the virtual private cloud VPC system, wherein the first configuration information is used to represent the gateway Data transmission is allowed between the gateway and the VPC system; the first transmission unit is configured to transmit the data associated with the first elastic network card between the gateway and the VPC system based on the first configuration information.

根据本发明实施例的另一个方面,提供了一种基于SDN的网络数据接入装置。该装置可以包括:第二确定单元,用于确定与客户端对应,且用于传输数据的第一弹性网卡;第二控制单元,用于控制第一弹性网卡接入软件定义网络SDN;第三确定单元,用于确定第一弹性网卡在软件定义网络SDN中所关联的网关,其中,第一弹性网卡的弹性网卡信息配置在网关上;第二获取单元,用于获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;第二传输单元,用于基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据,以将客户端接入至VPC系统上的网络功能虚拟化NFV资源中。According to another aspect of the embodiments of the present invention, an SDN-based network data access device is provided. The apparatus may include: a second determination unit for determining a first elastic network card corresponding to the client and used for transmitting data; a second control unit for controlling the first elastic network card to access a software-defined network SDN; a third a determining unit, configured to determine the gateway associated with the first elastic network card in the software-defined network SDN, wherein the elastic network card information of the first elastic network card is configured on the gateway; the second obtaining unit is configured to obtain the gateway and the virtual private cloud VPC The first configuration information between the systems, wherein the first configuration information is used to represent that data is allowed to be transmitted between the gateway and the VPC system; the second transmission unit is used to transmit the first configuration information between the gateway and the VPC system based on the first configuration information The data associated with the elastic network card is used to connect clients to the network function virtualization NFV resources on the VPC system.

根据本发明实施例的另一个方面,还提供了另一种基于SDN的网络数据传输装置。该装置可以包括:第四确定单元,用于通过调用第一接口确定第一弹性网卡在接入的软件定义网络SDN中所关联的网关,其中,第一接口包括第一参数,第一参数的参数值为网关,第一弹性网卡的弹性网卡信息配置在网关上;第三获取单元,用于获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;第五确定单元,用于基于第一配置信息确定在网关和VPC系统之间待传输的第一弹性网卡所关联的数据;输出单元,用于通过调用第二接口输出第一弹性网卡所关联的数据,其中,第二接口包括第二参数,第二参数的参数值为第一弹性网卡所关联的数据。According to another aspect of the embodiments of the present invention, another SDN-based network data transmission device is also provided. The apparatus may include: a fourth determining unit, configured to determine a gateway associated with the first elastic network card in the accessed software-defined network SDN by invoking a first interface, wherein the first interface includes a first parameter, and the value of the first parameter The parameter value is the gateway, and the elastic network card information of the first elastic network card is configured on the gateway; the third obtaining unit is used to obtain the first configuration information between the gateway and the virtual private cloud VPC system, wherein the first configuration information is used to represent Data transmission is allowed between the gateway and the VPC system; the fifth determining unit is used for determining the data associated with the first elastic network card to be transmitted between the gateway and the VPC system based on the first configuration information; the output unit is used for calling the first elastic network card The second interface outputs the data associated with the first elastic network card, wherein the second interface includes a second parameter, and the parameter value of the second parameter is the data associated with the first elastic network card.

根据本发明实施例的另一方面,还提供了一种计算机可读存储介质,计算机可读存储介质包括存储的程序,其中,在程序运行时控制存储介质所在设备执行上述任意一项的基于SDN的网络数据传输方法。According to another aspect of the embodiments of the present invention, a computer-readable storage medium is also provided, where the computer-readable storage medium includes a stored program, wherein, when the program runs, the device where the storage medium is located is controlled to execute any of the above-mentioned SDN-based network data transmission method.

根据本发明实施例的另一方面,还提供了一种处理器,处理器用于运行程序,其中,在程序运行时执行上述任意一项的基于SDN的网络数据传输方法。According to another aspect of the embodiments of the present invention, a processor is also provided, where the processor is configured to run a program, wherein any one of the foregoing SDN-based network data transmission methods is executed when the program runs.

根据本发明实施例的另一方面,还提供了一种基于SDN的网络数据传输系统,包括:处理器;存储器,与处理器相连接,用于为处理器提供处理以下处理步骤的指令:控制用于传输数据的第一弹性网卡接入软件定义网络SDN;确定第一弹性网卡在SDN中所关联的网关,其中,第一弹性网卡的弹性网卡信息配置在网关上;获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据。According to another aspect of the embodiments of the present invention, an SDN-based network data transmission system is also provided, including: a processor; a memory connected to the processor and configured to provide the processor with instructions for processing the following processing steps: controlling The first elastic network card used for data transmission is connected to the software-defined network SDN; the gateway associated with the first elastic network card in the SDN is determined, wherein the elastic network card information of the first elastic network card is configured on the gateway; the gateway and the virtual private cloud are obtained The first configuration information between the VPC systems, where the first configuration information is used to indicate that data transmission between the gateway and the VPC system is allowed; based on the first configuration information, the data associated with the first elastic network card is transmitted between the gateway and the VPC system .

根据本发明实施例的另一方面,还提供了一种基于SDN的网络数据接入系统。该基于SDN的网络数据传输设备包括:第一弹性网卡,连接于客户端;软件定义网络SDN中的网关,用于配置第一弹性网卡的弹性网卡信息;虚拟私有云VPC系统,用于基于与网关之间的第一配置信息接收第一弹性网卡所关联的数据,以将客户端接入至VPC系统上的网络功能虚拟化NFV资源中,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据。According to another aspect of the embodiments of the present invention, an SDN-based network data access system is also provided. The SDN-based network data transmission device includes: a first elastic network card, connected to the client; a gateway in the software-defined network SDN, used for configuring elastic network card information of the first elastic network card; a virtual private cloud VPC system, based on and The first configuration information between the gateways receives data associated with the first elastic network card, so as to access the client to the network function virtualization NFV resource on the VPC system, wherein the first configuration information is used to represent the gateway and the VPC system. Data transfer is allowed between them.

根据本发明实施例的另一方面,还提供了一种基于SDN的网络数据传输设备。该基于SDN的网络数据传输设备包括:网关,用于配置接入在软件定义网络SDN中的第一弹性网卡的弹性网卡信息;第三接口,与网关相连接,用于获取网关与虚拟私有云VPC系统之间的第一配置信息,且基于第一配置信息控制网关向VPC系统传输第一弹性网卡所关联的数据,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据。According to another aspect of the embodiments of the present invention, an SDN-based network data transmission device is also provided. The SDN-based network data transmission device includes: a gateway for configuring elastic network card information of a first elastic network card connected to the software-defined network SDN; a third interface, connected to the gateway, for obtaining the gateway and the virtual private cloud The first configuration information between the VPC systems, and based on the first configuration information, the gateway is controlled to transmit data associated with the first elastic network card to the VPC system, wherein the first configuration information is used to indicate that data transmission is allowed between the gateway and the VPC system.

在本发明实施例中,控制用于传输数据的第一弹性网卡接入软件定义网络SDN;确定第一弹性网卡在软件定义网络SDN中所关联的网关,其中,第一弹性网卡的弹性网卡信息配置在网关上;获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据。也就是说,本申请通过将第一弹性网卡部署在SDN网关上,其只受限于SDN网关资源,不占用计算节点的资源,且可以实现第一弹性网卡与VPC网络互通,从而实现了提高数据传输的效率的技术效果,解决了数据传输的效率低的技术问题。In the embodiment of the present invention, the first elastic network card used for data transmission is controlled to access the software-defined network SDN; the gateway associated with the first elastic network card in the software-defined network SDN is determined, wherein the elastic network card information of the first elastic network card Configure on the gateway; obtain first configuration information between the gateway and the virtual private cloud VPC system, where the first configuration information is used to indicate that data transmission between the gateway and the VPC system is allowed; based on the first configuration information, the gateway and the VPC system The data associated with the first elastic network card is transmitted between them. That is to say, in this application, by deploying the first elastic network card on the SDN gateway, it is only limited by the resources of the SDN gateway and does not occupy the resources of computing nodes, and the first elastic network card can be intercommunicated with the VPC network, thereby achieving improved performance. The technical effect of data transmission efficiency solves the technical problem of low data transmission efficiency.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the attached image:

图1是根据本发明实施例的一种基于SDN的网络数据传输方法的计算机终端(或移动设备)的硬件结构框图;1 is a hardware structural block diagram of a computer terminal (or mobile device) of an SDN-based network data transmission method according to an embodiment of the present invention;

图2是根据本发明实施例的一种基于SDN的网络数据传输方法的流程图;2 is a flowchart of a method for transmitting network data based on SDN according to an embodiment of the present invention;

图3是根据本发明实施例的一种基于SDN的网络数据接入方法的流程图;3 is a flowchart of an SDN-based network data access method according to an embodiment of the present invention;

图4是根据本发明实施例的另一种基于SDN的网络数据传输方法的流程图;4 is a flowchart of another SDN-based network data transmission method according to an embodiment of the present invention;

图5是根据相关技术中的一种多租户与NFV互通的示意图;FIG. 5 is a schematic diagram of interworking between a multi-tenant and NFV according to the related art;

图6是根据相关技术中的另一种多租户与NFV互通的示意图;6 is a schematic diagram of another multi-tenant and NFV interworking according to the related art;

图7是根据本发明实施例的一种基于网关弹性网卡来实现NFV接入的示意图;7 is a schematic diagram of implementing NFV access based on a gateway elastic network card according to an embodiment of the present invention;

图8是根据本发明实施例的一种多租户接入的示意图;8 is a schematic diagram of a multi-tenant access according to an embodiment of the present invention;

图9是根据本发明实施例的一种多租户分配隧道信息的示意图;9 is a schematic diagram of a multi-tenant allocation tunnel information according to an embodiment of the present invention;

图10是根据本发明实施例的一种NFV的弹性网卡直接与基础设施服务层直接互通的示意图;10 is a schematic diagram of an NFV elastic network card directly interworking with an infrastructure service layer according to an embodiment of the present invention;

图11是根据本发明实施例的一种基于SDN的网络数据传输装置的示意图;11 is a schematic diagram of an SDN-based network data transmission device according to an embodiment of the present invention;

图12是根据本发明实施例的一种基于SDN的网络数据接入装置的示意图;12 is a schematic diagram of an SDN-based network data access device according to an embodiment of the present invention;

图13是根据本发明实施例的另一种基于SDN的网络数据传输装置的示意图;13 is a schematic diagram of another SDN-based network data transmission apparatus according to an embodiment of the present invention;

图14是根据本发明实施例的一种计算机终端的结构框图。FIG. 14 is a structural block diagram of a computer terminal according to an embodiment of the present invention.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本发明方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分的实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the solutions of the present invention, 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 Embodiments are part of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本发明的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first", "second" and the like in the description and claims of the present invention and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It is to be understood that the data so used may be interchanged under appropriate circumstances such that the embodiments of the invention described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having" and any variations thereof, are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those expressly listed Rather, those steps or units may include other steps or units not expressly listed or inherent to these processes, methods, products or devices.

首先,在对本申请实施例进行描述的过程中出现的部分名词或术语适用于如下解释:First of all, some nouns or terms that appear in the process of describing the embodiments of the present application are suitable for the following explanations:

网络功能虚拟化(Network Functions Virtualization,简称为NFV),一种对于网络架构的概念,利用虚拟化技术,将网络节点的功能,分割成几个功能的区块,分别已软件方式实作,不在局限于硬件结构;Network Functions Virtualization (NFV for short), a concept for network architecture, uses virtualization technology to divide the functions of network nodes into several functional blocks, which are implemented in software, not in limited to the hardware structure;

软件定义网络(Software Defined Network,简称为SDN),是一种新型网络架构,它利用网络协议将路由器的控制平面从数据平面中分离,以软件的方式实现,从而使得将分散在各个网络设备上的控制平面集中化管理成为可能;Software Defined Network (SDN for short) is a new type of network architecture. It uses network protocols to separate the control plane of the router from the data plane and implements it in software, so that it can be dispersed on various network devices. The centralized management of the control plane becomes possible;

弹性网卡(Elastic Network Interface,简称为ENI),是绑定私有网络内云服务器的一种弹性网络接口,可在多个云服务器间自由迁移;The Elastic Network Interface (ENI) is an elastic network interface bound to a cloud server in a private network and can be freely migrated between multiple cloud servers;

网关(Gateway,简称为GW),又可以称为网间连接器,协议转换器,在网络层以上实现网络互连,是复杂的网络连接设备,仅用于两个高层协议不同的网络互连,本申请中特指SDN网关;Gateway (Gateway, referred to as GW), also known as inter-network connector, protocol converter, realizes network interconnection above the network layer, is a complex network connection device, only used for network interconnection of two different high-level protocols , in this application, it refers specifically to the SDN gateway;

虚拟私有云(Virtual Private Cloud,简称为VPC),是存在于共享或公有云中的私有云,可以为用户在云上申请的隔离的、私密的虚拟网络环境;Virtual Private Cloud (VPC for short) is a private cloud that exists in a shared or public cloud, and can be an isolated and private virtual network environment that users can apply for on the cloud;

租户(tenant),可以为系统或电脑运算资源的客户,可以为客户端。A tenant can be a client of the system or computer computing resources, and can be a client.

实施例1Example 1

根据本发明实施例,提供了一种基于SDN的网络数据传输方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to an embodiment of the present invention, an embodiment of an SDN-based network data transmission method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings may be executed in a computer system such as a set of computer-executable instructions. and, although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.

本申请实施例一所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。图1是根据本发明实施例的一种基于SDN的网络数据传输方法的计算机终端(或移动设备)的硬件结构框图。如图1所示,计算机终端10(或移动设备10)可以包括一个或多个(图中采用102a、102b,……,102n来示出)处理器(处理器可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器104、以及用于通信功能的传输模块106。除此以外,还可以包括:显示器、输入/输出接口(I/O接口)、通用串行总线(USB)端口(可以作为BUS总线的端口中的一个端口被包括)、网络接口、电源和/或相机。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,计算机终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. FIG. 1 is a hardware structural block diagram of a computer terminal (or mobile device) of an SDN-based network data transmission method according to an embodiment of the present invention. As shown in FIG. 1 , the computer terminal 10 (or the mobile device 10 ) may include one or more processors (102a, 102b, . A processing device such as an MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions. In addition, may also include: display, input/output interface (I/O interface), universal serial bus (USB) port (may be included as one of the ports of the BUS bus), network interface, power supply and/or or camera. Those of ordinary skill in the art can understand that the structure shown in FIG. 1 is only a schematic diagram, which does not limit the structure of the above electronic device. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1 , or have a different configuration than that shown in FIG. 1 .

应当注意到的是上述一个或多个处理器和/或其他信号处理电路在本文中通常可以被称为“基于SDN的网络数据传输电路”。该基于SDN的网络数据传输电路可以全部或部分的体现为软件、硬件、固件或其他任意组合。此外,基于SDN的网络数据传输电路可为单个独立的处理模块,或全部或部分的结合到计算机终端10(或移动设备)中的其他元件中的任意一个内。如本申请实施例中所涉及到的,该基于SDN的网络数据传输电路作为一种处理器控制(例如与接口连接的可变电阻终端路径的选择)。It should be noted that the one or more processors and/or other signal processing circuits described above may generally be referred to herein as "SDN-based network data transmission circuits". The SDN-based network data transmission circuit may be embodied in whole or in part as software, hardware, firmware or any other combination. Furthermore, the SDN-based network data transmission circuitry may be a single, stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computer terminal 10 (or mobile device). As involved in the embodiments of the present application, the SDN-based network data transmission circuit acts as a kind of processor control (eg, selection of a variable resistance termination path connected to an interface).

存储器104可用于存储应用软件的软件程序以及模块,如本发明实施例中的基于SDN的网络数据传输方法对应的程序指令/数据存储装置,处理器通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及基于SDN的网络数据传输,即实现上述的基于SDN的网络数据传输方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 104 can be used to store software programs and modules of application software, such as a program instruction/data storage device corresponding to the SDN-based network data transmission method in the embodiment of the present invention, the processor runs the software programs and modules stored in the memory 104 by running the software programs and modules. , so as to perform various functional applications and SDN-based network data transmission, that is, to implement the above-mentioned SDN-based network data transmission method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, memory 104 may further include memory located remotely from the processor, and these remote memories may be connected to computer terminal 10 through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

传输装置106用于经由一个网络接收或者发送数据。上述的网络具体实例可包括计算机终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。Transmission means 106 are used to receive or transmit data via a network. A specific example of the above-mentioned network may include a wireless network provided by a communication provider of the computer terminal 10 . In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (Radio Frequency, RF) module, which is used for wirelessly communicating with the Internet.

显示器可以例如触摸屏式的液晶显示器(LCD),该液晶显示器可使得用户能够与计算机终端10(或移动设备)的用户界面进行交互。The display may be, for example, a touch screen type liquid crystal display (LCD) that enables a user to interact with the user interface of the computer terminal 10 (or mobile device).

此处需要说明的是,在一些可选实施例中,上述图1所示的计算机设备(或移动设备)可以包括硬件元件(包括电路)、软件元件(包括存储在计算机可读介质上的计算机代码)、或硬件元件和软件元件两者的结合。应当指出的是,图1仅为特定具体实例的一个实例,并且旨在示出可存在于上述计算机设备(或移动设备)中的部件的类型。It should be noted here that, in some optional embodiments, the computer device (or mobile device) shown in FIG. 1 may include hardware elements (including circuits), software elements (including a computer stored on a computer-readable medium) code), or a combination of both hardware and software elements. It should be noted that FIG. 1 is only one example of a specific embodiment, and is intended to illustrate the types of components that may be present in a computer device (or mobile device) as described above.

在图1所示的运行环境下,本申请提供了如图2所示的基于SDN的网络数据传输方法。需要说明的是,该实施例的基于SDN的网络数据传输方法可以由图1所示实施例的移动终端执行。Under the operating environment shown in FIG. 1 , the present application provides the SDN-based network data transmission method shown in FIG. 2 . It should be noted that the SDN-based network data transmission method in this embodiment may be executed by the mobile terminal of the embodiment shown in FIG. 1 .

图2是根据本发明实施例的一种基于SDN的网络数据传输方法的流程图,如图2所示,该方法可以包括以下步骤:FIG. 2 is a flowchart of a method for transmitting network data based on SDN according to an embodiment of the present invention. As shown in FIG. 2 , the method may include the following steps:

步骤S202,控制用于传输数据的第一弹性网卡接入软件定义网络SDN。Step S202, controlling the first elastic network card used for data transmission to access the software-defined network SDN.

在本发明上述步骤S202提供的技术方案中,第一弹性网卡可以为网关弹性网卡(GW ENI),可以称为虚拟ENI,用于传输数据,可以控制该第一弹性网卡接入软件定义网络SDN,从而使得第一弹性网卡工作在SDN中,也即,该实施例为基于SDN实现的网络数据传输方法。In the technical solution provided by the above step S202 of the present invention, the first elastic network card may be a gateway elastic network card (GW ENI), which may be called a virtual ENI, used for data transmission, and can control the first elastic network card to access the software-defined network SDN , so that the first elastic network card works in the SDN, that is, this embodiment is a network data transmission method implemented based on the SDN.

步骤S204,确定第一弹性网卡在软件定义网络SDN中所关联的网关。Step S204, determining the gateway associated with the first elastic network card in the software-defined network SDN.

在本发明上述步骤S204提供的技术方案中,第一弹性网卡的弹性网卡信息配置在网关上,第一弹性网卡的位置信息存储在SDN网关上,确定第一弹性网卡在软件定义网络SDN中所关联的网关;网关可以为SDN网关;位置信息可以用于确定网关弹性网卡在哪个SDN网关。In the technical solution provided by the above step S204 of the present invention, the elastic network card information of the first elastic network card is configured on the gateway, the location information of the first elastic network card is stored on the SDN gateway, and it is determined that the first elastic network card is located in the software-defined network SDN. Associated gateway; the gateway can be an SDN gateway; the location information can be used to determine which SDN gateway the gateway elastic network card is on.

可选地,可以利用静态配置方式,通过SDN控制器等将网关弹性网卡的信息配置在SDN网关上,也可以利用动态配置方式,SDN网关自定义协议向SDN控制器、其它转发组件学习到网关弹性网卡,在此基础上,确定第一弹性网卡在软件定义网络SDN中所关联的网关,其中,与第一弹性网卡关联的网关可以为经过静态设置、动态设置配置有第一弹性网卡的网关。Optionally, the information of the gateway elastic network card can be configured on the SDN gateway through the SDN controller in the static configuration mode, or the SDN gateway custom protocol can be learned from the SDN controller and other forwarding components to the gateway in the dynamic configuration mode. Elastic network card, on this basis, determine the gateway associated with the first elastic network card in the software-defined network SDN, wherein the gateway associated with the first elastic network card may be statically or dynamically configured with the first elastic network card. .

可选地,第一弹性网卡可以通过静态配置,动态学习等方式,将第一弹性网卡在SDN网络中的位置信息配置在SDN网关上,确定第一弹性网卡在软件定义网络SDN中所关联的网关,需要说明的是,此处的配置方法包括但不限于静态配置,动态学习Optionally, the first elastic network card may configure the location information of the first elastic network card in the SDN network on the SDN gateway through static configuration, dynamic learning, etc., and determine the location information of the first elastic network card in the software-defined network SDN. Gateway, it should be noted that the configuration methods here include but are not limited to static configuration, dynamic learning

可选地,静态配置方式可以为通过SDN控制器等将网关弹性网卡的信息配置在SDN网关上;动态配置方式可以为SDN网关自定义协议向SDN控制器、其它转发组件学习到网关弹性网卡的方式。Optionally, the static configuration method may be to configure the information of the gateway elastic network card on the SDN gateway through the SDN controller, etc.; the dynamic configuration method may be to learn the information of the gateway elastic network card from the SDN controller and other forwarding components by customizing the protocol of the SDN gateway. Way.

步骤S206,获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据。Step S206: Obtain first configuration information between the gateway and the virtual private cloud VPC system, where the first configuration information is used to represent that data transmission between the gateway and the VPC system is allowed.

在本发明上述步骤S206提供的技术方案中,创建一个第一弹性网卡,第一弹性网卡在软件定义网络的信息配置在SDN网关上,确定第一弹性网卡在软件定义网络SND中所关联的网关,获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据,比如,可以为VPC 888192.168.1.1--->SDN网关,可以用于规定数据传输规则;VPC系统可以用VPC888表示,需要说明的是此处数字仅为举例说明,不做具体限制。In the technical solution provided by the above step S206 of the present invention, a first elastic network card is created, the information of the first elastic network card in the software-defined network is configured on the SDN gateway, and the gateway associated with the first elastic network card in the software-defined network SND is determined , to obtain the first configuration information between the gateway and the virtual private cloud VPC system, where the first configuration information is used to indicate that data transmission is allowed between the gateway and the VPC system, for example, it can be VPC 888192.168.1.1--->SDN gateway , which can be used to specify data transmission rules; the VPC system can be represented by VPC888. It should be noted that the numbers here are only examples and do not impose specific restrictions.

步骤S208,基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据。Step S208, based on the first configuration information, the data associated with the first elastic network card is transmitted between the gateway and the VPC system.

在本发明上述步骤S208提供的技术方案中,可以给第一弹性网卡分配一个隧道信息,存储在弹性网卡在软件定义网络SDN中所关联的网关中,隧道信息可以采用虚拟局域网扩展、通用路由封装(generic routing encapsulation,简称为gre)等方案进行配置,可以根据第一弹性网卡获取隧道信息,将隧道信息封装在的数据包、NFV回包等数据中,基于第一配置信息在网关和VPC系统之间进行传输,其中,隧道信息可以用于在VPC888系统的NFV里区分多客户端,可以与至少一客户端一对应,需要说明的是此处数字仅为举例说明,不做具体限制。In the technical solution provided by the above step S208 of the present invention, a tunnel information can be allocated to the first elastic network card and stored in the gateway associated with the elastic network card in the software-defined network SDN. The tunnel information can be extended by virtual local area network and general routing encapsulation. (generic routing encapsulation, referred to as gre) and other solutions for configuration, can obtain tunnel information according to the first elastic network card, encapsulate the tunnel information in data packets, NFV return packets and other data, based on the first configuration information in the gateway and VPC system The tunnel information can be used to distinguish multiple clients in the NFV of the VPC888 system, and can correspond to at least one client. It should be noted that the numbers here are only examples and do not impose specific limitations.

通过本申请上述步骤S202至步骤S208,确定第一弹性网卡在软件定义网络SDN中所关联的网关;获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据。也就是说,本申请通过将第一弹性网卡部署在SDN网关上,其只受限于SDN网关资源,不占用计算节点的资源,且可以实现第一弹性网卡与VPC网络互通,从而实现了提高数据传输的效率的技术效果,解决了数据传输的效率低的技术问题。Through the above steps S202 to S208 of the present application, the gateway associated with the first elastic network card in the software-defined network SDN is determined; the first configuration information between the gateway and the virtual private cloud VPC system is obtained, wherein the first configuration information is used for Indicates that data transmission is allowed between the gateway and the VPC system; based on the first configuration information, the data associated with the first elastic network card is transmitted between the gateway and the VPC system. That is to say, in this application, by deploying the first elastic network card on the SDN gateway, it is only limited by the resources of the SDN gateway and does not occupy the resources of computing nodes, and the first elastic network card can be intercommunicated with the VPC network, thereby achieving improved performance. The technical effect of data transmission efficiency solves the technical problem of low data transmission efficiency.

下面对该实施例的上述方法进行进一步地介绍。The above method of this embodiment will be further described below.

作为一种可选的实施方式,步骤S208,基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据包括:在VPC系统上确定与第一配置信息对应的网络功能虚拟化NFV资源;基于NFV资源在网关和VPC系统之间传输第一弹性网卡所关联的数据。As an optional implementation manner, in step S208, transmitting the data associated with the first elastic network card between the gateway and the VPC system based on the first configuration information includes: determining, on the VPC system, a network function virtual machine corresponding to the first configuration information NFV resources; based on NFV resources, the data associated with the first elastic network card is transmitted between the gateway and the VPC system.

在该实施例中,基于第一配置信息确定在VPC系统上与第一配置信息对应的网络功能虚拟化NFV资源,比如,基于VPC 888 192.168.1.1--->SDN网关规则,确定与VPC 888192.168.1.1--->SDN网关规则对应的NFV资源,基于NFV资源,在网关和VPC系统之间传输第一弹性网卡所关联的数据。In this embodiment, the network function virtualization NFV resource corresponding to the first configuration information on the VPC system is determined based on the first configuration information. .1.1--->NFV resources corresponding to SDN gateway rules, based on NFV resources, transmit the data associated with the first elastic network card between the gateway and the VPC system.

可选地,NFV的弹性网卡直接与基础设施服务层(Infrastructure as a Service,简称为IaaS)直接互通,第一弹性网卡在软件定义网络SDN中所关联的网关作为基础设施服务层设备,在插入第一弹性网卡后可以直接与NFC所在的VPC实现互通,在VPC系统上确定与第一配置信息对应的网络功能虚拟化NFV资源,当弹性网关(NAT网关)、虚拟私有云中建立的出口网关(VPN网关)等设备的功能需要在NFV上实现时,在SDN网关上配置对应的第一弹性网卡,基于NFV资源,在网关和VPC系统之间传输第一弹性网卡所关联的数据。Optionally, the elastic network card of NFV directly communicates with the infrastructure service layer (Infrastructure as a Service, IaaS for short), and the gateway associated with the first elastic network card in the software-defined network SDN is used as an infrastructure service layer device. After the first elastic network card can directly communicate with the VPC where the NFC is located, the network function virtualized NFV resources corresponding to the first configuration information are determined on the VPC system, when the elastic gateway (NAT gateway), the egress gateway established in the virtual private cloud When the functions of devices such as (VPN gateway) need to be implemented on NFV, configure the corresponding first elastic network card on the SDN gateway, and transmit the data associated with the first elastic network card between the gateway and the VPC system based on NFV resources.

作为一种可选的实施方式,确定与客户端对应的第一弹性网卡;步骤S204,确定第一弹性网卡在软件定义网络SDN中所关联的网关,包括:基于客户端与网关之间的第二配置信息,确定第一弹性网卡所处的网关,其中,第二配置信息用于表征客户端与网关之间允许传输数据。As an optional implementation manner, determine the first elastic network card corresponding to the client; step S204, determine the gateway associated with the first elastic network card in the software-defined network SDN, including: based on the first elastic network card between the client and the gateway The second configuration information is to determine the gateway where the first elastic network card is located, wherein the second configuration information is used to represent that data transmission is allowed between the client and the gateway.

在该实施例中,基于客户端与网关之间的第二配置信息,确定第一弹性网卡所处的网关,其中,第二配置信息可以用于表征客户端与网关之间允许传输数据,可以为VPC111 192.168.11.1--->SDN网关、VPC 222 192.168.22.1--->SDN网关等,需要说明的是,此处仅对第二配置信息做举例计算,不做具体限定;客户端可以为对应租户。In this embodiment, the gateway where the first elastic network card is located is determined based on the second configuration information between the client and the gateway, where the second configuration information may be used to indicate that data transmission is allowed between the client and the gateway, and may be It is VPC111 192.168.11.1--->SDN gateway, VPC 222 192.168.22.1--->SDN gateway, etc. It should be noted that only the second configuration information is calculated as an example here, and no specific limitation is made; the client can for the corresponding tenant.

可选地,为客户端(比如,租户)创建第二配置信息,通过第二配置信息(比如,VPC111 192.168.11.1--->SDN网关、VPC 222 192.168.22.1--->SDN网关),实现客户端与网关的互通,基于第二配置信息确定第一弹性网卡所处的网关。Optionally, create second configuration information for the client (for example, a tenant), through the second configuration information (for example, VPC111 192.168.11.1--->SDN gateway, VPC 222 192.168.22.1--->SDN gateway), Intercommunication between the client and the gateway is implemented, and the gateway where the first elastic network card is located is determined based on the second configuration information.

可选地,第二配置信息配置在SDN网络中的SDN网关上,可以基于客户端与网关之间的第二配置信息,确定第一弹性网卡所处的网关。Optionally, the second configuration information is configured on the SDN gateway in the SDN network, and the gateway where the first elastic network card is located may be determined based on the second configuration information between the client and the gateway.

作为一种可选的实施方式,基于网关的网关资源确定第一弹性网卡的数量。As an optional implementation manner, the number of the first elastic network adapters is determined based on gateway resources of the gateway.

在该实施例中,由于第一弹性网卡数量受限于网关资源,可以基于网关的网关资源的多少,确定第一弹性网卡的数量。In this embodiment, since the number of the first elastic network cards is limited by the gateway resources, the number of the first elastic network cards may be determined based on the number of gateway resources of the gateway.

可选地,可以基于网关的网关资源确定第一弹性网卡的数量,其中,由于第一弹性网卡不占用计算节点的资源,只受限于网关资源,因而,网关资源较多时,可以配置更多第一弹性网卡。Optionally, the number of the first elastic network card may be determined based on the gateway resources of the gateway, wherein, because the first elastic network card does not occupy the resources of the computing node and is only limited by the gateway resources, therefore, when there are many gateway resources, more The first elastic NIC.

相关技术中,通过弹性网卡跨VPC插拔技术,实现多个客户端接入到NFV,但是该方法在单虚拟机上可以插的网卡的数量严重受限,受限弹性云服务器的接口(PCI)地址数,单虚拟机可以插的网卡严重受限,不支持通过单弹性网卡实现多虚拟器(VM)接入进行多活互备,而本申请提出了一种基于网关的网关资源确定第一弹性网卡的数量的方法,由于第一弹性网卡不占用计算节点的资源,只受限于网关资源,而网关资源较多,因而基于网关的网关资源,可以确定更多的第一弹性网卡数量。In the related art, multiple clients can be connected to NFV through the cross-VPC plugging and unplugging technology of elastic network cards. However, the number of network cards that can be plugged in a single virtual machine is severely limited by this method, and the interface (PCI) of the elastic cloud server is limited. ) addresses, the network cards that can be inserted into a single virtual machine are severely limited, and multiple virtual machines (VM) access through a single elastic network card is not supported for multi-active and mutual backup. This application proposes a gateway-based gateway resource determination method. A method for the number of elastic network cards, since the first elastic network card does not occupy the resources of the computing node, it is only limited by the gateway resources, and there are many gateway resources, so based on the gateway resources of the gateway, more first elastic network cards can be determined. .

作为一种可选的实施方式,向第一弹性网卡分配标识信息,其中,标识信息用于在VPC系统上部署的NFV资源中识别第一弹性网卡对应的客户端;基于标识信息确定第一弹性网卡所关联的数据。As an optional implementation manner, assign identification information to the first elastic network card, where the identification information is used to identify the client corresponding to the first elastic network card in the NFV resources deployed on the VPC system; determine the first elastic network card based on the identification information Data associated with the network card.

在该实施例中,向客户端的第一弹性网卡分配标识信息,标识信息存储在网卡上,可以用于区分不同的客户端,NFV内可以基于标识信息确定不同的客户端,根据第一弹性网卡获取标识信息,将标识信息封装在数据包中,以达到基于表示信息确定第一弹性网卡所关联的数据,其中,标识信息可以为客户端的第一虚拟网卡分配的隧道信息,可以用于在VPC系统上部署的NFV资源中识别第一弹性网卡对应的客户端。In this embodiment, identification information is allocated to the first elastic network card of the client. The identification information is stored on the network card and can be used to distinguish different clients. Different clients can be determined in NFV based on the identification information. Obtain identification information, and encapsulate the identification information in a data packet, so as to determine the data associated with the first elastic network card based on the representation information, wherein the identification information can be the tunnel information allocated by the first virtual network card of the client, which can be used in the VPC The client corresponding to the first elastic network card is identified in the NFV resources deployed on the system.

可选地,每个客户端的第一虚拟网卡分配一个标识信息,将标识信息封装在数据包中并存储在网关上,其中,标识信息可以采用虚拟局域网扩展、通用路由封装等方式进行配置,可以为客户端1网关弹性网卡(gweni1)--->隧道信息1;客户端2网关弹性网卡(gweni2)--->隧道信息2,基于标识信息确定第一弹性网卡所关联的数据。Optionally, the first virtual network card of each client assigns a piece of identification information, and the identification information is encapsulated in a data packet and stored on the gateway, wherein the identification information can be configured by means of virtual local area network extension, general routing encapsulation, etc. For the client 1 gateway elastic network card (gweni1)--->tunnel information 1; the client 2 gateway elastic network card (gweni2)--->tunnel information 2, the data associated with the first elastic network card is determined based on the identification information.

可选地,标识信息中的隧道信息用于在VPC系统的NFV资源里标识客户端,用于区分多租户,比如,隧道信息可以用于标识是哪个租户,其中,隧道信息与租户一一对应。Optionally, the tunnel information in the identification information is used to identify the client in the NFV resource of the VPC system, and is used to distinguish multiple tenants. For example, the tunnel information can be used to identify which tenant it is, and the tunnel information corresponds to the tenant one-to-one. .

作为一种可选的实施方式,确定与客户端对应的第一弹性网卡,包括:为待接入NFV资源的多个客户端中的每个客户端,创建对应的第一弹性网卡。As an optional implementation manner, determining the first elastic network card corresponding to the client includes: creating a corresponding first elastic network card for each of the multiple clients to be accessed to the NFV resource.

在该实施例中,为待接入NFV资源的多个客户端中的每个客户端,创建对应的第一弹性网卡,以确定与客户端对应的第一弹性网卡。In this embodiment, a corresponding first elastic network card is created for each of the multiple clients to be accessed to the NFV resource, so as to determine the first elastic network card corresponding to the client.

可选地,为每个租户创建一个第一弹性网卡,将为每个租户创建的第一弹性网卡在SDN网络中的位置信息配置在SDN网关上。Optionally, a first elastic network card is created for each tenant, and the location information of the first elastic network card created for each tenant in the SDN network is configured on the SDN gateway.

作为一种可选的实施方式,基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据,包括:基于第一配置信息在网关和VPC系统上的第二弹性网卡之间,传输第一弹性网卡所关联的数据。As an optional implementation manner, transmitting the data associated with the first elastic network card between the gateway and the VPC system based on the first configuration information includes: based on the first configuration information, between the gateway and the second elastic network card on the VPC system During this time, the data associated with the first elastic network card is transmitted.

在该实施例中,第二弹性网卡可以直接与基础设施服务层互通,其中,第二弹性网卡可以用eni001表示,可以为NFV中的弹性网卡;网关作为基础设施服务层的设备,插入第二弹性网卡后可以直接与NFV所在VPC实现互通,在网关上配置对应的第二弹性网卡,可以基于第一配置信息在网关和VPC系统上的第二弹性网卡之间,传输第一弹性网卡所关联的数据。In this embodiment, the second elastic network card can directly communicate with the infrastructure service layer, wherein the second elastic network card can be represented by eni001, which can be an elastic network card in NFV; as a device of the infrastructure service layer, the gateway is inserted into the second elastic network card. After the ENIC can directly communicate with the VPC where NFV is located, configure the corresponding second ENIC on the gateway, and transmit the information associated with the first ENIC between the gateway and the second ENIC on the VPC system based on the first configuration information. The data.

可选地,可以基于第一配置信息(比如,VPC 888 192.168.1.1--->SDN网关)将第一弹性网卡所关联的数据传输在网关和VPC系统上的第二弹性网卡之间进行传输。Optionally, based on the first configuration information (for example, VPC 888 192.168.1.1--->SDN gateway), the data associated with the first elastic network card may be transmitted between the gateway and the second elastic network card on the VPC system. .

作为一种可选的实施方式,在SDN中获取第二弹性网卡的地址信息;基于地址信息在VPC系统上确定第二弹性网卡。As an optional implementation manner, the address information of the second elastic network card is obtained in the SDN; the second elastic network card is determined on the VPC system based on the address information.

在该实施例中,在SDN中获取第二弹性网卡的地址信息,基于地址信息在VPC系统上确定第二弹性网卡,其中,地址信息可以类似网络转发中的介质访问控制地址(MediaAccess Control,简称为MAC)。In this embodiment, the address information of the second elastic network card is obtained in the SDN, and the second elastic network card is determined on the VPC system based on the address information, wherein the address information may be similar to the media access control address (Media Access Control, referred to as the media access control address in network forwarding). for MAC).

可选地,每个第二弹性网卡在SDN网络中都有位置信息,类似网络转发中的介质访问控制地址,基于地址信息在SDN网关上配置对应的第二弹性网卡。Optionally, each second elastic network card has location information in the SDN network, similar to the media access control address in network forwarding, and the corresponding second elastic network card is configured on the SDN gateway based on the address information.

作为一种可选的实施方式,基于第一配置信息在网关和VPC系统上的第二弹性网卡之间,传输第一弹性网卡所关联的数据,包括:基于第一配置信息在网关和第二弹性网卡之间,经由第三弹性网卡传输第一弹性网卡所关联的数据,其中,第三弹性网卡部署在VPC系统上。As an optional implementation manner, transmitting data associated with the first elastic network card between the gateway and the second elastic network card on the VPC system based on the first configuration information includes: transmitting data associated with the first elastic network card between the gateway and the second elastic network card based on the first configuration information Between the elastic network cards, data associated with the first elastic network card is transmitted via a third elastic network card, where the third elastic network card is deployed on the VPC system.

在该实施例中,基于第一配置信息在网关和第二弹性网卡之间,经由第三弹性网卡传输第一弹性网卡所关联的数据,其中,第三弹性网卡可以用gweni888表示,可以为部署在VPC系统上的网关弹性网卡。In this embodiment, based on the first configuration information, the data associated with the first elastic network card is transmitted between the gateway and the second elastic network card via the third elastic network card, wherein the third elastic network card may be represented by gweni888, which may be a deployment Gateway ENIC on the VPC system.

可选地,第一弹性网卡所关联的数据发送至第三弹性网卡,第三弹性网卡根据第二弹性网卡的位置信息将客户端信息封闭在数据包中,发送到SDN网关,SDN网关根据客户端的路由器找到第二弹性网卡,并根据第二弹性网卡获取隧道信息,将该隧道信息封装在数据包中,外层的客户端信息修改为系统VPC,然后发送给NFV所在的虚拟机中,NFV将带有第二弹性网卡所关联的数据通过第二弹性网卡的位置信息回包给第二弹性网卡对应的SDN网关中。Optionally, the data associated with the first elastic network card is sent to the third elastic network card, and the third elastic network card encapsulates the client information in the data packet according to the location information of the second elastic network card, and sends it to the SDN gateway. The router at the end finds the second elastic network card, obtains the tunnel information according to the second elastic network card, encapsulates the tunnel information in a data packet, modifies the outer client information to the system VPC, and sends it to the virtual machine where the NFV is located. The data associated with the second elastic network card is sent back to the SDN gateway corresponding to the second elastic network card through the location information of the second elastic network card.

本发明实施例还提供了一种基于SDN的网络数据接入方法,下面对其进行进一步介绍。The embodiment of the present invention also provides an SDN-based network data access method, which will be further introduced below.

图3是根据本发明实施例的一种基于SDN的网络数据接入方法的流程图,如图3所示,该方法可以包括以下步骤:FIG. 3 is a flowchart of a method for accessing network data based on SDN according to an embodiment of the present invention. As shown in FIG. 3 , the method may include the following steps:

步骤S302,确定与客户端对应,且用于传输数据的第一弹性网卡。Step S302, determining a first elastic network card corresponding to the client and used for data transmission.

在本发明上述步骤S302提供的技术方案中,为每个客户端创建一个第一弹性网卡,其中,可以通过静态配置,动态学习等方式,将第一弹性网卡在SDN网络中的位置信息配置在SDN网关上。In the technical solution provided by the above step S302 of the present invention, a first elastic network card is created for each client, wherein the location information of the first elastic network card in the SDN network can be configured in the SDN network through static configuration, dynamic learning, etc. on the SDN gateway.

可选地,为每个客户端创建一个第一弹性网卡,可以按照VPC 111192.168.11.1--->SDN网关、VPC 222 192.168.22.1--->SDN网关等规则,将第一弹性网卡在SDN网络中的位置信息配置在SDN网关上。Optionally, to create a first elastic network card for each client, you can follow the rules of VPC 111192.168.11.1--->SDN gateway, VPC 222 192.168.22.1--->SDN gateway and other rules, put the first elastic network card in the SDN The location information in the network is configured on the SDN gateway.

可选地,静态配置方式可以为通过SDN控制器等将网关弹性网卡的信息配置在SDN网关上;动态配置方式可以为SDN网关自定义协议向SDN控制器、其它转发组件学习到网关弹性网卡的方式。Optionally, the static configuration method may be to configure the information of the gateway elastic network card on the SDN gateway through the SDN controller, etc.; the dynamic configuration method may be to learn the information of the gateway elastic network card from the SDN controller and other forwarding components by customizing the protocol of the SDN gateway. Way.

步骤S304,控制第一弹性网卡接入软件定义网络SDN。Step S304, controlling the first elastic network card to access the software-defined network SDN.

在本发明上述步骤S304提供的技术方案中,第一弹性网卡可以为网关弹性网卡(GW ENI),用于传输数据,在确定与客户端对应,且用于传输数据的第一弹性网卡之后,该实施例可以控制该第一弹性网卡接入软件定义网络SDN,从而使得第一弹性网卡工作在SDN中。In the technical solution provided by the above step S304 of the present invention, the first elastic network card may be a gateway elastic network card (GW ENI), which is used for data transmission. After determining the first elastic network card corresponding to the client and used for data transmission, This embodiment can control the first elastic network card to access the software-defined network SDN, so that the first elastic network card works in the SDN.

步骤S306,确定第一弹性网卡在软件定义网络SDN中所关联的网关。Step S306: Determine the gateway associated with the first elastic network card in the software-defined network SDN.

在本发明上述步骤S306提供的技术方案中,第一弹性网卡的位置信息存储在SDN网关上,确定第一弹性网卡在软件定义网络SDN中所关联的网关,其中,第一弹性网卡可以为网关弹性网卡;网关可以为SDN网关;位置信息可以用于确定网关弹性网卡在哪个SDN网关。In the technical solution provided by the above step S306 of the present invention, the location information of the first elastic network card is stored on the SDN gateway, and the gateway associated with the first elastic network card in the software-defined network SDN is determined, wherein the first elastic network card may be a gateway. Elastic network card; the gateway can be an SDN gateway; the location information can be used to determine which SDN gateway the gateway elastic network card is on.

可选地,可以利用静态配置方式,通过SDN控制器等将网关弹性网卡的信息配置在SDN网关上,也可以利用动态配置方式,SDN网关自定义协议向SDN控制器、其它转发组件学习到网关弹性网卡,在此基础上,确定第一弹性网卡在软件定义网络SDN中所关联的网关,其中,与第一弹性网卡关联的网关可以为经过静态设置、动态设置配置有第一弹性网卡的网关。Optionally, the information of the gateway elastic network card can be configured on the SDN gateway through the SDN controller by using the static configuration method, or the SDN gateway custom protocol can be learned from the SDN controller and other forwarding components to the gateway by using the dynamic configuration method. The elastic network card, and on this basis, determine the gateway associated with the first elastic network card in the software-defined network SDN, wherein the gateway associated with the first elastic network card may be a gateway configured with the first elastic network card through static settings and dynamic settings .

步骤S308,获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据。Step S308: Acquire first configuration information between the gateway and the virtual private cloud VPC system, where the first configuration information is used to indicate that data transmission is allowed between the gateway and the VPC system.

在本发明上述步骤S308提供的技术方案中,创建一个第一弹性网卡,第一弹性网卡在软件定义网络的信息配置在SDN网关上,确定第一弹性网卡在软件定义网络SND中所关联的网关,获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据,比如,可以为VPC 888192.168.1.1--->SDN网关,可以用于规定数据传输规则;VPC系统可以用VPC888、VPC111等表示,需要说明的是此处数字仅为举例说明,不做具体限制。In the technical solution provided by the above step S308 of the present invention, a first elastic network card is created, the information of the first elastic network card in the software-defined network is configured on the SDN gateway, and the gateway associated with the first elastic network card in the software-defined network SND is determined , to obtain the first configuration information between the gateway and the virtual private cloud VPC system, where the first configuration information is used to indicate that data transmission is allowed between the gateway and the VPC system, for example, it can be VPC 888192.168.1.1--->SDN gateway , which can be used to specify data transmission rules; the VPC system can be represented by VPC888, VPC111, etc. It should be noted that the numbers here are only examples and do not impose specific restrictions.

可选地,第一弹性网卡在软件定义网络中的位置信息配置在SDN网关上,确定第一弹性网卡在软件定义网络SDN中所关联的网关,SDN网关配置第一配置信息,获取网关虚拟私有云VPC系统之间的第一配置信息,基于第一配置信息网关与VPC系统之间传输数据。Optionally, the location information of the first elastic network card in the software-defined network is configured on the SDN gateway, the gateway associated with the first elastic network card in the software-defined network SDN is determined, the SDN gateway is configured with the first configuration information, and the gateway virtual private The first configuration information between the cloud VPC systems, based on the first configuration information, transmits data between the gateway and the VPC system.

步骤S310,基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据,以将客户端接入至VPC系统上的网络功能虚拟化NFV资源中。Step S310, based on the first configuration information, transmit the data associated with the first elastic network card between the gateway and the VPC system, so as to connect the client to the network function virtualization NFV resource on the VPC system.

在本发明上述步骤S310提供的技术方案中,可以给第一弹性网卡分配一个隧道信息,存储在弹性网卡在软件定义网络SDN中所关联的网关中,隧道信息可以采用虚拟局域网扩展、通用路由封装等方案进行配置,可以根据第一弹性网卡获取隧道信息,将隧道信息封装在的数据包、NFV回包等数据中,基于第一配置信息在网关和VPC系统之间进行传输,以达到将客户端接入至VPC系统上的网络功能虚拟化NFV资源中的目的,其中,隧道信息可以用于在VPC888系统的NFV里区分多客户端,可以与至少一客户端一一对应,需要说明的是此处数字仅为举例说明,不做具体限制。In the technical solution provided by the above step S310 of the present invention, a tunnel information can be allocated to the first elastic network card and stored in the gateway associated with the elastic network card in the software-defined network SDN. The tunnel information can be extended by virtual local area network and general routing encapsulation. It can obtain tunnel information according to the first elastic network card, encapsulate the tunnel information in data packets, NFV return packets and other data, and transmit it between the gateway and the VPC system based on the first configuration information, so as to achieve customer The purpose of accessing the network function virtualized NFV resources on the VPC system, where the tunnel information can be used to distinguish multiple clients in the NFV of the VPC888 system, and can correspond to at least one client one-to-one. It should be noted that The numbers here are for illustration only and not for specific limitations.

可选地,基于第一配置信息将客户端的信息封闭在数据包中,发送至SDN网关根据客户端确定第一弹性网卡所关联的数据,将该第一弹性网卡所关联的数据封装在数据包中,外层的客户端信息修改为系统VPC,然后发送网络功能虚拟化NFV资源中。Optionally, the information of the client is enclosed in a data packet based on the first configuration information, and sent to the SDN gateway to determine the data associated with the first elastic network card according to the client, and encapsulate the data associated with the first elastic network card in the data packet. , the outer client information is modified to the system VPC, and then sent to the network function virtualization NFV resource.

可选地,NFV将第一弹性网卡所关联的数据包通过第一弹性网卡和第二弹性网卡的位置信息回包给第一弹性网卡和第二弹性网卡对应的SDN网关,SDN网关根据隧道信息找到对应的客户端VPC信息,将客户端信息封装在数据包中,确定客户端路由,转发给对应的客户端。Optionally, NFV returns the data packets associated with the first elastic network card to the SDN gateways corresponding to the first elastic network card and the second elastic network card through the location information of the first elastic network card and the second elastic network card, and the SDN gateway according to the tunnel information Find the corresponding client VPC information, encapsulate the client information in the data packet, determine the client route, and forward it to the corresponding client.

通过本申请上述步骤S302至步骤S310,确定与客户端对应的第一弹性网卡;确定第一弹性网卡在软件定义网络SDN中所关联的网关;获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据,以将客户端接入至VPC系统上的网络功能虚拟化NFV资源中。也就是说,本申请通过将第一弹性网卡部署在SDN网关上,其只受限于SDN网关资源,不占用计算节点的资源,且可以实现第一弹性网卡与VPC网络互通,从而实现了提高数据传输的效率的技术效果,解决了数据传输的效率低的技术问题。Through the above steps S302 to S310 of the present application, the first elastic network card corresponding to the client is determined; the gateway associated with the first elastic network card in the software-defined network SDN is determined; the first elastic network card between the gateway and the virtual private cloud VPC system is obtained. Configuration information, where the first configuration information is used to represent data that is allowed to be transmitted between the gateway and the VPC system; based on the first configuration information, the data associated with the first elastic network card is transmitted between the gateway and the VPC system to connect the client into the network function virtualization NFV resources on the VPC system. That is to say, in this application, by deploying the first elastic network card on the SDN gateway, it is only limited by the resources of the SDN gateway and does not occupy the resources of computing nodes, and the first elastic network card can be intercommunicated with the VPC network, thereby achieving improved performance. The technical effect of data transmission efficiency solves the technical problem of low data transmission efficiency.

本发明实施例还提供了一种基于SDN的网络数据传输方法。The embodiment of the present invention also provides an SDN-based network data transmission method.

图4是根据本发明实施例的一种基于SDN的网络数据传输方法的流程图,如图4所示,该方法可以包括以下步骤。FIG. 4 is a flowchart of a method for transmitting network data based on SDN according to an embodiment of the present invention. As shown in FIG. 4 , the method may include the following steps.

步骤S402,通过调用第一接口确定第一弹性网卡在接入的软件定义网络SDN中所关联的网关,其中,第一接口包括第一参数,第一参数的参数值为网关。Step S402: Determine the gateway associated with the first elastic network card in the accessed software-defined network SDN by invoking a first interface, where the first interface includes a first parameter, and the parameter value of the first parameter is the gateway.

在本发明上述步骤S402提供的技术方案中,第一弹性网卡的弹性网卡信息配置在网关上。In the technical solution provided by the above step S402 of the present invention, the elastic network card information of the first elastic network card is configured on the gateway.

在该实施例中,第一接口可以是服务器与客户端之间进行数据交互的接口。客户端可以确定第一弹性网卡在软件定义网络SDN中所关联的网关并传入第一接口,作为第一接口的一个第一参数,实现确定第一弹性网卡在软件定义网络SDN中所关联的网关的目的。In this embodiment, the first interface may be an interface for data interaction between the server and the client. The client can determine the gateway associated with the first elastic network card in the software-defined network SDN and transmit it to the first interface as a first parameter of the first interface, so as to realize the determination of the gateway associated with the first elastic network card in the software-defined network SDN. The purpose of the gateway.

步骤S404,获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据。Step S404: Obtain first configuration information between the gateway and the virtual private cloud VPC system, where the first configuration information is used to represent that data transmission is allowed between the gateway and the VPC system.

步骤S406,基于第一配置信息确定在网关和VPC系统之间待传输的第一弹性网卡所关联的数据。Step S406, based on the first configuration information, determine the data associated with the first elastic network card to be transmitted between the gateway and the VPC system.

步骤S408,通过调用第二接口输出第一弹性网卡所关联的数据,其中,第二接口包括第二参数,第二参数的参数值为第一弹性网卡所关联的数据。Step S408 , output the data associated with the first elastic network card by calling the second interface, wherein the second interface includes a second parameter, and the parameter value of the second parameter is the data associated with the first elastic network card.

在本发明上述步骤S408提供的技术方案中,第二接口可以是服务器与客户端之间进行数据交互的接口,服务器可以通过调用第二接口输出第一弹性网卡所关联的数据,作为第二接口的一个参数,实现输出第一弹性网卡所关联的数据的目的。可选地,平台通过调用第二接口输出第一弹性网卡所关联的数据,其中,第二接口用于输出第一弹性网卡所关联的数据。In the technical solution provided in the above step S408 of the present invention, the second interface may be an interface for data interaction between the server and the client, and the server may output the data associated with the first elastic network card by calling the second interface as the second interface is a parameter to achieve the purpose of outputting the data associated with the first elastic network card. Optionally, the platform outputs data associated with the first elastic network card by invoking a second interface, where the second interface is used to output data associated with the first elastic network card.

在本发明实施例中,本申请通过调用第一接口确定第一弹性网卡在软件定义网络SDN中所关联的网关,其中,第一接口包括第一参数,第一参数的参数值为网关;获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;基于第一配置信息确定在网关和VPC系统之间待传输的第一弹性网卡所关联的数据;通过调用第二接口输出第一弹性网卡所关联的数据,其中,第二接口包括第二参数,第二参数的参数值为第一弹性网卡所关联的数据。也就是说,本申请通过将第一弹性网卡部署在SDN网关上,其只受限于SDN网关资源,不占用计算节点的资源,且可以实现第一弹性网卡与VPC网络互通,从而实现了提高数据传输的效率的技术效果,解决了数据传输的效率低的技术问题。In the embodiment of the present invention, the present application determines the gateway associated with the first elastic network card in the software-defined network SDN by invoking the first interface, wherein the first interface includes a first parameter, and the parameter value of the first parameter is the gateway; obtain The first configuration information between the gateway and the virtual private cloud VPC system, where the first configuration information is used to represent data that is allowed to be transmitted between the gateway and the VPC system; based on the first configuration information, the data to be transmitted between the gateway and the VPC system is determined The data associated with the first elastic network card; output the data associated with the first elastic network card by calling the second interface, wherein the second interface includes a second parameter, and the parameter value of the second parameter is the data associated with the first elastic network card. That is to say, in this application, by deploying the first elastic network card on the SDN gateway, it is only limited by the resources of the SDN gateway and does not occupy the resources of computing nodes, and the first elastic network card can be intercommunicated with the VPC network, thereby achieving improved performance. The technical effect of data transmission efficiency solves the technical problem of low data transmission efficiency.

实施例2Example 2

下面对该实施例的上述方法的优选实施方式进行进一步介绍,具体以基于一种SDN网络下基于网卡弹性网关的NFV接入的方法进行举例说明。The preferred implementation of the above method in this embodiment will be further introduced below, and a method for NFV access based on a network card elastic gateway in an SDN network will be specifically described as an example.

当前,NFV部署在ECS中,一般通过弹性网卡的方案实现NFV实例与客户端实例互通,但该方案存在以下问题:受限于弹性网卡的实现,依赖计算节点上的资源,弹性网卡的设置数量受限;在部分场景中,NFV实现的是基础设施服务层网络的能力,直接和基础设施服务层互通,而当前的NFV接入无法实现该场景。Currently, NFV is deployed in ECS. Generally, NFV instances and client instances can communicate with each other through the solution of elastic network cards. However, this solution has the following problems: limited by the implementation of elastic network cards, dependent on resources on computing nodes, and the number of elastic network cards. Restricted; in some scenarios, NFV implements the capabilities of the infrastructure service layer network and directly communicates with the infrastructure service layer, and the current NFV access cannot implement this scenario.

为解决上述问题,本申请提供了一种多租户方案,图5是根据本发明实施例的一种多租户与NFV互通的示意图,如图5所示,通过弹性网卡跨VPC插拔技术,实现多个客户端接入到NFV,但是该方法在单虚拟机上可以插的网卡的数量严重受限,受限弹性云服务器的接口(PCI)地址数,单虚拟机可以插的网卡严重受限,不支持通过单弹性网卡实现多虚拟器(VM)接入进行多活互备。In order to solve the above problems, the present application provides a multi-tenant solution. FIG. 5 is a schematic diagram of a multi-tenant and NFV interworking according to an embodiment of the present invention. As shown in FIG. Multiple clients connect to NFV, but this method severely limits the number of NICs that can be inserted into a single virtual machine, the number of PCI addresses of the elastic cloud server, and the NICs that can be inserted into a single virtual machine. , does not support multiple virtual machine (VM) access through a single elastic NIC for multi-active and mutual backup.

本申请还提供了另一种多租户方案,图6是根据本发明实施例的另一种多租户与NFV互通的示意图,如图6所示,NFV部署在弹性云服务器中,通过弹性网卡的端口汇聚(ENITrunking)技术实现多租户间隔离,通过弹性网卡的端口键合(ENI Bonding)技术实现多个NFV虚拟机的接入,虽然该方法能够实现NFV的高可靠接入,同时能够借用虚拟化网卡的能力,实现服务质量(Quality of service,简称为Qos),控制访问列表(access controllist,简称为acl)等,但是,由于端口汇聚技术受限于虚拟局域网(virtual local areanetwork,简称为vlan)数只有4096个和计算节点的虚拟化资源的限制,可以支持的租户数目有限;在某些场景下,NFV实现的是基础设施服务层网络的能力,直接和基础设施服务层互通,该方案不支持NFV和基础设施服务层直接互通。The present application also provides another multi-tenant solution. FIG. 6 is a schematic diagram of another multi-tenant and NFV interworking according to an embodiment of the present invention. As shown in FIG. 6, NFV is deployed in an elastic cloud server, and the The port trunking (ENITrunking) technology realizes isolation between multiple tenants, and the ENI Bonding technology of the elastic network card is used to realize the access of multiple NFV virtual machines. However, due to the port aggregation technology is limited by the virtual local area network (virtual local area network, referred to as vlan) The number of ) is only 4096 and the number of virtualized resources of computing nodes is limited, and the number of tenants that can be supported is limited; in some scenarios, NFV implements the network capabilities of the infrastructure service layer and directly communicates with the infrastructure service layer. Direct interworking between NFV and the infrastructure service layer is not supported.

本申请提出了一种基于网关弹性网卡来实现NFV接入的方法,图7是根据本发明实施例的一种基于网关弹性网卡来实现NFV接入的示意图,如图7所示,网关弹性网卡的位置信息可以通过静态设置、动态学习等方式设置在SDN网关上,其中,静态配置方式可以为通过SDN控制器等将网关弹性网卡的信息配置在SDN网关上;动态配置方式可以为SDN网关自定义协议向SDN控制器、其它转发组件学习到网关弹性网卡的方式;位置信息可以用于确定网关弹性网卡在哪个SDN网关,通过配置规则(比如,VPC 888 192.168.1.1--->SDN网关规则),以实现系统网关弹性网卡与NFV资源的VPC网络(比如,图7中的VPC888)的互通。This application proposes a method for implementing NFV access based on a gateway elastic network card. FIG. 7 is a schematic diagram of implementing NFV access based on a gateway elastic network card according to an embodiment of the present invention. As shown in FIG. 7 , the gateway elastic network card The location information can be set on the SDN gateway through static setting, dynamic learning, etc. The static configuration method can be configuring the information of the gateway elastic network card on the SDN gateway through the SDN controller; the dynamic configuration method can be the SDN gateway automatically Define the way the protocol learns the gateway ENIC from the SDN controller and other forwarding components; the location information can be used to determine which SDN gateway the gateway ENIC is in, by configuring rules (for example, VPC 888 192.168.1.1--->SDN gateway rules ) to realize the intercommunication between the elastic network card of the system gateway and the VPC network of NFV resources (for example, VPC888 in Figure 7).

可选地,该方法并不需要通过ENI来区分多客户端,图8是根据本发明实施例的一种多租户接入的示意图,如图8所示,当多客户端接入时,为每个客户端创建一个网关弹性网卡,网关弹性网卡的位置信息可以通过静态设置、动态学习等方式设置在SDN网关上,由于网关弹性网卡不占用计算节点的资源,只受限于SDN网关资源,而由于SDN网关资源较多,所以可以配置更多,通过配置规则(比如,VPC111192.168.11.1--->SDN网关、VPC 222192.168.22.1--->SDN网关),以实现系统客户端与SDN网关的互通。Optionally, the method does not need to use ENI to distinguish multiple clients. FIG. 8 is a schematic diagram of a multi-tenant access according to an embodiment of the present invention. As shown in FIG. 8 , when multiple clients access, the Each client creates a gateway elastic network card. The location information of the gateway elastic network card can be set on the SDN gateway through static settings, dynamic learning, etc. Since the gateway elastic network card does not occupy the resources of the computing node, it is only limited by the resources of the SDN gateway. Since there are many SDN gateway resources, more can be configured. By configuring rules (for example, VPC111192.168.11.1--->SDN gateway, VPC 222192.168.22.1--->SDN gateway), the system client can communicate with Interworking of SDN gateways.

可选地,图9是根据本发明实施例的一种多租户分配隧道信息的示意图,如图9所示,给每个客户端的网关弹性网卡分配一个隧道,其中,隧道信息可以用于在系统VPC888的NFV里区分多客户端,与系统VPC111和VPC222一一对应。Optionally, FIG. 9 is a schematic diagram of assigning tunnel information to multiple tenants according to an embodiment of the present invention. As shown in FIG. 9 , a tunnel is assigned to the gateway elastic network card of each client, wherein the tunnel information can be used in the system. There are multiple clients in the NFV of VPC888, which correspond one-to-one with system VPC111 and VPC222.

可选地,给每个客户端的网关弹性网卡分配一个隧道信息,将隧道信息存储在SDN网关上,可以采用虚拟局域网扩展、gre等方案确定隧道信息,通过配置规则(比如,网卡1--->隧道信息1、网卡2--->隧道信息2),以实现系统客户端与VPC888所对应的NFV资源的互通,NFV内通过隧道信息识别不同租户。Optionally, assign a tunnel information to the gateway elastic network card of each client, and store the tunnel information on the SDN gateway. The tunnel information can be determined by schemes such as virtual local area network extension and gre. >Tunnel information 1, NIC 2--->Tunnel information 2), to realize the intercommunication between the system client and the NFV resources corresponding to the VPC888, and identify different tenants through the tunnel information in NFV.

可选地,客户端信息到NFV资源的互通过程如下:数据包从虚拟机发送到虚拟交换机;虚拟交换机根据网卡弹性网关的位置信息将客户端信息封闭在数据包中,发送到SDN网关;SDN网关根据租户的路由找到网关弹性网卡,并根据网关弹性网卡获取隧道信息,将该隧道信息封装在数据包中,外层的租户信息修改为系统VPC888,然后发送给NFV所在的虚拟机;NFV将带有隧道信息的数据包通过网关弹性网卡的位置信息回包给网关弹性网卡对应的SDN网关;SDN网关根据隧道信息找到对应的租户VPC信息,将客户端信息封装在数据包中;查找客户端路由,转发给对应的客户端虚拟机。Optionally, the intercommunication process of client information to NFV resources is as follows: the data packet is sent from the virtual machine to the virtual switch; the virtual switch encapsulates the client information in the data packet according to the location information of the network card elastic gateway, and sends it to the SDN gateway; The gateway finds the gateway elastic network card according to the tenant's route, obtains the tunnel information according to the gateway elastic network card, encapsulates the tunnel information in the data packet, modifies the outer tenant information to the system VPC888, and sends it to the virtual machine where the NFV is located; NFV will The data packet with the tunnel information is sent back to the SDN gateway corresponding to the gateway elastic network card through the location information of the gateway elastic network card; the SDN gateway finds the corresponding tenant VPC information according to the tunnel information, and encapsulates the client information in the data packet; finds the client The route is forwarded to the corresponding client virtual machine.

在该实施例中,SDN网关作为基础设施服务层设备,插入网关弹性网卡后可以直接与NFV所在VPC实现互通,以实现NFV的弹性网卡直接与基础设施服务层直接互通,图10是根据本发明实施例的一种NFV的弹性网卡直接与基础设施服务层直接互通的示意图,如图10所示,SDN网关收到数据包后确认需要转发到NFV时,查找NFV的网卡信息和网关弹性网卡的信息;将系统VPC888的客户端信息封装进数据包,转发给NFV;NFV网关处理完成数据包时,确认需要转发给SDN网关,查找SDN的网关弹性网卡的信息,将网关弹性网卡的地址信息作为目的地址;NFV所在的虚拟交换机根据目的地址查找到网关弹性网卡所在的SDN网关转发到SDN网关,其中,每个网卡在SDN网络中都有位置信息,类似网络转发中的介质访问控制地址。In this embodiment, the SDN gateway, as an infrastructure service layer device, can directly communicate with the VPC where NFV is located after inserting the gateway elastic network card, so that the NFV elastic network card can directly communicate with the infrastructure service layer. FIG. 10 is according to the present invention. A schematic diagram of the direct intercommunication between the elastic network card of NFV and the infrastructure service layer according to the embodiment, as shown in Figure 10, when the SDN gateway confirms that it needs to forward the data packet to NFV after receiving the data packet, it searches for the information of the network card of NFV and the information of the elastic network card of the gateway. information; encapsulate the client information of the system VPC888 into a data packet and forward it to NFV; when the NFV gateway processes the data packet, confirm that it needs to be forwarded to the SDN gateway, find the information of the SDN gateway elastic network card, and use the address information of the gateway elastic network card as the address information of the gateway elastic network card. Destination address; the virtual switch where NFV is located finds the SDN gateway where the gateway elastic network card is located according to the destination address and forwards it to the SDN gateway, where each network card has location information in the SDN network, similar to the media access control address in network forwarding.

可选地,当弹性网关、虚拟私有云中建立的出口网关的功能需要在NFV上实现时,在SDN网关上配置对应的网关弹性网卡,可以通过配置(比如,出方向:SDN网关:对应功能,出口为网卡888,下一跳为NFV网卡在SDN网络中的位置信息;入方向:VPC 888192.168.1.1--->SDN网关)的规则,以实现NFV的弹性网卡直接与基础设施服务层直接互通。Optionally, when the functions of the elastic gateway and the egress gateway established in the virtual private cloud need to be implemented on NFV, configure the corresponding gateway elastic network card on the SDN gateway. , the egress is the network card 888, and the next hop is the location information of the NFV network card in the SDN network; the inbound direction: VPC 888192.168.1.1--->SDN gateway) rules, so that the elastic network card of NFV can be directly connected to the infrastructure service layer. Intercommunication.

在该实施例中,由于SDN网关的资源远大于计算节点,且网关弹性网卡实现更轻量,占用资源更少,因此通过将ENI承载在网关弹性网卡上,网关弹性网卡承载在SDN网关上,实现提高在单虚拟机上可以插的网卡的数量,从而打通客户端信息与NFV,实现多客户端接入;在对应的基础设施服务层设备上直接配置网关弹性网卡,以解决VPC与基础设施服务层设备互通问题,实现了基础设施服务层与VPC的互通。In this embodiment, since the resources of the SDN gateway are much larger than that of the computing nodes, and the gateway elastic network card is lighter in weight and occupies less resources, the ENI is carried on the gateway elastic network card, and the gateway elastic network card is carried on the SDN gateway. Realize the increase of the number of network cards that can be inserted in a single virtual machine, so as to connect client information and NFV, and realize multi-client access; directly configure the gateway elastic network card on the corresponding infrastructure service layer device to solve the problem of VPC and infrastructure. The problem of device interworking at the service layer realizes the interworking between the infrastructure service layer and the VPC.

在该实施例中,基于SDN网关实现的虚拟网卡,通过将第一弹性网卡部署在SDN网关上,其只受限于SDN网关资源,不占用计算节点的资源,实现系统网关弹性网卡与NFV资源的VPC网络互通,通过多个网关弹性网卡实现多客户端和NFV的互通,NFV的直接与基础设施服务层直接互通,从而实现了提高数据传输的效率的技术效果,解决了数据传输的效率低的技术问题。In this embodiment, based on the virtual network card implemented by the SDN gateway, by deploying the first elastic network card on the SDN gateway, it is only limited by the resources of the SDN gateway and does not occupy the resources of the computing nodes, so as to realize the elastic network card of the system gateway and the NFV resources. The VPC network is interconnected, and the multi-client and NFV intercommunication is realized through multiple gateway elastic network cards, and the NFV directly communicates with the infrastructure service layer, thus achieving the technical effect of improving the efficiency of data transmission and solving the low efficiency of data transmission. technical issues.

实施例3Example 3

根据本发明实施例,还提供了一种用于实施上述图2所示的基于SDN的网络数据传输方法的基于SDN的网络数据传输装置。According to an embodiment of the present invention, an SDN-based network data transmission apparatus for implementing the SDN-based network data transmission method shown in FIG. 2 is also provided.

图11是根据本发明实施例的一种基于SDN的网络数据传输装置的示意图。如图11所示,该基于SDN的网络数据传输110可以包括:第一控制单元112、第一确定单元114、第一获取单元116和第一传输单元118。FIG. 11 is a schematic diagram of an SDN-based network data transmission apparatus according to an embodiment of the present invention. As shown in FIG. 11 , the SDN-based network data transmission 110 may include: a first control unit 112 , a first determination unit 114 , a first acquisition unit 116 and a first transmission unit 118 .

第一控制单元112,用于控制用于传输数据的第一弹性网卡接入软件定义网络SDN;a first control unit 112, configured to control the first elastic network card used for data transmission to access the software-defined network SDN;

第一确定单元114,用于确定第一弹性网卡在软件定义网络SDN中所关联的网关第一控制单元,用于控制用于传输数据的第一弹性网卡接入软件定义网络SDN。The first determining unit 114 is configured to determine a first control unit of a gateway associated with the first elastic network card in the software-defined network SDN, and is configured to control the first elastic network card for transmitting data to access the software-defined network SDN.

第一获取单元116,用于获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据。The first obtaining unit 116 is configured to obtain first configuration information between the gateway and the virtual private cloud VPC system, where the first configuration information is used to represent that data transmission is allowed between the gateway and the VPC system.

第一传输单元118,用于基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据。The first transmission unit 118 is configured to transmit data associated with the first elastic network card between the gateway and the VPC system based on the first configuration information.

此处需要说明的是,上述第一控制单元112、第一确定单元114、第一获取单元116和第一传输单元118对应于实施例1中的步骤S202至步骤S208,三个单元与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述单元作为装置的一部分可以运行在实施例一提供的计算机终端10中。It should be noted here that the above-mentioned first control unit 112, first determination unit 114, first acquisition unit 116, and first transmission unit 118 correspond to steps S202 to S208 in Embodiment 1, and the three units correspond to The examples and application scenarios implemented by the steps are the same, but are not limited to the content disclosed in the first embodiment above. It should be noted that, as a part of the apparatus, the above-mentioned unit may run in the computer terminal 10 provided in the first embodiment.

根据本发明实施例,还提供了一种用于实施上述图3所示的基于SDN的网络数据接入方法的基于SDN的网络数据传输装置。According to an embodiment of the present invention, an SDN-based network data transmission apparatus for implementing the SDN-based network data access method shown in FIG. 3 is also provided.

图12是根据本发明实施例的一种基于SDN的网络数据接入装置的示意图。如图12所示,该基于SDN的网络数据接入装置120可以包括:第二确定单元122、第二控制单元124、第三确定单元126、第二获取单元128和第二传输单元130。FIG. 12 is a schematic diagram of an SDN-based network data access device according to an embodiment of the present invention. As shown in FIG. 12 , the SDN-based network data access apparatus 120 may include: a second determination unit 122 , a second control unit 124 , a third determination unit 126 , a second acquisition unit 128 and a second transmission unit 130 .

第二确定单元122,用于确定与客户端对应,且用于传输数据的第一弹性网卡。The second determining unit 122 is configured to determine the first elastic network card corresponding to the client and used for transmitting data.

第二控制单元124,用于控制第一弹性网卡接入软件定义网络SDN。The second control unit 124 is configured to control the first elastic network card to access the software-defined network SDN.

第三确定单元126,用于确定第一弹性网卡在软件定义网络SDN中所关联的网关。The third determining unit 126 is configured to determine the gateway associated with the first elastic network card in the software-defined network SDN.

第二获取单元128,用于获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据。The second obtaining unit 128 is configured to obtain the first configuration information between the gateway and the virtual private cloud VPC system, wherein the first configuration information is used to represent that data transmission is allowed between the gateway and the VPC system.

第二传输单元130,用于基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据,以将客户端接入至VPC系统上的网络功能虚拟化NFV资源中。The second transmission unit 130 is configured to transmit data associated with the first elastic network card between the gateway and the VPC system based on the first configuration information, so as to access the client to the network function virtualization NFV resource on the VPC system.

此处需要说明的是,上述第二确定单元122、第二控制单元124、第三确定单元126、第二获取单元128、和第二传输单元130对应于实施例1中的步骤S302至步骤S310,四个单元与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述单元作为装置的一部分可以运行在实施例一提供的计算机终端10中。It should be noted here that the above-mentioned second determination unit 122 , second control unit 124 , third determination unit 126 , second acquisition unit 128 , and second transmission unit 130 correspond to steps S302 to S310 in Embodiment 1 , the examples and application scenarios implemented by the four units and the corresponding steps are the same, but are not limited to the content disclosed in the first embodiment. It should be noted that, as a part of the apparatus, the above-mentioned unit may run in the computer terminal 10 provided in the first embodiment.

根据本发明实施例,还提供了另一种用于实施上述图4所示的基于SDN的网络数据传输方法的基于SDN的网络数据传输装置。According to an embodiment of the present invention, another SDN-based network data transmission apparatus for implementing the SDN-based network data transmission method shown in FIG. 4 is further provided.

图13是根据本发明实施例的另一种基于SDN的网络数据传输装置的示意图。如图13所示,该基于SDN的网络数据传输装置130可以包括:第四确定单元132、第三获取单元134、第五确定单元136和输出单元138。FIG. 13 is a schematic diagram of another SDN-based network data transmission apparatus according to an embodiment of the present invention. As shown in FIG. 13 , the SDN-based network data transmission apparatus 130 may include: a fourth determination unit 132 , a third acquisition unit 134 , a fifth determination unit 136 and an output unit 138 .

第四确定单元132,用于通过调用第一接口确定第一弹性网卡在接入的软件定义网络SDN中所关联的网关,其中,第一接口包括第一参数,第一参数的参数值为网关,第一弹性网卡的弹性网卡信息配置在网关上。The fourth determining unit 132 is configured to determine the gateway associated with the first elastic network card in the accessed software-defined network SDN by invoking the first interface, wherein the first interface includes a first parameter, and the parameter value of the first parameter is the gateway , the elastic network card information of the first elastic network card is configured on the gateway.

第三获取单元134,用于获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据。The third obtaining unit 134 is configured to obtain the first configuration information between the gateway and the virtual private cloud VPC system, wherein the first configuration information is used to represent that data transmission is allowed between the gateway and the VPC system.

第五确定单元136,用于基于第一配置信息确定在网关和VPC系统之间待传输的第一弹性网卡所关联的数据。The fifth determining unit 136 is configured to determine, based on the first configuration information, data associated with the first elastic network card to be transmitted between the gateway and the VPC system.

输出单元138,用于通过调用第二接口输出第一弹性网卡所关联的数据,其中,第二接口包括第二参数,第二参数的参数值为第一弹性网卡所关联的数据。The output unit 138 is configured to output the data associated with the first elastic network card by calling a second interface, wherein the second interface includes a second parameter, and the parameter value of the second parameter is the data associated with the first elastic network card.

此处需要说明的是,上述第四确定单元132、第三获取单元134、第五确定单元136和输出单元138对应于实施例1中的步骤S402至步骤S408,四个单元与对应的步骤所实现的实例和应用场景相同,但不限于上述实施例一所公开的内容。需要说明的是,上述单元作为装置的一部分可以运行在实施例一提供的计算机终端10中。It should be noted here that the above-mentioned fourth determination unit 132, third acquisition unit 134, fifth determination unit 136, and output unit 138 correspond to steps S402 to S408 in Embodiment 1, and the four units correspond to the corresponding steps. The implementation examples and application scenarios are the same, but are not limited to the content disclosed in the first embodiment. It should be noted that, as a part of the apparatus, the above-mentioned unit may run in the computer terminal 10 provided in the first embodiment.

在该实施例的基于SDN的网络数据传输装置中,本申请通过将第一弹性网卡部署在SDN网关上,其只受限于SDN网关资源,不占用计算节点的资源,且可以实现第一弹性网卡与VPC网络互通,从而实现了提高数据传输的效率的技术效果,解决了数据传输的效率低的技术问题。In the SDN-based network data transmission device of this embodiment, by deploying the first elastic network card on the SDN gateway, it is only limited by the resources of the SDN gateway and does not occupy the resources of the computing node, and the first elasticity can be realized The network card communicates with the VPC network, thereby achieving the technical effect of improving the efficiency of data transmission and solving the technical problem of low data transmission efficiency.

实施例4Example 4

本发明的实施例可以提供一种基于SDN的网络数据传输系统,该基于SDN的网络数据传输系统可以包括计算机终端,该计算机终端可以是计算机终端群中的任意一个计算机终端设备。可选地,在本实施例中,上述计算机终端也可以替换为移动终端等终端设备。Embodiments of the present invention can provide an SDN-based network data transmission system, the SDN-based network data transmission system can include a computer terminal, and the computer terminal can be any computer terminal device in a computer terminal group. Optionally, in this embodiment, the above-mentioned computer terminal may also be replaced by a terminal device such as a mobile terminal.

可选地,在本实施例中,上述计算机终端可以位于计算机网络的多个网络设备中的至少一个网络设备。Optionally, in this embodiment, the above-mentioned computer terminal may be located in at least one network device among multiple network devices of a computer network.

在本实施例中,上述计算机终端可以执行应用程序的基于SDN的网络数据传输方法中以下步骤的程序代码:控制用于传输数据的第一弹性网卡接入软件定义网络SDN;确定第一弹性网卡在SDN中所关联的网关,其中,第一弹性网卡的弹性网卡信息配置在网关上;获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据。In this embodiment, the above-mentioned computer terminal can execute the program code of the following steps in the SDN-based network data transmission method of the application program: control the first elastic network card used for data transmission to access the software-defined network SDN; determine the first elastic network card The gateway associated in the SDN, wherein the elastic network card information of the first elastic network card is configured on the gateway; the first configuration information between the gateway and the virtual private cloud VPC system is obtained, wherein the first configuration information is used to represent the gateway and the virtual private cloud VPC system. Data transmission is allowed between VPC systems; data associated with the first elastic network card is transmitted between the gateway and the VPC system based on the first configuration information.

可选地,图14是根据本发明实施例的一种计算机终端的结构框图。如图14所示,该计算机终端A可以包括:一个或多个(图中仅示出一个)处理器142、存储器144、以及传输装置146。Optionally, FIG. 14 is a structural block diagram of a computer terminal according to an embodiment of the present invention. As shown in FIG. 14 , the computer terminal A may include: one or more (only one is shown in the figure) processor 142 , memory 144 , and transmission device 146 .

其中,存储器可用于存储软件程序以及模块,如本发明实施例中的基于SDN的网络数据传输方法和装置对应的程序指令/模块,处理器通过运行存储在存储器内的软件程序以及模块,从而执行各种功能应用以及信号处理,即实现上述的基于SDN的网络数据传输方法。存储器可包括高速随机存储器,还可以包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至计算机终端A。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory can be used to store software programs and modules, such as program instructions/modules corresponding to the SDN-based network data transmission method and device in the embodiments of the present invention, and the processor executes the software programs and modules stored in the memory by running the software programs and modules. Various functional applications and signal processing implement the above-mentioned SDN-based network data transmission method. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the computer terminal A through a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

处理器可以通过基于SDN的网络数据传输装置调用存储器存储的信息及应用程序,以执行下述步骤:控制用于传输数据的第一弹性网卡接入软件定义网络SDN;确定第一弹性网卡在SDN中所关联的网关,其中,第一弹性网卡的弹性网卡信息配置在网关上;获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据。The processor may call the information and application programs stored in the memory through the SDN-based network data transmission device to perform the following steps: control the first elastic network card used for data transmission to access the software-defined network SDN; determine that the first elastic network card is in the SDN The gateway associated with , wherein the elastic network card information of the first elastic network card is configured on the gateway; the first configuration information between the gateway and the virtual private cloud VPC system is obtained, wherein the first configuration information is used to represent the gateway and the VPC system. Data transmission is allowed between them; data associated with the first elastic network card is transmitted between the gateway and the VPC system based on the first configuration information.

可选地,上述处理器还可以执行如下步骤的程序代码:在VPC系统上确定与第一配置信息对应的网络功能虚拟化NFV资源;基于NFV资源在网关和VPC系统之间传输第一弹性网卡所关联的数据。Optionally, the above-mentioned processor may further execute the program code of the following steps: determine the network function virtualization NFV resource corresponding to the first configuration information on the VPC system; transmit the first elastic network card between the gateway and the VPC system based on the NFV resource. associated data.

可选地,上述处理器还可以执行如下步骤的程序代码:基于客户端与网关之间的第二配置信息,确定第一弹性网卡所处的网关,其中,第二配置信息用于表征客户端与网关之间允许传输数据。Optionally, the above-mentioned processor may further execute the program code of the following steps: determine the gateway where the first elastic network card is located based on the second configuration information between the client and the gateway, where the second configuration information is used to represent the client Data transfer to and from the gateway is allowed.

可选地,上述处理器还可以执行如下步骤的程序代码:基于网关的网关资源确定第一弹性网卡的数量。Optionally, the above-mentioned processor may further execute the program code of the following steps: determining the number of the first elastic network card based on the gateway resource of the gateway.

可选地,上述处理器还可以执行如下步骤的程序代码:向第一弹性网卡分配标识信息,其中,标识信息用于在VPC系统上部署的NFV资源中识别第一弹性网卡对应的客户端;基于标识信息确定第一弹性网卡所关联的数据。Optionally, the above-mentioned processor may further execute the program code of the following steps: allocating identification information to the first elastic network card, wherein the identification information is used to identify the client corresponding to the first elastic network card in the NFV resources deployed on the VPC system; The data associated with the first elastic network card is determined based on the identification information.

可选地,上述处理器还可以执行如下步骤的程序代码:为待接入NFV资源的多个客户端中的每个客户端,创建对应的第一弹性网卡。Optionally, the above-mentioned processor may further execute the program code of the steps of: creating a corresponding first elastic network card for each of the multiple clients to be accessed to the NFV resource.

可选地,上述处理器还可以执行如下步骤的程序代码:基于第一配置信息在网关和VPC系统上的第二弹性网卡之间,传输第一弹性网卡所关联的数据。Optionally, the above-mentioned processor may further execute the program code of the following steps: based on the first configuration information, between the gateway and the second elastic network card on the VPC system, transmit data associated with the first elastic network card.

可选地,上述处理器还可以执行如下步骤的程序代码:在SDN中获取第二弹性网卡的地址信息;基于地址信息在VPC系统上确定第二弹性网卡。Optionally, the above-mentioned processor may further execute the program code of the following steps: acquiring address information of the second elastic network card in the SDN; and determining the second elastic network card on the VPC system based on the address information.

可选地,上述处理器还可以执行如下步骤的程序代码:基于第一配置信息在网关和第二弹性网卡之间,经由第三弹性网卡传输第一弹性网卡所关联的数据,其中,第三弹性网卡部署在VPC系统上。Optionally, the above-mentioned processor may further execute the program code of the following steps: based on the first configuration information, between the gateway and the second elastic network card, transmit the data associated with the first elastic network card via the third elastic network card, wherein the third elastic network card ENICs are deployed on VPC systems.

作为一种可选的示例,处理器可以通过基于SDN的网络数据接入装置调用存储器存储的信息及应用程序,以执行下述步骤:确定与客户端对应,且用于传输数据的第一弹性网卡;控制第一弹性网卡接入软件定义网络SDN;确定第一弹性网卡在软件定义网络SDN中所关联的网关,其中,第一弹性网卡的弹性网卡信息配置在网关上;获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据,以将客户端接入至VPC系统上的网络功能虚拟化NFV资源中。As an optional example, the processor may call the information and application programs stored in the memory through the SDN-based network data access device to perform the following steps: determine the first elasticity corresponding to the client and used for data transmission network card; controlling the first elastic network card to access the software-defined network SDN; determining the gateway associated with the first elastic network card in the software-defined network SDN, wherein the elastic network card information of the first elastic network card is configured on the gateway; obtaining the gateway and the virtual private The first configuration information between cloud VPC systems, where the first configuration information is used to indicate that data transmission between the gateway and the VPC system is allowed; based on the first configuration information, the first configuration information is transmitted between the gateway and the VPC system associated with the first elastic network card data to connect clients to network function virtualization NFV resources on the VPC system.

作为一种可选的示例,处理器可以通过基于SDN的网络数据传输装置调用存储器存储的信息及应用程序,以执行下述步骤:通过调用第一接口确定第一弹性网卡在接入的软件定义网络SDN中所关联的网关,其中,第一接口包括第一参数,第一参数的参数值为网关,第一弹性网卡的弹性网卡信息配置在网关上;获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;基于第一配置信息确定在网关和VPC系统之间待传输的第一弹性网卡所关联的数据;通过调用第二接口输出第一弹性网卡所关联的数据,其中,第二接口包括第二参数,第二参数的参数值为第一弹性网卡所关联的数据。As an optional example, the processor may use the SDN-based network data transmission device to call the information and application programs stored in the memory to perform the following steps: determine, by calling the first interface, the software-defined access status of the first elastic network card The gateway associated in the network SDN, wherein the first interface includes a first parameter, the parameter value of the first parameter is the gateway, and the elastic network card information of the first elastic network card is configured on the gateway; obtain the connection between the gateway and the virtual private cloud VPC system The first configuration information of , wherein the first configuration information is used to represent data that is allowed to be transmitted between the gateway and the VPC system; based on the first configuration information, determine the data associated with the first elastic network card to be transmitted between the gateway and the VPC system; The data associated with the first elastic network card is output by calling the second interface, wherein the second interface includes a second parameter, and the parameter value of the second parameter is the data associated with the first elastic network card.

在本发明实施例中,提供了一种基于SDN的网络数据传输方法,确定第一弹性网卡在软件定义网络SDN中所关联的网关;获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据。也就是说,本申请通过将第一弹性网卡部署在SDN网关上,其只受限于SDN网关资源,不占用计算节点的资源,且可以实现第一弹性网卡与VPC网络互通,从而实现了提高数据传输的效率的技术效果,解决了数据传输的效率低的技术问题。In an embodiment of the present invention, an SDN-based network data transmission method is provided, the gateway associated with the first elastic network card in the software-defined network SDN is determined; the first configuration information between the gateway and the virtual private cloud VPC system is obtained , wherein the first configuration information is used to indicate that data transmission between the gateway and the VPC system is allowed; based on the first configuration information, the data associated with the first elastic network card is transmitted between the gateway and the VPC system. That is to say, in this application, by deploying the first elastic network card on the SDN gateway, it is only limited by the resources of the SDN gateway and does not occupy the resources of computing nodes, and the first elastic network card can be intercommunicated with the VPC network, thereby achieving improved performance. The technical effect of data transmission efficiency solves the technical problem of low data transmission efficiency.

本领域普通技术人员可以理解,图14示的结构仅为示意,计算机终端A也可以是智能手机(如Android手机、iOS手机等)、平板电脑、掌声电脑以及移动互联网设备(MobileInternet Devices,MID)、PAD等终端设备。图14并不对上述计算机终端A的结构造成限定。例如,计算机终端A还可包括比图14所示更多或者更少的组件(如网络接口、显示装置等),或者具有与图14所示不同的配置。Those of ordinary skill in the art can understand that the structure shown in FIG. 14 is for illustration only, and the computer terminal A can also be a smart phone (such as an Android mobile phone, an iOS mobile phone, etc.), a tablet computer, an applause computer, and a Mobile Internet Devices (MID) , PAD and other terminal equipment. FIG. 14 does not limit the structure of the computer terminal A described above. For example, the computer terminal A may also include more or less components than those shown in FIG. 14 (eg, a network interface, a display device, etc.), or have a different configuration than that shown in FIG. 14 .

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令终端设备相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-Only Memory,ROM)、随机存取器(RandomAccess Memory,RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can Including: flash disk, read-only memory (Read-Only Memory, ROM), random access device (RandomAccess Memory, RAM), magnetic disk or optical disk, etc.

根据本发明实施例的另一方面,可以提供一种基于SDN的网络数据接入系统,该基于SDN的网络数据接入系统可以包括计算机终端,该计算机终端可以是计算机终端群中的任意一个计算机终端设备。可选地,该基于SDN的网络数据传输设备包括:第一弹性网卡,连接于客户端;软件定义网络SDN中的网关,用于配置第一弹性网卡的弹性网卡信息;虚拟私有云VPC系统,用于基于与网关之间的第一配置信息接收第一弹性网卡所关联的数据,以将客户端接入至VPC系统上的网络功能虚拟化NFV资源中,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据。According to another aspect of the embodiments of the present invention, an SDN-based network data access system may be provided. The SDN-based network data access system may include a computer terminal, and the computer terminal may be any computer in a computer terminal group. Terminal Equipment. Optionally, the SDN-based network data transmission device includes: a first elastic network card connected to the client; a gateway in the software-defined network SDN for configuring elastic network card information of the first elastic network card; a virtual private cloud VPC system, is used to receive data associated with the first elastic network card based on the first configuration information between the gateway, so as to access the client to the network function virtualization NFV resource on the VPC system, wherein the first configuration information is used to represent Data transmission is allowed between the gateway and the VPC system.

在该实施例中,基于SDN的网络数据接入系统中的第一弹性网卡连接于客户端,该客户段可以对应租户;软件定义网络SDN中的网关,用于配置上述第一弹性网卡的弹性网卡信息,使得该第一弹性网卡部署在该网关上。VPC系统可以获取VPC系统与网关之间的第一配置信息,该第一配置信息用于表征网关与VPC系统之间允许传输数据,可以基于第一配置信息接收第一弹性网卡所关联的数据,以将客户端接入至VPC系统上的网络功能虚拟化NFV资源中。因而,该实施例的基于SDN的网络数据接入系统可以通过将第一弹性网卡部署在SDN网关上,其只受限于SDN网关资源,不占用计算节点的资源,且可以实现第一弹性网卡与VPC网络互通,从而实现了提高数据传输的效率的技术效果,解决了数据传输的效率低的技术问题。In this embodiment, the first elastic network card in the SDN-based network data access system is connected to the client, and the client segment may correspond to a tenant; the gateway in the software-defined network SDN is used to configure the elasticity of the first elastic network card. Network card information, so that the first elastic network card is deployed on the gateway. The VPC system can obtain the first configuration information between the VPC system and the gateway, where the first configuration information is used to indicate that data transmission is allowed between the gateway and the VPC system, and can receive data associated with the first elastic network card based on the first configuration information, To connect clients to network function virtualized NFV resources on the VPC system. Therefore, the SDN-based network data access system of this embodiment can deploy the first elastic network card on the SDN gateway, which is only limited by the resources of the SDN gateway and does not occupy the resources of computing nodes, and can realize the first elastic network card It communicates with the VPC network, thereby achieving the technical effect of improving the efficiency of data transmission and solving the technical problem of low data transmission efficiency.

根据本发明实施例的另一方面,可以提供一种基于SDN的网络数据传输设备,该基于SDN的网络数据传输设备可以包括计算机终端,该计算机终端可以是计算机终端群中的任意一个计算机终端设备。可选地,该基于SDN的网络数据传输设备包括:网关,用于配置接入在软件定义网络SDN中的第一弹性网卡的弹性网卡信息;第三接口,与网关相连接,用于获取网关与虚拟私有云VPC系统之间的第一配置信息,且基于第一配置信息控制网关向VPC系统传输第一弹性网卡所关联的数据,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据。According to another aspect of the embodiments of the present invention, an SDN-based network data transmission device may be provided. The SDN-based network data transmission device may include a computer terminal, and the computer terminal may be any computer terminal device in a computer terminal group. . Optionally, the SDN-based network data transmission device includes: a gateway for configuring elastic network card information of the first elastic network card connected to the software-defined network SDN; a third interface, connected to the gateway, for obtaining the gateway and the first configuration information between the virtual private cloud VPC system, and control the gateway to transmit data associated with the first elastic network card to the VPC system based on the first configuration information, where the first configuration information is used to represent the gateway and the VPC system. Data transfer is allowed.

在该实施例中,基于SDN的网络数据传输设备中的网关可以用于配置接入在软件定义网络SDN中的第一弹性网卡的弹性网卡信息,然后通过与网关相连接的第三接口获取网关与虚拟私有云VPC系统之间的第一配置信息,由于该第一配置信息用于表征网关与VPC系统之间允许传输数据,从而可以基于第一配置信息控制网关向VPC系统传输第一弹性网卡所关联的数据。因而,该实施例的基于SDN的网络数据传输设备可以通过将第一弹性网卡部署在SDN网关上,其只受限于SDN网关资源,不占用计算节点的资源,且可以实现第一弹性网卡与VPC网络互通,从而实现了提高数据传输的效率的技术效果,解决了数据传输的效率低的技术问题。In this embodiment, the gateway in the SDN-based network data transmission device can be used to configure the elastic network card information of the first elastic network card connected to the software-defined network SDN, and then obtain the gateway through a third interface connected to the gateway The first configuration information between the virtual private cloud VPC system and the virtual private cloud VPC system. Since the first configuration information is used to indicate that data transmission is allowed between the gateway and the VPC system, the gateway can be controlled to transmit the first elastic network card to the VPC system based on the first configuration information. associated data. Therefore, the SDN-based network data transmission device in this embodiment can deploy the first elastic network card on the SDN gateway, which is only limited by the resources of the SDN gateway and does not occupy the resources of the computing node, and can realize the connection between the first elastic network card and the SDN gateway. The VPC network is interconnected, thereby achieving the technical effect of improving the efficiency of data transmission, and solving the technical problem of low data transmission efficiency.

实施例5Example 5

本发明的实施例还提供了一种计算机可读存储介质。可选地,在本实施例中,上述计算机可读存储介质可以用于保存上述实施例一所提供的基于SDN的网络数据传输方法所执行的程序代码。Embodiments of the present invention also provide a computer-readable storage medium. Optionally, in this embodiment, the above-mentioned computer-readable storage medium may be used to store the program code executed by the SDN-based network data transmission method provided in the above-mentioned first embodiment.

可选地,在本实施例中,上述计算机可读存储介质可以位于计算机网络中计算机终端群中的任意一个计算机终端中,或者位于移动终端群中的任意一个移动终端中。Optionally, in this embodiment, the computer-readable storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

作为一种可选的示例,计算机可读存储介质被设置为存储用于执行以下步骤的程序代码:控制用于传输数据的第一弹性网卡接入软件定义网络SDN;确定第一弹性网卡在软件定义网络SDN中所关联的网关,其中,第一弹性网卡的弹性网卡信息配置在网关上;获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据。As an optional example, the computer-readable storage medium is configured to store program codes for performing the following steps: controlling the first elastic network card for transmitting data to access the software-defined network SDN; determining that the first elastic network card is in software Define the gateway associated in the network SDN, where the elastic network card information of the first elastic network card is configured on the gateway; obtain the first configuration information between the gateway and the virtual private cloud VPC system, where the first configuration information is used to represent the gateway Data transmission is allowed between the VPC system and the gateway; the data associated with the first elastic network card is transmitted between the gateway and the VPC system based on the first configuration information.

可选地,在本实施例中,上述计算机可读存储介质被设置为存储用于执行以下步骤的程序代码:在VPC系统上确定与第一配置信息对应的网络功能虚拟化NFV资源;基于NFV资源在网关和VPC系统之间传输第一弹性网卡所关联的数据。Optionally, in this embodiment, the above-mentioned computer-readable storage medium is configured to store program codes for executing the following steps: determining, on the VPC system, network function virtualization NFV resources corresponding to the first configuration information; The resource transmits data associated with the first elastic network card between the gateway and the VPC system.

可选地,在本实施例中,上述计算机可读存储介质被设置为存储用于执行以下步骤的程序代码:基于客户端与网关之间的第二配置信息,确定第一弹性网卡所处的网关,其中,第二配置信息用于表征客户端与网关之间允许传输数据。Optionally, in this embodiment, the above-mentioned computer-readable storage medium is configured to store program codes for executing the following steps: based on the second configuration information between the client and the gateway, determine the location where the first elastic network card is located. The gateway, wherein the second configuration information is used to represent that data transmission is allowed between the client and the gateway.

可选地,在本实施例中,上述计算机可读存储介质被设置为存储用于执行以下步骤的程序代码:基于网关的网关资源确定第一弹性网卡的数量。Optionally, in this embodiment, the above-mentioned computer-readable storage medium is configured to store program codes for executing the following steps: determining the number of the first elastic network cards based on gateway resources of the gateway.

可选地,在本实施例中,上述计算机可读存储介质被设置为存储用于执行以下步骤的程序代码:向第一弹性网卡分配标识信息,其中,标识信息用于在VPC系统上部署的NFV资源中识别第一弹性网卡对应的客户端;基于标识信息确定第一弹性网卡所关联的数据。Optionally, in this embodiment, the above-mentioned computer-readable storage medium is configured to store program codes for performing the following steps: assigning identification information to the first elastic network card, wherein the identification information is used for the software deployed on the VPC system. The client corresponding to the first elastic network card is identified in the NFV resource; the data associated with the first elastic network card is determined based on the identification information.

可选地,在本实施例中,上述计算机可读存储介质被设置为存储用于执行以下步骤的程序代码:为待接入NFV资源的多个客户端中的每个客户端,创建对应的第一弹性网卡。Optionally, in this embodiment, the above-mentioned computer-readable storage medium is configured to store program codes for performing the following steps: creating a corresponding The first elastic NIC.

可选地,在本实施例中,上述计算机可读存储介质被设置为存储用于执行以下步骤的程序代码:基于第一配置信息在网关和VPC系统上的第二弹性网卡之间,传输第一弹性网卡所关联的数据。Optionally, in this embodiment, the above-mentioned computer-readable storage medium is configured to store program codes for executing the following steps: based on the first configuration information, between the gateway and the second elastic network card on the VPC system, transmit the first Data associated with an elastic network card.

可选地,在本实施例中,上述计算机可读存储介质被设置为存储用于执行以下步骤的程序代码:在SDN中获取第二弹性网卡的地址信息;基于地址信息在VPC系统上确定第二弹性网卡。Optionally, in this embodiment, the above-mentioned computer-readable storage medium is configured to store program codes for executing the following steps: obtaining address information of the second elastic network card in the SDN; determining the first elastic network card on the VPC system based on the address information Two elastic network cards.

可选地,在本实施例中,上述计算机可读存储介质被设置为存储用于执行以下步骤的程序代码:基于第一配置信息在网关和第二弹性网卡之间,经由第三弹性网卡传输第一弹性网卡所关联的数据,其中,第三弹性网卡部署在VPC系统上。Optionally, in this embodiment, the above-mentioned computer-readable storage medium is configured to store program codes for executing the following steps: based on the first configuration information, between the gateway and the second elastic network card, via the third elastic network card for transmission Data associated with the first elastic network card, wherein the third elastic network card is deployed on the VPC system.

作为一种可选的示例,计算机可读存储介质被设置为存储用于执行以下步骤的程序代码:确定与客户端对应,且用于传输数据的第一弹性网卡;控制第一弹性网卡接入软件定义网络SDN;确定第一弹性网卡在软件定义网络SDN中所关联的网关,其中,第一弹性网卡的弹性网卡信息配置在网关上;获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;基于第一配置信息在网关和VPC系统之间传输第一弹性网卡所关联的数据,以将客户端接入至VPC系统上的网络功能虚拟化NFV资源中。As an optional example, the computer-readable storage medium is configured to store program codes for performing the following steps: determining a first elastic network card corresponding to the client and used for transmitting data; controlling the access of the first elastic network card software-defined network SDN; determine the gateway associated with the first elastic network card in the software-defined network SDN, wherein the elastic network card information of the first elastic network card is configured on the gateway; obtain the first configuration between the gateway and the virtual private cloud VPC system information, wherein the first configuration information is used to indicate that data transmission is allowed between the gateway and the VPC system; based on the first configuration information, the data associated with the first elastic network card is transmitted between the gateway and the VPC system, so as to connect the client to the Network functions on VPC systems are virtualized in NFV resources.

作为一种可选的示例,计算机可读存储介质被设置为存储用于执行以下步骤的程序代码:通过调用第一接口确定第一弹性网卡在接入的软件定义网络SDN中所关联的网关,其中,第一接口包括第一参数,第一参数的参数值为网关,第一弹性网卡的弹性网卡信息配置在网关上;获取网关与虚拟私有云VPC系统之间的第一配置信息,其中,第一配置信息用于表征网关与VPC系统之间允许传输数据;基于第一配置信息确定在网关和VPC系统之间待传输的第一弹性网卡所关联的数据;通过调用第二接口输出第一弹性网卡所关联的数据,其中,第二接口包括第二参数,第二参数的参数值为第一弹性网卡所关联的数据。As an optional example, the computer-readable storage medium is configured to store program codes for performing the following steps: determining a gateway associated with the first elastic network card in the accessed software-defined network SDN by invoking the first interface, The first interface includes a first parameter, the parameter value of the first parameter is the gateway, and the elastic network card information of the first elastic network card is configured on the gateway; the first configuration information between the gateway and the virtual private cloud VPC system is obtained, wherein, The first configuration information is used to represent data that is allowed to be transmitted between the gateway and the VPC system; the data associated with the first elastic network card to be transmitted between the gateway and the VPC system is determined based on the first configuration information; the first elastic network card is output by calling the second interface The data associated with the elastic network card, wherein the second interface includes a second parameter, and the parameter value of the second parameter is the data associated with the first elastic network card.

上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages or disadvantages of the embodiments.

在本发明的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The apparatus embodiments described above are only illustrative, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components may be combined or Integration into another system, or some features can be ignored, 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 units or modules, and may be in electrical 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盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。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.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes .

以上所述仅是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。The above are only the preferred embodiments of the present invention. It should be pointed out that for those skilled in the art, without departing from the principles of the present invention, several improvements and modifications can be made. It should be regarded as the protection scope of the present invention.

Claims (16)

1. A network data transmission method based on SDN is characterized by comprising the following steps:
controlling a first elastic network card for transmitting data to access a Software Defined Network (SDN);
determining a gateway associated with the first elastic network card in the SDN, wherein elastic network card information of the first elastic network card is configured on the gateway;
acquiring first configuration information between the gateway and a Virtual Private Cloud (VPC) system, wherein the first configuration information is used for representing that data transmission is allowed between the gateway and the VPC system;
and transmitting data associated with the first elastic network card between the gateway and the VPC system based on the first configuration information.
2. The method of claim 1, wherein transmitting the data associated with the first resilient network card between the gateway and the VPC system based on the first configuration information comprises:
determining, on the VPC system, Network Function Virtualization (NFV) resources corresponding to the first configuration information;
transmitting data associated with the first resilient network card between the gateway and the VPC system based on the NFV resources.
3. The method of claim 2,
the method further comprises the following steps: determining the first elastic network card corresponding to the client;
determining a gateway associated with the first resilient network card in the SDN, comprising: and determining the gateway where the first elastic network card is located based on second configuration information between the client and the gateway, wherein the second configuration information is used for representing that data transmission is allowed between the client and the gateway.
4. The method of claim 3, further comprising:
and determining the number of the first elastic network cards based on the gateway resources of the gateway.
5. The method of claim 3, further comprising:
allocating identification information to the first elastic network card, wherein the identification information is used for identifying the client corresponding to the first elastic network card in NFV resources deployed on the VPC system;
and determining data associated with the first elastic network card based on the identification information.
6. The method of claim 3, wherein determining the first resilient network card corresponding to a client comprises:
and creating the corresponding first elastic network card for each client in the plurality of clients to be accessed with the NFV resources.
7. The method of claim 1, wherein transmitting data associated with the first resilient network card between the gateway and the VPC system based on the first configuration information comprises:
and transmitting data associated with the first flexible network card between the gateway and a second flexible network card on the VPC system based on the first configuration information.
8. The method of claim 7, further comprising:
acquiring address information of the second elastic network card in the SDN;
determining the second resilient network card on the VPC system based on the address information.
9. The method of claim 7, wherein transmitting data associated with the first resilient network card between the gateway and a second resilient network card on the VPC system based on the first configuration information comprises:
and transmitting data associated with the first flexible network card between the gateway and the second flexible network card through a third flexible network card based on the first configuration information, wherein the third flexible network card is deployed on the VPC system.
10. A network data access method based on SDN is characterized by comprising the following steps:
determining a first elastic network card which corresponds to the client and is used for transmitting data;
controlling the first elastic network card to access a Software Defined Network (SDN);
determining a gateway associated with the first elastic network card in the SDN, wherein elastic network card information of the first elastic network card is configured on the gateway;
acquiring first configuration information between the gateway and a Virtual Private Cloud (VPC) system, wherein the first configuration information is used for representing that data transmission is allowed between the gateway and the VPC system;
transmitting data associated with the first resilient network card between the gateway and the VPC system based on the first configuration information to access the client into Network Function Virtualization (NFV) resources on the VPC system.
11. A network data transmission method based on SDN is characterized by comprising the following steps:
determining a gateway associated with a first elastic network card in an accessed Software Defined Network (SDN) by calling a first interface, wherein the first interface comprises a first parameter, a parameter value of the first parameter is the gateway, and elastic network card information of the first elastic network card is configured on the gateway;
acquiring first configuration information between the gateway and a Virtual Private Cloud (VPC) system, wherein the first configuration information is used for representing that data transmission is allowed between the gateway and the VPC system;
determining data associated with the first flexible network card to be transmitted between the gateway and the VPC system based on the first configuration information;
and outputting data associated with the first elastic network card by calling a second interface, wherein the second interface comprises a second parameter, and the parameter value of the second parameter is the data associated with the first elastic network card.
12. A computer-readable storage medium, comprising a stored program, wherein the program, when executed by a processor, controls an apparatus in which the computer-readable storage medium is located to perform the method of any of claims 1-11.
13. A processor, characterized in that the processor is configured to run a program, wherein the program when running performs the method of any of claims 1 to 11.
14. An SDN-based network data transmission system, comprising:
a processor;
a memory coupled to the processor for providing instructions to the processor for processing the following processing steps: controlling a first elastic network card for transmitting data to access a Software Defined Network (SDN); determining a gateway associated with the first elastic network card in the SDN, wherein elastic network card information of the first elastic network card is configured on the gateway; acquiring first configuration information between the gateway and a Virtual Private Cloud (VPC) system, wherein the first configuration information is used for representing that data transmission is allowed between the gateway and the VPC system; and transmitting data associated with the first elastic network card between the gateway and the VPC system based on the first configuration information.
15. An SDN-based network data access system, comprising:
the first elastic network card is connected to the client;
a gateway in a Software Defined Network (SDN) and used for configuring the elastic network card information of the first elastic network card;
the virtual private cloud VPC system is used for receiving data associated with the first elastic network card based on first configuration information between the virtual private cloud VPC system and the gateway so as to enable the client to access Network Function Virtualization (NFV) resources on the VPC system, wherein the first configuration information is used for representing that data transmission between the gateway and the VPC system is allowed.
16. An SDN-based network data transmission device, comprising:
the gateway is used for configuring elastic network card information of a first elastic network card accessed in a Software Defined Network (SDN);
and the third interface is connected with the gateway and is used for acquiring first configuration information between the gateway and a Virtual Private Cloud (VPC) system and controlling the gateway to transmit data associated with the first elastic network card to the VPC system based on the first configuration information, wherein the first configuration information is used for representing that data transmission is allowed between the gateway and the VPC system.
CN202210301446.2A 2022-03-25 2022-03-25 Network data transmission method, access method and storage medium based on SDN Active CN114884810B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210301446.2A CN114884810B (en) 2022-03-25 2022-03-25 Network data transmission method, access method and storage medium based on SDN

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210301446.2A CN114884810B (en) 2022-03-25 2022-03-25 Network data transmission method, access method and storage medium based on SDN

Publications (2)

Publication Number Publication Date
CN114884810A true CN114884810A (en) 2022-08-09
CN114884810B CN114884810B (en) 2024-12-10

Family

ID=82667338

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210301446.2A Active CN114884810B (en) 2022-03-25 2022-03-25 Network data transmission method, access method and storage medium based on SDN

Country Status (1)

Country Link
CN (1) CN114884810B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115834527A (en) * 2022-11-23 2023-03-21 紫光云技术有限公司 A method for realizing EIP control plane under public cloud platform
CN116016188A (en) * 2022-12-30 2023-04-25 阿里巴巴(中国)有限公司 NFV access method, device, system and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107800743A (en) * 2016-09-06 2018-03-13 中国电信股份有限公司 Cloud desktop system, cloud management system and relevant device
WO2019085596A1 (en) * 2017-10-31 2019-05-09 西安中兴新软件有限责任公司 Method and apparatus for controlling wireless fidelity connection
CN112468383A (en) * 2019-09-06 2021-03-09 华为技术有限公司 Communication method and gateway in hybrid cloud environment, management method and device
CN113261242A (en) * 2018-12-28 2021-08-13 阿里巴巴集团控股有限公司 Overlay network routing using programmable switches
CN113300985A (en) * 2021-03-30 2021-08-24 阿里巴巴新加坡控股有限公司 Data processing method, device, equipment and storage medium
CN113709194A (en) * 2020-05-20 2021-11-26 中国移动通信集团浙江有限公司 Cloud resource access method, device and system and computing equipment
CN114070723A (en) * 2020-07-31 2022-02-18 中移(苏州)软件技术有限公司 Virtual network configuration method, system and intelligent network card of bare metal server

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107800743A (en) * 2016-09-06 2018-03-13 中国电信股份有限公司 Cloud desktop system, cloud management system and relevant device
WO2019085596A1 (en) * 2017-10-31 2019-05-09 西安中兴新软件有限责任公司 Method and apparatus for controlling wireless fidelity connection
CN113261242A (en) * 2018-12-28 2021-08-13 阿里巴巴集团控股有限公司 Overlay network routing using programmable switches
CN112468383A (en) * 2019-09-06 2021-03-09 华为技术有限公司 Communication method and gateway in hybrid cloud environment, management method and device
CN113709194A (en) * 2020-05-20 2021-11-26 中国移动通信集团浙江有限公司 Cloud resource access method, device and system and computing equipment
CN114070723A (en) * 2020-07-31 2022-02-18 中移(苏州)软件技术有限公司 Virtual network configuration method, system and intelligent network card of bare metal server
CN113300985A (en) * 2021-03-30 2021-08-24 阿里巴巴新加坡控股有限公司 Data processing method, device, equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
周家正;: "基于腾讯云搭建公网可用的Keepalived集群实践", 电脑编程技巧与维护, no. 05, 18 May 2020 (2020-05-18) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115834527A (en) * 2022-11-23 2023-03-21 紫光云技术有限公司 A method for realizing EIP control plane under public cloud platform
CN116016188A (en) * 2022-12-30 2023-04-25 阿里巴巴(中国)有限公司 NFV access method, device, system and storage medium
CN116016188B (en) * 2022-12-30 2025-09-19 阿里巴巴(中国)有限公司 NFV access method, device, system and storage medium

Also Published As

Publication number Publication date
CN114884810B (en) 2024-12-10

Similar Documents

Publication Publication Date Title
CN116057910B (en) Virtual private cloud communication and configuration method and related device
CN111885075B (en) Container communication method, device, network equipment and storage medium
CN113132201B (en) Communication method and device between VPCs
CN114070723B (en) Virtual network configuration method and system of bare metal server and intelligent network card
CN110088732B (en) A data packet processing method, host and system
CN111698338B (en) A method and computer system for data transmission
CN106533890B (en) A message processing method, device and system
EP2597842A1 (en) Providing network capability over a converged interconnect fabric
CN106789667A (en) A kind of data forwarding method, relevant device and system
CN113660164B (en) A message forwarding method and network device
CN108768692A (en) A kind of network creation method, relevant device and system
CN108347493A (en) Hybrid cloud management method, device and computing device
JP2016152567A (en) Communication device and communication method
WO2011150883A2 (en) Method and device for terminal batch upgrading
CN110932907B (en) A Linux container network configuration method and network system
CN106209562A (en) In a kind of network VLAN ID distribution method and controller
CN111371694B (en) Shunting method, device and system, processing equipment and storage medium
CN115499434A (en) Cross-VPC flow forwarding method
CN112769584B (en) Method, device and storage medium for sharing upper link by network slice
CN114884810A (en) Network data transmission method, access method and storage medium based on SDN
CN118784565A (en) A communication method and device between cloud platform virtual private networks
CN105264837B (en) A data message transmission system, transmission method and device
WO2024188167A1 (en) Tunnel technology-based packet processing method and apparatus
CN113300871B (en) Networking method and device of simulation network
CN113765801B (en) Message processing method and device applied to data center, electronic equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant