CN103780467B - communication connection method, communication device and communication system - Google Patents

communication connection method, communication device and communication system Download PDF

Info

Publication number
CN103780467B
CN103780467B CN201210401104.4A CN201210401104A CN103780467B CN 103780467 B CN103780467 B CN 103780467B CN 201210401104 A CN201210401104 A CN 201210401104A CN 103780467 B CN103780467 B CN 103780467B
Authority
CN
China
Prior art keywords
website
vpn configuration
tunnel
vpn
network site
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.)
Active
Application number
CN201210401104.4A
Other languages
Chinese (zh)
Other versions
CN103780467A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210401104.4A priority Critical patent/CN103780467B/en
Priority to PCT/CN2013/075605 priority patent/WO2014059787A1/en
Publication of CN103780467A publication Critical patent/CN103780467A/en
Application granted granted Critical
Publication of CN103780467B publication Critical patent/CN103780467B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/72Admission control; Resource allocation using reservation actions during connection setup
    • H04L47/724Admission control; Resource allocation using reservation actions during connection setup at intermediate nodes, e.g. resource reservation protocol [RSVP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/82Miscellaneous aspects
    • H04L47/825Involving tunnels, e.g. MPLS

Landscapes

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

Abstract

The embodiment of the invention discloses a communication connection method, a communication device and a communication system. The method includes: a first request message sent by a network station point when the load of the network station point is higher than a first load is received, wherein the first request message includes a VPC (Virtual Private Cloud) establishment request, an ID (Identity) of the network station point and first tunnel attribute information; a target VPC is established according to the VPC establishment request; the target VPC and a first PE (Provider Edge) are connected; the ID of the network station point and the first tunnel attribute information are sent to the first PE so that the first PE is enabled to acquire second VPN (Virtual Private Network) configuration information and an address of a second PE according to the ID of the network station point, and determine first VPN configuration information according to the second VPN configuration information and establish VPN connection and channel connection with the second PE according to the first VPN configuration information, the address of the second PE and the first tunnel attribute information so that communication connection between the target VPC and the network station point is realized. The communication connection method, the communication device and the communication system are capable of realizing timely communication connection according to the needs of the network station point so that connection efficiency is improved.

Description

通信连接方法、通信装置及通信系统Communication connection method, communication device and communication system

技术领域technical field

本发明涉及通信领域,特别涉及一种通信连接方法、通信装置及通信系统。The present invention relates to the communication field, in particular to a communication connection method, a communication device and a communication system.

背景技术Background technique

云计算技术是一种应用云端处理网络站点(如企业计算机系统等)的数据,将处理结果回传给网络站点的技术。Cloud computing technology is a technology that uses the cloud to process data of a network site (such as an enterprise computer system, etc.), and returns the processing results to the network site.

应用云计算技术时,网络站点在云端租用设备构成一个虚拟专用云(VirtualPrivate Cloud,VPC)。网络站点的数据处理能力不能满足需求时,将网络站点与VPC建立连接,应用VPC进行数据处理;网络站点的数据处理能力能够满足需求时,网络站点与VPC断开连接,从而最大程度的降低设备和维护成本。When applying cloud computing technology, the network site rents equipment in the cloud to form a virtual private cloud (Virtual Private Cloud, VPC). When the data processing capability of the network site cannot meet the requirements, establish a connection between the network site and the VPC, and use the VPC for data processing; and maintenance costs.

但是,现有的方法通常由网管手动控制实现网络站点与VPC建立连接,连接效率有待提高。However, in the existing method, the connection between the network site and the VPC is usually manually controlled by a network manager, and the connection efficiency needs to be improved.

发明内容Contents of the invention

本发明实施例提供一种通信连接方法、通信装置及通信系统,能够提高连接效率。Embodiments of the present invention provide a communication connection method, a communication device, and a communication system, which can improve connection efficiency.

本发明实施例采用如下技术方案:The embodiment of the present invention adopts following technical scheme:

第一方面,提供一种通信连接方法,包括:In the first aspect, a communication connection method is provided, including:

接收网络站点在所述网络站点的负荷高于第一负荷时发送的第一请求消息,所述第一请求消息包括创建VPC的请求、所述网络站点的标识(IDentity,ID)和第一隧道属性信息;根据所述创建VPC的请求创建目标VPC;连接所述目标VPC和第一运营商边缘设备(provider edge,PE);向所述第一PE发送所述网络站点的ID及所述第一隧道属性信息,使得所述第一PE根据所述网络站点的ID获取第二虚拟专用网(Virtual Private Network,VPN)配置信息及第二PE的地址,并根据所述第二VPN配置信息确定与所述第二VPN配置信息相匹配的第一VPN配置信息,并根据所述第一VPN配置信息、所述第二PE的地址和所述第一隧道属性信息,建立与所述第二PE间的VPN连接以及隧道连接,从而实现所述目标VPC与所述网络站点间的通信连接,所述第二VPN配置信息为所述第二PE的VPN配置信息,所述第二PE为所述网络站点的接入设备。Receiving a first request message sent by a network site when the load of the network site is higher than the first load, the first request message includes a request for creating a VPC, an identifier (IDentity, ID) of the network site, and a first tunnel Attribute information; create a target VPC according to the request for creating a VPC; connect the target VPC with a first provider edge device (provider edge, PE); send the ID of the network site and the first PE to the first PE Tunnel attribute information, so that the first PE obtains second virtual private network (Virtual Private Network, VPN) configuration information and the address of the second PE according to the ID of the network site, and determines the the first VPN configuration information matching the second VPN configuration information, and according to the first VPN configuration information, the address of the second PE, and the first tunnel attribute information, establish a connection with the second PE VPN connection and tunnel connection between, thereby realizing the communication connection between the target VPC and the network site, the second VPN configuration information is the VPN configuration information of the second PE, and the second PE is the VPN configuration information of the Access equipment at a network site.

在第一方面的第一种可能的实现方式中,所述连接所述目标VPC和第一运营商边缘设备(PE)包括:创建与所述目标VPC对应的虚拟用户边缘设备(virtual customer edge,VCE);通过所述VCE连接所述第一PE。In a first possible implementation manner of the first aspect, the connecting the target VPC and the first operator edge device (PE) includes: creating a virtual customer edge device (virtual customer edge, PE) corresponding to the target VPC. VCE); connect to the first PE through the VCE.

结合所述第一方面,或所述第一方面的第一种可能的实现方式,在所述第一方面的第二种可能的实现方式中,还包括:接收所述网络站点发送的第二请求消息,所述第二请求消息包括更新通信连接的请求、第二隧道属性信息和所述网络站点的ID;根据所述更新通信连接的请求确定所述网络站点需更新通信连接后,向所述第一PE发送所述第二隧道属性信息及所述网络站点的ID,使得所述第一PE根据所述网络站点的ID、所述第二PE的地址及所述第二隧道属性信息,更新所述第一PE与所述第二PE间的隧道属性,从而更新所述目标VPC与所述网络站点的通信连接属性。With reference to the first aspect, or the first possible implementation manner of the first aspect, in the second possible implementation manner of the first aspect, the method further includes: receiving the second request message, the second request message includes a request for updating the communication connection, second tunnel attribute information, and the ID of the network site; after determining that the network site needs to update the communication connection according to the request for updating the communication connection, send the The first PE sends the second tunnel attribute information and the ID of the network site, so that the first PE according to the ID of the network site, the address of the second PE, and the second tunnel attribute information, Updating the attribute of the tunnel between the first PE and the second PE, so as to update the attribute of the communication connection between the target VPC and the network site.

第二方面,提供另一种通信连接方法,包括:连接位于云端的目标VPC;接收所述云端发送的网络站点的ID及第一隧道属性信息,所述网络站点的ID及所述第一隧道属性信息由所述网络站点在所述网络站点的负荷高于第一负荷时发送;根据所述网络站点的ID获取第二VPN配置信息及第二PE的地址,所述第二VPN配置信息为所述第二PE的VPN配置信息,所述第二PE为所述网络站点的接入设备;根据所述第二VPN配置信息确定与所述第二VPN配置信息相匹配的第一VPN配置信息;根据所述第一VPN配置信息、所述第二PE的地址及所述第一隧道属性信息,建立与所述第二PE间的VPN连接以及隧道连接,从而实现所述目标VPC与所述网络站点间的通信连接。In a second aspect, another communication connection method is provided, including: connecting to a target VPC located in the cloud; receiving the ID of the network site and the first tunnel attribute information sent by the cloud, the ID of the network site and the first tunnel The attribute information is sent by the network site when the load of the network site is higher than the first load; the second VPN configuration information and the address of the second PE are obtained according to the ID of the network site, and the second VPN configuration information is VPN configuration information of the second PE, where the second PE is an access device of the network site; determining first VPN configuration information matching the second VPN configuration information according to the second VPN configuration information ; According to the first VPN configuration information, the address of the second PE, and the first tunnel attribute information, establish a VPN connection and a tunnel connection with the second PE, so as to realize the connection between the target VPC and the Communication link between network sites.

在第二方面的第一种可能的实现方式中,所述根据所述网络站点的ID获取第二VPN配置信息及第二PE的地址包括:应用所述络站点的ID,向数据库查询所述第二VPN配置信息及所述第二PE的地址,所述数据库预存所述网络站点的ID对应的所述第二PE的地址和所述网络站点的ID对应的所述第二VPN配置信息。In a first possible implementation manner of the second aspect, the obtaining the second VPN configuration information and the address of the second PE according to the ID of the network site includes: using the ID of the network site, querying the database for the The second VPN configuration information and the address of the second PE, the database pre-stores the address of the second PE corresponding to the ID of the network site and the second VPN configuration information corresponding to the ID of the network site.

结合所述第二方面,或所述第二方面的第一种可能的实现,在所述第二方面的第二种可能的实现方式中,还包括:接收云端发送的所述网络站点的ID及第二隧道属性信息;根据所述网络站点的ID、所述第二PE的地址及所述第二隧道属性信息,更新所述第一PE与所述第二PE间的隧道属性,从而更新所述目标VPC与所述网络站点的通信连接属性。In combination with the second aspect, or the first possible implementation of the second aspect, in the second possible implementation of the second aspect, it further includes: receiving the ID of the website sent by the cloud and second tunnel attribute information; according to the ID of the network site, the address of the second PE, and the second tunnel attribute information, update the tunnel attribute between the first PE and the second PE, thereby updating The attribute of the communication connection between the target VPC and the network site.

在所述第二方面的第三种可能的实现方式中,所述连接位于所述云端的目标VPC,包括:通过位于所述云端的VCE连接所述目标VPC。In a third possible implementation manner of the second aspect, the connecting to the target VPC located in the cloud includes: connecting to the target VPC through a VCE located in the cloud.

第三方面,提供一种云端装置,包括:第一接收模块,用于接收网络站点在所述网络站点的负荷高于第一负荷时发送的第一请求消息,所述第一请求消息包括创建VPC的请求、所述网络站点的ID和第一隧道属性信息;创建模块,用于根据所述创建VPC的请求创建目标VPC;连接模块,用于连接所述目标VPC和第一PE;第一发送模块,用于向所述第一PE发送所述网络站点的ID及所述第一隧道属性信息,使得所述第一PE根据所述网络站点的ID获取第二VPN配置信息及第二PE的地址,并根据所述第二VPN配置信息确定与所述第二VPN配置信息相匹配的第一VPN配置信息,并根据所述第一VPN配置信息、所述第二PE的地址和所述第一隧道属性信息,建立与所述第二PE间的VPN连接以及隧道连接,从而实现所述目标VPC与所述网络站点间的通信连接,所述第二VPN配置信息为所述第二PE的VPN配置信息,所述第二PE为所述网络站点的接入设备。In a third aspect, a cloud device is provided, including: a first receiving module, configured to receive a first request message sent by a network site when the load of the network site is higher than the first load, the first request message includes creating The request of the VPC, the ID of the network site and the first tunnel attribute information; the creation module is used to create a target VPC according to the request for creating a VPC; the connection module is used to connect the target VPC and the first PE; the first A sending module, configured to send the ID of the network site and the first tunnel attribute information to the first PE, so that the first PE obtains the second VPN configuration information and the second PE according to the ID of the network site and determine the first VPN configuration information matching the second VPN configuration information according to the second VPN configuration information, and determine the first VPN configuration information according to the first VPN configuration information, the address of the second PE, and the The first tunnel attribute information is to establish a VPN connection and a tunnel connection with the second PE, so as to realize the communication connection between the target VPC and the network site, and the second VPN configuration information is the second PE VPN configuration information, the second PE is an access device of the network site.

在第三方面的第一种可能的实现方式中,所述连接模块包括:创建单元,用于创建与所述目标VPC对应的VCE;连接单元,用于通过所述VCE连接所述第一PE。In a first possible implementation manner of the third aspect, the connection module includes: a creation unit, configured to create a VCE corresponding to the target VPC; a connection unit, configured to connect the first PE through the VCE .

