CN104601431A - Access method of VPN business and network device - Google Patents
Access method of VPN business and network device Download PDFInfo
- Publication number
- CN104601431A CN104601431A CN201410850003.4A CN201410850003A CN104601431A CN 104601431 A CN104601431 A CN 104601431A CN 201410850003 A CN201410850003 A CN 201410850003A CN 104601431 A CN104601431 A CN 104601431A
- Authority
- CN
- China
- Prior art keywords
- edge device
- vpn
- port
- user site
- vpn tunneling
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Telephonic Communication Services (AREA)
Abstract
本发明提供了一种VPN业务的接入方法和网络设备,所述方法包括:网络设备接收第一边缘设备发送的第一接入请求,所述第一接入请求用于请求将所述第一边缘设备连接的第一用户站点接入所述VPN业务;确定出有第二用户站点请求接入所述VPN业务;配置所述第一边缘设备和与所述第二用户站点连接的第二边缘设备,以将所述第一用户站点和所述第二用户站点接入所述VPN业务。可见本发明中当确定出所述第一用户站点接入VPN业务后能够与所述第二用户站点传输数据时,才将所述第一用户站点和所述第二用户站点接入所述VPN业务,从而尽可能地避免占用了所述第一边缘设备的资源但是所述第一用户站点却不能传输数据的情况出现,因此减少了资源浪费。
The present invention provides a method for accessing a VPN service and a network device. The method includes: the network device receives a first access request sent by a first edge device, and the first access request is used to request that the second A first user site connected to an edge device accesses the VPN service; determines that a second user site requests access to the VPN service; configures the first edge device and the second user site connected to the second user site The edge device is configured to connect the first user site and the second user site to the VPN service. It can be seen that in the present invention, when it is determined that the first user site can transmit data with the second user site after accessing the VPN service, the first user site and the second user site are connected to the VPN. services, so as to avoid as much as possible the situation that the resources of the first edge device are occupied but the first user site cannot transmit data, thus reducing the waste of resources.
Description
技术领域technical field
本发明涉及通信技术,尤其是涉及一种VPN业务的接入方法及网络设备。The invention relates to communication technology, in particular to a VPN service access method and network equipment.
背景技术Background technique
虚拟专用网(英文:Virtual Private Network,简称:VPN)是在公共数据网络上构建专用网络的技术,这些专用网络互相隔离,一个专用网络的数据不会传输到另一个专用网络中。而为了使得用户站点之间利用VPN进行数据传输,需要首先将用户站点接入VPN业务。Virtual Private Network (English: Virtual Private Network, referred to as: VPN) is a technology to build a private network on a public data network. These private networks are isolated from each other, and the data of one private network will not be transmitted to another private network. In order to enable user sites to use the VPN for data transmission, it is first necessary to connect the user sites to the VPN service.
目前将用户站点接入VPN业务的通常做法是,运营商和用户人工协商出需要接入所述VPN业务的所有用户站点,之后对每个所述用户站点分别连接的边缘设备进行人工配置,从而将每个所述用户站点都接入所述VPN业务。At present, the usual method of connecting user sites to VPN services is that operators and users manually negotiate all user sites that need to access the VPN service, and then manually configure the edge devices connected to each of the user sites, so that Each of the user sites is connected to the VPN service.
然而,由于用户站点接入VPN业务时需要对该用户站点连接的边缘设备进行配置,必然会占用边缘设备的资源,而上述接入方式中,由于不能实现用户站点按需接入VPN业务,也就是说即使用户站点接入VPN业务后无法传输数据,所述运营商也仍然会将该用户站点接入VPN业务,从而造成了资源浪费。However, since the edge device connected to the user site needs to be configured when the user site accesses the VPN service, resources of the edge device will inevitably be occupied. That is to say, even if the user site cannot transmit data after accessing the VPN service, the operator will still access the user site to the VPN service, thereby causing waste of resources.
发明内容Contents of the invention
本发明解决的技术问题在于提供一种VPN业务的接入方法及网络设备,以实现用户站点按需接入VPN业务,从而减少资源浪费。The technical problem solved by the present invention is to provide a VPN service access method and network equipment, so as to realize user sites accessing VPN services on demand, thereby reducing waste of resources.
为此,本发明解决技术问题的技术方案是:For this reason, the technical scheme that the present invention solves technical problem is:
第一方面,本发明提供了一种虚拟专用网VPN业务的接入方法,包括:In a first aspect, the present invention provides a method for accessing a virtual private network (VPN) service, comprising:
网络设备接收第一边缘设备发送的第一接入请求,所述第一接入请求用于请求将所述第一边缘设备连接的第一用户站点接入所述VPN业务;The network device receives a first access request sent by the first edge device, where the first access request is used to request a first user site connected to the first edge device to access the VPN service;
所述网络设备确定出有第二用户站点请求接入所述VPN业务;The network device determines that a second user site requests to access the VPN service;
所述网络设备配置所述第一边缘设备和与所述第二用户站点连接的第二边缘设备,以将所述第一用户站点和所述第二用户站点接入所述VPN业务。The network device configures the first edge device and the second edge device connected to the second user site, so as to connect the first user site and the second user site to the VPN service.
在第一方面的第一种可能的实现方式中,所述网络设备配置所述第一边缘设备和与所述第二用户站点连接的第二边缘设备,以将所述第一用户站点和所述第二用户站点接入所述VPN业务,包括:In a first possible implementation manner of the first aspect, the network device configures the first edge device and the second edge device connected to the second user site, so that the first user site and the The second user site accessing the VPN service includes:
所述网络设备部署从所述第一边缘设备至所述第二边缘设备的第一VPN隧道,以及部署从所述第二边缘设备至所述第一边缘设备的第二VPN隧道,所述第一VPN隧道的头端与所述第一端口关联,所述第一VPN隧道的尾端与所述第二端口关联,所述第二VPN隧道的头端与所述第二端口关联,所述第二VPN隧道的尾端与所述第一端口关联,所述第一端口为所述第一边缘设备上与所述第一用户站点连接的端口,所述第二端口为所述第二边缘设备上与所述第二用户站点连接的端口。The network device deploys a first VPN tunnel from the first edge device to the second edge device, and deploys a second VPN tunnel from the second edge device to the first edge device, the first edge device The head end of a VPN tunnel is associated with the first port, the tail end of the first VPN tunnel is associated with the second port, the head end of the second VPN tunnel is associated with the second port, the The tail end of the second VPN tunnel is associated with the first port, the first port is the port connected to the first user site on the first edge device, and the second port is the second edge A port on the device connected to the second user site.
结合第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,还包括:In combination with the first possible implementation of the first aspect, the second possible implementation of the first aspect further includes:
所述网络设备接收第三边缘设备发送的第二接入请求,所述第二接入请求用于请求将所述第三边缘设备连接的第三用户站点接入所述VPN业务;The network device receives a second access request sent by a third edge device, where the second access request is used to request a third user site connected to the third edge device to access the VPN service;
所述网络设备确定出有所述第一用户站点和所述第二用户站点接入所述VPN业务;determining, by the network device, that the first user site and the second user site access the VPN service;
所述网络设备部署从所述第一边缘设备至所述第三边缘设备的第三VPN隧道,以及部署从所述第三边缘设备至所述第一边缘设备的第四VPN隧道,所述第三VPN隧道的头端与所述第一端口关联,所述第三VPN隧道的尾端与第三端口关联,所述第四VPN隧道的头端与所述第三端口关联,所述第四VPN隧道的尾端与所述第一端口关联,所述第三端口为所述第三边缘设备上与所述第三用户站点连接的端口;The network device deploys a third VPN tunnel from the first edge device to the third edge device, and deploys a fourth VPN tunnel from the third edge device to the first edge device, the first edge device The head end of the three VPN tunnels is associated with the first port, the tail end of the third VPN tunnel is associated with the third port, the head end of the fourth VPN tunnel is associated with the third port, and the fourth VPN tunnel is associated with the third port. The tail end of the VPN tunnel is associated with the first port, and the third port is a port connected to the third user site on the third edge device;
所述网络设备部署从所述第二边缘设备至所述第三边缘设备的第五VPN隧道,以及部署从所述第三边缘设备至所述第二边缘设备的第六VPN隧道,所述第五VPN隧道的头端与所述第二端口关联,所述第五VPN隧道的尾端与所述第三端口关联,所述第六VPN隧道的头端与所述第三端口关联,所述第六VPN隧道的尾端与所述第二端口关联。The network device deploys a fifth VPN tunnel from the second edge device to the third edge device, and deploys a sixth VPN tunnel from the third edge device to the second edge device, the first The head end of the fifth VPN tunnel is associated with the second port, the tail end of the fifth VPN tunnel is associated with the third port, the head end of the sixth VPN tunnel is associated with the third port, and the The tail end of the sixth VPN tunnel is associated with the second port.
结合第一方面的第一种或第二种可能的实现方式,在第一方面的第三种可能的实现方式中,所述方法还包括:With reference to the first or second possible implementation of the first aspect, in a third possible implementation of the first aspect, the method further includes:
所述网络设备为所述VPN业务分配VPN隧道标识;The network device assigns a VPN tunnel identifier to the VPN service;
所述网络设备部署从所述第一边缘设备至所述第二边缘设备的第一VPN隧道,以及部署从所述第二边缘设备至所述第一边缘设备的第二VPN隧道,包括:Deploying, by the network device, a first VPN tunnel from the first edge device to the second edge device, and deploying a second VPN tunnel from the second edge device to the first edge device, includes:
所述网络设备向所述第一边缘设备发送第一配置参数,所述第一配置参数包括:所述VPN隧道标识、所述第一端口的端口标识、和所述第二边缘设备的设备标识;The network device sends a first configuration parameter to the first edge device, where the first configuration parameter includes: the VPN tunnel identifier, the port identifier of the first port, and the device identifier of the second edge device ;
所述网络设备向所述第二边缘设备发送第二配置参数,所述第二配置参数包括:所述VPN隧道标识、所述第二端口的端口标识、和所述第一边缘设备的设备标识。The network device sends a second configuration parameter to the second edge device, where the second configuration parameter includes: the VPN tunnel identifier, the port identifier of the second port, and the device identifier of the first edge device .
结合第一方面的第一种或第二种可能的实现方式,在第一方面的第四种可能的实现方式中,所述网络设备部署从所述第一边缘设备至所述第二边缘设备的第一VPN隧道,以及部署从所述第二边缘设备至所述第一边缘设备的第二VPN隧道,包括:With reference to the first or second possible implementation of the first aspect, in a fourth possible implementation of the first aspect, the network device deploys and deploying a second VPN tunnel from the second edge device to the first edge device, comprising:
所述网络设备向控制器发送部署所述第一VPN隧道和所述第二VPN隧道的请求,所述部署所述第一VPN隧道和所述第二VPN隧道的请求中包括所述第一端口的端口标识、所述第二端口的端口标识、所述第一边缘设备的设备标识以及所述第二边缘设备的设备标识。The network device sends a request for deploying the first VPN tunnel and the second VPN tunnel to the controller, and the request for deploying the first VPN tunnel and the second VPN tunnel includes the first port The port ID of the second port, the device ID of the first edge device, and the device ID of the second edge device.
结合第一方面的第一种至第四种任一种可能的实现方式,在第一方面的第五种可能的实现方式中,还包括:In combination with any of the first to fourth possible implementations of the first aspect, the fifth possible implementation of the first aspect further includes:
所述网络设备接收所述第一边缘设备发送的第一退出请求或者所述第二边缘设备发送的第二退出请求,所述第一退出请求用于请求将所述第一用户站点退出所述VPN业务,所述第二退出请求用于请求将所述第二用户站点退出所述VPN业务;The network device receives the first exit request sent by the first edge device or the second exit request sent by the second edge device, where the first exit request is used to request to exit the first user site from the For a VPN service, the second exit request is used to request that the second user site exit the VPN service;
所述网络设备撤销所述第一VPN隧道和所述第二VPN隧道。The network device revokes the first VPN tunnel and the second VPN tunnel.
结合第一方面的第五种可能的实现方式,在第一方面的第六种可能的实现方式中,还包括:In combination with the fifth possible implementation of the first aspect, the sixth possible implementation of the first aspect further includes:
所述网络设备获取用于表示所述第一VPN隧道和所述第二VPN隧道的部署时间的相关信息;The network device acquires relevant information indicating the deployment time of the first VPN tunnel and the second VPN tunnel;
所述网络设备将所述相关信息发送至计费设备。The network device sends the related information to the charging device.
结合第一方面的第一种至第六种任一种可能的实现方式,在第一方面的第七种可能的实现方式中,所述第一接入请求还包括所述第一用户站点请求接入所述VPN业务的账号;With reference to any one of the first to sixth possible implementations of the first aspect, in a seventh possible implementation of the first aspect, the first access request further includes the first user site request an account for accessing the VPN service;
所述方法还包括:The method also includes:
所述网络设备获取所述账号对应的服务质量QoS;The network device acquires the QoS corresponding to the account;
所述网络设备部署从所述第一边缘设备至所述第二边缘设备的第一VPN隧道,包括:The network device deploying a first VPN tunnel from the first edge device to the second edge device includes:
所述网络设备基于所述账号对应的QoS,部署从所述第一边缘设备至所述第二边缘设备的所述第一VPN隧道。The network device deploys the first VPN tunnel from the first edge device to the second edge device based on the QoS corresponding to the account.
结合第一方面、第一方面的第一种至第七种任一种可能的实现方式,在第一方面的第八种可能的实现方式中,还包括:In combination with the first aspect and any one of the first to seventh possible implementations of the first aspect, the eighth possible implementation of the first aspect further includes:
所述网络设备接收所述第一接入请求后,存储所述第一用户站点请求接入所述VPN业务的信息;After the network device receives the first access request, store the information that the first user site requests to access the VPN service;
所述网络设备确定出有第二用户站点请求接入所述VPN业务,包括:The network device determines that a second user site requests to access the VPN service, including:
所述网络设备确定出存储有所述第二用户站点请求接入所述VPN业务的信息。The network device determines that information that the second user site requests to access the VPN service is stored.
结合第一方面、第一方面的第一种至第八种任一种可能的实现方式,在第一方面的第九种可能的实现方式中,还包括:In combination with the first aspect and any one of the first to eighth possible implementations of the first aspect, the ninth possible implementation of the first aspect further includes:
所述第一边缘设备在接收所述第一用户站点的上线请求后,向所述网络设备发送所述第一接入请求。The first edge device sends the first access request to the network device after receiving the online request of the first user site.
第二方面,本发明提供了一种网络设备,包括:In a second aspect, the present invention provides a network device, including:
接收单元,用于接收第一边缘设备发送的第一接入请求,所述第一接入请求用于请求将所述第一边缘设备连接的第一用户站点接入虚拟专用网VPN业务;A receiving unit, configured to receive a first access request sent by a first edge device, where the first access request is used to request a first user site connected to the first edge device to access a virtual private network (VPN) service;
处理单元,用于当所述接收单元接收到所述第一接入请求时,确定出有第二用户站点请求接入所述VPN业务,配置所述第一边缘设备和与所述第二用户站点连接的第二边缘设备,以将所述第一用户站点和所述第二用户站点接入所述VPN业务。a processing unit, configured to, when the receiving unit receives the first access request, determine that there is a second user site requesting to access the VPN service, configure the first edge device and communicate with the second user A second edge device connected to the site, so as to connect the first user site and the second user site to the VPN service.
在第二方面的第一种可能的实现方式中,当配置所述第一边缘设备和与所述第二用户站点连接的第二边缘设备,以将所述第一用户站点和所述第二用户站点接入所述VPN业务时,所述处理单元具体用于部署从所述第一边缘设备至所述第二边缘设备的第一VPN隧道,以及部署从所述第二边缘设备至所述第一边缘设备的第二VPN隧道,所述第一VPN隧道的头端与所述第一端口关联,所述第一VPN隧道的尾端与所述第二端口关联,所述第二VPN隧道的头端与所述第二端口关联,所述第二VPN隧道的尾端与所述第一端口关联,所述第一端口为所述第一边缘设备上与所述第一用户站点连接的端口,所述第二端口为所述第二边缘设备上与所述第二用户站点连接的端口。In a first possible implementation manner of the second aspect, when configuring the first edge device and the second edge device connected to the second user site, the first user site and the second When a user site accesses the VPN service, the processing unit is specifically configured to deploy a first VPN tunnel from the first edge device to the second edge device, and deploy a tunnel from the second edge device to the The second VPN tunnel of the first edge device, the head end of the first VPN tunnel is associated with the first port, the tail end of the first VPN tunnel is associated with the second port, and the second VPN tunnel The head end of the second VPN tunnel is associated with the second port, the tail end of the second VPN tunnel is associated with the first port, and the first port is connected to the first user site on the first edge device port, where the second port is a port on the second edge device connected to the second user site.
结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述接收单元还用于,接收第三边缘设备发送的第二接入请求,所述第二接入请求用于请求将所述第三边缘设备连接的第三用户站点接入所述VPN业务;With reference to the first possible implementation of the second aspect, in a second possible implementation of the second aspect, the receiving unit is further configured to receive a second access request sent by a third edge device, the The second access request is used to request a third user site connected to the third edge device to access the VPN service;
所述处理单元还用于,当所述接收单元接收到所述第二接入请求时,确定出有所述第一用户站点和所述第二用户站点接入所述VPN业务,部署从所述第一边缘设备至所述第三边缘设备的第三VPN隧道,部署从所述第三边缘设备至所述第一边缘设备的第四VPN隧道,部署从所述第二边缘设备至所述第三边缘设备的第五VPN隧道,以及部署从所述第三边缘设备至所述第二边缘设备的第六VPN隧道;The processing unit is further configured to, when the receiving unit receives the second access request, determine that the first user site and the second user site access the VPN service, and deploy the deploying a third VPN tunnel from the first edge device to the third edge device, deploying a fourth VPN tunnel from the third edge device to the first edge device, and deploying a fourth VPN tunnel from the second edge device to the a fifth VPN tunnel for a third edge device, and deploying a sixth VPN tunnel from said third edge device to said second edge device;
所述第三VPN隧道的头端与所述第一端口关联,所述第三VPN隧道的尾端与第三端口关联,所述第四VPN隧道的头端与所述第三端口关联,所述第四VPN隧道的尾端与所述第一端口关联,所述第五VPN隧道的头端与所述第二端口关联,所述第五VPN隧道的尾端与所述第三端口关联,所述第六VPN隧道的头端与所述第三端口关联,所述第六VPN隧道的尾端与所述第二端口关联,所述第三端口为所述第三边缘设备上与所述第三用户站点连接的端口。The head end of the third VPN tunnel is associated with the first port, the tail end of the third VPN tunnel is associated with the third port, and the head end of the fourth VPN tunnel is associated with the third port, so The tail end of the fourth VPN tunnel is associated with the first port, the head end of the fifth VPN tunnel is associated with the second port, and the tail end of the fifth VPN tunnel is associated with the third port, The head end of the sixth VPN tunnel is associated with the third port, the tail end of the sixth VPN tunnel is associated with the second port, and the third port is connected to the third port on the third edge device. The port on which the third user site connects.
结合第二方面的第一种或第二种可能的实现方式,在第二方面的第三种可能的实现方式中,还包括:发送单元;In combination with the first or second possible implementation of the second aspect, in a third possible implementation of the second aspect, further comprising: a sending unit;
所述处理单元还用于,为所述VPN业务分配VPN隧道标识;The processing unit is further configured to assign a VPN tunnel identifier to the VPN service;
当在部署从所述第一边缘设备至所述第二边缘设备的第一VPN隧道,以及部署从所述第二边缘设备至所述第一边缘设备的第二VPN隧道时,所述处理单元具体用于通过所述发送单元向所述第一边缘设备发送第一配置参数,以及通过所述发送单元向所述第二边缘设备发送第二配置参数;When deploying a first VPN tunnel from the first edge device to the second edge device and deploying a second VPN tunnel from the second edge device to the first edge device, the processing unit Specifically, sending a first configuration parameter to the first edge device through the sending unit, and sending a second configuration parameter to the second edge device through the sending unit;
所述第一配置参数包括:所述VPN隧道标识、所述第一端口的端口标识、和所述第二边缘设备的设备标识;所述第二配置参数包括:所述VPN隧道标识、所述第二端口的端口标识、和所述第一边缘设备的设备标识。The first configuration parameter includes: the VPN tunnel identifier, the port identifier of the first port, and the device identifier of the second edge device; the second configuration parameter includes: the VPN tunnel identifier, the The port identifier of the second port, and the device identifier of the first edge device.
结合第二方面的第一种或第二种可能的实现方式,在第二方面的第四种可能的实现方式中,还包括:发送单元;In combination with the first or second possible implementation of the second aspect, in a fourth possible implementation of the second aspect, further comprising: a sending unit;
当在部署从所述第一边缘设备至所述第二边缘设备的第一VPN隧道,以及部署从所述第二边缘设备至所述第一边缘设备的第二VPN隧道时,所述处理单元具体用于通过所述发送单元向控制器发送部署所述第一VPN隧道和所述第二VPN隧道的请求,所述部署所述第一VPN隧道和所述第二VPN隧道的请求中包括所述第一端口的端口标识、所述第二端口的端口标识、所述第一边缘设备的设备标识以及所述第二边缘设备的设备标识。When deploying a first VPN tunnel from the first edge device to the second edge device and deploying a second VPN tunnel from the second edge device to the first edge device, the processing unit Specifically, it is configured to send a request for deploying the first VPN tunnel and the second VPN tunnel to the controller through the sending unit, where the request for deploying the first VPN tunnel and the second VPN tunnel includes the The port identifier of the first port, the port identifier of the second port, the device identifier of the first edge device, and the device identifier of the second edge device.
结合第二方面的第一种至第四种任一种可能的实现方式,在第二方面的第五种可能的实现方式中,所述接收单元还用于,接收所述第一边缘设备发送的第一退出请求或者所述第二边缘设备发送的第二退出请求,所述第一退出请求用于请求将所述第一用户站点退出所述VPN业务,所述第二退出请求用于请求将所述第二用户站点退出所述VPN业务;With reference to any one of the first to fourth possible implementation manners of the second aspect, in a fifth possible implementation manner of the second aspect, the receiving unit is further configured to receive the The first exit request sent by the second edge device or the second exit request sent by the second edge device, the first exit request is used to request that the first user site exit the VPN service, and the second exit request is used to request withdrawing the second user site from the VPN service;
所述处理单元还用于,所述接收单元接收到所述第一退出请求或者所述第二退出请求时,撤销部署的所述第一VPN隧道和所述第二VPN隧道。The processing unit is further configured to, when the receiving unit receives the first exit request or the second exit request, revoke the deployed first VPN tunnel and the second VPN tunnel.
结合第二方面的第五种可能的实现方式,在第二方面的第六种可能的实现方式中,还包括:发送单元;With reference to the fifth possible implementation manner of the second aspect, in the sixth possible implementation manner of the second aspect, further comprising: a sending unit;
所述处理单元还用于,获取用于表示所述第一VPN隧道和所述第二VPN隧道的部署时间的相关信息;The processing unit is further configured to acquire relevant information indicating the deployment time of the first VPN tunnel and the second VPN tunnel;
所述发送单元,用于将所述相关信息发送至计费设备。The sending unit is configured to send the relevant information to a charging device.
结合第二方面的第一种至第六种任一种可能的实现方式,在第二方面的第七种可能的实现方式中,所述第一接入请求还包括所述第一用户站点请求接入所述VPN业务的账号;With reference to any one of the first to sixth possible implementations of the second aspect, in a seventh possible implementation of the second aspect, the first access request further includes the first user site request an account for accessing the VPN service;
所述处理单元还用于,获取所述账号对应的服务质量QoS;The processing unit is further configured to acquire the QoS corresponding to the account;
当部署从所述第一边缘设备至所述第二边缘设备的第一VPN隧道时,所述处理单元具体用于基于所述账号对应的QoS,部署从所述第一边缘设备至所述第二边缘设备的所述第一VPN隧道。When deploying the first VPN tunnel from the first edge device to the second edge device, the processing unit is specifically configured to deploy the first VPN tunnel from the first edge device to the second edge device based on the QoS corresponding to the account. The first VPN tunnel of the two edge devices.
结合第二方面、第二方面的第一种至第七种任一种可能的实现方式,在第二方面的第八种可能的实现方式中,所述处理单元还用于,当所述接收单元接收所述第一接入请求时,存储所述第一用户站点请求接入所述VPN业务的信息;With reference to the second aspect and any one of the first to seventh possible implementations of the second aspect, in an eighth possible implementation of the second aspect, the processing unit is further configured to, when the receiving When the unit receives the first access request, store the information that the first user site requests to access the VPN service;
当确定出有第二用户站点请求接入所述VPN业务时,所述处理单元具体用于确定出存储有所述第二用户站点请求接入所述VPN业务的信息。When it is determined that a second user site requests to access the VPN service, the processing unit is specifically configured to determine that information that the second user site requests to access the VPN service is stored.
结合第二方面、第二方面的第一种至第八种任一种可能的实现方式,在第二方面的第九种可能的实现方式中,所述第一边缘设备为接收所述第一用户站点的上线请求后,向所述网络设备发送所述第一接入请求的设备。With reference to the second aspect and any one of the first to eighth possible implementation manners of the second aspect, in a ninth possible implementation manner of the second aspect, the first edge device receives the first A device that sends the first access request to the network device after the online request of the user site.
通过上述技术方案可知,本发明中网络设备接收用于请求将第一用户站点接入VPN业务的第一接入请求时,并不直接将所述第一用户站点接入所述VPN业务,而是确定出有与所述第一用户站点不同的第二用户站点请求接入所述VPN业务,即说明所述第一用户站点接入所述VPN业务后能够与所述第二用户站点传输数据时,配置与所述第一用户站点连接的第一边缘设备和与所述第二用户站点连接的第二边缘设备,以将所述第一用户站点和所述第二用户站点接入所述VPN业务。可见本发明中当确定出所述第一用户站点接入VPN业务后能够与所述第二用户站点传输数据时,才将所述第一用户站点和所述第二用户站点接入所述VPN业务,即实现了所述第一用户站点按需接入所述VPN业务,从而尽可能地避免占用了所述第一边缘设备的资源但是所述第一用户站点却不能传输数据的情况出现,因此减少了资源浪费。It can be seen from the above technical solution that when the network device in the present invention receives the first access request for requesting the first user site to access the VPN service, it does not directly connect the first user site to the VPN service, but It is determined that a second user site different from the first user site requests to access the VPN service, that is, it indicates that the first user site can transmit data with the second user site after accessing the VPN service When , configure the first edge device connected to the first user site and the second edge device connected to the second user site, so as to connect the first user site and the second user site to the VPN business. It can be seen that in the present invention, when it is determined that the first user site can transmit data with the second user site after accessing the VPN service, the first user site and the second user site are connected to the VPN. services, that is, the first user site can access the VPN service on demand, thereby avoiding as much as possible the situation that resources of the first edge device are occupied but the first user site cannot transmit data, Resource waste is thus reduced.
附图说明Description of drawings
图1为本发明提供的一种方法实施例的流程示意图;Fig. 1 is a schematic flow diagram of a method embodiment provided by the present invention;
图2为本发明实施例用于的一种网络拓扑;Fig. 2 is a kind of network topology used in the embodiment of the present invention;
图3为本发明提供的另一种方法实施例的流程示意图;FIG. 3 is a schematic flow diagram of another method embodiment provided by the present invention;
图4为本发明实施例用于的另一种网络拓扑;Fig. 4 is another network topology used in the embodiment of the present invention;
图5为控制器获取的第一VPN隧道的一种具体路径;Fig. 5 is a specific path of the first VPN tunnel acquired by the controller;
图6为本发明提供的网络设备的一种装置实施例的结构示意图;FIG. 6 is a schematic structural diagram of an apparatus embodiment of a network device provided by the present invention;
图7为本发明提供的网络设备的另一种装置实施例的结构示意图;FIG. 7 is a schematic structural diagram of another device embodiment of a network device provided by the present invention;
图8为本发明提供的网络设备的另一种装置实施例的结构示意图。FIG. 8 is a schematic structural diagram of another device embodiment of a network device provided by the present invention.
具体实施方式Detailed ways
为了使得用户站点之间利用VPN进行数据传输,需要首先将用户站点接入VPN业务。其中,用户站点是用户侧设备,每个用户站点一般都通过物理连接方式与运营商的边缘设备进行连接,而运营商的边缘设备之间可以通过骨干网络传输数据。In order to use the VPN for data transmission between user sites, it is necessary to first connect the user sites to VPN services. Among them, the user site is the user-side device, and each user site is generally connected to the edge device of the operator through a physical connection, and the edge devices of the operator can transmit data through the backbone network.
目前将用户站点接入VPN业务的通常做法是,运营商和用户人工协商出需要接入所述VPN业务的所有用户站点,当所有用户站点确定后,对每个所述用户站点分别连接的边缘设备进行人工配置,从而将每个所述用户站点都接入所述VPN业务。At present, the usual practice of connecting user sites to VPN services is that operators and users manually negotiate all user sites that need to access the VPN service, and when all user sites are determined, the edge The device is manually configured so that each user site is connected to the VPN service.
然而,发明人经过研究发现,由于用户站点接入VPN业务时需要对该用户站点连接的边缘设备进行配置,必然会占用边缘设备的资源,而上述接入方式中,由于不能实现用户站点按需接入VPN业务,也就是说即使用户站点接入VPN业务也无法传输数据,所述运营商也仍然会将该用户站点接入VPN业务。导致即使占用了该用户站点连接的边缘设备的资源,该用户站点也不能传输数据,从而造成了资源浪费。下面通过一个例子加以说明,假设共有3个用户站点:用户站点01、用户站点02和用户站点03,如果用户站点02和用户站点03处于离线状态或者没有接入VPN业务,那么即使用户站点01接入上述VPN业务,用户站点01也无法与用户站点02和用户站点03传输数据,但是由于上述接入方式中仍然会对用户站点01连接的边缘设备进行配置以使其接入上述VPN业务中,从而造成了资源浪费。However, the inventor found through research that because the user site needs to configure the edge device connected to the user site when accessing the VPN service, it will inevitably occupy the resources of the edge device. Access to the VPN service, that is to say, even if the user site accesses the VPN service and cannot transmit data, the operator will still access the user site to the VPN service. As a result, even if the resources of the edge device connected to the user site are occupied, the user site cannot transmit data, thereby causing waste of resources. An example is used below to illustrate, assuming that there are three user sites: user site 01, user site 02, and user site 03, if user site 02 and user site 03 are offline or do not access VPN services, then even if user site 01 is connected to In the above VPN service, user site 01 cannot transmit data with user site 02 and user site 03, but because the above access method still configures the edge device connected to user site 01 to access the above VPN service, Thus causing a waste of resources.
而在本发明实施例中,提供一种VPN业务的接入方法及网络设备,以实现用户站点按需接入VPN业务,从而降低资源浪费。However, in the embodiment of the present invention, a VPN service access method and network equipment are provided, so as to enable user sites to access VPN services on demand, thereby reducing waste of resources.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present invention.
本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”“第四”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它或单元。The terms "first", "second", "third" and "fourth" in the description and claims of the present invention and the above drawings are used to distinguish similar objects, but not necessarily to describe a specific order or sequentially. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product or device comprising a sequence or unit need not be limited to those explicitly listed or elements, but may include other or elements not expressly listed or inherent to the process, method, product or apparatus.
请参阅图1,本发明实施例提供了VPN业务的接入方法的一种方法实施例。Referring to FIG. 1 , an embodiment of the present invention provides a method embodiment of a VPN service access method.
为了更好的理解本发明实施例的技术方案,下面通过图2说明本实施例所用于的一种可选的网络拓扑。需要说明的是,图2仅为一种示例性的说明,其具体结构并不会对本发明实施例起到限制作用。In order to better understand the technical solution of the embodiment of the present invention, an optional network topology used in this embodiment is described below through FIG. 2 . It should be noted that FIG. 2 is only an exemplary illustration, and its specific structure does not limit the embodiment of the present invention.
如图2所示,第一边缘设备和第二边缘设备属于运营商的边缘设备,通过骨干网络相连。所述第一边缘设备通过物理连接的方式与第一用户站点连接,在本领域中,也可以称所述第一用户站点附着在所述第一边缘设备上。其中,所述第一边缘设备上与所述第一用户站点连接的第一端口可以称为所述第一用户站点的接入端口。与之类似,所述第二边缘设备与第二用户站点连接,所述第二边缘设备上与所述第二用户站点连接的第二端口可以称为所述第二用户站点的接入端口。所述第一用户站点和所述第二用户站点的VPN数据,需要利用所述第一边缘设备、所述骨干网络以及所述第二边缘设备进行传输。需要说明的是,在本发明的图2和图4中,实线表示物理连接,虚线表示逻辑关系,即表示设备之间交互的是控制信息。As shown in FIG. 2 , the first edge device and the second edge device belong to the operator's edge devices and are connected through a backbone network. The first edge device is connected to the first user site through a physical connection. In this field, it may also be called that the first user site is attached to the first edge device. Wherein, the first port connected to the first user site on the first edge device may be referred to as an access port of the first user site. Similarly, the second edge device is connected to the second user site, and the second port on the second edge device connected to the second user site may be called an access port of the second user site. The VPN data of the first user site and the second user site need to be transmitted by using the first edge device, the backbone network, and the second edge device. It should be noted that, in FIG. 2 and FIG. 4 of the present invention, the solid line represents the physical connection, and the dotted line represents the logical relationship, that is, it indicates that control information is exchanged between devices.
本实施例的所述方法包括:The method of this embodiment includes:
101:网络设备接收所述第一边缘设备发送的第一接入请求,所述第一接入请求用于请求将所述第一边缘设备连接的所述第一用户站点接入所述VPN业务。101: A network device receives a first access request sent by the first edge device, where the first access request is used to request the first user site connected to the first edge device to access the VPN service .
在本发明实施例中,可以是由所述第一边缘设备确定出所述第一用户站点需要接入所述VPN业务时,例如接收到所述第一用户站点的上线请求后,向所述网络设备发送所述第一接入请求。其中,本实施例还可以包括所述第一边缘设备接收所述第一用户站点的上线请求后,向所述网络设备发送所述第一接入请求。In this embodiment of the present invention, when it is determined by the first edge device that the first user site needs to access the VPN service, for example, after receiving the online request of the first user site, the The network device sends the first access request. Wherein, this embodiment may further include that the first edge device sends the first access request to the network device after receiving the online request of the first user site.
在具体实现时,用户可以预先申请开通所述VPN业务,例如用户可以在运营商的网站上申请开通所述VPN业务。其中所述VPN业务可以对应一个注册账号,也可以对应多个注册账号。所述网络设备保存开通的所述VPN业务和注册账号的对应关系。当所述VPN业务开通后,用户可以向所述第一边缘设备发送包括注册账号的上线请求,所述第一边缘设备根据所述上线请求中的注册账号确定出所述第一用户站点需要接入所述VPN业务,从而向所述网络设备发送所述第一接入请求。其中,所述第一边缘设备还可以将该注册账号发送至认证设备进行认证,认证通过后再发送所述第一接入请求。During specific implementation, the user may apply for opening the VPN service in advance, for example, the user may apply for opening the VPN service on the operator's website. The VPN service may correspond to one registered account, or may correspond to multiple registered accounts. The network device saves the corresponding relationship between the opened VPN service and the registered account. After the VPN service is opened, the user can send an online request including a registered account to the first edge device, and the first edge device determines that the first user site needs to connect to the VPN according to the registered account in the online request. Enter the VPN service, so as to send the first access request to the network device. Wherein, the first edge device may also send the registered account to the authentication device for authentication, and then send the first access request after passing the authentication.
在本发明实施例中,所述第一接入请求中可以包括所述第一用户站点的标识和所述VPN业务的标识。其中,所述第一用户站点的标识具体可以为所述第一端口的端口标识。所述VPN业务的标识具体可以由所述网络设备进行分配。其中第一接入请求可以包括在计费抄送信息中发生至所述网络设备。In this embodiment of the present invention, the first access request may include the identifier of the first user site and the identifier of the VPN service. Wherein, the identifier of the first user site may specifically be a port identifier of the first port. Specifically, the identifier of the VPN service may be assigned by the network device. Wherein the first access request may be included in the billing carbon copy information to the network device.
102:所述网络设备确定出有所述第二用户站点请求接入所述VPN业务。其中,所述第二用户站点为与所述第一用户站点不同的用户站点。102: The network device determines that the second user site requests to access the VPN service. Wherein, the second user site is a user site different from the first user site.
在本发明实施例中,当所述网络设备接收所述第一接入请求后,并不是直接将所述第一用户站点接入所述VPN业务,而是进一步确定是否有与所述第一用户站点不同的所述第二用户站点接入所述VPN业务,如果是,则表示所述网络设备确定出有所述第二用户站点请求接入所述VPN业务。In this embodiment of the present invention, after the network device receives the first access request, it does not directly connect the first user site to the VPN service, but further determines whether there is a connection with the first access request. The second user site that is different from the user site accesses the VPN service, if yes, it means that the network device determines that the second user site requests to access the VPN service.
若所述网络设备确定出有所述第二用户站点请求接入所述VPN业务,表示所述第一用户站点和所述第二用户站点都请求接入所述VPN业务,此时说明将所述第一用户站点和所述第二用户站点接入所述VPN业务后,所述第一用户站点能够与所述第二用户站点传输数据。If the network device determines that the second user site requests access to the VPN service, it means that both the first user site and the second user site request access to the VPN service. After the first user site and the second user site access the VPN service, the first user site can transmit data with the second user site.
需要说明的是,本发明实施例中,所述第二用户站点指的是与所述第一用户站点不同的任一用户站点。即本中所述网络设备确定出有与所述第一用户站点不同的任一用户站点接入所述VPN业务时,将所述任一用户站点作为所述第二用户站点。It should be noted that, in the embodiment of the present invention, the second user site refers to any user site different from the first user site. That is, when the network device in this document determines that any user site different from the first user site accesses the VPN service, it uses the any user site as the second user site.
103:所述网络设备配置所述第一边缘设备和与所述第二用户站点连接的所述第二边缘设备,以将所述第一用户站点和所述第二用户站点接入所述VPN业务。103: The network device configures the first edge device and the second edge device connected to the second user site, so as to connect the first user site and the second user site to the VPN business.
在本发明实施例中,当所述网络设备确定出有与所述第一用户站点不同的所述第二用户站点请求接入所述VPN业务,能够进一步确定出所述第一用户站点接入所述VPN业务后能够与所述第二用户站点传输数据,因此配置所述第一边缘设备和所述第二边缘设备,从而将所述第一用户站点和所述第二用户站点接入所述VPN业务。In the embodiment of the present invention, when the network device determines that the second user site different from the first user site requests to access the VPN service, it can further determine that the first user site accesses the VPN service. The VPN service can transmit data with the second user site, so the first edge device and the second edge device are configured to connect the first user site and the second user site to the VPN service described above.
可选的,本实施例中还包括:若所述网络设备确定出没有除所述第一用户站点之外的用户站点接入所述VPN业务,说明所述第一用户站点接入所述VPN业务后也不能传输数据时,则并不执行103,而是可以直接结束本实施例的流程,也可以在预设周期之后,重新确定是否有与所述第一用户站点不同的所述第二用户站点接入所述VPN业务。Optionally, this embodiment further includes: if the network device determines that no user site other than the first user site accesses the VPN service, indicating that the first user site accesses the VPN service When the data cannot be transmitted after the service, then step 103 is not executed, but the process of this embodiment can be ended directly, or after a preset period, it can be re-determined whether there is a second user site different from the first user site. The user site accesses the VPN service.
通过上述技术方案可知,本发明实施例中的所述网络设备接收用于请求将所述第一用户站点接入所述VPN业务的所述第一接入请求时,并不直接将所述第一用户站点接入所述VPN业务,而是确定出有与所述第一用户站点不同的所述第二用户站点请求接入所述VPN业务,即说明所述第一用户站点接入所述VPN业务后能够与所述第二用户站点传输数据时,配置与所述第一用户站点连接的所述第一边缘设备和与所述第二用户站点连接的所述第二边缘设备,以将所述第一用户站点和所述第二用户站点接入所述VPN业务。可见本发明中当确定出所述第一用户站点接入VPN业务后能够与所述第二用户站点传输数据时,才将所述第一用户站点和所述第二用户站点接入所述VPN业务,即实现了所述第一用户站点按需接入所述VPN业务,从而尽可能地避免占用了所述第一边缘设备的资源但是所述第一用户站点却不能传输数据的情况出现,因此减少了资源浪费。It can be seen from the above technical solution that when the network device in the embodiment of the present invention receives the first access request for requesting the first user site to access the VPN service, it does not directly A user site accesses the VPN service, but it is determined that the second user site different from the first user site requests to access the VPN service, which means that the first user site accesses the VPN service. When the VPN service can transmit data with the second user site, configure the first edge device connected to the first user site and the second edge device connected to the second user site, so as to The first user site and the second user site access the VPN service. It can be seen that in the present invention, when it is determined that the first user site can transmit data with the second user site after accessing the VPN service, the first user site and the second user site are connected to the VPN. services, that is, the first user site can access the VPN service on demand, thereby avoiding as much as possible the situation that resources of the first edge device are occupied but the first user site cannot transmit data, Resource waste is thus reduced.
在本发明实施例中,所述网络设备可以是协同设备、编排设备(英文:orchetrator)、网管设备等具有协同管理功能的设备。所述第一边缘设备和所述第二边缘设备可以为宽带网络网关(英文:Broadband Network Gateway,简称BNG)。所述第一用户站点和所述第二用户站点可以为用户驻地设备(简称:CPE)。In the embodiment of the present invention, the network device may be a collaborative device, an orchestrator (English: orchestrator), a network management device, and other devices with a collaborative management function. The first edge device and the second edge device may be broadband network gateways (English: Broadband Network Gateway, BNG for short). The first user site and the second user site may be customer premises equipment (CPE for short).
在本发明实施例中,所述网络设备接收到所述第一边缘设备发送的所述第一接入请求,还可以存储所述第一用户站点请求接入所述VPN业务的信息,例如具体存储所述VPN业务和所述第一端口的端口标识的对应关系,当再次接收其他边缘设备发送的接入请求后,就可以根据存储的所述信息确定出有所述第一用户站点接入所述VPN业务的信息。因此,102中的所述网络设备确定出有第二用户站点请求接入所述VPN业务,可以包括:所述网络设备确定出存储有所述第二用户站点请求接入所述VPN业务的信息。In this embodiment of the present invention, the network device receives the first access request sent by the first edge device, and may also store the information that the first user site requests to access the VPN service, for example, the specific Storing the corresponding relationship between the VPN service and the port identifier of the first port, after receiving the access request sent by other edge devices again, it can be determined according to the stored information that the first user site access Information about the VPN service. Therefore, the network device determining in 102 that a second user site requests to access the VPN service may include: the network device determining that the information that the second user site requests to access the VPN service is stored .
在本发明实施例中,所述网络设备接收所述第一接入请求,并且确定出有所述第二用户站点请求接入所述VPN业务时,配置所述第一边缘设备和所述第二边缘设备,以将所述第一用户站点和所述第二用户站点接入所述VPN业务。其中所述网络设备在配置所述第一边缘设备和所述第二边缘设备时,可以有两种配置方式,第一种配置方式是将所述第一用户站点和所述第二用户站点独立接入所述VPN业务,即每个用户站点接入所述VPN业务后并不获知其他接入所述VPN业务的用户设备。第二种配置方式是通过在所述第一用户站点和所述第二用户站点之间部署VPN隧道的方式,将所述第一用户站点和所述第二用户站点接入所述VPN业务。下面分别介绍这两种配置方式。In this embodiment of the present invention, when the network device receives the first access request and determines that the second user site requests to access the VPN service, configure the first edge device and the second Two edge devices, for connecting the first user site and the second user site to the VPN service. When the network device configures the first edge device and the second edge device, there are two configuration methods, the first configuration method is to separate the first user site and the second user site Accessing the VPN service means that each user site does not know other user equipments accessing the VPN service after accessing the VPN service. The second configuration manner is to connect the first user site and the second user site to the VPN service by deploying a VPN tunnel between the first user site and the second user site. The two configuration methods are described below.
第一种配置方式:所述网络设备可以对所述第一边缘设备和所述第二边缘设备分别配置,使得所述第一用户站点和所述第二用户站点独立接入所述VPN业务。The first configuration manner: the network device may separately configure the first edge device and the second edge device, so that the first user site and the second user site independently access the VPN service.
例如,所述网络设备向所述第一边缘设备发送配置参数,该配置参数仅包括用于将所述第一用户站点接入所述VPN业务的配置参数,例如所述第一端口的端口标识,而不包括与所述第二用户站点相关的配置参数。其中所述第一端口的端口标识可以从所述第一接入请求中获取。在一些场景下,所述网络设备还可以向所述第一边缘设备发送:所述网络设备为所述第一用户站点分配的第一路由目标参数(英文:Route Target,简称:RT)和第一路由区分符参数(英文:Route Ditinguiher,简称:RD)。类似地,所述网络设备向所述第二边缘设备发送的配置参数,也仅包括用于将所述第二用户站点接入所述VPN业务的配置参数,例如第二端口的端口标识,而不包括与所述第一用户站点相关的配置参数。其中所述第二端口的端口标识可以从用于请求将所述第二用户站点接入所述VPN业务的接入请求中获取。在一些场景下,所述网络设备还可以向所述第二边缘设备发送:所述网络设备为所述第二用户站点分配的第二RT和第二RD。所述第一边缘设备和所述第二边缘设备根据所述网络设备发送的配置参数,分别将所述第一边缘设备和所述第二边缘设备独立接入所述VPN业务。For example, the network device sends configuration parameters to the first edge device, and the configuration parameters only include configuration parameters for connecting the first user site to the VPN service, such as the port identifier of the first port , excluding configuration parameters related to the second user site. The port identifier of the first port may be obtained from the first access request. In some scenarios, the network device may also send to the first edge device: the first route target parameter (English: Route Target, RT for short) and the first route target parameter (English: Route Target, RT for short) allocated by the network device to the first user site A route distinguisher parameter (English: Route Ditinguiher, RD for short). Similarly, the configuration parameters sent by the network device to the second edge device only include configuration parameters for connecting the second user site to the VPN service, such as the port identifier of the second port, and Configuration parameters related to the first user site are not included. The port identifier of the second port may be obtained from an access request for requesting the second user site to access the VPN service. In some scenarios, the network device may also send to the second edge device: the second RT and the second RD allocated by the network device to the second user site. The first edge device and the second edge device respectively independently access the VPN service to the first edge device and the second edge device according to configuration parameters sent by the network device.
第二种配置方式:实际上,在一些场景下,例如用户申请所述VPN业务时设定所述VPN业务为点到点的业务类型时,可以采用上述第二种配置方式,即通过在所述第一边缘设备和所述第二边缘设备之间部署VPN隧道的方式接入所述VPN业务。下面通过一个实施例加以具体说明。The second configuration method: In fact, in some scenarios, for example, when the user applies for the VPN service and sets the VPN service as a point-to-point service type, the second configuration method above can be used, that is, through the access the VPN service by deploying a VPN tunnel between the first edge device and the second edge device. The following will be specifically described through an embodiment.
请参阅图3,本发明实施例提供了VPN业务的接入方法的另一种方法实施例。与其他实施例的不同的是,本实施例重点说明通过在所述第一边缘设备和所述第二边缘设备之间部署VPN隧道的方式接入所述VPN业务。Referring to FIG. 3 , the embodiment of the present invention provides another method embodiment of a VPN service access method. Different from other embodiments, this embodiment focuses on accessing the VPN service by deploying a VPN tunnel between the first edge device and the second edge device.
本实施例的所述方法包括301至303,其中301和302与图1所示实施例的101和102相类似,因此描述较为简单,相关之处请参见图1所示的实施例。本实施例重点描述303。The method in this embodiment includes 301 to 303, wherein 301 and 302 are similar to 101 and 102 in the embodiment shown in FIG. 1 , so the description is relatively simple. For related details, please refer to the embodiment shown in FIG. 1 . This embodiment focuses on description 303.
301:所述网络设备接收所述第一边缘设备发送的第一接入请求,所述第一接入请求用于请求将所述第一边缘设备连接的所述第一用户站点接入所述VPN业务。301: The network device receives a first access request sent by the first edge device, where the first access request is used to request that the first user site connected to the first edge device access the VPN business.
302:所述网络设备确定出有所述第二用户站点请求接入所述VPN业务,所述第二用户站点为与所述第一用户站点不同的用户站点。302: The network device determines that the second user site requests access to the VPN service, and the second user site is a user site different from the first user site.
303:所述网络设备部署从所述第一边缘设备至所述第二边缘设备的第一VPN隧道,以及部署从所述第二边缘设备至所述第一边缘设备的第二VPN隧道。303: The network device deploys a first VPN tunnel from the first edge device to the second edge device, and deploys a second VPN tunnel from the second edge device to the first edge device.
其中,所述第一VPN隧道的头端与所述第一端口关联,所述第一VPN隧道的尾端与所述第二端口关联,所述第二VPN隧道的头端与所述第二端口关联,所述第二VPN隧道的尾端与所述第一端口关联。所述第一端口为所述第一边缘设备上与所述第一用户站点连接的端口,即所述第一用户站点的接入端口,所述第二端口为所述第二边缘设备上与所述第二用户站点连接的端口,即所述第二用户站点的接入端口。Wherein, the head end of the first VPN tunnel is associated with the first port, the tail end of the first VPN tunnel is associated with the second port, and the head end of the second VPN tunnel is associated with the second port. port association, the tail end of the second VPN tunnel is associated with the first port. The first port is a port connected to the first user site on the first edge device, that is, an access port of the first user site, and the second port is a port on the second edge device connected to the first user site. The port to which the second user site is connected is the access port of the second user site.
下面介绍本发明实施例中,VPN隧道的头端或者尾端与端口关联的一种实现方式。所述第一VPN隧道的头端与所述第一端口关联,可以具体表现为在所述第一边缘设备上存储所述第一端口和所述第一VPN隧道的映射关系,从而使得所述第一边缘设备根据该映射关系,将从所述第一端口接收到的数据通过所述第一VPN隧道进行传输。所述第一VPN隧道的尾端与所述第二端口关联,可以具体表现为在所述第二边缘设备上存储所述第二端口和所述第一VPN隧道的映射关系,从而使得所述第二边缘设备根据该映射关系,将所述第一VPN隧道传输的数据向所述第二端口输出。The following introduces an implementation manner of associating a head end or tail end of a VPN tunnel with a port in the embodiment of the present invention. The head end of the first VPN tunnel is associated with the first port, which may be embodied as storing a mapping relationship between the first port and the first VPN tunnel on the first edge device, so that the The first edge device transmits the data received from the first port through the first VPN tunnel according to the mapping relationship. The tail end of the first VPN tunnel is associated with the second port, which may be embodied as storing a mapping relationship between the second port and the first VPN tunnel on the second edge device, so that the The second edge device outputs the data transmitted by the first VPN tunnel to the second port according to the mapping relationship.
类似地,所述第二VPN隧道的头端与所述第二端口关联,所述第二VPN隧道的尾端与所述第一端口关联也可以具体表现为上述实现方式,这里不再赘述。Similarly, the head end of the second VPN tunnel is associated with the second port, and the tail end of the second VPN tunnel is associated with the first port may also be embodied in the above implementation manner, which will not be repeated here.
由于在本发明实施例中,所述网络设备接收到所述第一接入请求后,并不是直接将所述第一用户站点接入所述VPN业务,而是确定是否有所述第二用户站点请求接入所述VPN业务,如果是,则所述网络设备实际上获取到接入所述VPN业务的两个用户站点,所述网络设备可以通过部署所述第一VPN隧道和所述第二VPN隧道的方式将该两个用户站点接入所述VPN业务。Because in the embodiment of the present invention, after the network device receives the first access request, it does not directly connect the first user site to the VPN service, but determines whether there is the second user A site requests to access the VPN service, if so, the network device actually obtains two user sites that access the VPN service, and the network device can deploy the first VPN tunnel and the second VPN tunnel The two user sites are connected to the VPN service in a manner of two VPN tunnels.
可见,本实施例介绍了所述第二种配置方式的实现方式,即通过在所述第一边缘设备和所述第二边缘设备之间部署所述第一VPN隧道和所述第二VPN隧道,将所述第一用户站点和所述第二用户站点接入了所述VPN业务。实际上,所述第一VPN隧道和所述第二VPN隧道是所述第一用户站点和所述第二用户站点之间,已知对端的点到点VPN隧道,因此相比于所述第一种配置方式,即,将所述第一用户站点和所述第二用户站点独立接入所述VPN业务,所述第二种配置方式无需自动发现站点,因此无需运行复杂的发现协议,对边缘设备的设备要求较低,并且出错率较低。It can be seen that this embodiment introduces the implementation of the second configuration mode, that is, by deploying the first VPN tunnel and the second VPN tunnel between the first edge device and the second edge device , connecting the first user site and the second user site to the VPN service. In fact, the first VPN tunnel and the second VPN tunnel are point-to-point VPN tunnels with known peers between the first user site and the second user site, so compared to the first A configuration method, that is, the first user site and the second user site are independently connected to the VPN service, and the second configuration method does not need to automatically discover sites, so there is no need to run complex discovery protocols. Edge devices have lower equipment requirements and have a lower error rate.
在本实施例中,在所述第一边缘设备和所述第二边缘设备之间部署所述第一VPN隧道和所述第二VPN隧道后,若有其他的用户站点请求接入所述VPN业务,则可以将其他的用户站点所连接的边缘设备,分别与所述第一边缘设备和所述第二边缘设备部署VPN隧道。具体实现方式是,所述网络设备接收第三边缘设备发送的第二接入请求,所述第二接入请求用于请求将所述第三边缘设备连接的第三用户站点接入所述VPN业务;所述网络设备确定出有所述第一用户站点和所述第二用户站点接入所述VPN业务;所述网络设备部署从所述第一边缘设备至所述第三边缘设备的第三VPN隧道,以及部署从所述第三边缘设备至所述第一边缘设备的第四VPN隧道,所述第三VPN隧道的头端与所述第一端口关联,所述第三VPN隧道的尾端与第三端口关联,所述第四VPN隧道的头端与所述第三端口关联,所述第四VPN隧道的尾端与所述第一端口关联,所述第三端口为所述第三边缘设备上与所述第三用户站点连接的端口;所述网络设备部署从所述第二边缘设备至所述第三边缘设备的第五VPN隧道,以及部署从所述第三边缘设备至所述第二边缘设备的第六VPN隧道,所述第五VPN隧道的头端与所述第二端口关联,所述第五VPN隧道的尾端与所述第三端口关联,所述第六VPN隧道的头端与所述第三端口关联,所述第六VPN隧道的尾端与所述第二端口关联。其中,端口与隧道的头端或尾端关联的具体表现方式,具体请参见所述第一VPN隧道的头端与所述第一端口关联,以及所述第二VPN隧道的尾端与所述第二端口关联的具体表现方式。这里不再赘述。In this embodiment, after the first VPN tunnel and the second VPN tunnel are deployed between the first edge device and the second edge device, if other user sites request to access the VPN For services, edge devices connected to other user sites may deploy VPN tunnels with the first edge device and the second edge device respectively. The specific implementation is that the network device receives the second access request sent by the third edge device, and the second access request is used to request that the third user site connected to the third edge device access the VPN service; the network device determines that the first user site and the second user site access the VPN service; the network device deploys the first edge device to the third edge device Three VPN tunnels, and a fourth VPN tunnel deployed from the third edge device to the first edge device, the head end of the third VPN tunnel is associated with the first port, and the head end of the third VPN tunnel is associated with The tail end is associated with the third port, the head end of the fourth VPN tunnel is associated with the third port, the tail end of the fourth VPN tunnel is associated with the first port, and the third port is the A port on the third edge device connected to the third user site; the network device deploys a fifth VPN tunnel from the second edge device to the third edge device, and deploys a fifth VPN tunnel from the third edge device To the sixth VPN tunnel of the second edge device, the head end of the fifth VPN tunnel is associated with the second port, the tail end of the fifth VPN tunnel is associated with the third port, and the fifth VPN tunnel is associated with the third port. Head ends of the six VPN tunnels are associated with the third port, and tail ends of the sixth VPN tunnel are associated with the second port. Wherein, for the specific representation of the association between the port and the head end or tail end of the tunnel, please refer to the association between the head end of the first VPN tunnel and the first port, and the association between the tail end of the second VPN tunnel and the The specific representation of the second port association. I won't go into details here.
需要说明的是,所述网络设备可以是通过直接配置所述第一边缘设备和所述第二边缘设备以实现部署所述第一VPN隧道和所述第二VPN隧道,例如向所述第一边缘设备和所述第二边缘设备发送配置参数。所述网络设备还可以间接配置所述第一边缘设备和所述第二边缘设备,例如通过向其他设备发送请求的方式,由其他设备部署所述第一VPN隧道和所述第二VPN隧道。下面分别说明。It should be noted that the network device may deploy the first VPN tunnel and the second VPN tunnel by directly configuring the first edge device and the second edge device, for example, to the first The edge device and the second edge device send configuration parameters. The network device may also indirectly configure the first edge device and the second edge device, for example, by sending a request to other devices, and the other devices deploy the first VPN tunnel and the second VPN tunnel. Instructions are given below.
首先说明直接配置的方式。本实施例还可以包括:所述网络设备为所述VPN业务分配VPN隧道标识。本实施例的303包括3031和3032。其中,VPN隧道标识用于唯一的表示VPN隧道。VPN隧道指的是用于承载VPN业务的VPN隧道,例如可以为MPLS的LSP隧道、MPLS的TE隧道、L2TP隧道、GRE隧道、IPSEC隧道等等,本发明实施例对此并不加以限定。First, the method of direct configuration is explained. This embodiment may further include: the network device assigning a VPN tunnel identifier to the VPN service. 303 in this embodiment includes 3031 and 3032. Wherein, the VPN tunnel identifier is used to uniquely represent the VPN tunnel. A VPN tunnel refers to a VPN tunnel for carrying VPN services, such as an MPLS LSP tunnel, an MPLS TE tunnel, an L2TP tunnel, a GRE tunnel, an IPSEC tunnel, etc., which are not limited in this embodiment of the present invention.
3031:所述网络设备向所述第一边缘设备发送第一配置参数,所述第一配置参数包括:所述VPN隧道标识、所述第一端口的端口标识、和所述第二边缘设备的设备标识。所述第二边缘设备的设备标识具体可以为所述第二边缘设备的IP地址。3031: The network device sends a first configuration parameter to the first edge device, where the first configuration parameter includes: the VPN tunnel identifier, the port identifier of the first port, and the Equipment Identity. The device identifier of the second edge device may specifically be the IP address of the second edge device.
3032:所述网络设备向所述第二边缘设备发送第二配置参数,所述第二配置参数包括:所述VPN隧道标识、所述第二端口的端口标识、和所述第一边缘设备的设备标识。所述第一边缘设备的设备标识具体可以为所述第一边缘设备的IP地址。3032: The network device sends a second configuration parameter to the second edge device, where the second configuration parameter includes: the VPN tunnel identifier, the port identifier of the second port, and the Equipment Identity. The device identifier of the first edge device may specifically be the IP address of the first edge device.
可见,在向所述第一边缘设备发送的所述第一配置参数中包括与所述第二用户站点相关的配置参数:所述第二边缘设备的设备标识,并且向所述第二边缘设备发送的所述第二配置参数中包括与所述第一用户站点相关的配置参数:所述第一边缘设备的设备标识。其中所述第一边缘设备和所述第二边缘设备根据所述第一配置参数和所述第二配置参数部署所述第一VPN隧道和所述第二VPN隧道,可以根据目前任一种VPN隧道部署方式,本发明实施例对此并不加以限定。在某些场景下,所述网络设备还可以向所述第一边缘设备发送为所述第一用户站点分配的第一RT和第一RD,并向所述第二边缘设备发送为所述第二用户站点分配的第二RT和第二RD。It can be seen that the first configuration parameter sent to the first edge device includes a configuration parameter related to the second user site: the device identifier of the second edge device, and the configuration parameter sent to the second edge device The sent second configuration parameters include a configuration parameter related to the first user site: a device identifier of the first edge device. Wherein the first edge device and the second edge device deploy the first VPN tunnel and the second VPN tunnel according to the first configuration parameter and the second configuration parameter, it can be based on any current VPN The tunnel deployment mode is not limited in this embodiment of the present invention. In some scenarios, the network device may also send the first RT and the first RD allocated for the first user site to the first edge device, and send the first RT and the first RD allocated for the first user site to the second edge device. The second RT and the second RD assigned by the second user site.
下面说明间接配置的方式,具体由通过向其他设备发送请求部署所述第一VPN隧道和所述第二VPN隧道。请参阅图4所示,本实施例的303具体可以包括:所述网络设备向控制器401发送在所述第一边缘设备和所述第二边缘设备之间部署所述第一VPN隧道和所述第二VPN隧道的请求,所述部署所述第一VPN隧道和所述第二VPN隧道的请求中包括所述第一端口的端口标识、所述第二端口的端口标识、所述第一边缘设备的设备标识以及所述第二边缘设备的设备标识。所述部署所述第一VPN隧道和所述第二VPN隧道的请求中还可以包括所述VPN业务的标识。The manner of indirect configuration is described below, specifically by sending a request to other devices to deploy the first VPN tunnel and the second VPN tunnel. Please refer to FIG. 4 , 303 of this embodiment may specifically include: the network device sending the controller 401 to deploy the first VPN tunnel between the first edge device and the second edge device and the The request for the second VPN tunnel, the request for deploying the first VPN tunnel and the second VPN tunnel includes the port identifier of the first port, the port identifier of the second port, the first The device identifier of the edge device and the device identifier of the second edge device. The request for deploying the first VPN tunnel and the second VPN tunnel may further include the identifier of the VPN service.
所述控制器401在接收到所述请求后,根据所述请求在所述第一边缘设备和所述第二边缘设备之间部署所述第一VPN隧道和所述第二VPN隧道。其中所述控制器401在部署所述第一VPN隧道和所述第二VPN隧道时,可以根据所述第一边缘设备的设备标识以及所述第二边缘设备的设备标识获取所述第一VPN隧道和所述第二VPN隧道的具体路径,即确定所述第一VPN隧道和所述第二VPN隧道的途径设备。之后根据所述路径、所述第一端口的端口标识和所述第二端口的端口标识,生成并为每个所述途径设备下发转发表项,以使得每个所述途径设备根据所述转发表项传输数据。所述控制器401可以为SDN控制器。After receiving the request, the controller 401 deploys the first VPN tunnel and the second VPN tunnel between the first edge device and the second edge device according to the request. When the controller 401 deploys the first VPN tunnel and the second VPN tunnel, it can obtain the first VPN according to the device identifier of the first edge device and the device identifier of the second edge device. The specific path of the tunnel and the second VPN tunnel is to determine the path device of the first VPN tunnel and the second VPN tunnel. Afterwards, according to the path, the port identifier of the first port, and the port identifier of the second port, a forwarding entry is generated and delivered to each of the path devices, so that each of the path devices according to the Forwarding entries transmit data. The controller 401 may be an SDN controller.
所述转发表项中可以包括所述控制器401分配的标签以及输出端口。下面通过一个具体例子说明对所述第一VPN隧道的部署方式。如图5所示,所述控制器401获取的所述第一VPN隧道的途径设备依次包括:BNG1、路由器Router1、路由器Router2和BNG2。其中所述BNG1和所述BNG2分别为所述第一边缘设备和所述第二边缘设备。The forwarding entry may include the label assigned by the controller 401 and the output port. The deployment manner of the first VPN tunnel is described below through a specific example. As shown in FIG. 5 , the path devices of the first VPN tunnel obtained by the controller 401 sequentially include: BNG1 , Router1 , Router2 and BNG2 . Wherein the BNG1 and the BNG2 are respectively the first edge device and the second edge device.
所述网络设备向所述控制器401发送的所述请求为:The request sent by the network device to the controller 401 is:
port1/BNG1-->port2/BNG2port1/BNG1-->port2/BNG2
所述控制器401向所述BNG1发送的转发表项为:The forwarding entry sent by the controller 401 to the BNG1 is:
port1-->port3,with Label100port1-->port3, with Label100
所述控制器401向所述Router1发送的转发表项为:The forwarding entry sent by the controller 401 to the Router1 is:
port4with label 100-->port5with label 200port4withlabel100-->port5withlabel200
所述控制器401向所述Router2发送的转发表项为:The forwarding entry sent by the controller 401 to the Router2 is:
port6with label 200-->port7with labe 100port6with label 200-->port7with label 100
所述控制器401向所述BNG2发送的转发表项为:The forwarding entry sent by the controller 401 to the BNG2 is:
port8with label 100-->port2port8with label 100-->port2
其中,所述port1为所述第一端口,所述port2为所述第二端口,所述port3和port4为所述BNG1和所述Router1连接的端口,所述port5和port6为所述Router1和所述Router2连接的端口,所述port7和port8为所述Router2和所述BNG2连接的端口。Wherein, the port1 is the first port, the port2 is the second port, the port3 and port4 are the ports connecting the BNG1 and the Router1, and the port5 and port6 are the ports connecting the Router1 and the Router1 The port connected to the Router2, the port7 and port8 are the ports connected to the Router2 and the BNG2.
可见,通过所述控制器401向每个所述途径设备下发所述转发表项,实现了在所述第一边缘设备和所述第二边缘设备之间部署所述第一VPN隧道。其中,所述途径设备包括所述第一边缘设备和所述第二边缘设备。对所述第二VPN隧道的部署方式,与对所述第一VPN隧道的部署方式类似,这里不再赘述。It can be seen that by the controller 401 delivering the forwarding entry to each of the path devices, the deployment of the first VPN tunnel between the first edge device and the second edge device is implemented. Wherein, the path device includes the first edge device and the second edge device. The deployment manner of the second VPN tunnel is similar to the deployment manner of the first VPN tunnel, and will not be repeated here.
可选的,在本实施例中,由于所述VPN业务可以对应一个或多个账号,而每个账号可以对应不同的QoS,因此在部署所述第一VPN隧道时,还可以基于用户所使用的账号所对应的Qos。具体地,所述第一接入请求还包括所述第一用户站点请求接入所述VPN业务的账号;本实施例还可以包括:所述网络设备获取所述账号对应的QoS;所述网络设备部署从所述第一边缘设备至所述第二边缘设备的第一VPN隧道包括:所述网络设备基于所述账号对应的QoS,部署从所述第一边缘设备至所述第二边缘设备的第一VPN隧道。其中,还可以进一步获取所述第二用户站点请求接入所述VPN业务的账号,并且根据该账号对应的QoS部署所述第二VPN隧道。最终部署的所述第一VPN隧道和所述第二VPN隧道可以具有不同的QoS。Optionally, in this embodiment, since the VPN service may correspond to one or more accounts, and each account may correspond to a different QoS, when deploying the first VPN tunnel, it may also be based on the QoS used by the user. Qos corresponding to the account number. Specifically, the first access request further includes an account for which the first user site requests to access the VPN service; this embodiment may further include: the network device obtaining the QoS corresponding to the account; the network The device deploying the first VPN tunnel from the first edge device to the second edge device includes: the network device deploying the first VPN tunnel from the first edge device to the second edge device based on the QoS corresponding to the account. The first VPN tunnel. Wherein, the account of the second user site requesting to access the VPN service may be further obtained, and the second VPN tunnel is deployed according to the QoS corresponding to the account. The first VPN tunnel and the second VPN tunnel that are finally deployed may have different QoS.
进一步可选的,在本实施例中,部署所述第一VPN隧道和所述第二VPN隧道时,还可以为所述第一VPN隧道和所述第二VPN隧道预留带宽,而当所述第一用户站点或者所述第二用户站点需要退出所述VPN业务时,比如所述第一用户站点或者所述第二用户站点请求离线时,还可以进一步撤销所述第一VPN隧道和所述第二VPN隧道,以释放为所述第一VPN隧道和所述第二VPN隧道预留的带宽。具体实现时,所述网络设备接收所述第一边缘设备发送的第一退出请求或者所述第二边缘设备发送的第二退出请求,所述第一退出请求用于请求将所述第一用户站点退出所述VPN业务,所述第二退出请求用于请求将所述第二用户站点退出所述VPN业务;所述网络设备撤销所述第一边缘设备和所述第二边缘设备之间部署的所述第一VPN隧道和所述第二VPN隧道。Further optionally, in this embodiment, when deploying the first VPN tunnel and the second VPN tunnel, bandwidth may also be reserved for the first VPN tunnel and the second VPN tunnel, and when the When the first user site or the second user site needs to exit the VPN service, for example, when the first user site or the second user site requests to go offline, the first VPN tunnel and the the second VPN tunnel to release bandwidth reserved for the first VPN tunnel and the second VPN tunnel. During specific implementation, the network device receives the first exit request sent by the first edge device or the second exit request sent by the second edge device, and the first exit request is used to request that the first user The site exits the VPN service, and the second exit request is used to request that the second user site exit the VPN service; the network device cancels the deployment between the first edge device and the second edge device The first VPN tunnel and the second VPN tunnel.
目前在对VPN业务进行计费时,由于不能实现按需接入VPN业务,因此一般是根据开通的VPN业务的QoS进行计费。进一步可选的,在本实施例中,由于实现了按需部署和撤销所述第一VPN隧道和所述第二VPN隧道,因此可以根据所述第一VPN隧道和所述第二VPN隧道的部署时间,即所述第一用户站点的接入VPN业务的实际时间进行计费。具体实现时,本实施例还包括:所述网络设备获取用于表示所述第一VPN隧道和所述第二VPN隧道的部署时间的相关信息;所述网络设备将所述相关信息发送至计费设备,所述计费设备可以根据所述相关信息获取到所述第一VPN隧道和所述第二VPN隧道的部署时间,从而根据所述部署时间进行计费。其中,所述相关信息,具体可以为所述第一VPN隧道和所述第二VPN隧道的部署时间,或者也可以为部署所述第一VPN隧道和所述第二VPN隧道的时刻和撤销所述第一VPN隧道和所述第二VPN隧道的时刻,由所述计费设备根据该两个时刻计算出所述第一VPN隧道和所述第二VPN隧道的部署时间。At present, when charging for VPN services, since on-demand access to VPN services cannot be realized, charging is generally performed according to the QoS of the enabled VPN services. Further optionally, in this embodiment, since the first VPN tunnel and the second VPN tunnel are deployed and withdrawn on demand, the The deployment time, that is, the actual time when the first user site accesses the VPN service is charged. During specific implementation, this embodiment further includes: the network device acquiring related information indicating the deployment time of the first VPN tunnel and the second VPN tunnel; the network device sending the related information to the computer A charging device, the charging device may obtain the deployment time of the first VPN tunnel and the second VPN tunnel according to the relevant information, so as to perform charging according to the deployment time. Wherein, the relevant information may specifically be the deployment time of the first VPN tunnel and the second VPN tunnel, or may also be the time of deploying the first VPN tunnel and the second VPN tunnel and the time for revocation. The timing of the first VPN tunnel and the second VPN tunnel, and the billing device calculates the deployment time of the first VPN tunnel and the second VPN tunnel according to the two timings.
上面对本发明实施例中的VPN业务的接入方法的实施例进行了描述,下面将从模块化功能实体的角度对本发明实施例中的网络设备的装置实施例进行描述。The embodiments of the method for accessing VPN services in the embodiments of the present invention are described above, and the apparatus embodiments of the network equipment in the embodiments of the present invention will be described below from the perspective of modular functional entities.
请参阅图6,本发明实施例提供了网络设备600的一种装置实施例。Referring to FIG. 6 , an embodiment of the present invention provides an apparatus embodiment of a network device 600 .
为了更好的理解本发明实施例的技术方案,下面通过图2说明本实施例的所述网络设备所用于的一种可选的网络拓扑。需要说明的是,图2仅为一种示例性的说明,其具体结构并不会对本发明实施例起到限制作用。如图2所示,网络设备分别与第一边缘设备和第二边缘设备连接,所述第一边缘设备和所述第二边缘设备属于运营商的边缘设备,通过骨干网络相连。所述第一边缘设备通过物理连接的方式与第一用户站点连接。所述第二边缘设备通过物理连接的与第二用户站点连接。In order to better understand the technical solution of the embodiment of the present invention, an optional network topology used by the network device in this embodiment is described below through FIG. 2 . It should be noted that FIG. 2 is only an exemplary illustration, and its specific structure does not limit the embodiment of the present invention. As shown in FIG. 2 , network devices are respectively connected to a first edge device and a second edge device. The first edge device and the second edge device belong to an operator's edge device and are connected through a backbone network. The first edge device is connected to the first user site through a physical connection. The second edge device is connected to the second user site through a physical connection.
本实施例的所述网络设备600包括:接收单元601和处理单元602。The network device 600 in this embodiment includes: a receiving unit 601 and a processing unit 602 .
所述接收单元601,用于接收所述第一边缘设备发送的第一接入请求,所述第一接入请求用于请求将所述第一边缘设备连接的所述第一用户站点接入VPN业务。The receiving unit 601 is configured to receive a first access request sent by the first edge device, where the first access request is used to request the first user site connected to the first edge device to access VPN business.
在本发明实施例中,可以是由所述第一边缘设备确定出所述第一用户站点需要接入所述VPN业务时,例如接收到所述第一用户站点的上线请求后,向所述网络设备600发送所述第一接入请求。其中,所述第一边缘设备可以为接收所述第一用户站点的上线请求后,向所述网络设备600发送所述第一接入请求的设备。In this embodiment of the present invention, when it is determined by the first edge device that the first user site needs to access the VPN service, for example, after receiving the online request of the first user site, the The network device 600 sends the first access request. Wherein, the first edge device may be a device that sends the first access request to the network device 600 after receiving the online request of the first user site.
在具体实现时,用户可以预先申请开通所述VPN业务,例如用户可以在运营商的网站上申请开通所述VPN业务。其中所述VPN业务可以对应一个注册账号,也可以对应多个注册账号。所述网络设备600保存开通的所述VPN业务和注册账号的对应关系。当所述VPN业务开通后,用户可以向所述第一边缘设备发送包括注册账号的上线请求,所述第一边缘设备根据所述上线请求中的注册账号确定出所述第一用户站点需要接入所述VPN业务,从而向所述网络设备600发送所述第一接入请求。其中,所述第一边缘设备还可以将该注册账号发送至认证设备进行认证,认证通过后再发送所述第一接入请求。During specific implementation, the user may apply for opening the VPN service in advance, for example, the user may apply for opening the VPN service on the operator's website. The VPN service may correspond to one registered account, or may correspond to multiple registered accounts. The network device 600 saves the corresponding relationship between the opened VPN service and the registered account. After the VPN service is opened, the user can send an online request including a registered account to the first edge device, and the first edge device determines that the first user site needs to connect to the VPN according to the registered account in the online request. Enter the VPN service, so as to send the first access request to the network device 600. Wherein, the first edge device may also send the registered account to the authentication device for authentication, and then send the first access request after passing the authentication.
在本发明实施例中,所述第一接入请求中可以包括所述第一用户站点的标识和所述VPN业务的标识。其中,所述第一用户站点的标识具体可以为所述第一端口的端口标识。所述VPN业务的标识具体可以由所述网络设备600进行分配。In this embodiment of the present invention, the first access request may include the identifier of the first user site and the identifier of the VPN service. Wherein, the identifier of the first user site may specifically be a port identifier of the first port. Specifically, the identifier of the VPN service may be assigned by the network device 600 .
所述处理单元602,用于当所述接收单元601接收到所述第一接入请求时,确定出有第二用户站点请求接入所述VPN业务。其中,所述第二用户站点为与所述第一用户站点不同的用户站点。The processing unit 602 is configured to determine that a second user site requests to access the VPN service when the receiving unit 601 receives the first access request. Wherein, the second user site is a user site different from the first user site.
在本发明实施例中,当所述接收单元601接收所述第一接入请求后,所述处理单元602并不是直接将所述第一用户站点接入所述VPN业务,而是进一步确定是否有与所述第一用户站点不同的所述第二用户站点接入所述VPN业务,如果是,则表示所述处理单元602确定出有所述第二用户站点请求接入所述VPN业务。In this embodiment of the present invention, after the receiving unit 601 receives the first access request, the processing unit 602 does not directly connect the first user site to the VPN service, but further determines whether There is the second user site different from the first user site accessing the VPN service, if yes, it means that the processing unit 602 determines that the second user site requests access to the VPN service.
若所述处理单元602确定出有所述第二用户站点请求接入所述VPN业务,表示所述第一用户站点和所述第二用户站点都请求接入所述VPN业务,此时说明将所述第一用户站点和所述第二用户站点接入所述VPN业务后,所述第一用户站点能够与所述第二用户站点传输数据。If the processing unit 602 determines that the second user site requests access to the VPN service, it means that both the first user site and the second user site request access to the VPN service. After the first user site and the second user site access the VPN service, the first user site can transmit data with the second user site.
需要说明的是,本发明实施例中,所述第二用户站点指的是与所述第一用户站点不同的任一用户站点。即所述处理单元602具体用于确定出有与所述第一用户站点不同的任一用户站点接入所述VPN业务时,将所述任一用户站点作为所述第二用户站点。It should be noted that, in the embodiment of the present invention, the second user site refers to any user site different from the first user site. That is, the processing unit 602 is specifically configured to use any user site as the second user site when it is determined that any user site different from the first user site accesses the VPN service.
所述处理单元602还用于,当确定出有所述第二用户站点请求接入所述VPN业务时,配置所述第一边缘设备和与所述第二用户站点连接的所述第二边缘设备,以将所述第一用户站点和所述第二用户站点接入所述VPN业务。The processing unit 602 is further configured to, when it is determined that the second user site requests to access the VPN service, configure the first edge device and the second edge connected to the second user site The device is configured to connect the first user site and the second user site to the VPN service.
在本发明实施例中,当所述处理单元602确定出有与所述第一用户站点不同的所述第二用户站点请求接入所述VPN业务,能够进一步确定出所述第一用户站点接入所述VPN业务后能够与所述第二用户站点传输数据,因此配置所述第一边缘设备和所述第二边缘设备,从而将所述第一用户站点和所述第二用户站点接入所述VPN业务。In this embodiment of the present invention, when the processing unit 602 determines that the second user site different from the first user site requests to access the VPN service, it can be further determined that the first user site receives After entering the VPN service, it can transmit data with the second user site, so the first edge device and the second edge device are configured to connect the first user site and the second user site to The VPN service.
所述处理单元602还可以用于:若确定出没有除所述第一用户站点之外的用户站点接入所述VPN业务,说明所述第一用户站点接入所述VPN业务后也不能传输数据时,则不将所述第一用户站点接入所述VPN业务,而是可以结束工作,也可以在预设周期之后,重新确定是否有与所述第一用户站点不同的所述第二用户站点接入所述VPN业务。The processing unit 602 may also be configured to: if it is determined that no user site other than the first user site accesses the VPN service, it means that the first user site cannot transmit the VPN service even after accessing the VPN service. data, the first user site will not be connected to the VPN service, but the work can be finished, and it can also be re-determined whether there is a second user site different from the first user site after a preset period. The user site accesses the VPN service.
通过上述技术方案可知,本发明实施例中的所述接收单元601接收用于请求将所述第一用户站点接入所述VPN业务的所述第一接入请求时,所述处理单元602并不直接将所述第一用户站点接入所述VPN业务,而是确定出有与所述第一用户站点不同的所述第二用户站点请求接入所述VPN业务,即说明所述第一用户站点接入所述VPN业务后能够与所述第二用户站点传输数据时,配置与所述第一用户站点连接的所述第一边缘设备和与所述第二用户站点连接的所述第二边缘设备,以将所述第一用户站点和所述第二用户站点接入所述VPN业务。可见本发明中当确定出所述第一用户站点接入VPN业务后能够与所述第二用户站点传输数据时,才将所述第一用户站点和所述第二用户站点接入所述VPN业务,即实现了所述第一用户站点按需接入所述VPN业务,从而尽可能地避免占用了所述第一边缘设备的资源但是所述第一用户站点却不能传输数据的情况出现,因此减少了资源浪费。It can be seen from the above technical solutions that when the receiving unit 601 in the embodiment of the present invention receives the first access request for requesting the first user site to access the VPN service, the processing unit 602 does not The first user site is not directly connected to the VPN service, but it is determined that the second user site different from the first user site requests to access the VPN service, that is, the first When the user site can transmit data with the second user site after accessing the VPN service, configuring the first edge device connected to the first user site and the second edge device connected to the second user site Two edge devices, for connecting the first user site and the second user site to the VPN service. It can be seen that in the present invention, when it is determined that the first user site can transmit data with the second user site after accessing the VPN service, the first user site and the second user site are connected to the VPN. services, that is, the first user site can access the VPN service on demand, thereby avoiding as much as possible the situation that resources of the first edge device are occupied but the first user site cannot transmit data, Resource waste is thus reduced.
在本发明实施例中,所述网络设备600可以是协同设备、编排设备、网管设备等具有协同管理功能的设备。所述第一边缘设备和所述第二边缘设备可以为BNG,所述第一用户站点和所述第二用户站点可以为CPE。In the embodiment of the present invention, the network device 600 may be a device with a collaborative management function, such as a collaboration device, an orchestration device, and a network management device. The first edge device and the second edge device may be BNGs, and the first user site and the second user site may be CPEs.
在本发明实施例中,当所述接收单元601接收到所述第一边缘设备发送的所述第一接入请求时,所述处理单元602还可以用于存储所述第一用户站点请求接入所述VPN业务的信息,例如具体存储所述VPN业务和所述第一端口的端口标识的对应关系,当所述接收单元601再次接收其他边缘设备发送的接入请求后,所述处理单元602就可以根据存储的所述信息确定出有所述第一用户站点接入所述VPN业务的信息。因此,当确定出有第二用户站点请求接入所述VPN业务时,所述处理单元602可以具体用于确定出存储有所述第二用户站点请求接入所述VPN业务的信息。In this embodiment of the present invention, when the receiving unit 601 receives the first access request sent by the first edge device, the processing unit 602 may also be configured to store the first user site request access Enter the information of the VPN service, for example, specifically store the corresponding relationship between the VPN service and the port identifier of the first port, and when the receiving unit 601 receives the access request sent by other edge devices again, the processing unit At 602, it may be determined according to the stored information that the first user site has access to the VPN service. Therefore, when it is determined that the second user site requests to access the VPN service, the processing unit 602 may be specifically configured to determine that information that the second user site requests to access the VPN service is stored.
在本发明实施例中,所述接收单元601接收所述第一接入请求,并且所述处理单元602确定出有所述第二用户站点请求接入所述VPN业务时,所述处理单元602配置所述第一边缘设备和所述第二边缘设备,以将所述第一用户站点和所述第二用户站点接入所述VPN业务。其中所述处理单元602在配置所述第一边缘设备和所述第二边缘设备时,可以有两种配置方式,第一种配置方式是将所述第一用户站点和所述第二用户站点独立接入所述VPN业务,即每个用户站点接入所述VPN业务后并不获知其他接入所述VPN业务的用户设备。第二种配置方式是通过在所述第一用户站点和所述第二用户站点之间部署VPN隧道的方式,将所述第一用户站点和所述第二用户站点接入所述VPN业务。下面分别介绍这两种配置方式。In this embodiment of the present invention, when the receiving unit 601 receives the first access request, and the processing unit 602 determines that the second user site requests to access the VPN service, the processing unit 602 configuring the first edge device and the second edge device to connect the first user site and the second user site to the VPN service. When the processing unit 602 configures the first edge device and the second edge device, there are two configuration methods. The first configuration method is to configure the first user site and the second user site The VPN service is accessed independently, that is, each user site does not know other user equipments accessing the VPN service after accessing the VPN service. The second configuration manner is to connect the first user site and the second user site to the VPN service by deploying a VPN tunnel between the first user site and the second user site. The two configuration methods are described below.
第一种配置方式:所述处理单元602可以对所述第一边缘设备和所述第二边缘设备分别配置,使得所述第一用户站点和所述第二用户站点独立接入所述VPN业务。The first configuration mode: the processing unit 602 may separately configure the first edge device and the second edge device, so that the first user site and the second user site independently access the VPN service .
例如,所述网络设备600还可以包括发送单元,所述处理单元602通过所述发送单元向所述第一边缘设备发送配置参数,该配置参数仅包括用于将所述第一用户站点接入所述VPN业务的配置参数,例如所述第一端口的端口标识,而不包括与所述第二用户站点相关的配置参数。其中所述第一端口的端口标识可以从所述第一接入请求中获取。在一些场景下,所述处理单元602还可以通过所述发送单元向所述第一边缘设备发送:所述网络设备600为所述第一用户站点分配的第一RT和第一RD。类似地,所述处理单元602通过所述发送单元向所述第二边缘设备发送的配置参数,也仅包括用于将所述第二用户站点接入所述VPN业务的配置参数,例如所述第二端口的端口标识,而不包括与所述第一用户站点相关的配置参数。其中所述第二端口的端口标识可以从用于请求将所述第二用户站点接入所述VPN业务的接入请求中获取。在一些场景下,所述处理单元602还可以通过所述发送单元向所述第二边缘设备发送:所述网络设备600为所述第二用户站点分配的第二RT和第二RD。所述第一边缘设备和所述第二边缘设备根据所述网络设备600发送的配置参数,分别将所述第一边缘设备和所述第二边缘设备独立接入所述VPN业务。For example, the network device 600 may further include a sending unit, through which the processing unit 602 sends configuration parameters to the first edge device, where the configuration parameters only include The configuration parameters of the VPN service, such as the port identifier of the first port, do not include configuration parameters related to the second user site. The port identifier of the first port may be obtained from the first access request. In some scenarios, the processing unit 602 may also send to the first edge device through the sending unit: the first RT and the first RD allocated by the network device 600 to the first user site. Similarly, the configuration parameters sent by the processing unit 602 to the second edge device through the sending unit only include configuration parameters for connecting the second user site to the VPN service, for example, the The port identifier of the second port, excluding configuration parameters related to the first user site. The port identifier of the second port may be obtained from an access request for requesting the second user site to access the VPN service. In some scenarios, the processing unit 602 may also send to the second edge device through the sending unit: the second RT and the second RD allocated by the network device 600 to the second user site. The first edge device and the second edge device respectively independently access the VPN service according to the configuration parameters sent by the network device 600 .
第二种配置方式:实际上,在一些场景下,例如用户申请所述VPN业务时设定所述VPN业务为点到点的业务类型时,可以通过在所述第一边缘设备和所述第二边缘设备之间部署VPN隧道的方式接入所述VPN业务。下面通过一个实施例加以具体说明。The second configuration method: in fact, in some scenarios, for example, when the user applies for the VPN service and sets the VPN service as a point-to-point service type, the first edge device and the second edge device can The VPN service is accessed by deploying a VPN tunnel between the two edge devices. The following will be specifically described through an embodiment.
请参阅图7,本发明实施例提供了网络设备700的另一种装置实施例。与其他实施例的不同的是,本实施例重点说明通过在所述第一边缘设备和所述第二边缘设备之间部署VPN隧道的方式接入所述VPN业务。Referring to FIG. 7 , the embodiment of the present invention provides another device embodiment of a network device 700 . Different from other embodiments, this embodiment focuses on accessing the VPN service by deploying a VPN tunnel between the first edge device and the second edge device.
本实施例的网络设备700包括:接收单元701和处理单元702。The network device 700 in this embodiment includes: a receiving unit 701 and a processing unit 702 .
所述接收单元701用于,接收所述第一边缘设备发送的第一接入请求,所述第一接入请求用于请求将所述第一边缘设备连接的所述第一用户站点接入所述VPN业务。The receiving unit 701 is configured to receive a first access request sent by the first edge device, where the first access request is used to request the first user site connected to the first edge device to access The VPN service.
所述处理单元702用于,当所述接收单元701接收所述第一接入请求时,确定出有所述第二用户站点请求接入所述VPN业务,所述第二用户站点为与所述第一用户站点不同的用户站点。The processing unit 702 is configured to, when the receiving unit 701 receives the first access request, determine that the second user site requests to access the VPN service, and the second user site is connected to the VPN service. A user site different from the first user site.
所述接收单元701和所述处理单元702的以上功能与图6所示的实施例中的所述接收单元601和所述处理单元602的相关功能类似,因此描述较为简单,相关之处请参见图6所示的实施例。The above functions of the receiving unit 701 and the processing unit 702 are similar to those of the receiving unit 601 and the processing unit 602 in the embodiment shown in FIG. The embodiment shown in Figure 6.
所述处理单元702还用于,当确定出有所述第二用户站点请求接入所述VPN业务时,部署从所述第一边缘设备至所述第二边缘设备的第一VPN隧道,以及部署从所述第二边缘设备至所述第一边缘设备的第二VPN隧道。The processing unit 702 is further configured to deploy a first VPN tunnel from the first edge device to the second edge device when it is determined that the second user site requests to access the VPN service, and Deploying a second VPN tunnel from the second edge device to the first edge device.
其中,所述第一VPN隧道的头端与所述第一端口关联,所述第一VPN隧道的尾端与所述第二端口关联,所述第二VPN隧道的头端与所述第二端口关联,所述第二VPN隧道的尾端与所述第一端口关联。所述第一端口为所述第一边缘设备上与所述第一用户站点连接的端口,即所述第一用户站点的接入端口,所述第二端口为所述第二边缘设备上与所述第二用户站点连接的端口,即所述第二用户站点的接入端口。Wherein, the head end of the first VPN tunnel is associated with the first port, the tail end of the first VPN tunnel is associated with the second port, and the head end of the second VPN tunnel is associated with the second port. port association, the tail end of the second VPN tunnel is associated with the first port. The first port is a port connected to the first user site on the first edge device, that is, an access port of the first user site, and the second port is a port on the second edge device connected to the first user site. The port to which the second user site is connected is the access port of the second user site.
下面介绍本发明实施例中,VPN隧道的头端或者尾端与端口关联的一种实现方式。所述第一VPN隧道的头端与所述第一端口关联,可以具体表现为在所述第一边缘设备上存储所述第一端口和所述第一VPN隧道的映射关系,从而使得所述第一边缘设备根据该映射关系,将从所述第一端口接收到的数据通过所述第一VPN隧道进行传输。所述第一VPN隧道的尾端与所述第二端口关联,可以具体表现为在所述第二边缘设备上存储所述第二端口和所述第一VPN隧道的映射关系,从而使得所述第二边缘设备根据该映射关系,将所述第一VPN隧道传输的数据向所述第二端口输出。The following introduces an implementation manner of associating a head end or tail end of a VPN tunnel with a port in the embodiment of the present invention. The head end of the first VPN tunnel is associated with the first port, which may be embodied as storing a mapping relationship between the first port and the first VPN tunnel on the first edge device, so that the The first edge device transmits the data received from the first port through the first VPN tunnel according to the mapping relationship. The tail end of the first VPN tunnel is associated with the second port, which may be embodied as storing a mapping relationship between the second port and the first VPN tunnel on the second edge device, so that the The second edge device outputs the data transmitted by the first VPN tunnel to the second port according to the mapping relationship.
类似地,所述第二VPN隧道的头端与所述第二端口关联,所述第二VPN隧道的尾端与所述第一端口关联也可以具体表现为上述实现方式,这里不再赘述。Similarly, the head end of the second VPN tunnel is associated with the second port, and the tail end of the second VPN tunnel is associated with the first port may also be embodied in the above implementation manner, which will not be repeated here.
由于在本发明实施例中,所述接收单元701接收到所述第一接入请求后,所述处理单元702并不是直接将所述第一用户站点接入所述VPN业务,而是确定是否有所述第二用户站点请求接入所述VPN业务,如果是,则所述处理单元702实际上获取到接入所述VPN业务的两个用户站点,所述处理单元702可以通过部署所述第一VPN隧道和所述第二VPN隧道的方式将该两个用户站点接入所述VPN业务。In this embodiment of the present invention, after the receiving unit 701 receives the first access request, the processing unit 702 does not directly connect the first user site to the VPN service, but determines whether The second user site requests to access the VPN service, if so, the processing unit 702 actually acquires two user sites that access the VPN service, and the processing unit 702 may deploy the The two user sites are connected to the VPN service through the first VPN tunnel and the second VPN tunnel.
可见,本实施例介绍所述第二种配置方式的实现方式,即通过在所述第一边缘设备和所述第二边缘设备之间部署所述第一VPN隧道和所述第二VPN隧道,将所述第一用户站点和所述第二用户站点接入了所述VPN业务。实际上,所述第一VPN隧道和所述第二VPN隧道是所述第一用户站点和所述第二用户站点之间,已知对端的点到点VPN隧道,因此相比于所述第一种配置方式,即,将所述第一用户站点和所述第二用户站点独立接入所述VPN业务,所述第二种配置方式无需自动发现站点,因此无需运行复杂的发现协议,对边缘设备的设备要求较低,并且出错率较低。It can be seen that this embodiment introduces the implementation of the second configuration mode, that is, by deploying the first VPN tunnel and the second VPN tunnel between the first edge device and the second edge device, The first user site and the second user site are connected to the VPN service. In fact, the first VPN tunnel and the second VPN tunnel are point-to-point VPN tunnels with known peers between the first user site and the second user site, so compared to the first A configuration method, that is, the first user site and the second user site are independently connected to the VPN service, and the second configuration method does not need to automatically discover sites, so there is no need to run complex discovery protocols. Edge devices have lower equipment requirements and have a lower error rate.
在本实施例中,在所述第一边缘设备和所述第二边缘设备之间部署所述第一VPN隧道和所述第二VPN隧道后,若有其他的用户站点请求接入所述VPN业务,则可以将其他的用户站点所连接的边缘设备,分别与所述第一边缘设备和所述第二边缘设备部署VPN隧道。具体实现方式是,所述接收单元701还用于,接收第三边缘设备发送的第二接入请求,所述第二接入请求用于请求将所述第三边缘设备连接的第三用户站点接入所述VPN业务;所述处理单元702还用于,当所述接收单元701接收到所述第二接入请求时,确定出有所述第一用户站点和所述第二用户站点接入所述VPN业务,部署从所述第一边缘设备至所述第三边缘设备的第三VPN隧道,部署从所述第三边缘设备至所述第一边缘设备的第四VPN隧道,部署从所述第二边缘设备至所述第三边缘设备的第五VPN隧道,以及部署从所述第三边缘设备至所述第二边缘设备的第六VPN隧道。所述第三VPN隧道的头端与所述第一端口关联,所述第三VPN隧道的尾端与第三端口关联,所述第四VPN隧道的头端与所述第三端口关联,所述第四VPN隧道的尾端与所述第一端口关联,所述第五VPN隧道的头端与所述第二端口关联,所述第五VPN隧道的尾端与所述第三端口关联,所述第六VPN隧道的头端与所述第三端口关联,所述第六VPN隧道的尾端与所述第二端口关联。其中,端口与隧道的头端或尾端关联的具体表现方式,具体请参见所述第一VPN隧道的头端与所述第一端口关联,以及所述第二VPN隧道的尾端与所述第二端口关联的具体表现方式。这里不再赘述。In this embodiment, after the first VPN tunnel and the second VPN tunnel are deployed between the first edge device and the second edge device, if other user sites request to access the VPN For services, edge devices connected to other user sites may deploy VPN tunnels with the first edge device and the second edge device respectively. The specific implementation manner is that the receiving unit 701 is further configured to receive a second access request sent by a third edge device, and the second access request is used to request a third user site to which the third edge device is connected. access the VPN service; the processing unit 702 is further configured to, when the receiving unit 701 receives the second access request, determine that the first user site and the second user site are connected Enter the VPN service, deploy the third VPN tunnel from the first edge device to the third edge device, deploy the fourth VPN tunnel from the third edge device to the first edge device, and deploy the second VPN tunnel from the third edge device to the first edge device. A fifth VPN tunnel from the second edge device to the third edge device, and deploying a sixth VPN tunnel from the third edge device to the second edge device. The head end of the third VPN tunnel is associated with the first port, the tail end of the third VPN tunnel is associated with the third port, and the head end of the fourth VPN tunnel is associated with the third port, so The tail end of the fourth VPN tunnel is associated with the first port, the head end of the fifth VPN tunnel is associated with the second port, and the tail end of the fifth VPN tunnel is associated with the third port, A head end of the sixth VPN tunnel is associated with the third port, and a tail end of the sixth VPN tunnel is associated with the second port. Wherein, for the specific representation of the association between the port and the head end or tail end of the tunnel, please refer to the association between the head end of the first VPN tunnel and the first port, and the association between the tail end of the second VPN tunnel and the The specific representation of the second port association. I won't go into details here.
需要说明的是,处理单元702可以是通过直接配置所述第一边缘设备和所述第二边缘设备以实现部署所述第一VPN隧道和所述第二VPN隧道,例如向所述第一边缘设备和所述第二边缘设备发送配置参数。处理单元702还可以间接配置所述第一边缘设备和所述第二边缘设备,例如通过向其他设备发送请求的方式,由其他设备部署所述第一VPN隧道和所述第二VPN隧道。下面分别说明。It should be noted that the processing unit 702 may implement the deployment of the first VPN tunnel and the second VPN tunnel by directly configuring the first edge device and the second edge device, for example, to the first edge device The device and the second edge device send configuration parameters. The processing unit 702 may also indirectly configure the first edge device and the second edge device, for example, by sending a request to other devices, and the other devices deploy the first VPN tunnel and the second VPN tunnel. Instructions are given below.
首先说明直接配置的方式。本实施例的所述网络设备700还包括发送单元。所述处理单元702还用于,为所述VPN业务分配VPN隧道标识。其中,VPN隧道标识唯一的表示一条VPN隧道,VPN隧道指的是用于承载VPN业务的VPN隧道。First, the method of direct configuration is explained. The network device 700 in this embodiment further includes a sending unit. The processing unit 702 is further configured to allocate a VPN tunnel identifier for the VPN service. Wherein, the VPN tunnel identifier uniquely indicates a VPN tunnel, and the VPN tunnel refers to a VPN tunnel for carrying VPN services.
当在所述第一边缘设备和所述第二边缘设备之间部署所述VPN业务的第一VPN隧道和所述第二VPN隧道时,所述处理单元702具体用于通过所述发送单元向所述第一边缘设备发送第一配置参数,以及通过所述发送单元向所述第二边缘设备发送第二配置参数;所述第一配置参数包括:所述VPN隧道标识、所述第一端口的端口标识、和所述第二边缘设备的设备标识;所述第二配置参数包括:所述VPN隧道标识、所述第二端口的端口标识、和所述第一边缘设备的设备标识。When deploying the first VPN tunnel and the second VPN tunnel of the VPN service between the first edge device and the second edge device, the processing unit 702 is specifically configured to send The first edge device sends a first configuration parameter, and sends a second configuration parameter to the second edge device through the sending unit; the first configuration parameter includes: the VPN tunnel identifier, the first port The port identifier of the second edge device, and the device identifier of the second edge device; the second configuration parameters include: the VPN tunnel identifier, the port identifier of the second port, and the device identifier of the first edge device.
可见,在向所述第一边缘设备发送的所述第一配置参数中包括与所述第二用户站点相关的配置参数:所述第二边缘设备的设备标识,并且向所述第二边缘设备发送的所述第二配置参数中包括与所述第一用户站点相关的配置参数:所述第一边缘设备的设备标识。其中所述第一边缘设备和所述第二边缘设备根据所述第一配置参数和所述第二配置参数部署所述第一VPN隧道和所述第二VPN隧道,可以根据目前任一种VPN隧道部署方式,本发明实施例对此并不加以限定。在某些场景下,所述处理单元702还可以用于通过所述发送单元向所述第一边缘设备发送为所述第一用户站点分配的第一RT和第一RD,并向所述第二边缘设备发送为所述第二用户站点分配的第二RT和第二RD。It can be seen that the first configuration parameter sent to the first edge device includes a configuration parameter related to the second user site: the device identifier of the second edge device, and the configuration parameter sent to the second edge device The sent second configuration parameters include a configuration parameter related to the first user site: a device identifier of the first edge device. Wherein the first edge device and the second edge device deploy the first VPN tunnel and the second VPN tunnel according to the first configuration parameter and the second configuration parameter, it can be based on any current VPN The tunnel deployment mode is not limited in this embodiment of the present invention. In some scenarios, the processing unit 702 may also be configured to send the first RT and the first RD allocated for the first user site to the first edge device through the sending unit, and send the first RT and the first RD allocated to the first user site to the first edge device. The two edge devices send the second RT and the second RD allocated for the second user site.
下面说明间接配置的方式,具体由通过向其他设备发送请求部署所述第一VPN隧道和所述第二VPN隧道。本实施例的所述网络设备700还包括发送单元,当在所述第一边缘设备和所述第二边缘设备之间部署所述VPN业务的第一VPN隧道和所述第二VPN隧道时,所述处理单元702具体用于通过所述发送单元向控制器发送在所述第一边缘设备和所述第二边缘设备之间部署所述第一VPN隧道和所述第二VPN隧道的请求,所述部署所述第一VPN隧道和所述第二VPN隧道的请求中包括所述第一端口的端口标识、所述第二端口的端口标识、所述第一边缘设备的设备标识以及所述第二边缘设备的设备标识。所述部署所述第一VPN隧道和所述第二VPN隧道的请求中还可以包括:所述VPN业务的标识。The manner of indirect configuration is described below, specifically by sending a request to other devices to deploy the first VPN tunnel and the second VPN tunnel. The network device 700 in this embodiment further includes a sending unit, when the first VPN tunnel and the second VPN tunnel of the VPN service are deployed between the first edge device and the second edge device, The processing unit 702 is specifically configured to send a request for deploying the first VPN tunnel and the second VPN tunnel between the first edge device and the second edge device to the controller through the sending unit, The request for deploying the first VPN tunnel and the second VPN tunnel includes the port identifier of the first port, the port identifier of the second port, the device identifier of the first edge device, and the Device ID of the second edge device. The request for deploying the first VPN tunnel and the second VPN tunnel may further include: an identifier of the VPN service.
所述控制器在接收到所述请求后,根据所述请求在所述第一边缘设备和所述第二边缘设备之间部署所述第一VPN隧道和所述第二VPN隧道。其中所述控制器在部署所述第一VPN隧道和所述第二VPN隧道时,可以根据所述第一边缘设备的设备标识以及所述第二边缘设备的设备标识获取所述第一VPN隧道和所述第二VPN隧道的具体路径,即确定所述第一VPN隧道和所述第二VPN隧道的途径设备。之后根据所述路径、所述第一端口的端口标识和所述第二端口的端口标识,生成并为每个所述途径设备下发转发表项,以使得每个所述途径设备根据所述转发表项传输数据。其中所述转发表项中可以包括所述控制器401分配的标签以及输出端口。所述控制器与所述网络设备700的连接关系可以如图4所示。所述控制器具体可以为SDN控制器。After receiving the request, the controller deploys the first VPN tunnel and the second VPN tunnel between the first edge device and the second edge device according to the request. Wherein, when the controller deploys the first VPN tunnel and the second VPN tunnel, it may obtain the first VPN tunnel according to the device identifier of the first edge device and the device identifier of the second edge device and the specific path of the second VPN tunnel, that is, determine the path devices of the first VPN tunnel and the second VPN tunnel. Afterwards, according to the path, the port identifier of the first port, and the port identifier of the second port, a forwarding entry is generated and delivered to each of the path devices, so that each of the path devices according to the Forwarding entries transfer data. The forwarding entry may include the label assigned by the controller 401 and the output port. The connection relationship between the controller and the network device 700 may be as shown in FIG. 4 . The controller may specifically be an SDN controller.
可选的,在本实施例中,由于所述VPN业务可以对应一个或多个账号,而每个账号可以对应不同的QoS,因此在部署所述第一VPN隧道时,还可以基于用户所使用的账号所对应的Qos。具体地,所述第一接入请求还包括所述第一用户站点请求接入所述VPN业务的账号;所述处理单元702还用于,获取所述账号对应的QoS;当在部署从所述第一边缘设备至所述第二边缘设备的第一VPN隧道时,所述处理单元702具体用于基于所述账号对应的QoS,部署从所述第一边缘设备至所述第二边缘设备的第一VPN隧道。其中,所述处理单元702还可以用于获取所述第二用户站点请求接入所述VPN业务的账号,并且根据该账号对应的QoS部署所述第二VPN隧道。最终部署的所述第一VPN隧道和所述第二VPN隧道可以具有不同的QoS。Optionally, in this embodiment, since the VPN service may correspond to one or more accounts, and each account may correspond to a different QoS, when deploying the first VPN tunnel, it may also be based on the QoS used by the user. Qos corresponding to the account number. Specifically, the first access request further includes the account for which the first user site requests to access the VPN service; the processing unit 702 is further configured to acquire the QoS corresponding to the account; When connecting the first VPN tunnel from the first edge device to the second edge device, the processing unit 702 is specifically configured to deploy the tunnel from the first edge device to the second edge device based on the QoS corresponding to the account. The first VPN tunnel. Wherein, the processing unit 702 may also be configured to obtain an account of the second user site requesting to access the VPN service, and deploy the second VPN tunnel according to the QoS corresponding to the account. The first VPN tunnel and the second VPN tunnel that are finally deployed may have different QoS.
进一步可选的,在本实施例中,部署所述第一VPN隧道和所述第二VPN隧道时,还可以为所述第一VPN隧道和所述第二VPN隧道预留带宽,而当所述第一用户站点或者所述第二用户站点需要退出所述VPN业务时,比如所述第一用户站点或者所述第二用户站点请求离线时,还可以进一步撤销所述第一VPN隧道和所述第二VPN隧道,以释放为所述第一VPN隧道和所述第二VPN隧道预留的带宽。具体实现时,所述接收单元701还用于,接收所述第一边缘设备发送的第一退出请求或者所述第二边缘设备发送的第二退出请求,所述第一退出请求用于请求将所述第一用户站点退出所述VPN业务,所述第二退出请求用于请求将所述第二用户站点退出所述VPN业务;所述处理单元702还用于,所述接收单元701接收到所述第一退出请求或者所述第二退出请求时,撤销所述第一边缘设备和所述第二边缘设备之间部署的所述第一VPN隧道和所述第二VPN隧道。Further optionally, in this embodiment, when deploying the first VPN tunnel and the second VPN tunnel, bandwidth may also be reserved for the first VPN tunnel and the second VPN tunnel, and when the When the first user site or the second user site needs to exit the VPN service, for example, when the first user site or the second user site requests to go offline, the first VPN tunnel and the the second VPN tunnel to release bandwidth reserved for the first VPN tunnel and the second VPN tunnel. During specific implementation, the receiving unit 701 is further configured to receive the first exit request sent by the first edge device or the second exit request sent by the second edge device, and the first exit request is used to request the The first user site withdraws from the VPN service, and the second withdrawal request is used to request that the second user site withdraw from the VPN service; the processing unit 702 is further configured to, the receiving unit 701 receives When the first logout request or the second logout request is made, revoke the first VPN tunnel and the second VPN tunnel deployed between the first edge device and the second edge device.
目前在对VPN业务进行计费时,由于不能实现按需接入VPN业务,因此一般是根据开通的VPN业务的QoS进行计费。进一步可选的,在本实施例中,由于实现了按需部署和撤销所述第一VPN隧道和所述第二VPN隧道,因此可以根据所述第一VPN隧道和所述第二VPN隧道的部署时间,即所述第一用户站点的接入VPN业务的实际时间进行计费。具体实现时,本实施例的所述网络设备700,还包括:发送单元;所述处理单元702还用于,获取用于表示所述第一VPN隧道和所述第二VPN隧道的部署时间的相关信息;所述发送单元,用于将所述相关信息发送至计费设备。其中,所述相关信息,具体可以为所述第一VPN隧道和所述第二VPN隧道的部署时间,或者也可以为部署所述第一VPN隧道和所述第二VPN隧道的时刻和撤销所述第一VPN隧道和所述第二VPN隧道的时刻,由所述计费设备根据该两个时刻计算出所述第一VPN隧道和所述第二VPN隧道的部署时间。At present, when charging for VPN services, since on-demand access to VPN services cannot be realized, charging is generally performed according to the QoS of the enabled VPN services. Further optionally, in this embodiment, since the first VPN tunnel and the second VPN tunnel are deployed and withdrawn on demand, the The deployment time, that is, the actual time when the first user site accesses the VPN service is charged. During specific implementation, the network device 700 of this embodiment further includes: a sending unit; and the processing unit 702 is further configured to acquire the time used to indicate the deployment time of the first VPN tunnel and the second VPN tunnel Related information; the sending unit is configured to send the related information to a charging device. Wherein, the relevant information may specifically be the deployment time of the first VPN tunnel and the second VPN tunnel, or may also be the time of deploying the first VPN tunnel and the second VPN tunnel and the time for revocation. The timing of the first VPN tunnel and the second VPN tunnel, and the billing device calculates the deployment time of the first VPN tunnel and the second VPN tunnel according to the two timings.
上面从模块化功能实体的角度对本发明实施例中的网络设备的装置实施例进行描述。下面将从硬件处理的角度对本发明实施例中的网络设备的装置实施例进行描述。The apparatus embodiments of the network device in the embodiments of the present invention are described above from the perspective of modularized functional entities. The apparatus embodiments of the network device in the embodiments of the present invention will be described below from the perspective of hardware processing.
请参考图8,本发明实施例提供了网络设备的另一种装置实施例。本实施例的网络设备800可以是微处理计算机。例如:所述网络设备800可以是通用计算机、客户定制机、手机终端或平板机等便携设备中的一种。所述网络设备800包括:处理器804、存储器806、通信接口802和总线808。所述处理器804、所述存储器806和所述通信接口802通过所述总线808连接并完成相互间的通信。Referring to FIG. 8 , the embodiment of the present invention provides another device embodiment of a network device. The network device 800 in this embodiment may be a microprocessor computer. For example: the network device 800 may be one of portable devices such as a general-purpose computer, a customized machine, a mobile terminal, or a tablet. The network device 800 includes: a processor 804 , a memory 806 , a communication interface 802 and a bus 808 . The processor 804 , the memory 806 and the communication interface 802 are connected through the bus 808 to complete mutual communication.
所述总线808可以是工业标准体系结构(Industry Standard Architecture,简称为ISA)总线或外部设备互连(Peripheral Component,简称为PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,简称为EISA)总线等。所述总线808可以分为地址总线、数据总线、控制总线中的一种或多种。为便于表示,图8中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 808 can be an Industry Standard Architecture (Industry Standard Architecture, referred to as ISA) bus or a Peripheral Component (abbreviated as PCI) bus or an Extended Industry Standard Architecture (Extended Industry Standard Architecture, referred to as EISA) bus etc. The bus 808 can be classified into one or more of an address bus, a data bus, and a control bus. For ease of representation, only one thick line is used in FIG. 8 , but it does not mean that there is only one bus or one type of bus.
所述存储器806用于存储可执行程序代码,该程序代码包括计算机操作指令。当所述网络设备800执行该程序代码时,所述网络设备800可以完成图1或者图3所示的实施例的,也可以实现图6或者图7所示的实施例中网络设备的所有功能。存储器806可以包含高速RAM(Ramdom Access Memory)存储器。可选地,所述存储器806还可以还包括非易失性存储器(non-volatilememory)。例如所述存储器806可以包括磁盘存储器。The memory 806 is used for storing executable program codes, and the program codes include computer operation instructions. When the network device 800 executes the program code, the network device 800 can complete the embodiment shown in Figure 1 or Figure 3, and can also realize all the functions of the network device in the embodiment shown in Figure 6 or Figure 7 . The memory 806 may include a high-speed RAM (Ramdom Access Memory) memory. Optionally, the memory 806 may further include a non-volatile memory (non-volatile memory). For example, the memory 806 may include disk storage.
所述处理器804可以是一个中央处理器(Central Processing Unit,简称为CPU),或者所述处理器804可以是特定集成电路(Application SpecificIntegrated Circuit,简称为ASIC),或者所述处理器804可以是被配置成实施本发明实施例的一个或多个集成电路。The processor 804 may be a central processing unit (Central Processing Unit, referred to as CPU), or the processor 804 may be a specific integrated circuit (Application Specific Integrated Circuit, referred to as ASIC), or the processor 804 may be One or more integrated circuits configured to implement embodiments of the invention.
所述通信接口802,用于执行图1和图3所示的实施例中的接收第一边缘设备发送的第一接入请求,所述第一接入请求用于请求将所述第一边缘设备连接的第一用户站点接入所述VPN业务。The communication interface 802 is configured to receive a first access request sent by a first edge device in the embodiments shown in FIG. 1 and FIG. 3 , where the first access request is used to request that the first edge device The first user site connected to the device accesses the VPN service.
所述处理器804,用于读取存储器806中存储的指令,从而执行图1和图3所示的实施例中的确定出有第二用户站点请求接入所述VPN业务,所述第二用户站点为与所述第一用户站点不同的用户站点,配置所述第一边缘设备和与所述第二用户站点连接的第二边缘设备,以将所述第一用户站点和所述第二用户站点接入所述VPN业务。The processor 804 is configured to read instructions stored in the memory 806, so as to execute the determination in the embodiment shown in FIG. 1 and FIG. 3 that a second user site requests to access the VPN service, and the second The user site is a user site different from the first user site, and the first edge device and the second edge device connected to the second user site are configured so that the first user site and the second The user site accesses the VPN service.
值得说明的是,本发明提供的网络设备的各功能单元,可以是基于图1或者图3所示实施例的方法和图6或者图7所示实施例的装置所具备的功能的具体实现,术语的定义和说明与图1、图3、图6和图7所示的实施例保持一致,此处不再赘述。It is worth noting that each functional unit of the network device provided by the present invention may be based on the specific implementation of the functions of the method in the embodiment shown in FIG. 1 or FIG. 3 and the device in the embodiment shown in FIG. 6 or FIG. 7 , Definitions and descriptions of terms are consistent with the embodiments shown in FIG. 1 , FIG. 3 , FIG. 6 and FIG. 7 , and will not be repeated here.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。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 system, device and method can 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. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-OnlyMemory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it 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 all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-OnlyMemory), random access memory (RAM, Random Access Memory), magnetic disk or optical disc and other media that can store program codes.
以上所述,以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still understand the foregoing The technical solutions recorded in each embodiment are modified, or some of the technical features are replaced equivalently; and these modifications or replacements do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.
Claims (20)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410850003.4A CN104601431B (en) | 2014-12-31 | 2014-12-31 | The cut-in method and the network equipment of a kind of vpn service |
PCT/CN2015/093091 WO2016107261A1 (en) | 2014-12-31 | 2015-10-28 | Method for accessing vpn service, and network device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410850003.4A CN104601431B (en) | 2014-12-31 | 2014-12-31 | The cut-in method and the network equipment of a kind of vpn service |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104601431A true CN104601431A (en) | 2015-05-06 |
CN104601431B CN104601431B (en) | 2018-04-20 |
Family
ID=53126952
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410850003.4A Active CN104601431B (en) | 2014-12-31 | 2014-12-31 | The cut-in method and the network equipment of a kind of vpn service |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104601431B (en) |
WO (1) | WO2016107261A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016107261A1 (en) * | 2014-12-31 | 2016-07-07 | 华为技术有限公司 | Method for accessing vpn service, and network device |
WO2018214854A1 (en) * | 2017-05-22 | 2018-11-29 | Huawei Technologies Co., Ltd. | Elastic vpn that bridges remote islands |
CN111884903A (en) * | 2020-07-15 | 2020-11-03 | 迈普通信技术股份有限公司 | Service isolation method and device, SDN network system and routing equipment |
WO2021249242A1 (en) * | 2020-06-09 | 2021-12-16 | 华为技术有限公司 | Service deployment method and apparatus |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116192890A (en) * | 2022-12-29 | 2023-05-30 | 浪潮通信信息系统有限公司 | Novel system for opening and arranging private network in cloud under data center |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060069916A1 (en) * | 2004-09-30 | 2006-03-30 | Alcatel | Mobile authentication for network access |
CN1829176A (en) * | 2005-03-01 | 2006-09-06 | 信息产业部电信研究院 | Resource managing method based on signal mechanism in IP telecommunication network system |
CN101114972A (en) * | 2006-07-26 | 2008-01-30 | 成都迈普产业集团有限公司 | Method for establishing and dismounting virtual private network in IP telecommunication network system |
CN101330459A (en) * | 2008-07-31 | 2008-12-24 | 电子科技大学 | A user broadband control method based on Hose hose VPN |
US20090222892A1 (en) * | 2008-02-29 | 2009-09-03 | Nec Corporation | Remote access system, method and program |
CN102055639A (en) * | 2009-11-10 | 2011-05-11 | 杭州华三通信技术有限公司 | Method for establishing remote access virtual private network connection and local access concentrator |
CN103001872A (en) * | 2011-09-13 | 2013-03-27 | 华为技术有限公司 | A label distribution method and aggregation device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6912232B1 (en) * | 1998-10-19 | 2005-06-28 | At&T Corp. | Virtual private network |
US7680934B2 (en) * | 2004-03-26 | 2010-03-16 | Nortel Networks Limited | Method and apparatus for assigning and allocating network resources to layer 1 virtual private networks |
CN100441030C (en) * | 2004-06-10 | 2008-12-03 | 华为技术有限公司 | A method for establishing a private call |
DE102010038228A1 (en) * | 2010-10-15 | 2012-04-19 | Phoenix Contact Gmbh & Co. Kg | Method for establishing a VPN connection between two networks |
CN103780467B (en) * | 2012-10-19 | 2017-04-26 | 华为技术有限公司 | communication connection method, communication device and communication system |
CN104601431B (en) * | 2014-12-31 | 2018-04-20 | 华为技术有限公司 | The cut-in method and the network equipment of a kind of vpn service |
-
2014
- 2014-12-31 CN CN201410850003.4A patent/CN104601431B/en active Active
-
2015
- 2015-10-28 WO PCT/CN2015/093091 patent/WO2016107261A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060069916A1 (en) * | 2004-09-30 | 2006-03-30 | Alcatel | Mobile authentication for network access |
CN1829176A (en) * | 2005-03-01 | 2006-09-06 | 信息产业部电信研究院 | Resource managing method based on signal mechanism in IP telecommunication network system |
CN101114972A (en) * | 2006-07-26 | 2008-01-30 | 成都迈普产业集团有限公司 | Method for establishing and dismounting virtual private network in IP telecommunication network system |
US20090222892A1 (en) * | 2008-02-29 | 2009-09-03 | Nec Corporation | Remote access system, method and program |
CN101330459A (en) * | 2008-07-31 | 2008-12-24 | 电子科技大学 | A user broadband control method based on Hose hose VPN |
CN102055639A (en) * | 2009-11-10 | 2011-05-11 | 杭州华三通信技术有限公司 | Method for establishing remote access virtual private network connection and local access concentrator |
CN103001872A (en) * | 2011-09-13 | 2013-03-27 | 华为技术有限公司 | A label distribution method and aggregation device |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016107261A1 (en) * | 2014-12-31 | 2016-07-07 | 华为技术有限公司 | Method for accessing vpn service, and network device |
WO2018214854A1 (en) * | 2017-05-22 | 2018-11-29 | Huawei Technologies Co., Ltd. | Elastic vpn that bridges remote islands |
US10938599B2 (en) | 2017-05-22 | 2021-03-02 | Futurewei Technologies, Inc. | Elastic VPN that bridges remote islands |
US11792045B2 (en) | 2017-05-22 | 2023-10-17 | Futurewei Technologies, Inc. | Elastic VPN that bridges remote islands |
WO2021249242A1 (en) * | 2020-06-09 | 2021-12-16 | 华为技术有限公司 | Service deployment method and apparatus |
CN111884903A (en) * | 2020-07-15 | 2020-11-03 | 迈普通信技术股份有限公司 | Service isolation method and device, SDN network system and routing equipment |
CN111884903B (en) * | 2020-07-15 | 2022-02-01 | 迈普通信技术股份有限公司 | Service isolation method and device, SDN network system and routing equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2016107261A1 (en) | 2016-07-07 |
CN104601431B (en) | 2018-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104601431B (en) | The cut-in method and the network equipment of a kind of vpn service | |
CN103580980B (en) | The method and device thereof that virtual network finds and automatically configures automatically | |
CN108702679B (en) | Method and system for implementing roaming of a wireless terminal to a visited communication network | |
CN105391568B (en) | A kind of implementation method, the device and system of software defined network SDN | |
CN105515772B (en) | Information processing method, network node, authentication method and server | |
CN102136938B (en) | Method and device for providing user information for carried grade network address translation (CGN) equipment | |
CN106533883A (en) | Network private line establishment method, apparatus and system | |
CN106302320B (en) | Method, device and system for authorizing user's services | |
CN101729500A (en) | Method, device and system for identifying IP session | |
CN107547665B (en) | Method, equipment and system for allocating DHCP (dynamic host configuration protocol) address | |
CN109495594B (en) | Data transmission method, PNF SDN controller, VNF SDN controller and system | |
CN108737585A (en) | Method and device for allocating IP addresses | |
WO2015062354A1 (en) | Base station data configuration method and apparatus | |
US20140071907A1 (en) | Method and Apparatus for Handling PDN Connections | |
CN106357838A (en) | Method and device for distributing IP (Internet protocol) address | |
CN101984636A (en) | Prefix distribution method, device and system | |
JP2020014226A (en) | Network connection system and method | |
CN102098278B (en) | Subscriber access method and system as well as access server and device | |
CN104601743A (en) | IP (internet protocol) forwarding IPoE (IP over Ethernet) dual-stack user access control method and equipment based on Ethernet | |
WO2008134971A1 (en) | Method, system and device for auto-realizing the link of the management device and the managed device | |
CN105207909B (en) | A method and network device for sending information | |
CN101873330B (en) | Access control method and server for supporting IPv6/IPv4 dual stack access | |
US11758372B2 (en) | Charging policy obtaining method and apparatus | |
CN107634907B (en) | Data forwarding method and device for L2VPN (layer two virtual private network) | |
CN106507382B (en) | Diameter message routing method and routing agent node |
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 |