结合所述第三方面,或所述第三方面的第一种可能的实现方式,在第三方面的第二种可能的实现方式中,还包括:第二接收模块,用于接收所述网络站点发送的第二请求消息,所述第二请求消息包括更新通信连接的请求、第二隧道属性信息和所述网络站点的ID;第二发送模块,用于根据所述更新通信连接的请求确定所述网络站点需更新通信连接后,向所述第一PE发送所述第二隧道属性信息及所述网络站点的ID,使得所述第一PE根据所述网络站点的ID、所述第二PE的地址及所述第二隧道属性信息,更新所述第一PE与所述第二PE间的隧道属性,从而更新所述目标VPC与所述网络站点的通信连接属性。With reference to the third aspect, or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, it further includes: a second receiving module, configured to receive the network The second request message sent by the station, the second request message includes a request to update the communication connection, the second tunnel attribute information and the ID of the network station; the second sending module is configured to determine according to the request for updating the communication connection After the network station needs to update the communication connection, it sends the second tunnel attribute information and the ID of the network station to the first PE, so that the first PE The PE address and the second tunnel attribute information update the tunnel attribute between the first PE and the second PE, thereby updating the communication connection attribute between the target VPC and the network site.

第四方面,提供一种通信装置,包括:第一连接模块,用于连接位于云端的目标VPC;第一接收模块,用于接收所述云端发送的网络站点的ID及第一隧道属性信息,所述网络站点的ID及所述第一隧道属性信息由所述网络站点在所述网络站点的负荷高于第一负荷时发送;获取模块,用于根据所述网络站点的ID获取第二VPN配置信息及第二PE的地址,所述第二VPN配置信息为所述第二PE的VPN配置信息,所述第二PE为所述网络站点的接入设备;确定模块,用于根据所述第二VPN配置信息确定与所述第二VPN配置信息相匹配的第一VPN配置信息;第二连接模块,用于根据所述第一VPN配置信息、所述第二PE的地址及所述第一隧道属性信息,建立与所述第二PE间的VPN连接以及隧道连接,从而实现所述目标VPC与所述网络站点间的通信连接。In a fourth aspect, a communication device is provided, including: a first connection module, configured to connect to a target VPC located in the cloud; a first receiving module, configured to receive the ID of the network site and the first tunnel attribute information sent by the cloud, The ID of the network site and the first tunnel attribute information are sent by the network site when the load of the network site is higher than the first load; the obtaining module is used to obtain the second VPN according to the ID of the network site Configuration information and the address of the second PE, the second VPN configuration information is the VPN configuration information of the second PE, and the second PE is the access device of the network site; the determining module is configured to, according to the The second VPN configuration information determines the first VPN configuration information that matches the second VPN configuration information; the second connection module is configured to, according to the first VPN configuration information, the address of the second PE, and the first VPN configuration information, A tunnel attribute information, establishing a VPN connection and a tunnel connection with the second PE, so as to realize the communication connection between the target VPC and the network site.

在第四方面的第一种可能的实现方式中,所述获取模块具体用于,应用所述络站点的ID,向数据库查询所述第二VPN配置信息及所述第二PE的地址,所述数据库预存所述网络站点的ID对应的所述第二PE的地址和所述网络站点的ID对应的所述第二VPN配置信息。In a first possible implementation manner of the fourth aspect, the acquiring module is specifically configured to query a database for the second VPN configuration information and the address of the second PE by using the ID of the network site, so The database pre-stores the address of the second PE corresponding to the ID of the network site and the second VPN configuration information corresponding to the ID of the network site.

结合所述第四方面,或所述第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,还包括:第二接收模块,用于接收云端发送的所述网络站点的ID及第二隧道属性信息;第三连接模块,用于根据所述网络站点的ID、所述第二PE的地址及所述第二隧道属性信息,更新所述第一PE与所述第二PE间的隧道属性,从而更新所述目标VPC与所述网络站点的通信连接属性。In combination with the fourth aspect, or the first possible implementation of the fourth aspect, in the second possible implementation of the fourth aspect, it further includes: a second receiving module, configured to receive the The ID of the network site and the second tunnel attribute information; a third connection module, configured to update the first PE according to the ID of the network site, the address of the second PE, and the second tunnel attribute information and the tunnel attribute between the second PE, so as to update the communication connection attribute between the target VPC and the network site.

在第四方面的第三种可能的实现方式中,所述第一连接模块具体用于,通过位于所述云端的虚拟用户边缘设备VCE连接所述目标VPC。In a third possible implementation manner of the fourth aspect, the first connection module is specifically configured to connect to the target VPC through a virtual customer edge device (VCE) located in the cloud.

第五方面,提供一种通信系统,包括第三方面任意一种可能的实现方式中提供的云端装置及第四方面任意一种可能的实现方式中提供的通信装置。In a fifth aspect, a communication system is provided, including the cloud device provided in any possible implementation manner of the third aspect and the communication device provided in any possible implementation manner of the fourth aspect.

本发明实施例提供的通信连接方法、通信装置及通信系统,通过接收网络站点在自动发送包含创建VPC的请求、网络站点的ID及第一隧道属性信息的请求消息后,根据创建VPC的请求创建目标VPC,连接目标VPC和第一PE,向第一PE发送网络站点的ID及第一隧道属性信息,使得第一PE根据网络站点的ID获取第二VPN配置信息及第二PE的地址,并根据第二VPN配置信息得到相匹配的第一VPN配置信息,并根据第一VPN配置信息、第二PE的地址和第一隧道属性信息,建立与第二PE间的VPN连接以及隧道连接,实现目标VPC与网络站点间的通信连接。由于请求消息由网络站点自动发送,因此可以实现根据网络站点的需要及时建立通信连接,从而能够提高连接效率。In the communication connection method, communication device, and communication system provided by the embodiments of the present invention, after the receiving network site automatically sends a request message including the request for creating a VPC, the ID of the network site, and the first tunnel attribute information, the VPC is created according to the request for creating a VPC. The target VPC connects the target VPC and the first PE, sends the ID of the network site and the first tunnel attribute information to the first PE, so that the first PE obtains the second VPN configuration information and the address of the second PE according to the ID of the network site, and According to the second VPN configuration information, the matching first VPN configuration information is obtained, and according to the first VPN configuration information, the address of the second PE and the first tunnel attribute information, a VPN connection and a tunnel connection with the second PE are established to realize The communication connection between the target VPC and the network site. Since the request message is automatically sent by the network site, it is possible to establish a communication connection in time according to the needs of the network site, thereby improving connection efficiency.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1为本发明实施例提供的一种通信连接方法100的流程图;FIG. 1 is a flowchart of a communication connection method 100 provided by an embodiment of the present invention;

图2为本发明实施例提供的另一种通信连接方法100的流程图;FIG. 2 is a flowchart of another communication connection method 100 provided by an embodiment of the present invention;

图3为本发明实施例提供的一种通信连接方法200的流程图;FIG. 3 is a flowchart of a communication connection method 200 provided by an embodiment of the present invention;

图4为本发明实施例提供的另一种通信连接方法200的流程图;FIG. 4 is a flowchart of another communication connection method 200 provided by an embodiment of the present invention;

图5为本发明实施例的数据传输方法的一种应用场景示意图;FIG. 5 is a schematic diagram of an application scenario of a data transmission method according to an embodiment of the present invention;

图6为本发明实施例实现通信连接的流程示意图;FIG. 6 is a schematic flow diagram of implementing a communication connection according to an embodiment of the present invention;

图7为本发明实施例实现更新通信连接的流程示意图;FIG. 7 is a schematic flow diagram of updating a communication connection according to an embodiment of the present invention;

图8为本发明实施例提供的一种云端装置的结构示意图;FIG. 8 is a schematic structural diagram of a cloud device provided by an embodiment of the present invention;

图9为本发明实施例提供的另一种云端装置的结构示意图;FIG. 9 is a schematic structural diagram of another cloud device provided by an embodiment of the present invention;

图10为本发明实施例提供的又一种云端装置的结构示意图;FIG. 10 is a schematic structural diagram of another cloud device provided by an embodiment of the present invention;

图11为本发明实施例提供的一种通信装置的结构示意图;FIG. 11 is a schematic structural diagram of a communication device provided by an embodiment of the present invention;

图12为本发明实施例提供的另一种通信装置的结构示意图;FIG. 12 is a schematic structural diagram of another communication device provided by an embodiment of the present invention;

图13为本发明实施例提供的一种通信系统的结构示意图;FIG. 13 is a schematic structural diagram of a communication system provided by an embodiment of the present invention;

图14为本发明实施例提供的再一种云端装置的结构示意图;FIG. 14 is a schematic structural diagram of another cloud device provided by an embodiment of the present invention;

图15为本发明实施例提供的再一种通信装置的结构示意图。FIG. 15 is a schematic structural diagram of another communication device provided by an embodiment of the present invention.

具体实施方式detailed description

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

本发明实施例中,网络站点为能够利用云端进行数据处理的网络站点,例如,该网络站点可以为一台计算机(如个人电脑),也可以为一个计算机系统(如企业计算机系统)。In the embodiment of the present invention, the website is a website that can use the cloud for data processing. For example, the website can be a computer (such as a personal computer), or a computer system (such as an enterprise computer system).

本发明实施例提供一种通信连接方法100,如图1所示,方法100可以包括:An embodiment of the present invention provides a communication connection method 100. As shown in FIG. 1, the method 100 may include:

110、接收网络站点在该网络站点的负荷高于第一负荷时发送的第一请求消息,该第一请求消息包括创建VPC的请求、该网络站点的ID和第一隧道属性信息。110. Receive a first request message sent by a network site when the load of the network site is higher than the first load, where the first request message includes a request for creating a VPC, an ID of the network site, and first tunnel attribute information.

其中,该网络站点的ID用于识别该网络站点,创建VPC的请求可以在第一请求消息中应用数据段进行标识。Wherein, the ID of the network site is used to identify the network site, and the request for creating a VPC may be identified by using a data segment in the first request message.

具体地,该网络站点可以实时检测负荷,当负荷高于第一负荷时,向云端发送该第一请求信息,即网络站点自主控制该第一请求消息的发送。其中,该第一负荷可以根据不同场景,进行设置变更。另外,根据不同的应用场景,网络站点还可以根据到发送指令发送该第一请求消息。Specifically, the network site can detect the load in real time, and when the load is higher than the first load, send the first request message to the cloud, that is, the network site autonomously controls sending of the first request message. Wherein, the first load can be set and changed according to different scenarios. In addition, according to different application scenarios, the network station may also send the first request message according to the sending instruction.

120、根据该创建VPC的请求创建目标VPC。120. Create a target VPC according to the request for creating a VPC.

其中,该目标VPC为与该网络站点对应的VPC。Wherein, the target VPC is the VPC corresponding to the network site.

130、连接该目标VPC和第一PE。130. Connect the target VPC to the first PE.

140、向该第一PE发送该网络站点的ID及该第一隧道属性信息,使得该第一PE根据该网络站点的ID获取第二VPN配置信息及第二PE的地址,并根据该第二VPN配置信息确定与该第二VPN配置信息相匹配的第一VPN配置信息,并根据该第一VPN配置信息、该第二PE的地址和该第一隧道属性信息,建立与该第二PE间的VPN连接以及隧道连接,从而实现该目标VPC与该网络站点间的通信连接,该第二VPN配置信息为该第二PE的VPN配置信息,该第二PE为该网络站点的接入设备。140. Send the ID of the network site and the first tunnel attribute information to the first PE, so that the first PE obtains the second VPN configuration information and the address of the second PE according to the ID of the network site, and obtains the second VPN configuration information according to the second The VPN configuration information determines the first VPN configuration information that matches the second VPN configuration information, and establishes a connection with the second PE according to the first VPN configuration information, the address of the second PE, and the first tunnel attribute information. VPN connection and tunnel connection, so as to realize the communication connection between the target VPC and the network site, the second VPN configuration information is the VPN configuration information of the second PE, and the second PE is the access device of the network site.

其中,VPN配置信息与所要建立的VPN连接的类型相关。例如,当所要建立的VPN连接为基于三层协议的VPN(Layer 3VPN)时,该第二VPN配置信息可以为该第二PE的输入路由目标(Route Target,RT)和输出RT等信息;当所要建立的VPN连接的类型为基于二层协议的VPN(Layer 2VPN)中的虚拟租用线(Virtual Leased Line,VLL)时,该第二VPN配置信息可以为虚电路(Virtual Circuit,VC)ID等信息。其中,该第二PE的地址可以为该第二PE的IP地址。Wherein, the VPN configuration information is related to the type of the VPN connection to be established. For example, when the VPN connection to be established is a Layer 3 protocol-based VPN (Layer 3VPN), the second VPN configuration information may be information such as the input routing target (Route Target, RT) and output RT of the second PE; When the type of VPN connection to be established is a virtual leased line (Virtual Leased Line, VLL) in a Layer 2 protocol-based VPN (Layer 2VPN), the second VPN configuration information may be a virtual circuit (Virtual Circuit, VC) ID, etc. information. Wherein, the address of the second PE may be the IP address of the second PE.

本发明实施例中,可以在目标VPC与网络站点之间建立单向隧道或双向隧道的通信连接。In the embodiment of the present invention, a communication connection of a one-way tunnel or a two-way tunnel may be established between the target VPC and the network site.

上述第一PE及第二PE为便于表述时区分不同的PE而进行划分,不构成对本发明实施例的限定。上述第一VPN配置信息及第二VPN配置信息为便于表述时区分不同的VPN配置信息而进行划分,不构成对本发明实施例的限定。The foregoing first PE and second PE are divided for the convenience of distinguishing different PEs during expression, and do not constitute a limitation to the embodiment of the present invention. The above-mentioned first VPN configuration information and second VPN configuration information are divided for the convenience of distinguishing different VPN configuration information when expressing, and do not constitute a limitation to the embodiment of the present invention.

上述110-140的执行主体可以为云端装置,该云端装置可以位于云端。另外,该云端装置可以划分成不同的模块分布于多个设备,也可以集成于同一设备之中,还可以作为一个独立的设备。The execution subject of the above 110-140 may be a cloud device, and the cloud device may be located in the cloud. In addition, the cloud device can be divided into different modules and distributed in multiple devices, can also be integrated into the same device, and can also be used as an independent device.

本发明实施例的通信连接方法100,通过接收网络站点自动发送的创建VPC的请求、网络站点的ID及第一隧道属性信息,根据创建VPC的请求创建目标VPC,连接目标VPC和第一PE,向第一PE发送网络站点的ID及第一隧道属性信息,使得第一PE根据网络站点的ID获取第二VPN配置信息及第二PE的地址,并根据第二VPN配置信息得到相匹配的第一VPN配置信息,并根据第一VPN配置信息、第二PE的地址和第一隧道属性信息,建立与第二PE间的VPN连接以及隧道连接,实现目标VPC与网络站点间的通信连接。由于请求消息由网络站点自动发送,因此可以实现根据网络站点的需要及时建立通信连接,从而能够提高连接效率。The communication connection method 100 of the embodiment of the present invention creates a target VPC according to the VPC creation request, and connects the target VPC and the first PE by receiving the VPC creation request automatically sent by the network site, the network site ID, and the first tunnel attribute information, Send the ID of the network site and the first tunnel attribute information to the first PE, so that the first PE obtains the second VPN configuration information and the address of the second PE according to the ID of the network site, and obtains the matching second VPN configuration information according to the second VPN configuration information. A VPN configuration information, and according to the first VPN configuration information, the address of the second PE and the first tunnel attribute information, establish a VPN connection and a tunnel connection with the second PE to realize the communication connection between the target VPC and the network site. Since the request message is automatically sent by the network site, it is possible to establish a communication connection in time according to the needs of the network site, thereby improving connection efficiency.

本发明实施例中,可选地,上述130中连接该VPC和第一PE时,可以创建与该目标VPC对应的VCE,通过该VCE连接该第一PE。In the embodiment of the present invention, optionally, when connecting the VPC and the first PE in the above 130, a VCE corresponding to the target VPC may be created, and the first PE is connected through the VCE.

其中,该VCE连接该第一PE是指设置该VCE,使得该VCE可以和该第一PE进行通信。例如,当该VCE与该第一PE间的通信是基于三层路由协议时,设置该VCE上的运行的路由协议,使得该VCE上的路由可以与该第一PE上的路由互通。再例如,当该VCE与该第一PE上运行的路由协议是边界网关协议(Border Gateway Protocol,BGP)时,设置该VCE的BGP对等体是该第一PE。又例如,当该VCE与该第一PE间的通信是基于二层协议,如在虚拟局域网(Virtual Local Area Network,VLAN)的情况下,设置该VCE上的VLAN ID与该第一PE上接入该VCE的接口的VLAN ID相同,使得该VCE可以与该第一PE上接入该VCE的接口在同一个VLAN内。Wherein, the VCE is connected to the first PE refers to setting the VCE so that the VCE can communicate with the first PE. For example, when the communication between the VCE and the first PE is based on a layer-3 routing protocol, the running routing protocol on the VCE is set so that the route on the VCE can communicate with the route on the first PE. For another example, when the routing protocol running on the VCE and the first PE is Border Gateway Protocol (Border Gateway Protocol, BGP), set the BGP peer of the VCE to be the first PE. For another example, when the communication between the VCE and the first PE is based on a Layer 2 protocol, such as in the case of a virtual local area network (Virtual Local Area Network, VLAN), set the VLAN ID on the VCE to be connected to the first PE. The VLAN ID of the interface accessing the VCE is the same, so that the VCE can be in the same VLAN as the interface accessing the VCE on the first PE.

如图2所示,本发明实施例中,可选地,在上述140之后还可以包括:As shown in Figure 2, in this embodiment of the present invention, optionally, after the above 140, it may further include:

150、接收该网络站点发送的第二请求消息,该第二请求消息包括更新通信连接的请求、第二隧道属性信息和该网络站点的ID。150. Receive a second request message sent by the network station, where the second request message includes a request for updating a communication connection, second tunnel attribute information, and an ID of the network station.

具体地,该网络站点可以自主控制第二请求消息的发送,如检测到当前的通信连接需更新时发送第二请求消息。另外,根据不同的应用场景,该网络站点还可以根据到发送指令发送第二请求消息。Specifically, the network station may autonomously control the sending of the second request message, for example, sending the second request message when it detects that the current communication connection needs to be updated. In addition, according to different application scenarios, the network station may also send the second request message according to the sending instruction.

160、根据该更新通信连接的请求确定该网络站点需更新通信连接后,向该第一PE发送该第二隧道属性信息及该网络站点的ID,使得该第一PE根据该网络站点的ID、该第二PE的地址及该第二隧道属性信息,更新该第一PE与该第二PE间的隧道属性,从而更新该目标VPC与该网络站点的通信连接属性。160. After determining that the network site needs to update the communication connection according to the request for updating the communication connection, send the second tunnel attribute information and the ID of the network site to the first PE, so that the first PE according to the ID of the network site, The address of the second PE and the second tunnel attribute information update the tunnel attribute between the first PE and the second PE, thereby updating the communication connection attribute between the target VPC and the network site.

这样,可以根据需要实时调整目标VPC与网络站点的通信连接。In this way, the communication connection between the target VPC and the network site can be adjusted in real time as required.

本发明实施例中,第一隧道属性信息及第二隧道属性信息可以包括网络站点与云端的通信隧道带宽值。In the embodiment of the present invention, the first tunnel attribute information and the second tunnel attribute information may include a communication tunnel bandwidth value between the network site and the cloud.

本发明实施例通过接收网络站点自动发送的创建VPC的请求、网络站点的ID及第一隧道属性信息,根据创建VPC的请求创建目标VPC,连接目标VPC和第一PE,向第一PE发送网络站点的ID及第一隧道属性信息,使得第一PE根据网络站点的ID获取第二VPN配置信息及第二PE的地址,并根据第二VPN配置信息得到相匹配的第一VPN配置信息,并根据第一VPN配置信息、第二PE的地址和第一隧道属性信息,建立与第二PE间的VPN连接以及隧道连接,实现目标VPC与网络站点间的通信连接。由于请求消息由网络站点自动发送,因此可以实现根据网络站点的需要及时建立通信连接,从而能够提高连接效率。In the embodiment of the present invention, by receiving the request for creating a VPC automatically sent by the network site, the ID of the network site, and the first tunnel attribute information, the target VPC is created according to the request for creating a VPC, the target VPC is connected to the first PE, and the network is sent to the first PE. The ID of the site and the first tunnel attribute information, so that the first PE obtains the second VPN configuration information and the address of the second PE according to the ID of the network site, and obtains the matching first VPN configuration information according to the second VPN configuration information, and According to the first VPN configuration information, the address of the second PE and the first tunnel attribute information, a VPN connection and a tunnel connection with the second PE are established to realize the communication connection between the target VPC and the network site. Since the request message is automatically sent by the network site, it is possible to establish a communication connection in time according to the needs of the network site, thereby improving connection efficiency.

本发明实施例提供的另一种通信连接方法200,如图3所示,方法200可以包括:Another communication connection method 200 provided by an embodiment of the present invention, as shown in FIG. 3 , the method 200 may include:

210、连接位于云端的目标VPC。210. Connect to the target VPC located in the cloud.

其中,该目标VPC由该云端创建。Wherein, the target VPC is created by the cloud.

220、接收该云端发送的网络站点的ID及第一隧道属性信息,该网络站点的ID及该第一隧道属性信息由该网络站点在该网络站点的负荷高于第一负荷时发送。220. Receive the network site ID and first tunnel attribute information sent by the cloud, where the network site ID and the first tunnel attribute information are sent by the network site when the load of the network site is higher than the first load.

230、根据该网络站点的ID获取第二VPN配置信息及第二PE的地址,该第二VPN配置信息为该第二PE的VPN配置信息,该第二PE为该网络站点的接入设备。230. Obtain second VPN configuration information and an address of a second PE according to the ID of the network site, where the second VPN configuration information is VPN configuration information of the second PE, and the second PE is an access device of the network site.

其中,该接入设备可以为具有路由功能的网络设备,如路由器等。Wherein, the access device may be a network device with a routing function, such as a router.

240、根据该第二VPN配置信息确定与该第二VPN配置信息相匹配的第一VPN配置信息。240. Determine first VPN configuration information that matches the second VPN configuration information according to the second VPN configuration information.

其中,VPN配置信息与所要建立的VPN连接的类型相关。例如,当所要建立的VPN连接为基于三层协议的VPN(Layer 3VPN)时,该第二VPN配置信息可以为该网络站点的输入路由目标(Route Target,RT)和输出RT等信息;当所要建立的VPN连接的类型为基于二层协议的VPN(Layer 2VPN)中的虚拟租用线(Virtual Leased Line,VLL)时,该第二VPN配置信息可以为虚电路(Virtual Circuit,VC)ID等信息。其中,该第二PE的地址可以为该第二PE的IP地址。Wherein, the VPN configuration information is related to the type of the VPN connection to be established. For example, when the VPN connection to be established is a Layer 3 VPN (Layer 3VPN), the second VPN configuration information can be information such as the input routing target (Route Target, RT) and output RT of the network site; When the type of established VPN connection is a virtual leased line (Virtual Leased Line, VLL) in a Layer 2 protocol-based VPN (Layer 2VPN), the second VPN configuration information may be virtual circuit (Virtual Circuit, VC) ID and other information . Wherein, the address of the second PE may be the IP address of the second PE.

250、根据该第一VPN配置信息、该第二PE的地址及该第一隧道属性信息,建立与该第二PE间的VPN连接以及隧道连接,从而实现该目标VPC与该网络站点间的通信连接。250. Establish a VPN connection and a tunnel connection with the second PE according to the first VPN configuration information, the address of the second PE, and the first tunnel attribute information, so as to realize the communication between the target VPC and the network site connect.

本发明实施例中,可以在目标VPC与网络站点之间建立单向隧道或双向隧道的通信连接。In the embodiment of the present invention, a communication connection of a one-way tunnel or a two-way tunnel may be established between the target VPC and the network site.

上述第一VPN配置信息及第二VPN配置信息为便于区分不同的VPN配置信息而进行划分,不构成对本发明实施例的限定。上述210-250的执行主体可以为通信装置,该通信装置为具有路由功能的网络设备,如路由器等。The foregoing first VPN configuration information and second VPN configuration information are divided for the convenience of distinguishing different VPN configuration information, which does not constitute a limitation to the embodiment of the present invention. The execution subject of the above-mentioned 210-250 may be a communication device, and the communication device is a network device with a routing function, such as a router.

本发明实施例的通信连接方法200,通过连接位于云端的目标VPC,接收该云端发送的网络站点的ID及第一隧道属性信息,根据该网络站点的ID获取第二VPN配置信息及第二PE的地址,并根据第二VPN配置信息得到相匹配的第一VPN配置信息,并根据第一VPN配置信息、第二PE的地址和第一隧道属性信息,建立与第二PE间的VPN连接以及隧道连接,实现目标VPC与网络站点间的通信连接。由于网络站点的ID及第一隧道属性信息由网络站点自动发送,因此可以实现根据网络站点的需要及时建立通信连接,从而能够提高连接效率。The communication connection method 200 of the embodiment of the present invention connects to the target VPC located in the cloud, receives the ID of the network site and the first tunnel attribute information sent by the cloud, and obtains the second VPN configuration information and the second PE according to the ID of the network site. address, and obtain matching first VPN configuration information according to the second VPN configuration information, and establish a VPN connection with the second PE according to the first VPN configuration information, the address of the second PE, and the first tunnel attribute information, and The tunnel connection realizes the communication connection between the target VPC and the network site. Since the network station ID and the first tunnel attribute information are automatically sent by the network station, the communication connection can be established in time according to the needs of the network station, thereby improving the connection efficiency.

本发明实施例中,可选地,上述230中根据该网络站点的ID获取第二VPN配置信息及第二PE的地址时,可以应用该络站点的ID,向数据库查询该第二VPN配置信息及该第二PE的地址,该数据库预存该网络站点的ID对应的该第二PE的地址和该网络站点的ID对应的该第二VPN配置信息。In the embodiment of the present invention, optionally, when obtaining the second VPN configuration information and the address of the second PE according to the ID of the network site in the above 230, the ID of the network site may be used to query the database for the second VPN configuration information and the address of the second PE, the database pre-stores the address of the second PE corresponding to the ID of the network site and the second VPN configuration information corresponding to the ID of the network site.

这样,可以实现根据该络站点的ID自动向数据库获取第二VPN配置信息及该第二PE的地址,实现与第二PE及云端的连接,可以提高连接效率。In this way, the second VPN configuration information and the address of the second PE can be automatically obtained from the database according to the ID of the network site, and the connection with the second PE and the cloud can be realized, and the connection efficiency can be improved.

本发明实施例中,该数据库可以应用表1所示的格式存储该络站点的ID、该第二PE的地址及该第二VPN配置信息。In the embodiment of the present invention, the database can use the format shown in Table 1 to store the ID of the network site, the address of the second PE, and the configuration information of the second VPN.

表1Table 1

网络站点的ID ID of the website 第二VPN配置信息 Secondary VPN configuration information 第二PE的地址 The address of the second PE

表1中,该络站点的ID、该第二VPN配置信息及该第二PE的地址三者相对应。其中,网络站点的ID用于标识该网络站点,第二VPN配置信息为第二PE的VPN配置信息,第二PE的地址可以为该第二PE的IP地址。In Table 1, the ID of the network site, the configuration information of the second VPN and the address of the second PE correspond to each other. Wherein, the ID of the network site is used to identify the network site, the second VPN configuration information is the VPN configuration information of the second PE, and the address of the second PE may be the IP address of the second PE.

本发明实施例中,该第二VPN配置信息为该第二PE的输入RT和输出RT时,上述240中确定与该第二VPN配置信息相匹配的第一VPN配置信息时,将该第二VPN配置信息中该网络站点的输入RT作为该第一VPN配置信息的输出RT,将该第二VPN配置信息中该网络站点的输出RT作为该第一VPN配置信息的输入RT。该第二VPN配置信息为VC ID时,上述240中确定与该第二VPN配置信息相匹配的第一VPN配置信息时,该第一VPN配置信息中的VC ID的值与该第二VPN配置信息中的VC ID的值相同。In the embodiment of the present invention, when the second VPN configuration information is the input RT and output RT of the second PE, when the first VPN configuration information matching the second VPN configuration information is determined in the above 240, the second The input RT of the network station in the VPN configuration information is used as the output RT of the first VPN configuration information, and the output RT of the network station in the second VPN configuration information is used as the input RT of the first VPN configuration information. When the second VPN configuration information is a VC ID, when the first VPN configuration information matching the second VPN configuration information is determined in 240 above, the value of the VC ID in the first VPN configuration information is consistent with the second VPN configuration information. The value of the VC ID in the information is the same.

本发明实施例中,可选地,连接位于该云端的目标VPC时,可以通过位于该云端的VCE连接该目标VPC。In the embodiment of the present invention, optionally, when connecting to the target VPC located in the cloud, the target VPC may be connected through the VCE located in the cloud.

例如,在通过位于该云端的VCE连接该目标VPC时,可以设置本地参数以实现与位于该云端的VCE连接。本地参数的设置方法与上述130中VCE参数的设置方法类似,请参阅。For example, when connecting to the target VPC through the VCE located in the cloud, local parameters may be set to realize the connection with the VCE located in the cloud. The setting method of local parameters is similar to the setting method of VCE parameters in 130 above, please refer to .

如图4所示,本发明实施例中,可选地,上述250之后,还可以包括:As shown in Figure 4, in this embodiment of the present invention, optionally, after the above 250, it may further include:

260、接收该云端发送的该网络站点的ID及第二隧道属性信息。260. Receive the ID of the website and the second tunnel attribute information sent by the cloud.

270、根据该网络站点的ID、该第二PE的地址及该第二隧道属性信息,更新该第一PE与该第二PE间的隧道属性,从而更新该目标VPC与该网络站点的通信连接属性。270. Update the tunnel attribute between the first PE and the second PE according to the network site ID, the address of the second PE, and the second tunnel attribute information, thereby updating the communication connection between the target VPC and the network site Attributes.

这样,可以根据需要实时调整目标VPC与网络站点的通信连接。In this way, the communication connection between the target VPC and the network site can be adjusted in real time as required.

具体地,第二隧道属性信息可以包括双向通信隧道带宽值,同样,此处的通信连接可以为单向隧道或双向隧道的通信连接,也可以为双向隧道的通信连接。Specifically, the second tunnel attribute information may include a bidirectional communication tunnel bandwidth value. Similarly, the communication connection here may be a communication connection of a unidirectional tunnel or a bidirectional tunnel, or may be a communication connection of a bidirectional tunnel.

本发明实施例中,第一隧道属性信息及第二隧道属性信息可以包括网络站点与云端的通信隧道带宽值。In the embodiment of the present invention, the first tunnel attribute information and the second tunnel attribute information may include a communication tunnel bandwidth value between the network site and the cloud.

本发明实施例,通过连接位于云端的目标VPC,接收云端发送的网络站点的ID及第一隧道属性信息,根据网络站点的ID获取第二VPN配置信息及第二PE的地址,并根据第二VPN配置信息得到相匹配的第一VPN配置信息,并根据第一VPN配置信息、第二PE的地址和第一隧道属性信息,建立与第二PE间的VPN连接以及隧道连接,实现目标VPC与网络站点间的通信连接。由于网络站点的ID及第一隧道属性信息由网络站点自动发送,因此可以实现根据网络站点的需要及时建立通信连接,从而能够提高连接效率。In the embodiment of the present invention, by connecting to the target VPC located in the cloud, the ID of the network site and the first tunnel attribute information sent by the cloud are received, the second VPN configuration information and the address of the second PE are obtained according to the ID of the network site, and the second VPN configuration information and the address of the second PE are obtained according to the second The first VPN configuration information that matches the VPN configuration information is obtained, and according to the first VPN configuration information, the address of the second PE, and the first tunnel attribute information, a VPN connection and a tunnel connection with the second PE are established to realize the target VPC and Communication link between network sites. Since the network station's ID and the first tunnel attribute information are automatically sent by the network station, it is possible to establish a communication connection in time according to the needs of the network station, thereby improving connection efficiency.

图5示出了本发明实施例的通信连接方法的一种应用场景,图5中,包括网络站点,运营商网络和云端。其中网络站点包括网络站点管理模块和网络站点用户边缘设备(customer edge,CE),其中网络站点管理模块用于检测网络站点负荷,并向云端发送消息;网络站点CE可以为网络站点数据中心的出口路由器,与网络站点PE相连。运营商网络包括网络站点PE,云端PE和数据库。其中网络站点PE(第二PE)为由运营商网络提供的,用于将该网络站点接入到运营上网络的接入设备(如路由器等),网络站点PE维护一个如表2所示格式的关联表。云端PE(第一PE)为由运营商网络提供的,用于将云端接入到运营商网络的接入设备(如路由器等)。云端PE维护一个如表3(详见下述)所示格式的关联表。数据库与云端PE相连,数据库存储一个如表1所示格式的信息表。云端包括云端管理模块,云网关路由器(cloud gateway router,CGR)和公共云,其中CGR可以为云端的出口路由器,与云端PE连接。FIG. 5 shows an application scenario of the communication connection method according to the embodiment of the present invention. In FIG. 5 , it includes a network site, an operator network and a cloud. The network site includes a network site management module and a network site customer edge device (customer edge, CE). The network site management module is used to detect the network site load and send messages to the cloud; the network site CE can be the outlet of the network site data center A router is connected to the network site PE. The operator's network includes network site PEs, cloud PEs, and databases. Among them, the network site PE (the second PE) is provided by the operator network and is used to connect the network site to the access device (such as a router, etc.) of the operating network. The network site PE maintains a format as shown in Table 2 association table. The cloud PE (the first PE) is an access device (such as a router, etc.) provided by the operator network for connecting the cloud to the operator network. The cloud PE maintains an association table in the format shown in Table 3 (see below for details). The database is connected to the cloud PE, and the database stores an information table in the format shown in Table 1. The cloud includes a cloud management module, a cloud gateway router (CGR) and a public cloud, where the CGR can be an egress router of the cloud, connected to the cloud PE.

下面以图5所示的应用场景为例,结合图6示出的交互流程详细说明本发明实施例的通信连接方法的具体实现过程,应当理解,图5仅为本发明实施例的一种应用场景,是为方便理解本发明实施例而作的示范性说明,不应视为对本发明实施例的限定。此外,图5中以VPN连接为Layer 3VPN连接为例,但并不限于此,例如,VPN连接还可以为Layer 2VPN连接。Taking the application scenario shown in FIG. 5 as an example, the specific implementation process of the communication connection method in the embodiment of the present invention will be described in detail in combination with the interaction process shown in FIG. 6. It should be understood that FIG. 5 is only an application of the embodiment of the present invention The scene is an exemplary description for the convenience of understanding the embodiment of the present invention, and should not be regarded as a limitation to the embodiment of the present invention. In addition, in FIG. 5 , the VPN connection is a Layer 3VPN connection as an example, but it is not limited thereto. For example, the VPN connection may also be a Layer 2VPN connection.

图5所示的场景中,实现网络站点与云端通信连接前,网络站点向运营商注册网络站点的ID,网络站点的ID用于区分不同的网络站点。网络站点PE上建立一个VPN实例,网络站点PE上配置输入RT和输出RT(配置信息),并在运营商网络的数据库中采用表1所示的格式保存网络站点的ID、网络站点PE上配置的输入RT和输出RT(第二VPN配置信息)及网络站点PE的地址。在网络站点PE维护的如表2所示格式的关联表中记录网络站点的ID和对应的网络站点VPN ID,建立隧道连接前Tunnel(隧道)ID为空,建立隧道连接后将Tunnel ID记录在表2中(参见下述图6中507中获得反向隧道的隧道ID的方法)。In the scenario shown in FIG. 5 , before realizing the communication connection between the website and the cloud, the website registers the ID of the website with the operator, and the ID of the website is used to distinguish different websites. Establish a VPN instance on the network site PE, configure the input RT and output RT (configuration information) on the network site PE, and save the network site ID and The input RT and output RT (the second VPN configuration information) and the address of the network site PE. Record the ID of the network site and the corresponding VPN ID in the association table maintained by the network site PE in the format shown in Table 2. Before the tunnel connection is established, the Tunnel (tunnel) ID is empty. After the tunnel connection is established, the Tunnel ID is recorded in Table 2 (refer to the method for obtaining the tunnel ID of the reverse tunnel in 507 in FIG. 6 below).

表2Table 2

网络站点的ID ID of the website 网络站点VPN ID Network site VPN ID Tunnel ID Tunnel ID

表2中,网络站点的ID、网络站点VPN ID、TunnelID三者相对应。In Table 2, the ID of the network site, the VPN ID of the network site, and the TunnelID correspond to each other.

本发明实施例中提及的双向隧道包括正向隧道和反向隧道,云端PE(第一PE)至网络站点PE(第二PE)的隧道为正向隧道,网络站点PE至云端PE的隧道为反向隧道。The bidirectional tunnel mentioned in the embodiment of the present invention includes a forward tunnel and a reverse tunnel. The tunnel from the cloud PE (the first PE) to the network site PE (the second PE) is a forward tunnel, and the tunnel from the network site PE to the cloud PE for the reverse tunnel.

图6为图5场景中实现通信连接的信息交互示意图,包括:Fig. 6 is a schematic diagram of information interaction for realizing a communication connection in the scene of Fig. 5, including:

501、云端管理模块接收到网络站点管理模块发送的连接请求消息(第一请求消息),连接请求消息包括创建VPC(目标VPC)的请求、网络站点的ID和双向隧道带宽值(第一隧道属性信息),云端管理模块根据创建VPC的请求创建一个VPC(目标VPC)。501. The cloud management module receives a connection request message (first request message) sent by the network site management module. The connection request message includes a request to create a VPC (target VPC), the ID of the network site, and a bidirectional tunnel bandwidth value (the first tunnel attribute information), the cloud management module creates a VPC (target VPC) according to the VPC creation request.

例如,可以在连接请求消息中加入一个指示字段,标识创建VPC的请求,指示云端创建VPC。For example, an indication field may be added to the connection request message to identify a request for creating a VPC and instruct the cloud to create a VPC.

其中,连接请求消息由网络站点在网络站点的负荷高于第一负荷时自动发送,双向隧道带宽值包括正向隧道带宽值和反向隧道带宽值。Wherein, the connection request message is automatically sent by the network site when the load of the network site is higher than the first load, and the bidirectional tunnel bandwidth value includes a forward tunnel bandwidth value and a reverse tunnel bandwidth value.

502、云端管理模块向CGR发送网络站点的ID及双向隧道带宽值。502. The cloud management module sends the ID of the network site and the bandwidth value of the bidirectional tunnel to the CGR.

503、CGR创建与VPC对应的VCE,并通过VCE连接云端PE。503. The CGR creates a VCE corresponding to the VPC, and connects to the cloud PE through the VCE.

此时,云端PE也与VCE连接。At this time, the cloud PE is also connected to the VCE.

504、CGR向云端PE发送网络站点的ID及双向隧道带宽值。504. The CGR sends the ID of the network site and the bandwidth value of the bidirectional tunnel to the cloud PE.

具体地,CGR可以将网络站点的ID及双向隧道带宽携带于扩展边界网关协议(Border Gateway Protocol,BGP)update信令属性中向云端PE发送。Specifically, the CGR may carry the ID of the network site and the bandwidth of the bidirectional tunnel in an extended Border Gateway Protocol (Border Gateway Protocol, BGP) update signaling attribute and send it to the cloud PE.

505、云端PE应用网络站点的ID向数据库获取网络站点PE配置的输入RT和输出RT、及网络站点PE的地址。505. The cloud PE uses the ID of the network site to acquire the input RT and output RT configured by the network site PE and the address of the network site PE from the database.

506、云端PE应用网络站点PE配置的输入RT和输出RT(第一VPN配置信息)建立VPN实例,生成云端VPN ID,将VCE与该VPN实例对接,并在云端PE维护的关联表(如表3所示)中记录网络站点的ID及云端VPN ID,表3中,Tunnel(隧道)ID栏空置,待下述507确定TunnelID后存入表中。506. The cloud PE applies the input RT and output RT (the first VPN configuration information) configured by the network site PE to establish a VPN instance, generates a cloud VPN ID, connects the VCE to the VPN instance, and establishes an association table maintained by the cloud PE (such as table 3) to record the ID of the network site and the cloud VPN ID. In Table 3, the Tunnel (tunnel) ID column is left blank, and will be stored in the table after the TunnelID is determined in 507 below.

表3table 3

网络站点的ID ID of the website 云端VPN ID Cloud VPN ID Tunnel ID Tunnel ID

表3中,网络站点的ID、云端VPN ID、Tunnel ID三者相对应。In Table 3, the ID of the network site, the cloud VPN ID, and the Tunnel ID correspond to each other.

507、云端PE应用网络站点PE的地址向网络站点PE发起双向隧道连接,并应用双向带宽值确定双向带宽。507. The cloud PE uses the address of the network site PE to initiate a bidirectional tunnel connection to the network site PE, and uses the bidirectional bandwidth value to determine the bidirectional bandwidth.

其中,双向隧道包括正向隧道(云端PE至网络站点PE)和反向隧道(网络站点PE至云端PE),相应地,双向隧道带宽值包括正向隧道带宽值和反向隧道带宽值。例如,云端PE创建正向隧道,在创建正向隧道后,得到正向隧道的隧道ID,记录在云端PE维护的关联表(表3)中该网络站点的ID对应的表项中,在云端PE创建正向隧道的信息到达网络站点PE后,触发网络站点PE创建反向隧道,在创建反向隧道后,网络站点PE得到反向隧道的隧道ID,记录在网络站点PE维护的关联表(表2)中该网络站点的ID对应的表项中。Wherein, the bidirectional tunnel includes a forward tunnel (from the cloud PE to the network site PE) and a reverse tunnel (from the network site PE to the cloud PE). Correspondingly, the bidirectional tunnel bandwidth value includes a forward tunnel bandwidth value and a reverse tunnel bandwidth value. For example, the cloud PE creates a forward tunnel. After creating the forward tunnel, the tunnel ID of the forward tunnel is obtained and recorded in the entry corresponding to the network site ID in the association table (Table 3) maintained by the cloud PE. After the forward tunnel creation information of the PE arrives at the network site PE, it triggers the network site PE to create a reverse tunnel. After the reverse tunnel is created, the network site PE obtains the tunnel ID of the reverse tunnel and records it in the association table maintained by the network site PE ( Table 2) in the entry corresponding to the ID of the network site.

508、云端PE根据云端PE维护的关联表(表3)中的网络站点的ID,将正向隧道的隧道ID与云端VPN ID绑定。508. The cloud PE binds the tunnel ID of the forward tunnel with the cloud VPN ID according to the network site ID in the association table (Table 3) maintained by the cloud PE.

509、网络站点PE根据网络站点PE维护的关联表(表2)中的网络站点的ID,将反向隧道的隧道ID与网络站点VPN ID绑定。509. The network site PE binds the tunnel ID of the reverse tunnel with the network site VPN ID according to the network site ID in the association table (Table 2) maintained by the network site PE.

应当理解,本发明实施例也可以发起单向隧道连接,具体实现方法可以请参照上述双向隧道连接方法,不再赘述。It should be understood that the embodiment of the present invention may also initiate a one-way tunnel connection, and for a specific implementation method, please refer to the above-mentioned two-way tunnel connection method, and details are not repeated here.

至此,实现VPC与网络站点的数据中心的通信连接。So far, the communication connection between the VPC and the data center of the network site is realized.

另外本发明实施例中,在云端PE与网络站点PE间建立双向隧道连接之后,还可以根据网络站点的请求,按新的双向隧道的带宽值更新双向隧道连接。请参阅图7,包括:In addition, in the embodiment of the present invention, after the bidirectional tunnel connection is established between the cloud PE and the network site PE, the bidirectional tunnel connection may be updated according to the new bandwidth value of the bidirectional tunnel according to the request of the network site. See Figure 7, including:

601、云端管理模块收到网络站点管理模块发送的更新请求消息(第二请求消息),更新请求消息包括更新双向隧道的请求(更新通信连接的请求)、网络站点的ID及双向隧道带宽值(第二隧道属性信息)。601. The cloud management module receives an update request message (second request message) sent by the network site management module. The update request message includes a request for updating a two-way tunnel (a request for updating a communication connection), an ID of the network site, and a two-way tunnel bandwidth value ( second tunnel attribute information).

例如,可以在更新请求消息中加入一个指示字段,标识更新双向隧道的请求,指示云端更新双向隧道。更新请求消息由网络站点检测到隧道带宽需要变更时发送,或者由网络站点根据指令发送,双向隧道带宽值可以包括正向隧道带宽值和反向隧道带宽值。For example, an indication field may be added in the update request message to identify the request for updating the bidirectional tunnel and instruct the cloud to update the bidirectional tunnel. The update request message is sent by the network station when it detects that the tunnel bandwidth needs to be changed, or by the network station according to an instruction, and the bidirectional tunnel bandwidth value may include a forward tunnel bandwidth value and a reverse tunnel bandwidth value.

收到双向隧道带宽的请求后,执行602。After receiving the bidirectional tunnel bandwidth request, go to 602 .

602、云端管理模块向CGR发送网络站点的ID及双向隧道带宽值。602. The cloud management module sends the ID of the network site and the bandwidth value of the bidirectional tunnel to the CGR.

603、CGR向云端PE发送网络站点的ID及双向隧道带宽值。603. The CGR sends the ID of the network site and the bandwidth value of the bidirectional tunnel to the cloud PE.

同样,此处CGR可以将网络站点的ID及双向隧道带宽值携带于扩展BGP update信令属性向云端PE发送。Similarly, here the CGR can carry the ID of the network site and the bidirectional tunnel bandwidth value in the extended BGP update signaling attribute and send it to the cloud PE.

604、云端PE根据网络站点的ID在本地维护的关联表(表3)中查询到该网络站点的ID对应的正向隧道的隧道ID,按双向隧道带宽值中的正向隧道带宽值变更正向隧道的带宽。604. According to the ID of the network site, the cloud PE queries the tunnel ID of the forward tunnel corresponding to the ID of the network site in the locally maintained association table (Table 3), and changes the forward tunnel bandwidth value according to the two-way tunnel bandwidth value. bandwidth to the tunnel.

605、云端PE将网络站点的ID及反向隧道带宽值发送到网络站点PE。605. The cloud PE sends the network site ID and the reverse tunnel bandwidth value to the network site PE.

具体地,云端PE可以通过扩展资源预留协议流量工程(Resource ReservationProtocol-Traffic Engineering,RSVP-TE)信令携带网络站点的ID及反向隧道带宽值发送到网络站点PE。Specifically, the cloud PE may send the network site ID and the reverse tunnel bandwidth value to the network site PE through extended Resource Reservation Protocol-Traffic Engineering (RSVP-TE) signaling.

606、网络站点PE通过网络站点的ID在本地维护的关联表(表2)中查询存储的网络站点的ID对应的反向隧道的隧道ID,按反向隧道带宽值变更反向隧道的带宽。606. The network site PE queries the stored network site ID corresponding to the reverse tunnel tunnel ID in the locally maintained association table (Table 2) through the network site ID, and changes the reverse tunnel bandwidth according to the reverse tunnel bandwidth value.

至此,实现更新云端PE与网络站点PE间的双向隧道连接。So far, the two-way tunnel connection between the updated cloud PE and the network site PE is realized.

本发明实施例,网络站点自动向云端发送创建VPC的请求、网络站点的ID及双向隧道带宽值,云端根据创建VPC的请求创建目标VPC,连接目标VPC和云端PE,向云端PE发送网络站点的ID及第一隧道属性信息,云端PE根据网络站点的ID获取网络站点PE配置的输入RT和输出RT及第二PE的地址,并根据网络站点PE配置的输入RT和输出RT建立VPN,并根据VPN、网络站点PE的地址和双向隧道带宽值,建立与网络站点PE间的VPN连接以及隧道连接,实现目标VPC与网络站点间的通信连接。由于请求消息由网络站点自动发送,因此可以实现根据网络站点的需要及时建立通信连接,从而能够提高连接效率。另外,本发明实施例还可以根据需要实时调整目标VPC与网络站点的通信连接。In the embodiment of the present invention, the network site automatically sends a request for creating a VPC, the ID of the network site, and a two-way tunnel bandwidth value to the cloud, and the cloud creates a target VPC according to the request for creating a VPC, connects the target VPC and the cloud PE, and sends the network site to the cloud PE. ID and the attribute information of the first tunnel, the cloud PE obtains the input RT and output RT configured by the network site PE and the address of the second PE according to the ID of the network site, and establishes a VPN according to the input RT and output RT configured by the network site PE, and according to The VPN, the address of the network site PE and the bandwidth value of the bidirectional tunnel establish a VPN connection and a tunnel connection with the network site PE to realize the communication connection between the target VPC and the network site. Since the request message is automatically sent by the network site, it is possible to establish a communication connection in time according to the needs of the network site, thereby improving connection efficiency. In addition, the embodiment of the present invention can also adjust the communication connection between the target VPC and the network site in real time as required.

如图8所示,本发明实施例提供一种云端装置,该装置可以包括:第一接收模块810,创建模块820,连接模块830,第一发送模块840,其中:As shown in FIG. 8 , an embodiment of the present invention provides a cloud device, which may include: a first receiving module 810, a creation module 820, a connection module 830, and a first sending module 840, wherein:

第一接收模块810,用于接收网络站点在网络站点的负荷高于第一负荷时发送的第一请求消息,第一请求消息包括创建VPC的请求、网络站点的ID和第一隧道属性信息。The first receiving module 810 is configured to receive a first request message sent by the network site when the load of the network site is higher than the first load, the first request message includes a request for creating a VPC, an ID of the network site, and first tunnel attribute information.

创建模块820,用于根据创建VPC的请求创建目标VPC。The creation module 820 is configured to create a target VPC according to the VPC creation request.

连接模块830,用于连接目标VPC和第一PE。A connection module 830, configured to connect the target VPC and the first PE.

第一发送模块840,用于向第一PE发送网络站点的ID及第一隧道属性信息,使得第一PE根据网络站点的ID获取第二VPN配置信息及第二PE的地址,并根据第二VPN配置信息得到相匹配的第一VPN配置信息,并根据第一VPN配置信息、第二PE的地址和第一隧道属性信息,建立与第二PE间的VPN连接以及隧道连接,从而实现目标VPC与网络站点间的通信连接,第二VPN配置信息为第二PE的VPN配置信息,第二PE为网络站点的接入设备。The first sending module 840 is configured to send the ID of the network site and the first tunnel attribute information to the first PE, so that the first PE obtains the second VPN configuration information and the address of the second PE according to the ID of the network site, and obtains the second VPN configuration information and the address of the second PE according to the second The first VPN configuration information that matches the VPN configuration information is obtained, and according to the first VPN configuration information, the address of the second PE, and the first tunnel attribute information, a VPN connection and a tunnel connection with the second PE are established, so as to realize the target VPC For the communication connection with the network site, the second VPN configuration information is the VPN configuration information of the second PE, and the second PE is the access device of the network site.

较佳地,如图9所示,连接模块830可以包括:Preferably, as shown in FIG. 9, the connection module 830 may include:

创建单元831,用于创建与目标VPC对应的VCE;A creating unit 831, configured to create a VCE corresponding to the target VPC;

连接单元832,用于通过该VCE连接该第一PE。The connecting unit 832 is configured to connect to the first PE through the VCE.

较佳地,如图10所示,本发明实施例的另一种云端装置还可以包括:第二接收模块850、第二发送模块860,其中:Preferably, as shown in FIG. 10 , another cloud device in the embodiment of the present invention may further include: a second receiving module 850 and a second sending module 860, wherein:

第二接收模块850,用于接收网络站点发送的第二请求消息,第二请求消息包括更新通信连接的请求、第二隧道属性信息和网络站点的ID。The second receiving module 850 is configured to receive a second request message sent by the network station, where the second request message includes a request for updating the communication connection, second tunnel attribute information, and an ID of the network station.

第二发送模块860,用于根据更新通信连接的请求确定网络站点需更新通信连接后,向第一PE发送第二隧道属性信息及网络站点的ID,使得第一PE根据网络站点的ID、第二PE的地址及第二隧道属性信息,更新第一PE与第二PE间的隧道属性,从而更新目标VPC与网络站点的通信连接属性。The second sending module 860 is configured to send the second tunnel attribute information and the ID of the network site to the first PE after determining that the network site needs to update the communication connection according to the request for updating the communication connection, so that the first PE according to the ID of the network site, the second The addresses of the two PEs and the second tunnel attribute information update the tunnel attributes between the first PE and the second PE, thereby updating the communication connection attributes between the target VPC and the network site.

这样,可以根据需要实时调整目标VPC与网络站点的通信连接。In this way, the communication connection between the target VPC and the network site can be adjusted in real time as required.

本发明实施例的云端装置的组成模块可以分布于不同的设备之中,也可以集成于同一设备之中,多个模块可以合并使用,单个模块也可以使用也可以分立使用,能够实现各自的功能即可。例如,第一接收模块810和创建模块820可以合并为图5中的云端管理模块实现相应的功能。上述云端装置中各模块的功能仅作简要描述,详细描述请参见上述通信连接方法100的实施例,另外上述云端装置可以执行上述通信连接方法100实施例中相应的步骤。The constituent modules of the cloud device in the embodiment of the present invention can be distributed in different devices, or can be integrated in the same device, multiple modules can be used in combination, a single module can also be used or used separately, and can realize their respective functions That's it. For example, the first receiving module 810 and the creating module 820 can be combined into a cloud management module in FIG. 5 to implement corresponding functions. The function of each module in the above-mentioned cloud device is only briefly described. For detailed description, please refer to the embodiment of the above-mentioned communication connection method 100 . In addition, the above-mentioned cloud device can execute the corresponding steps in the above-mentioned embodiment of the communication connection method 100 .

本发明实施例的云端装置接收网络站点自动发送的包含创建VPC的请求、网络站点的ID及第一隧道属性信息的请求消息,根据创建VPC的请求创建目标VPC,连接目标VPC和第一PE,向第一PE发送网络站点的ID及第一隧道属性信息,使得第一PE根据网络站点的ID获取第二VPN配置信息及第二PE的地址,并根据第二VPN配置信息得到相匹配的第一VPN配置信息,并根据第一VPN配置信息、第二PE的地址和第一隧道属性信息,建立与第二PE间的VPN连接以及隧道连接,实现目标VPC与网络站点间的通信连接。由于请求消息由网络站点自动发送,因此可以实现根据网络站点的需要及时建立通信连接,从而能够提高连接效率。The cloud device in the embodiment of the present invention receives a request message including a request for creating a VPC, an ID of the network site, and first tunnel attribute information automatically sent by the network site, creates a target VPC according to the request for creating a VPC, and connects the target VPC to the first PE, Send the ID of the network site and the first tunnel attribute information to the first PE, so that the first PE obtains the second VPN configuration information and the address of the second PE according to the ID of the network site, and obtains the matching second VPN configuration information according to the second VPN configuration information. A VPN configuration information, and according to the first VPN configuration information, the address of the second PE and the first tunnel attribute information, establish a VPN connection and a tunnel connection with the second PE to realize the communication connection between the target VPC and the network site. Since the request message is automatically sent by the network site, it is possible to establish a communication connection in time according to the needs of the network site, thereby improving connection efficiency.

如图11所示,本发明实施例提供一种通信装置,该装置可以包括:第一连接模块910,第一接收模块920,获取模块930,确定模块940,第二连接模块950,其中:As shown in FIG. 11 , an embodiment of the present invention provides a communication device, which may include: a first connection module 910, a first receiving module 920, an acquisition module 930, a determination module 940, and a second connection module 950, wherein:

第一连接模块910,用于连接位于云端的目标VPC。The first connection module 910 is configured to connect to the target VPC located in the cloud.

第一接收模块920,用于接收云端发送的网络站点的ID及第一隧道属性信息,网络站点的ID及第一隧道属性信息由网络站点在网络站点的数据中心的负荷高于第一负荷时发送。The first receiving module 920 is configured to receive the ID of the network site and the first tunnel attribute information sent by the cloud. The ID of the network site and the first tunnel attribute information are generated by the network site when the load of the data center of the network site is higher than the first load. send.

获取模块930,可以用于根据网络站点的ID获取第二VPN配置信息及第二PE的地址,第二VPN配置信息为第二PE的VPN配置信息,第二PE为网络站点的接入设备。The obtaining module 930 may be configured to obtain second VPN configuration information and the address of the second PE according to the ID of the network site, the second VPN configuration information is the VPN configuration information of the second PE, and the second PE is an access device of the network site.

确定模块940,用于根据第二VPN配置信息确定与第二VPN配置信息相匹配的第一VPN配置信息。A determining module 940, configured to determine, according to the second VPN configuration information, first VPN configuration information that matches the second VPN configuration information.

第二连接模块950,用于根据第一VPN配置信息、第二PE的地址及第一隧道属性信息,建立与第二PE间的VPN连接以及隧道连接,从而实现目标VPC与网络站点间的通信连接。The second connection module 950 is configured to establish a VPN connection and a tunnel connection with the second PE according to the first VPN configuration information, the address of the second PE, and the first tunnel attribute information, so as to realize the communication between the target VPC and the network site connect.

较佳地,获取模块930具体用于,应用络站点的ID,向数据库查询第二VPN配置信息及第二PE的地址,数据库预存网络站点的ID对应的第二PE的地址和网络站点的ID对应的第二VPN配置信息。Preferably, the obtaining module 930 is specifically configured to use the ID of the network site to query the database for the second VPN configuration information and the address of the second PE, and the database pre-stores the address of the second PE corresponding to the ID of the network site and the ID of the network site Corresponding second VPN configuration information.

较佳地,如图12所示,本发明实施例的另一种云端装置还可以包括:第二接收模块960、第三连接模块970,其中:Preferably, as shown in FIG. 12, another cloud device in the embodiment of the present invention may further include: a second receiving module 960 and a third connecting module 970, wherein:

第二接收模块960,用于接收云端发送的网络站点的ID及第二隧道属性信息。The second receiving module 960 is configured to receive the ID of the network site and the second tunnel attribute information sent by the cloud.

第三连接模块970,用于根据网络站点的ID、第二PE的地址及第二隧道属性信息,更新第一PE与第二PE间的隧道属性,从而更新目标VPC与网络站点的通信连接属性。The third connection module 970 is configured to update the tunnel attribute between the first PE and the second PE according to the ID of the network site, the address of the second PE, and the second tunnel attribute information, so as to update the communication connection attribute between the target VPC and the network site .

较佳地,上述第一接收模块通过位于云端的VCE连接目标VPC。Preferably, the first receiving module is connected to the target VPC through the VCE located in the cloud.

本发明实施例的通信装置可以为具有路由功能的网络设备,如路由器等。另外,该通信装置的组成模块可以分布于不同的设备之中,也可以集成于同一设备之中,多个模块可以合并使用,单个模块也可以使用也可以分立使用,能够实现各自的功能即可。The communication device in this embodiment of the present invention may be a network device with a routing function, such as a router. In addition, the components of the communication device can be distributed in different devices, or can be integrated in the same device, multiple modules can be used in combination, a single module can also be used or used separately, as long as they can realize their respective functions .

上述通信装置中各模块的功能仅作简要描述,详细描述请参见上述通信连接方法200的实施例,另外上述通信装置可以执行上述通信连接方法200实施例中相应的步骤。The function of each module in the above-mentioned communication device is only briefly described. For a detailed description, please refer to the embodiment of the above-mentioned communication connection method 200 . In addition, the above-mentioned communication device can execute corresponding steps in the above-mentioned embodiment of the communication connection method 200 .

本发明实施例的通信装置,通过连接位于云端的目标VPC,接收云端发送的网络站点的ID及第一隧道属性信息,根据网络站点的ID获取第二VPN配置信息及第二PE的地址,并根据第二VPN配置信息得到相匹配的第一VPN配置信息,并根据第一VPN配置信息、第二PE的地址和第一隧道属性信息,建立与第二PE间的VPN连接以及隧道连接,实现目标VPC与网络站点间的通信连接。由于网络站点的ID及第一隧道属性信息由网络站点自动发送,因此可以实现根据网络站点的需要及时建立通信连接,从而能够提高连接效率。The communication device of the embodiment of the present invention receives the ID of the network site and the first tunnel attribute information sent by the cloud by connecting to the target VPC located in the cloud, obtains the second VPN configuration information and the address of the second PE according to the ID of the network site, and According to the second VPN configuration information, the matching first VPN configuration information is obtained, and according to the first VPN configuration information, the address of the second PE and the first tunnel attribute information, a VPN connection and a tunnel connection with the second PE are established to realize The communication connection between the target VPC and the network site. Since the network station ID and the first tunnel attribute information are automatically sent by the network station, the communication connection can be established in time according to the needs of the network station, thereby improving the connection efficiency.

如图13所示,本发明实施例提供一种通信系统,包括:云端装置S1及通信装置S2,其中:As shown in FIG. 13, an embodiment of the present invention provides a communication system, including: a cloud device S1 and a communication device S2, wherein:

云端装置S1可以用于,接收网络站点在网络站点的负荷高于第一负荷时发送的第一请求消息,第一请求消息包括创建VPC的请求、网络站点的标识ID和第一隧道属性信息;根据创建VPC的请求创建目标VPC;连接目标VPC和第一PE;向第一PE发送网络站点的ID及第一隧道属性信息,使得第一PE根据网络站点的ID获取第二VPN配置信息及第二PE的地址,并根据第二VPN配置信息确定与第二VPN配置信息相匹配的第一VPN配置信息,并根据第一VPN配置信息、第二PE的地址和第一隧道属性信息,建立与第二PE间的VPN连接以及隧道连接,从而实现目标VPC与网络站点间的通信连接,第二VPN配置信息为第二PE的VPN配置信息,第二PE为网络站点的接入设备。The cloud device S1 may be used to receive a first request message sent by the network site when the load of the network site is higher than the first load, the first request message includes a request for creating a VPC, the identification ID of the network site, and first tunnel attribute information; Create a target VPC according to the request to create a VPC; connect the target VPC and the first PE; send the ID of the network site and the first tunnel attribute information to the first PE, so that the first PE obtains the second VPN configuration information and the first tunnel according to the ID of the network site. the address of the second PE, and determine the first VPN configuration information that matches the second VPN configuration information according to the second VPN configuration information, and establish a connection with the first VPN configuration information, the address of the second PE, and the first tunnel attribute information according to the first VPN configuration information, the address of the second PE, and the first tunnel attribute information. The VPN connection and the tunnel connection between the second PEs realize the communication connection between the target VPC and the network site, the second VPN configuration information is the VPN configuration information of the second PE, and the second PE is an access device of the network site.

通信装置S2可以用于,连接位于云端的目标VPC;接收云端发送的网络站点的ID及第一隧道属性信息,所述网络站点的ID及所述第一隧道属性信息由所述网络站点在所述网络站点的负荷高于第一负荷时发送;根据所述网络站点的ID获取第二VPN配置信息及第二PE的地址,所述第二VPN配置信息为所述第二PE的VPN配置信息,所述第二PE为所述网络站点的接入设备;根据所述第二VPN配置信息确定与所述第二VPN配置信息相匹配的第一VPN配置信息;根据所述第一VPN配置信息、所述第二PE的地址及所述第一隧道属性信息,建立与所述第二PE间的VPN连接以及隧道连接,从而实现所述目标VPC与所述网络站点间的通信连接。The communication device S2 may be used to connect to the target VPC located in the cloud; receive the ID of the network site and the first tunnel attribute information sent by the cloud, and the ID of the network site and the first tunnel attribute information are provided by the network site in the Send when the load of the network site is higher than the first load; obtain the second VPN configuration information and the address of the second PE according to the ID of the network site, and the second VPN configuration information is the VPN configuration information of the second PE , the second PE is an access device of the network site; determining first VPN configuration information matching the second VPN configuration information according to the second VPN configuration information; according to the first VPN configuration information , the address of the second PE and the first tunnel attribute information, and establish a VPN connection and a tunnel connection with the second PE, so as to realize the communication connection between the target VPC and the network site.

具体地,该云端设备S1的组成模块,及各模块的具体功能与上述实本发明实施例的云端装置相同,请参阅。该通信装置S2的组成模块,及各模块的具体功能与上述实本发明实施例的通信装置相同,请参阅。Specifically, the constituent modules of the cloud device S1 and the specific functions of each module are the same as those of the above cloud device implementing the embodiment of the present invention, please refer to. The constituent modules of the communication device S2 and the specific functions of each module are the same as those of the above-mentioned communication device according to the embodiment of the present invention, please refer to.

本发明实施例的通信系统,云端装置接收网络站点自动发送的创建VPC的请求、网络站点的ID及第一隧道属性信息,根据创建VPC的请求创建目标VPC,连接目标VPC和第一PE,向第一PE发送网络站点的ID及第一隧道属性信息,使得第一PE根据网络站点的ID获取第二VPN配置信息及第二PE的地址,并根据第二VPN配置信息得到相匹配的第一VPN配置信息,并根据第一VPN配置信息、第二PE的地址和第一隧道属性信息,建立与第二PE间的VPN连接以及隧道连接,实现目标VPC与网络站点间的通信连接。由于请求消息由网络站点自动发送,因此可以实现根据网络站点的需要及时建立通信连接,从而能够提高连接效率。In the communication system of the embodiment of the present invention, the cloud device receives the request for creating a VPC automatically sent by the network site, the ID of the network site, and the first tunnel attribute information, creates a target VPC according to the request for creating a VPC, connects the target VPC and the first PE, and sends The first PE sends the ID of the network site and the first tunnel attribute information, so that the first PE obtains the second VPN configuration information and the address of the second PE according to the ID of the network site, and obtains the matching first tunnel address according to the second VPN configuration information. VPN configuration information, and according to the first VPN configuration information, the address of the second PE and the first tunnel attribute information, establish a VPN connection and a tunnel connection with the second PE, so as to realize the communication connection between the target VPC and the network site. Since the request message is automatically sent by the network site, it is possible to establish a communication connection in time according to the needs of the network site, thereby improving connection efficiency.

如图14所示,本发明实施例还提供一种云端装置,该装置可以包括:总线144及连接到总线144的接口141、处理器142、存储器143,其中:As shown in FIG. 14 , an embodiment of the present invention also provides a cloud device, which may include: a bus 144 and an interface 141 connected to the bus 144, a processor 142, and a memory 143, wherein:

接口141用于接收网络站点在网络站点的负荷高于第一负荷时发送的第一请求消息,第一请求消息包括创建VPC的请求、网络站点的ID和第一隧道属性信息;The interface 141 is used to receive the first request message sent by the network site when the load of the network site is higher than the first load, the first request message includes the request to create a VPC, the ID of the network site and the first tunnel attribute information;

存储器143用于存储指令,处理器142执行存储器143中的指令用于根据创建VPC的请求创建目标VPC;连接目标VPC和第一PE;向第一PE发送网络站点的ID及第一隧道属性信息,使得第一PE根据网络站点的ID获取第二VPN配置信息及第二PE的地址,并根据第二VPN配置信息确定与第二VPN配置信息相匹配的第一VPN配置信息,并根据第一VPN配置信息、第二PE的地址和第一隧道属性信息,建立与第二PE间的VPN连接以及隧道连接,从而实现目标VPC与网络站点间的通信连接,第二VPN配置信息为第二PE的VPN配置信息,第二PE为网络站点的接入设备。The memory 143 is used to store instructions, and the processor 142 executes the instructions in the memory 143 to create a target VPC according to the request for creating a VPC; connect the target VPC and the first PE; send the ID of the network site and the first tunnel attribute information to the first PE , so that the first PE obtains the second VPN configuration information and the address of the second PE according to the ID of the network site, and determines the first VPN configuration information matching the second VPN configuration information according to the second VPN configuration information, and according to the first VPN configuration information The VPN configuration information, the address of the second PE, and the first tunnel attribute information establish a VPN connection and a tunnel connection with the second PE, so as to realize the communication connection between the target VPC and the network site. The second VPN configuration information is the second PE VPN configuration information, the second PE is the access device of the network site.

较佳地,处理器142执行存储器143中的指令用于连接VPC和第一PE包括:创建与目标VPC对应的VCE;通过VCE连接第一PE。Preferably, the processor 142 executing the instructions in the memory 143 for connecting the VPC and the first PE includes: creating a VCE corresponding to the target VPC; and connecting the first PE through the VCE.

较佳地,处理器142执行存储器143中的指令还用于接收网络站点发送的第二请求消息,第二请求消息包括更新通信连接的请求、第二隧道属性信息和网络站点的ID;根据更新通信连接的请求确定网络站点需更新通信连接后,向第一PE发送第二隧道属性信息及网络站点的ID,使得第一PE根据网络站点的ID、第二PE的地址及第二隧道属性信息,更新第一PE与第二PE间的隧道属性,从而更新目标VPC与网络站点的通信连接属性。Preferably, the processor 142 executes the instructions in the memory 143 and is also used to receive a second request message sent by the network site, the second request message includes a request to update the communication connection, the second tunnel attribute information and the ID of the network site; according to the update After the request for the communication connection determines that the network site needs to update the communication connection, it sends the second tunnel attribute information and the ID of the network site to the first PE, so that the first PE , updating the attribute of the tunnel between the first PE and the second PE, thereby updating the attribute of the communication connection between the target VPC and the network site.

本发明实施例的云端装置接收网络站点自动发送的包含创建VPC的请求、网络站点的ID及第一隧道属性信息的请求消息,根据创建VPC的请求创建目标VPC,连接目标VPC和第一PE,向第一PE发送网络站点的ID及第一隧道属性信息,使得第一PE根据网络站点的ID获取第二VPN配置信息及第二PE的地址,并根据第二VPN配置信息得到相匹配的第一VPN配置信息,并根据第一VPN配置信息、第二PE的地址和第一隧道属性信息,建立与第二PE间的VPN连接以及隧道连接,实现目标VPC与网络站点间的通信连接。由于请求消息由网络站点自动发送,因此可以实现根据网络站点的需要及时建立通信连接,从而能够提高连接效率。The cloud device in the embodiment of the present invention receives a request message including a request for creating a VPC, an ID of the network site, and first tunnel attribute information automatically sent by the network site, creates a target VPC according to the request for creating a VPC, and connects the target VPC to the first PE, Send the ID of the network site and the first tunnel attribute information to the first PE, so that the first PE obtains the second VPN configuration information and the address of the second PE according to the ID of the network site, and obtains the matching second VPN configuration information according to the second VPN configuration information. A VPN configuration information, and according to the first VPN configuration information, the address of the second PE and the first tunnel attribute information, establish a VPN connection and a tunnel connection with the second PE to realize the communication connection between the target VPC and the network site. Since the request message is automatically sent by the network site, it is possible to establish a communication connection in time according to the needs of the network site, thereby improving connection efficiency.

如图15所示,本发明实施例还提供一种通信装置,该装置可以包括:总线154及连接到总线154的接口151、处理器152、存储器153,其中:As shown in FIG. 15, an embodiment of the present invention also provides a communication device, which may include: a bus 154, an interface 151 connected to the bus 154, a processor 152, and a memory 153, wherein:

接口151用于接收云端发送的网络站点的ID及第一隧道属性信息,网络站点的ID及第一隧道属性信息由网络站点在网络站点的负荷高于第一负荷时发送;The interface 151 is used to receive the ID of the network site and the first tunnel attribute information sent by the cloud, and the ID of the network site and the first tunnel attribute information are sent by the network site when the load of the network site is higher than the first load;

存储器153用于存储指令,处理器152执行存储器153中的指令用于连接位于云端的目标VPC;根据网络站点的ID获取第二VPN配置信息及第二PE的地址,第二VPN配置信息为第二PE的VPN配置信息,第二PE为网络站点的接入设备;根据第二VPN配置信息确定与第二VPN配置信息相匹配的第一VPN配置信息;根据第一VPN配置信息、第二PE的地址及第一隧道属性信息,建立与第二PE间的VPN连接以及隧道连接,从而实现目标VPC与网络站点间的通信连接。The memory 153 is used to store instructions, and the processor 152 executes the instructions in the memory 153 to connect to the target VPC located in the cloud; obtain the second VPN configuration information and the address of the second PE according to the ID of the network site, and the second VPN configuration information is the first The VPN configuration information of two PEs, the second PE is the access device of the network site; determine the first VPN configuration information matching the second VPN configuration information according to the second VPN configuration information; according to the first VPN configuration information, the second PE address and the first tunnel attribute information, establish a VPN connection and a tunnel connection with the second PE, so as to realize the communication connection between the target VPC and the network site.

较佳地,处理器152执行存储器153中的指令用于根据网络站点的ID获取第二VPN配置信息及第二PE的地址包括:应用络站点的ID,向数据库查询第二VPN配置信息及第二PE的地址,数据库预存网络站点的ID对应的第二PE的地址和网络站点的ID对应的第二VPN配置信息。Preferably, the processor 152 executes the instructions in the memory 153 to obtain the second VPN configuration information and the address of the second PE according to the ID of the network site, including: using the ID of the network site, querying the database for the second VPN configuration information and the second PE. For the address of the second PE, the database pre-stores the address of the second PE corresponding to the ID of the network site and the second VPN configuration information corresponding to the ID of the network site.

较佳地,处理器152执行存储器153中的指令还用于接收云端发送的网络站点的ID及第二隧道属性信息;根据网络站点的ID、第二PE的地址及第二隧道属性信息,更新第一PE与第二PE间的隧道属性,从而更新目标VPC与网络站点的通信连接属性。Preferably, the processor 152 executes the instructions in the memory 153 and is also used to receive the ID of the network site and the second tunnel attribute information sent by the cloud; according to the ID of the network site, the address of the second PE, and the second tunnel attribute information, update The attribute of the tunnel between the first PE and the second PE, so as to update the attribute of the communication connection between the target VPC and the network site.

较佳地,处理器152执行存储器153中的指令用于连接位于云端的目标VPC包括:通过位于云端的VCE连接目标VPC。Preferably, the processor 152 executing the instructions in the memory 153 to connect to the target VPC in the cloud includes: connecting to the target VPC through the VCE in the cloud.

本发明实施例的通信装置,通过连接位于云端的目标VPC,接收云端发送的网络站点的ID及第一隧道属性信息,根据网络站点的ID获取第二VPN配置信息及第二PE的地址,并根据第二VPN配置信息得到相匹配的第一VPN配置信息,并根据第一VPN配置信息、第二PE的地址和第一隧道属性信息,建立与第二PE间的VPN连接以及隧道连接,实现目标VPC与网络站点间的通信连接。由于网络站点的ID及第一隧道属性信息由网络站点自动发送,因此可以实现根据网络站点的需要及时建立通信连接,从而能够提高连接效率。The communication device of the embodiment of the present invention receives the ID of the network site and the first tunnel attribute information sent by the cloud by connecting to the target VPC located in the cloud, obtains the second VPN configuration information and the address of the second PE according to the ID of the network site, and According to the second VPN configuration information, the matching first VPN configuration information is obtained, and according to the first VPN configuration information, the address of the second PE and the first tunnel attribute information, a VPN connection and a tunnel connection with the second PE are established to realize The communication connection between the target VPC and the network site. Since the network station ID and the first tunnel attribute information are automatically sent by the network station, the communication connection can be established in time according to the needs of the network station, thereby improving the connection efficiency.

需要说明的是:上述实施例提供的数据发送装置及数据接收装置,在表述时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成拨通的功能模块,以完成上述的全部或部分功能。另外,上述实施例提供的装置与相应的方法属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: the data sending device and the data receiving device provided by the above-mentioned embodiments are only described by using the division of the above-mentioned functional modules as examples. In practical applications, the above-mentioned functions can be assigned to different function modules according to needs Module completion means that the internal structure of the device is divided into dial-up functional modules to complete all or part of the above functions. In addition, the device provided by the above embodiment and the corresponding method belong to the same idea, and the specific implementation process thereof is detailed in the method embodiment, and will not be repeated here.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.

本说明书中的各个实施例均采用递进的方式描述,各个实施例相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。Each embodiment in this specification is described in a progressive manner, the same and similar parts of each embodiment can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, as for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and for relevant parts, please refer to part of the description of the method embodiment. The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network elements. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. It can be understood and implemented by those skilled in the art without creative effort.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions described above are realized in the form of software function units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the 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 are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk, and other media that can store program codes. .

通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现,通用硬件包括通用集成电路、通用CPU、通用存储器、通用元器件等,当然也可以通过专用硬件包括专用集成电路、专用CPU、专用存储器、专用元器件等来实现,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be realized by means of software plus necessary general-purpose hardware. The general-purpose hardware includes general-purpose integrated circuits, general-purpose CPUs, general-purpose memories, general-purpose components, etc. , Of course, it can also be realized by dedicated hardware including application-specific integrated circuits, dedicated CPUs, dedicated memories, dedicated components, etc., but in many cases the former is a better implementation. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, such as a floppy disk of a computer , a hard disk or an optical disk, etc., including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute the methods of various embodiments of the present invention.

以上仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention Inside.

Claims (15)

1. a kind of communication connecting method, it is characterised in that include:
The first request message that reception website sends when the load of the website is higher than the first load, described first Request message includes creating request, mark ID of the website and the first tunnel attribute information of virtual private cloud VPC;
Target VPC is created according to the request of the establishment VPC;
Connect target VPC and the first provider edge equipment PE;
Send the ID and the first tunnel attribute information of the website to a PE so that a PE according to The ID of the website obtains the address of the second virtual private network configuration information and the 2nd PE, and according to the 2nd VPN Configuration information determines the VPN configuration informations matched with the 2nd VPN configuration informations, and is matched somebody with somebody according to a VPN Confidence breath, the address of the 2nd PE and the first tunnel attribute information, set up and the VPN connections between the 2nd PE and tunnel Road connects, and so as to realize the communication connection between target VPC and the website, the 2nd VPN configuration informations are institute The VPN configuration informations of the 2nd PE are stated, the 2nd PE is the access device of the website, a VPN configuration informations It is the other VPN configuration informations with the difference of the 2nd VPN configuration informations.
2. method according to claim 1, it is characterised in that connection target VPC and the first Provider Edge Equipment PE includes:
Create Virtual User edge device VCE corresponding with target VPC;
First PE is connected by the VCE.
3. method according to claim 1 and 2, it is characterised in that also include:
The second request message that the website sends is received, second request message includes updating asking for communication connection Ask, the ID of the second tunnel attribute information and the website;
Determine that the website need to be updated after communication connection according to the request for updating communication connection, send out to a PE Send the ID of the second tunnel attribute information and the website so that a PE according to the ID of the website, The address of the 2nd PE and the second tunnel attribute information, update the tunnel category between a PE and the 2nd PE Property, so as to update the communication connection attribute of target VPC and the website.
4. a kind of communication connecting method, it is characterised in that include:
Destination virtual specific cloud VPC of the connection positioned at high in the clouds;
Receive mark ID and the first tunnel attribute information of the website that high in the clouds sends, the ID of the website and described the One tunnel attribute information is sent by the website when the load of the website is higher than the first load;
Second virtual private network configuration information and the second provider edge equipment PE are obtained according to the ID of the website Address, the 2nd VPN configuration informations are the VPN configuration informations of the 2nd PE, and the 2nd PE is the website Access device;
The VPN configuration informations matched with the 2nd VPN configuration informations are determined according to the 2nd VPN configuration informations, The first VPN configuration informations are the other VPN configuration informations with the difference of the 2nd VPN configuration informations;
According to a VPN configuration informations, the address of the 2nd PE and the first tunnel attribute information, set up with it is described VPN connections and tunnel connection between the 2nd PE, so as to realize the communication connection between target VPC and the website.
5. method according to claim 4, it is characterised in that described that 2nd VPN is obtained according to the ID of the website The address of configuration information and the 2nd PE includes:
Using the ID of the website, to the address of the 2nd VPN configuration informations and the 2nd PE described in data base querying, institute State data base prestore the website corresponding 2nd PE of ID the corresponding institutes of the ID of address and the website State the 2nd VPN configuration informations.
6. the method according to claim 4 or 5, it is characterised in that also include:
Receive the ID and the second tunnel attribute information of the website that the high in the clouds sends;
ID, the address of the 2nd PE and the second tunnel attribute information according to the website, update a PE with Tunnel attribute between the 2nd PE, so as to update the communication connection attribute of target VPC and the website.
7. method according to claim 4, it is characterised in that the connection is located at the destination virtual specific cloud in the high in the clouds VPC, including:
Target VPC is connected by the Virtual User edge device VCE positioned at the high in the clouds.
8. a kind of high in the clouds device, it is characterised in that include:
First receiver module, for receiving website sends when the load of the website is higher than the first load first Request message, first request message includes creating the request of virtual private cloud VPC, mark ID of the website and the One tunnel attribute information;
Creation module, for creating target VPC according to the request of the establishment VPC;
Link block, for connecting target VPC and the first provider edge equipment PE;
First sending module, for sending the ID and the first tunnel attribute information of the website to a PE, So that a PE obtains the ground of the second virtual private network configuration information and the 2nd PE according to the ID of the website Location, and the VPN configuration informations matched with the 2nd VPN configuration informations are determined according to the 2nd VPN configuration informations, And according to a VPN configuration informations, the address of the 2nd PE and the first tunnel attribute information, set up and described the VPN connections and tunnel connection between two PE, so as to realize the communication connection between target VPC and the website, institute The VPN configuration informations that the 2nd VPN configuration informations are the 2nd PE are stated, the 2nd PE is that the access of the website sets Standby, a VPN configuration informations are the other VPN configuration informations with the difference of the 2nd VPN configuration informations.
9. device according to claim 8, it is characterised in that the link block includes:
Creating unit, for creating Virtual User edge device VCE corresponding with target VPC;
Connection unit, for connecting a PE by the VCE.
10. device according to claim 8 or claim 9, it is characterised in that also include:
Second receiver module, for receiving the second request message that the website sends, second request message includes Update the ID of the request, the second tunnel attribute information and the website of communication connection;
Second sending module, for determining that the website need to update communication connection according to the request for updating communication connection Afterwards, the ID of the second tunnel attribute information and the website is sent to a PE so that a PE according to The ID of the website, the address of the 2nd PE and the second tunnel attribute information, update the PE with it is described Tunnel attribute between the 2nd PE, so as to update the communication connection attribute of target VPC and the website.
11. a kind of communicators, it is characterised in that include:
First link block, for destination virtual specific cloud VPC that connection is located at high in the clouds;
First receiver module, for receiving mark ID and the first tunnel attribute information of the website that the high in the clouds sends, institute State the ID and the first tunnel attribute information of website by the website the website load higher than the Send during one load;
Acquisition module, for obtaining the second virtual private network configuration information and the second operation according to the ID of the website The address of business edge device PE, the 2nd VPN configuration informations are the VPN configuration informations of the 2nd PE, and the 2nd PE is The access device of the website;
Determining module, for determining match with the 2nd VPN configuration informations first according to the 2nd VPN configuration informations VPN configuration informations, a VPN configuration informations are the other VPN configuration informations with the difference of the 2nd VPN configuration informations;
Second link block, for being belonged to according to a VPN configuration informations, the address of the 2nd PE and first tunnel Property information, set up and the 2nd PE between VPN connection and tunnel connection, so as to realize target VPC with the network Communication connection between website.
12. devices according to claim 11, it is characterised in that the acquisition module is specifically for using the network The ID of website, to the address of the 2nd VPN configuration informations and the 2nd PE described in data base querying, the data base prestores described Corresponding 2nd VPN of the ID of address and the website of corresponding 2nd PE of ID of website match somebody with somebody confidence Breath.
13. devices according to claim 11 or 12, it is characterised in that also include:
Second receiver module, for receiving the ID and the second tunnel attribute information of the website that the high in the clouds sends;
3rd link block, for according to the ID of the website, the address of the 2nd PE and second tunnel attribute Information, updates the tunnel attribute between a PE and the 2nd PE, logical with the website so as to update target VPC Letter connection attribute.
14. devices according to claim 11, it is characterised in that first link block is specifically for by being located at The Virtual User edge device VCE in the high in the clouds connects target VPC.
15. a kind of communication systems, it is characterised in that include the high in the clouds device as any one of claim 8-10 and such as weigh Profit requires the communicator any one of 11-14.
CN201210401104.4A 2012-10-19 2012-10-19 communication connection method, communication device and communication system Active CN103780467B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210401104.4A CN103780467B (en) 2012-10-19 2012-10-19 communication connection method, communication device and communication system
PCT/CN2013/075605 WO2014059787A1 (en) 2012-10-19 2013-05-14 Communication connection method, communication device and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210401104.4A CN103780467B (en) 2012-10-19 2012-10-19 communication connection method, communication device and communication system

Publications (2)

Publication Number Publication Date
CN103780467A CN103780467A (en) 2014-05-07
CN103780467B true CN103780467B (en) 2017-04-26

Family

ID=50487518

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210401104.4A Active CN103780467B (en) 2012-10-19 2012-10-19 communication connection method, communication device and communication system

Country Status (2)

Country Link
CN (1) CN103780467B (en)
WO (1) WO2014059787A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10116493B2 (en) 2014-11-21 2018-10-30 Cisco Technology, Inc. Recovering from virtual port channel peer failure
CN110474960B (en) 2014-12-23 2021-07-09 华为技术有限公司 A method and device for service deployment in a virtualized network
CN104601431B (en) * 2014-12-31 2018-04-20 华为技术有限公司 The cut-in method and the network equipment of a kind of vpn service
CN105721306B (en) * 2016-02-04 2019-03-15 杭州数梦工场科技有限公司 A method and device for transmitting configuration information
CN107872542B (en) * 2016-09-27 2021-05-04 阿里巴巴集团控股有限公司 A data transmission method and network device
CN108900637A (en) * 2018-08-08 2018-11-27 北京百度网讯科技有限公司 Method for transmitting information and device
CN113098749B (en) * 2020-01-08 2024-10-15 华为技术有限公司 Message sending method, device and storage medium
CN113821334B (en) * 2020-06-18 2026-02-06 华为技术有限公司 Method, device and system for configuring edge side equipment
CN111740893B (en) * 2020-06-30 2022-02-11 成都卫士通信息产业股份有限公司 Method, device, system, medium and equipment for realizing software-defined VPN

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387061A (en) * 2011-10-21 2012-03-21 华为技术有限公司 Method, device and system for accessing VPC (virtual private cloud) to VPN (virtual private network)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102137008B (en) * 2011-01-24 2013-08-07 华为技术有限公司 Method, device and system for maintaining quality of service (QoS)
CN102845123B (en) * 2011-04-19 2015-07-08 华为技术有限公司 Virtual private cloud connection method and tunnel proxy server

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102387061A (en) * 2011-10-21 2012-03-21 华为技术有限公司 Method, device and system for accessing VPC (virtual private cloud) to VPN (virtual private network)

Also Published As

Publication number Publication date
WO2014059787A1 (en) 2014-04-24
CN103780467A (en) 2014-05-07

Similar Documents

Publication Publication Date Title
CN103780467B (en) communication connection method, communication device and communication system
US11856065B2 (en) Data transmission for service integration between a virtual private cloud and an intranet
US10708083B2 (en) Traffic engineering service mapping
CN110691384B (en) Method and device for using network slicing
CN109547349B (en) Traffic management method, device, terminal and storage medium based on virtual routing
CN103095543B (en) The method and apparatus of VPN (virtual private network) docking between territory
CN111817869B (en) Network configuration recovery method and related equipment thereof
CN106533883A (en) Network private line establishment method, apparatus and system
CN104184663B (en) Communication means and device based on software defined network and integrated identification network
CN102387061A (en) Method, device and system for accessing VPC (virtual private cloud) to VPN (virtual private network)
CN105721306A (en) Configuration information transmission method and device
CN111371664B (en) Virtual private network access method and equipment
CN117997734A (en) A management method and system for a multi-resource pool network
CN105531966B (en) Method, device and system for implementing message routing in a network
CN105791073B (en) A method and device for service deployment in a virtualized network
CN103973567A (en) Method and device for route configuration of virtual private network
WO2021098727A1 (en) Network deployment method and system
CN116996585A (en) Multicast communication method, device, system, computer equipment and storage medium
CN103428252B (en) A kind of method, equipment and the system of cloud computing virtual machine (vm) migration
WO2020233217A1 (en) Method and device for creating transmission network sub-slice, and system and storage medium
CN102594924A (en) Internet architecture and internet service method and system thereof
CN107294849A (en) Method, device and system for establishing service path
CN104486193B (en) A kind of method and device for establishing network node interconnection
WO2016091013A1 (en) Method and device for service processing
WO2015070763A1 (en) Self-establishing method and apparatus for x2 interface

Legal Events

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