CN103634217A - Method for issuing route information, method and device for transmitting massage - Google Patents
Method for issuing route information, method and device for transmitting massage Download PDFInfo
- Publication number
- CN103634217A CN103634217A CN201310567457.6A CN201310567457A CN103634217A CN 103634217 A CN103634217 A CN 103634217A CN 201310567457 A CN201310567457 A CN 201310567457A CN 103634217 A CN103634217 A CN 103634217A
- Authority
- CN
- China
- Prior art keywords
- vpn
- route
- information
- sign
- vxlan tunnel
- 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
Images
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
- H04L12/4633—Interconnection of networks using encapsulation techniques, e.g. tunneling
-
- 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
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
- H04L45/04—Interdomain routing, e.g. hierarchical routing
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本发明涉及计算机技术领域,具体涉及一种路由信息发布的方法及装置和一种传输报文的方法及装置。The invention relates to the field of computer technology, in particular to a method and device for publishing routing information and a method and device for transmitting messages.
背景技术Background technique
现有的虚拟专用网(Virtual Private Network简称VPN)通常需要使用多标签协议交换(Multi Protocol Label Switch简称MPLS)技术,而VPN属于远程访问技术,是利用公网链路架设私有网络,通常会通过不同的自治系统(Autonomous System简称AS),由于VPN实质上就是利用加密技术在公网上封装出一个数据通讯隧道,使得在通过VPN传输报文过程中安全性能得以提高。Existing Virtual Private Network (Virtual Private Network referred to as VPN) usually needs to use Multi Protocol Label Switching (Multi Protocol Label Switch referred to as MPLS) technology, and VPN is a remote access technology that uses public network links to set up a private network, usually through Different autonomous systems (Autonomous System referred to as AS), because the VPN essentially uses encryption technology to encapsulate a data communication tunnel on the public network, so that the security performance can be improved during the process of transmitting messages through the VPN.
但是现有VPN在进行路由发布时,发布端会将所述发布端的路由信息传输给与所述发布端连接的路由器,所述路由器再将所述路由信息转发给与所述路由器连接的下一个路由器,然后再将所述路由信息进行依次转发,进而完成所述路由发布,导致现有技术中的路由发布需要逐一进行路由转发,而且在不同的AS之间进行路由转发时,还需要通过跨域技术来实现路由转发,导致现有技术在进行路由转发时,路由转发的次数较多,而且在不同的AS之间进行路由转发时,还需要通过跨域技术来实现路由转发,使得路由发布的时间长,路由发布的效率也低。However, when the existing VPN is performing route publishing, the issuing end will transmit the routing information of the issuing end to the router connected to the issuing end, and the router will forward the routing information to the next router connected to the router. Routers, and then forward the routing information in sequence, and then complete the routing publishing, resulting in the routing publishing in the prior art needs to carry out routing forwarding one by one, and when routing forwarding between different ASs, it is also necessary to pass the cross- Domain technology is used to realize route forwarding, which leads to more times of route forwarding in the prior art when routing forwarding, and when routing forwarding between different ASs, it is also necessary to implement route forwarding through cross-domain technology, so that route publishing The time is long, and the efficiency of routing advertisement is also low.
发明内容Contents of the invention
本申请实施例通过提供一种路由信息发布的方法及装置和一种传输报文的方法及装置,用于解决现有技术中存在的路由发布的时间长,路由发布的效率低的技术问题。The embodiments of the present application provide a method and device for publishing routing information and a method and device for transmitting messages, so as to solve the technical problems of long time and low efficiency of route publishing in the prior art.
根据本发明的第一方面,提供了一种路由信息发布的方法,所述方法包括:虚拟专用网VPN服务器接收来自第一服务提供商边缘设备PE的路由发布信息,其中,所述路由发布信息包括所述第一PE对应的VPN拓扑连接信息,所述VPN拓扑连接信息包括源端的VPN标识,所述源端的VPN标识为所述第一PE中的第一VPN标识;所述VPN服务器选择作为目的端的第二PE;所述VPN服务器根据所述第一VPN标识,从所述第二PE的VPN标识中选择与所述第一VPN标识匹配的第二VPN标识,并在所述VPN拓扑连接信息中增加作为目的端的VPN标识的所述第二VPN标识,获得修改后的所述路由发布信息;以及所述VPN服务器根据所述第一VPN标识和所述第二VPN标识,确定所述第二PE将报文传输给所述第一PE的虚拟扩展局域网VXLAN隧道封装信息;所述VPN服务器将所述VXLAN隧道封装信息和修改后的所述路由发布信息发送给所述第二PE。According to a first aspect of the present invention, a method for publishing routing information is provided, the method comprising: a virtual private network VPN server receiving route publishing information from a first service provider edge device PE, wherein the routing publishing information Including the VPN topology connection information corresponding to the first PE, the VPN topology connection information includes the VPN identifier of the source end, and the VPN identifier of the source end is the first VPN identifier in the first PE; the VPN server selects as The second PE at the destination end; the VPN server selects a second VPN identifier matching the first VPN identifier from the VPN identifiers of the second PE according to the first VPN identifier, and connects in the VPN topology Adding the second VPN ID as the VPN ID of the destination to the information to obtain the modified route advertisement information; and the VPN server determines the second VPN ID according to the first VPN ID and the second VPN ID. The second PE transmits the packet to the VXLAN tunnel encapsulation information of the first PE; the VPN server sends the VXLAN tunnel encapsulation information and the modified route advertisement information to the second PE.
结合第一方面,在第一种可能的实现方式中,所述路由发布信息还包括与所述第一PE连接的用户网络边缘设备CE的网络之间互联的协议IP地址,所述VPN拓扑连接信息和所述第一PE的IP地址,且所述第一VPN标识与所述CE对应。With reference to the first aspect, in a first possible implementation manner, the route advertisement information further includes an IP address of a network interconnection protocol of the user network edge device CE connected to the first PE, and the VPN topology connection information and the IP address of the first PE, and the first VPN identifier corresponds to the CE.
结合第一方面或第一种可能的实现方式,在第二种可能的实现方式中,所述VPN服务器根据所述第一VPN标识,选择与所述第一VPN标识匹配的第二VPN标识,具体包括:所述VPN服务器根据所述第一VPN标识,从所述VPN中的TAG对应关系中选择与所述第一VPN标识匹配的所述第二VPN标识,所述TAG对应关系包括所述第一PE中的VPN标识与所述第二PE中的VPN标识的对应关系。With reference to the first aspect or the first possible implementation manner, in a second possible implementation manner, the VPN server selects a second VPN identifier that matches the first VPN identifier according to the first VPN identifier, It specifically includes: the VPN server selects, according to the first VPN identifier, the second VPN identifier that matches the first VPN identifier from the TAG correspondence in the VPN, where the TAG correspondence includes the The corresponding relationship between the VPN identifier in the first PE and the VPN identifier in the second PE.
结合第一方面或第一种可能的实现方式或第二种可能的实现方式,在第三种可能的实现方式中,所述VXLAN隧道封装信息包括设置在所述第一PE中的VXLAN接口IP地址和设置在所述第二PE中的VXLAN接口IP地址。With reference to the first aspect or the first possible implementation manner or the second possible implementation manner, in a third possible implementation manner, the VXLAN tunnel encapsulation information includes the VXLAN interface IP address set in the first PE address and the VXLAN interface IP address set in the second PE.
根据本发明第二方面,提供了一种传输报文的方法,所述方法包括:第一PE接收来自源端CE发送的报文,并根据所述源端CE发送的报文,确定所述报文传输的目标PE为第二PE;所述第一PE根据所述报文中的目的CE的IP地址,从接收到的所述第二PE的路由发布信息中选择与所述目的CE对应的路由发布信息,以及从接收到的所述第二PE的VXLAN隧道封装信息中选择与所述目的CE对应的VXLAN隧道封装信息,其中,所述第二PE的路由发布信息和VXLAN隧道封装信息是由VPN服务器发送给所述第一PE的;所述第一PE根据所述路由发布信息和所述VXLAN隧道封装信息,确定所述第一PE将报文传输给所述第二PE的VXLAN隧道;所述第一PE将所述报文通过所述VXLAN隧道传输至所述第二PE。According to the second aspect of the present invention, a method for transmitting a message is provided, the method includes: the first PE receives the message sent from the source CE, and determines the message according to the message sent by the source CE. The target PE of the message transmission is the second PE; the first PE selects the IP address corresponding to the target CE from the received routing advertisement information of the second PE according to the IP address of the target CE in the message. route advertisement information, and select the VXLAN tunnel encapsulation information corresponding to the destination CE from the received VXLAN tunnel encapsulation information of the second PE, wherein the route advertisement information of the second PE and the VXLAN tunnel encapsulation information It is sent to the first PE by the VPN server; the first PE determines that the first PE transmits the message to the VXLAN of the second PE according to the route advertisement information and the VXLAN tunnel encapsulation information. Tunnel: the first PE transmits the packet to the second PE through the VXLAN tunnel.
结合第二方面,在第一种可能的实现方式中,所述第一PE根据所述路由发布信息和所述VXLAN隧道封装信息,确定所述第一PE将报文传输给所述第二PE的VXLAN隧道,具体包括:With reference to the second aspect, in a first possible implementation manner, the first PE determines that the first PE transmits the packet to the second PE according to the route advertisement information and the VXLAN tunnel encapsulation information The VXLAN tunnel specifically includes:
所述第一PE根据与所述目的CE对应的路由发布信息中的所述第一PE的第一VPN标识和所述第二PE的第二VPN标识,确定所述第一PE将报文传输给所述第二PE的VPN路由转发表;The first PE determines that the first PE will transmit the packet according to the first VPN identifier of the first PE and the second VPN identifier of the second PE in the route advertisement information corresponding to the destination CE. A VPN routing and forwarding table for the second PE;
所述第一PE根据与所述目的CE对应的VXLAN隧道封装信息,确定所述第一PE的IP地址和所述第二PE的IP地址;The first PE determines the IP address of the first PE and the IP address of the second PE according to the VXLAN tunnel encapsulation information corresponding to the destination CE;
所述第一PE根据所述VPN路由转发表和所述第一PE的IP地址和所述第二PE的IP地址,确定所述第一PE将报文传输给所述第二PE的VXLAN隧道。The first PE determines, according to the VPN routing forwarding table, the IP address of the first PE, and the IP address of the second PE, the VXLAN tunnel through which the first PE transmits the packet to the second PE .
根据本发明第三方面,提供了一种路由信息发布的装置,所述装置包括:According to a third aspect of the present invention, a device for publishing routing information is provided, the device comprising:
接收单元,用于接收来自第一PE的路由发布信息,其中,所述路由发布信息包括所述第一PE对应的VPN拓扑连接信息,所述VPN拓扑连接信息包括源端的VPN标识,所述源端的VPN标识为所述第一PE中的第一VPN标识;A receiving unit, configured to receive route advertisement information from the first PE, wherein the route advertisement information includes VPN topology connection information corresponding to the first PE, the VPN topology connection information includes a source VPN identifier, and the source The VPN identifier of the end is the first VPN identifier in the first PE;
选择单元,用于选择作为目的端的第二PE;a selection unit, configured to select a second PE as a destination;
路由修改单元,用于接收所述接收单元发送的所述路由发布信息和接收所述选择单元发送的所述第二PE,根据所述第一VPN标识,从所述第二PE的VPN标识中选择与所述第一VPN标识匹配的第二VPN标识,并在所述VPN拓扑连接信息中增加作为目的端的VPN标识的所述第二VPN标识,获得修改后的所述路由发布信息;a route modifying unit, configured to receive the route advertisement information sent by the receiving unit and the second PE sent by the selecting unit, and select from the VPN ID of the second PE according to the first VPN ID Selecting a second VPN identity that matches the first VPN identity, and adding the second VPN identity as the VPN identity of the destination end to the VPN topology connection information, to obtain the modified route release information;
隧道选择单元,用于接收所述路由修改单元发送的所述第一VPN标识和所述第二VPN标识,根据所述第一VPN标识和所述第二VPN标识,确定所述第二PE将报文传输给所述第一PE的虚拟扩展局域网VXLAN隧道封装信息;a tunnel selection unit, configured to receive the first VPN identifier and the second VPN identifier sent by the route modification unit, and determine, according to the first VPN identifier and the second VPN identifier, that the second PE will The message is transmitted to the virtual extended local area network VXLAN tunnel encapsulation information of the first PE;
发送单元,用于接收所述路由修改单元发送的修改后的所述路由发布信息和接收所述隧道选择单元发送的所述VXLAN隧道封装信息,将所述VXLAN隧道封装信息和修改后的所述路由发布信息发送给所述第二PE。a sending unit, configured to receive the modified route advertisement information sent by the route modification unit and the VXLAN tunnel encapsulation information sent by the tunnel selection unit, and combine the VXLAN tunnel encapsulation information with the modified The route advertisement information is sent to the second PE.
结合第三方面,在第一种可能的实现方式中,所述路由发布信息还包括与所述第一PE连接的用户网络边缘设备CE的网络之间互联的协议IP地址,所述VPN拓扑连接信息和所述第一PE的IP地址,且所述第一VPN标识与所述CE对应。With reference to the third aspect, in a first possible implementation manner, the route advertisement information further includes an IP address of a network interconnection protocol of a user network edge device CE connected to the first PE, and the VPN topology connection information and the IP address of the first PE, and the first VPN identifier corresponds to the CE.
结合第三方面或第一种可能的实现方式,在第二种可能的实现方式中,所述路由修改单元包括VPN标识确定单元,用于根据所述第一VPN标识,从所述VPN中的TAG对应关系中选择与所述第一VPN标识匹配的所述第二VPN标识,所述TAG对应关系包括所述第一PE中的VPN标识与所述第二PE中的VPN标识的对应关系。With reference to the third aspect or the first possible implementation manner, in a second possible implementation manner, the route modifying unit includes a VPN identifier determining unit configured to, according to the first VPN identifier, select the Selecting the second VPN identity that matches the first VPN identity from the TAG correspondence, where the TAG correspondence includes a correspondence between the VPN identity in the first PE and the VPN identity in the second PE.
结合第三方面或第一种可能的实现方式或第二种可能的实现方式,在第三种可能的实现方式中,所述VXLAN隧道封装信息包括设置在所述第一PE中的VXLAN接口IP地址和设置在所述第二PE中的VXLAN接口IP地址。With reference to the third aspect or the first possible implementation manner or the second possible implementation manner, in a third possible implementation manner, the VXLAN tunnel encapsulation information includes the VXLAN interface IP address set in the first PE address and the VXLAN interface IP address set in the second PE.
根据本发明的第四方面,提供了一种VPN服务器,所述服务器包括:According to a fourth aspect of the present invention, a VPN server is provided, and the server includes:
接收器,用于接收来自第一PE的路由发布信息,其中,所述路由发布信息包括所述第一PE对应的VPN拓扑连接信息,所述VPN拓扑连接信息包括源端的VPN标识,所述源端的VPN标识为所述第一PE中的第一VPN标识;A receiver, configured to receive route advertisement information from the first PE, wherein the route advertisement information includes VPN topology connection information corresponding to the first PE, the VPN topology connection information includes a source VPN identifier, and the source The VPN identifier of the end is the first VPN identifier in the first PE;
处理器,用于选择作为目的端的第二PE,并根据所述第一VPN标识,从所述第二PE的VPN标识中选择与所述第一VPN标识匹配的第二VPN标识,并在所述VPN拓扑连接信息中增加作为目的端的VPN标识的所述第二VPN标识,获得修改后的所述路由发布信息;以及根据所述第一VPN标识和所述第二VPN标识,确定所述第二PE将报文传输给所述第一PE的虚拟扩展局域网VXLAN隧道封装信息;a processor, configured to select a second PE as the destination end, and select a second VPN ID that matches the first VPN ID from the VPN IDs of the second PE according to the first VPN ID, and Adding the second VPN identity as the VPN identity of the destination end to the VPN topology connection information to obtain the modified route advertisement information; and determining the second VPN identity according to the first VPN identity and the second VPN identity The second PE transmits the message to the virtual extended local area network VXLAN tunnel encapsulation information of the first PE;
发送器,用于将所述VXLAN隧道封装信息和修改后的所述路由发布信息发送给所述第二PE。A sender, configured to send the VXLAN tunnel encapsulation information and the modified route advertisement information to the second PE.
结合第四方面,在第一种可能的实现方式中,所述路由发布信息还包括与所述第一PE连接的用户网络边缘设备CE的网络之间互联的协议IP地址,所述VPN拓扑连接信息和所述第一PE的IP地址,且所述第一VPN标识与所述CE对应。With reference to the fourth aspect, in a first possible implementation manner, the route advertisement information further includes an IP address of a network interconnection protocol of a user network edge device CE connected to the first PE, and the VPN topology connection information and the IP address of the first PE, and the first VPN identifier corresponds to the CE.
结合第四方面或第一种可能的实现方式,在第二种可能的实现方式中,所述处理器,具体用于根据所述第一VPN标识,从所述VPN中的TAG对应关系中选择与所述第一VPN标识匹配的所述第二VPN标识,所述TAG对应关系包括所述第一PE中的VPN标识与所述第二PE中的VPN标识的对应关系。With reference to the fourth aspect or the first possible implementation manner, in a second possible implementation manner, the processor is specifically configured to select from TAG correspondences in the VPN according to the first VPN identifier For the second VPN identifier that matches the first VPN identifier, the TAG correspondence includes a correspondence between the VPN identifier in the first PE and the VPN identifier in the second PE.
结合第四方面或第一种可能的实现方式或第二种可能的实现方式,在第三种可能的实现方式中,所述VXLAN隧道封装信息包括设置在所述第一PE中的VXLAN接口IP地址和设置在所述第二PE中的VXLAN接口IP地址。With reference to the fourth aspect or the first possible implementation manner or the second possible implementation manner, in a third possible implementation manner, the VXLAN tunnel encapsulation information includes the VXLAN interface IP address set in the first PE address and the VXLAN interface IP address set in the second PE.
根据本发明第五方面,提供了一种传输报文的装置,所述装置包括:According to a fifth aspect of the present invention, a device for transmitting a message is provided, the device comprising:
接收单元,用于接收来自源端CE发送的报文,a receiving unit, configured to receive a message sent from the source CE,
PE确定单元,用于接收所述接收单元发送的报文,根据所述报文,确定所述报文传输的目的PE为第二PE;a PE determining unit, configured to receive the message sent by the receiving unit, and determine, according to the message, that the destination PE for the message transmission is the second PE;
路由选择单元,用于接收所述接收单元发送的报文,根据所述报文中的目的CE的IP地址,从接收到的所述第二PE的路由发布信息中选择与所述目的CE对应的路由发布信息,其中,所述第二PE的路由发布信息是由VPN服务器发送给所述路由选择单元的;A routing selection unit, configured to receive the message sent by the receiving unit, and select the IP address corresponding to the destination CE from the received routing advertisement information of the second PE according to the IP address of the destination CE in the message. route advertisement information of the second PE, wherein the route advertisement information of the second PE is sent to the routing selection unit by the VPN server;
隧道信息获取单元,用于接收所述PE确定单元发送的所述第二PE,从接收到的所述第二PE的VXLAN隧道封装信息中选择与所述目的CE对应的VXLAN隧道封装信息,其中,所述第二PE的VXLAN隧道封装信息是由VPN服务器发送给所述隧道选择单元的;a tunnel information acquiring unit, configured to receive the second PE sent by the PE determining unit, and select the VXLAN tunnel encapsulation information corresponding to the destination CE from the received VXLAN tunnel encapsulation information of the second PE, wherein , the VXLAN tunnel encapsulation information of the second PE is sent to the tunnel selection unit by a VPN server;
隧道确定单元,用于接收所述路由选择单元发送的与所述目的CE对应的路由发布信息和接收所述隧道信息获取单元发送的所述VXLAN隧道封装信息,根据与所述目的CE对应的路由发布信息和所述VXLAN隧道封装信息,确定所述第一PE将报文传输给所述第二PE的VXLAN隧道;a tunnel determination unit, configured to receive the route advertisement information corresponding to the destination CE sent by the routing selection unit and the VXLAN tunnel encapsulation information sent by the tunnel information acquisition unit, Publishing information and the VXLAN tunnel encapsulation information, determining that the first PE transmits the message to the VXLAN tunnel of the second PE;
报文传输单元,用于接收所述隧道确定单元发送的所述VXLAN隧道,将所述报文通过所述VXLAN隧道传输至所述第二PE。A message transmission unit, configured to receive the VXLAN tunnel sent by the tunnel determination unit, and transmit the message to the second PE through the VXLAN tunnel.
结合第五方面,在第一种可能的实现方式中,所述隧道确定单元,具体用于根据与所述目的CE对应的路由发布信息中的所述第一PE的第一VPN标识和所述第二PE的第二VPN标识,确定所述第一PE将报文传输给所述第二PE的VPN路由转发表,再根据与所述目的CE对应的VXLAN隧道封装信息,确定所述第一PE的IP地址和所述第二PE的IP地址,以及根据所述VPN路由转发表和所述第一PE的IP地址和所述第二PE的IP地址,确定所述第一PE将报文传输给所述第二PE的VXLAN隧道。With reference to the fifth aspect, in a first possible implementation manner, the tunnel determining unit is specifically configured to advertise the first PE's first VPN identifier and the The second VPN identifier of the second PE determines the VPN routing and forwarding table in which the first PE transmits the message to the second PE, and then determines the first PE according to the VXLAN tunnel encapsulation information corresponding to the destination CE. The IP address of the PE and the IP address of the second PE, and according to the VPN routing and forwarding table, the IP address of the first PE, and the IP address of the second PE, determine that the first PE sends the packet transmitted to the VXLAN tunnel of the second PE.
本发明有益效果如下:The beneficial effects of the present invention are as follows:
本发明实施例中,本申请技术方案是VPN服务器接收来自第一PE发布的路由发布信息,并选择所述VPN服务器选择与所述第一PE进行报文传输的第二PE,再根据所述第一VPN标识,选择与所述第一VPN标识匹配的第二VPN标识,并在所述VPN拓扑连接信息中增加作为目的端的VPN标识的所述第二VPN标识,获得修改后的所述路由发布信息,所述VPN服务器将所述VXLAN隧道封装信息和修改后的所述路由发布信息发送给所述第二PE,如此,使得所述第一PE的路由发布信息仅通过所述VPN服务器就可以直接传输到作为目的PE的所述第二PE,从而实现了所述第一PE的路由发布,进而使得缩短了路由发布时间,提高了路由发布的效率。In the embodiment of the present invention, the technical solution of the present application is that the VPN server receives the route announcement information published by the first PE, and selects the second PE that the VPN server selects for message transmission with the first PE, and then according to the The first VPN identifier, selecting a second VPN identifier that matches the first VPN identifier, and adding the second VPN identifier as the VPN identifier of the destination end to the VPN topology connection information to obtain the modified route Publish information, the VPN server sends the VXLAN tunnel encapsulation information and the modified route advertisement information to the second PE, so that the route advertisement information of the first PE only passes through the VPN server It can be directly transmitted to the second PE as the destination PE, so that the route advertisement of the first PE is realized, thereby shortening the route advertisement time and improving the efficiency of route advertisement.
附图说明Description of drawings
图1为本发明实施例中路由信息发布的方法流程图;FIG. 1 is a flow chart of a method for publishing routing information in an embodiment of the present invention;
图2为本发明实施例中第一PE进行路由发布的第一种结构图;FIG. 2 is a first structural diagram of routing advertisement performed by a first PE in an embodiment of the present invention;
图3为本发明实施例中第一PE进行由发布的第二种结构图;FIG. 3 is a second structure diagram of the distribution by the first PE in the embodiment of the present invention;
图4为本发明实施例中第一PE进行路由发布的流程图;FIG. 4 is a flow chart of routing announcement by the first PE in an embodiment of the present invention;
图5为本发明实施例中传输报文的方法流程图;FIG. 5 is a flowchart of a method for transmitting a message in an embodiment of the present invention;
图6为本发明实施例中路由信息发布的装置的结构图;FIG. 6 is a structural diagram of a device for publishing routing information in an embodiment of the present invention;
图7为本发明实施例中VPN服务器的结构图;FIG. 7 is a structural diagram of a VPN server in an embodiment of the present invention;
图8为本发明实施例中传输报文的装置的结构图。FIG. 8 is a structural diagram of a device for transmitting a message in an embodiment of the present invention.
具体实施方式Detailed ways
针对现有路由发布策略,存在路由发布时间过长,路由发布的工作效果低的技术问题,本发明实施例提出的技术方案中,首先VPN服务器接收来自第一PE发布的路由发布信息,并选择所述VPN服务器选择与所述第一PE进行报文传输的第二服务提供商边缘设备PE,再根据所述第一VPN标识,选择与所述第一VPN标识匹配的第二VPN标识,并在所述VPN拓扑连接信息中增加作为目的端的VPN标识的所述第二VPN标识,获得修改后的所述路由发布信息,所述VPN服务器将所述VXLAN隧道封装信息和修改后的所述路由发布信息发送给所述第二PE,如此,使得所述第一PE的路由发布信息仅通过所述VPN服务器就可以直接传输到作为目的PE的所述第二PE,从而实现了所述第一PE的路由发布,进而使得缩短了路由发布时间,提高了路由发布的效率。Aiming at the existing route publishing strategy, there are technical problems that the route publishing time is too long and the working effect of the route publishing is low. In the technical solution proposed by the embodiment of the present invention, firstly, the VPN server receives the route publishing information from the first PE, and selects The VPN server selects a second service provider edge device PE for packet transmission with the first PE, and then selects a second VPN identifier matching the first VPN identifier according to the first VPN identifier, and Add the second VPN identifier as the VPN identifier of the destination end to the VPN topology connection information to obtain the modified route release information, and the VPN server encapsulates the VXLAN tunnel information and the modified route The advertisement information is sent to the second PE, so that the route advertisement information of the first PE can be directly transmitted to the second PE as the destination PE only through the VPN server, thereby realizing the first The routing advertisement of the PE shortens the route advertisement time and improves the efficiency of the route advertisement.
下面结合各个附图对本发明实施例技术方案的主要实现原理、具体实施方式及其对应能够达到的有益效果进行详细地阐述。The main realization principles, specific implementation modes and corresponding beneficial effects of the technical solutions of the embodiments of the present invention will be described in detail below in conjunction with each accompanying drawing.
实施例一:Embodiment one:
本发明实施例一提出了一种路由信息发布的方法,如图1所示,该方法具体处理过程如下:Embodiment 1 of the present invention proposes a method for publishing routing information, as shown in Figure 1, the specific processing process of the method is as follows:
步骤101:虚拟专用网VPN服务器接收来自第一服务提供商边缘设备PE发布的路由发布信息,其中,所述路由发布信息包括所述第一PE对应的VPN拓扑连接信息,所述VPN拓扑连接信息仅包括源端的VPN标识,所述源端的VPN标识为所述第一PE中的第一VPN标识;Step 101: The virtual private network VPN server receives route announcement information from the first service provider edge device PE, wherein the route announcement information includes VPN topology connection information corresponding to the first PE, and the VPN topology connection information Only including the VPN identification of the source end, the VPN identification of the source end is the first VPN identification in the first PE;
步骤102:所述VPN服务器选择作为目的端的第二PE;Step 102: The VPN server selects the second PE as the destination;
步骤103:所述VPN服务器根据所述第一VPN标识,从所述第二PE的VPN标识中选择与所述第一VPN标识匹配的第二VPN标识,并在所述VPN拓扑连接信息中增加作为目的端的VPN标识的所述第二VPN标识,获得修改后的所述路由发布信息;Step 103: The VPN server selects a second VPN ID that matches the first VPN ID from the VPN IDs of the second PE according to the first VPN ID, and adds Obtaining the modified route advertisement information from the second VPN identity as the VPN identity of the destination end;
步骤104:确定所述第二PE将报文传输给所述第一PE的虚拟扩展局域网VXLAN隧道封装信息;Step 104: Determine the virtual extended local area network (VXLAN) tunnel encapsulation information of the second PE to transmit the message to the first PE;
步骤105:所述VPN服务器将所述VXLAN隧道封装信息和修改后的所述路由发布信息发送给所述第二PE。Step 105: The VPN server sends the VXLAN tunnel encapsulation information and the modified route advertisement information to the second PE.
其中,在步骤101中,虚拟专用网(Virtual Private Network简称VPN)服务器接收来自第一服务提供商边缘设备(Provider Edge简称PE)发布的路由发布信息,其中,所述路由发布信息包括所述第一PE对应的VPN拓扑连接信息,所述VPN拓扑连接信息仅包括源端的VPN标识,所述源端的VPN标识为所述第一PE中的第一VPN标识。Wherein, in step 101, a virtual private network (Virtual Private Network referred to as VPN) server receives route advertisement information issued by a first service provider edge device (Provider Edge referred to as PE), wherein the route advertisement information includes the first VPN topology connection information corresponding to a PE, where the VPN topology connection information only includes a source-end VPN identifier, and the source-end VPN identifier is the first VPN identifier in the first PE.
其中,所述VPN服务器与多个PE相连,以使得通过所述VPN服务器可以实现一个PE到另一个PE的路由发布,且一个VPN标识与所述源端中的一个VPN路由转发表(VPN Routing and Forwarding table简称VRF)对应,且所述源端为所述第一PE,即表征一个VPN标识与所述第一PE中的一个VRF对应。Wherein, the VPN server is connected to a plurality of PEs, so that the VPN server can be used to realize routing announcement from one PE to another PE, and a VPN identifier is associated with a VPN routing forwarding table (VPN Routing and Forwarding table (referred to as VRF), and the source end is the first PE, which means that a VPN identifier corresponds to a VRF in the first PE.
在具体实施过程中,所述第一PE可以具有一个或多个VRF,且一个VPN标识对应一个VRF,以使得通过VPN标识就可以确定相应的VRF,所述第一PE对应的VPN拓扑连接信息仅包括源端的VPN标识字段和目的端的VPN标识字段,由于所述VPN服务器接收到的是所述第一PE的路由发布信息,导致所述第一PE对应的VPN拓扑连接信息中的源端的VPN标识字段为所述第一VPN标识,而所述目的端的VPN标识字段为空,如此,使得所述第一PE对应的VPN拓扑连接信息包含所述第一VPN标识,而未包含有所述目的端的VPN标识。In a specific implementation process, the first PE may have one or more VRFs, and a VPN ID corresponds to a VRF, so that the corresponding VRF can be determined through the VPN ID, and the VPN topology connection information corresponding to the first PE It only includes the VPN identification field of the source end and the VPN identification field of the destination end. Since the VPN server receives the route advertisement information of the first PE, the VPN topology connection information of the source end corresponding to the first PE The identification field is the first VPN identification, and the VPN identification field of the destination is empty, so that the VPN topology connection information corresponding to the first PE contains the first VPN identification, but does not include the destination The VPN ID of the endpoint.
其中,所述VPN拓扑连接信息可以用VPN_TOPO_CONNECTOR进行表示,所述源端的VPN标识可以用Local VPN TAG(简称L-TAG)进行表示,所述目的端的VPN标识可以用Remote VPN TAG(简称R-TAG)进行表示,例如,所述VPN拓扑连接信息具体可以用下述方式进行表示:Wherein, the VPN topology connection information can be represented by VPN_TOPO_CONNECTOR, the VPN identifier of the source end can be represented by Local VPN TAG (abbreviated as L-TAG), and the VPN identifier of the destination end can be represented by Remote VPN TAG (abbreviated as R-TAG). ) to represent, for example, the VPN topology connection information may be represented in the following manner:
VPN_TOPO_CONNECTOR Attribue:VPN_TOPO_CONNECTOR Attribute:
Local VPN TAGLocal VPN TAG
Remote VPN TAG。Remote VPN TAG.
其中,Local VPN TAG和Remote VPN TAG可以用4字节进行表示,也可以用8字节进行表示。Among them, Local VPN TAG and Remote VPN TAG can be represented by 4 bytes or 8 bytes.
具体来讲,所述PE与用户网络边缘设备(Customer Edge简称CE)直接相连的,所述CE可以是路由器或交换机,也可以是一台主机,当所述PE接收到所述CE的请求时,所述PE才会进行路由发布,如此,使得所述VPN服务器接收来自所述第一PE发布的路由发布信息时,所述路由发布信息包括与所述第一PE连接的用户网络边缘设备CE的IP地址,所述VPN拓扑连接信息和所述第一PE的IP(Internet Protocol全称网络之间互连的协议)地址,且所述第一VPN标识与所述CE对应。Specifically, the PE is directly connected to the customer edge device (Customer Edge, CE for short), and the CE may be a router or a switch, or a host. When the PE receives the request from the CE , the PE will advertise the route, so that when the VPN server receives the route advertisement information from the first PE, the route advertisement information includes the user network edge equipment CE connected to the first PE IP address, the VPN topology connection information and the IP (Internet Protocol full name protocol for interconnection between networks) address of the first PE, and the first VPN identifier corresponds to the CE.
例如,参见图2,以所述第一PE为PE1为例,PE1分别与CE1和CE2和CE3直接相连,假设CE3为163服务器,为了使得用户能够查找到163服务器,CE3会请求PE1进行路由发布,进而使得VPN服务器接收到PE1的路由发布信息,其中,所述路由发布信息中包含有CE3的IP地址,PE1对应的VPN拓扑连接信息和PE1的IP地址。For example, referring to Figure 2, taking the first PE as PE1 as an example, PE1 is directly connected to CE1, CE2, and CE3 respectively. Assume that CE3 is the 163 server. In order to enable users to find the 163 server, CE3 will request PE1 to advertise the route. , so that the VPN server receives the route advertisement information of PE1, wherein the route advertisement information includes the IP address of CE3, the VPN topology connection information corresponding to PE1 and the IP address of PE1.
其中,PE1具有VRF1、VRF2和VRF3,且PE1中与VRF1对应的VPN标识为TAG1,与VRF2对应的VPN标识为TAG2,以及与VRF3对应的VPN标识为TAG3,且每一个TAG对应一个或多个CE。Among them, PE1 has VRF1, VRF2 and VRF3, and the VPN ID corresponding to VRF1 in PE1 is TAG1, the VPN ID corresponding to VRF2 is TAG2, and the VPN ID corresponding to VRF3 is TAG3, and each TAG corresponds to one or more CE.
例如TAG1与CE3对应,TAG1还可以与CE1和CE2对应,以及TAG1还可以与CE1、CE2和CE3都对应,例如,在TAG1与CE3对应时,若CE3请求PE1进行路由发布时,则可以确定PE1的VPN拓扑连接信息为Local VPN TAG为TAG1,Remote VPN TAG为空用R-RULL表示,其中,CE3的IP地址为私网IP地址,例如为192.168.1.102,PE1的IP地址为公网IP地址,例如为4.4.4.4时,则PE1的路由发布信息为:For example, TAG1 corresponds to CE3. TAG1 can also correspond to CE1 and CE2, and TAG1 can also correspond to CE1, CE2, and CE3. For example, when TAG1 corresponds to CE3, if CE3 requests PE1 to advertise routes, PE1 can be determined. The VPN topology connection information of the local VPN TAG is TAG1, and the Remote VPN TAG is empty and R-RULL is used to indicate that the IP address of CE3 is the private network IP address, for example, 192.168.1.102, and the IP address of PE1 is the public network IP address , for example, when it is 4.4.4.4, the route advertisement information of PE1 is:
VPN_TOPO_CONNECTOR:VPN_TOPO_CONNECTOR:
Local VPN TAG:TAG1;Local VPN TAG: TAG1;
Remote VPN TAG:NULL;Remote VPN TAG: NULL;
NLRI(Network Layer Reachability Information网络层可达信息):192.168.1.102;NLRI (Network Layer Reachability Information): 192.168.1.102;
NHP(Next Hop Prefix下一跳公网地址):4.4.4.4;NHP (Next Hop Prefix next hop public network address): 4.4.4.4;
然后封装成边界网关协议(Border Gateway Protocol简称BGP)报文进行发布。Then encapsulate it into a Border Gateway Protocol (BGP for short) message and publish it.
其中,VPN_TOPO_CONNECTOR具体为:Local VPN TAG:TAG1;Remote VPNTAG:NULL;还可以用VPNATR(L-TAG1,R-RULL)表示。Among them, VPN_TOPO_CONNECTOR is specifically: Local VPN TAG: TAG1; Remote VPNTAG: NULL; it can also be represented by VPNATR (L-TAG1, R-RULL).
当然,在TAG2与CE3对应时,若CE3请求PE1进行路由发布时,则可以确定PE1的VPN拓扑连接信息为VPNATR(L-TAG2,R-RULL)。Of course, when TAG2 corresponds to CE3, if CE3 requests PE1 to advertise routes, it can be determined that the VPN topology connection information of PE1 is VPNATR (L-TAG2, R-RULL).
接下来执行步骤102,在该步骤中,所述VPN服务器选择作为目的端的第二PE。Next, step 102 is executed. In this step, the VPN server selects the second PE as the destination end.
在具体实施过程中,所述VPN服务器中配置有与所述第一PE进行VPN通信的其它PE,以及配置有所述第一PE与所述其它PE的隧道封装信息,如此,使得所述VPN服务器根据所述路由发布信息中的所述第一PE的IP地址,选择作为目的端的所述第二PE,也可以根据所述路由发布信息中的所述第一VPN标识,选择所述第二PE为目的端。In a specific implementation process, the VPN server is configured with other PEs for VPN communication with the first PE, and configured with tunnel encapsulation information between the first PE and the other PEs, so that the VPN The server selects the second PE as the destination according to the IP address of the first PE in the route advertisement information, or selects the second PE according to the first VPN identifier in the route advertisement information. PE is the destination end.
例如,参见图2,由于PE1与PE2之间可以通过VPN进行报文传输,VPN服务器会将PE2和PE1进行关联,使得VPN服务器接收到PE1发送的路由发布信息时,根据所述路由发布信息中的PE1的IP地址,选择PE2为目的端。For example, as shown in Figure 2, since packets can be transmitted between PE1 and PE2 through the VPN, the VPN server will associate PE2 with PE1, so that when the VPN server receives the route advertisement information sent by PE1, it will IP address of PE1 and select PE2 as the destination.
又例如,参见图3,PE1还可以与PE3之间通过VPN报文传输,VPN服务器在将PE2和PE1进行关联的同时,还会将PE3和PE1进行关联,使得VPN服务器接收到PE1发送的路由发布信息时,根据所述路由发布信息中的PE1的IP地址,可以确定与PE1进行报文传输的所述第二PE为PE2还是PE3。For another example, as shown in Figure 3, PE1 and PE3 can also transmit VPN packets. When the VPN server associates PE2 with PE1, it also associates PE3 with PE1, so that the VPN server receives the route sent by PE1. When publishing information, according to the IP address of PE1 in the route publishing information, it can be determined whether the second PE that performs packet transmission with PE1 is PE2 or PE3.
还例如,参见图2,PE2具有VRF4和VRF5,与VRF4对应的VPN标识为TAG4,与VRF5对应的VPN标识为TAG5,且TAG4与TAG1相对应,通过VRF4和VRF1可以确定PE2到PE1的VRF,以及TAG5与TAG2相对应,通过VRF5和VRF2也可以确定PE2到PE1的VRF,如此,导致VPN服务器将PE1与PE2进行关联,TAG5与TAG2相对应,以及TAG4与TAG1相对应,由于PE1的路由发布信息中的VPN标识为TAG1,由于VPN服务器中的TAG1与TAG4相对应,且TAG4属于PE2,则可以确定所述第二PE为PE2。For another example, referring to FIG. 2 , PE2 has VRF4 and VRF5, the VPN ID corresponding to VRF4 is TAG4, the VPN ID corresponding to VRF5 is TAG5, and TAG4 corresponds to TAG1, the VRF from PE2 to PE1 can be determined through VRF4 and VRF1, And TAG5 corresponds to TAG2, and the VRF from PE2 to PE1 can also be determined through VRF5 and VRF2. In this way, the VPN server associates PE1 with PE2, TAG5 corresponds to TAG2, and TAG4 corresponds to TAG1. Due to the routing announcement of PE1 The VPN identifier in the information is TAG1, and since TAG1 in the VPN server corresponds to TAG4, and TAG4 belongs to PE2, it can be determined that the second PE is PE2.
接下来执行步骤103,在该步骤中,所述VPN服务器根据所述第一VPN标识,从所述第二PE的VPN标识中选择与所述第一VPN标识匹配的第二VPN标识,并在所述VPN拓扑连接信息中增加作为目的端的VPN标识的所述第二VPN标识,获得修改后的所述路由发布信息。Next, step 103 is executed. In this step, the VPN server selects a second VPN identifier matching the first VPN identifier from the VPN identifiers of the second PE according to the first VPN identifier, and Adding the second VPN identifier as the VPN identifier of the destination end to the VPN topology connection information to obtain the modified route advertisement information.
在具体实施过程中,所述VPN服务器在配置所述第一PE和所述其它PE的过程中,还配置所述第一PE的VPN标识与所述其它PE的VPN标识的对应关系,从而获得并保存所述第一PE与所述其它PE之间的TAG对应关系,如此,使得所述VPN服务器能够根据所述第一VPN标识,从所述VPN中的TAG对应关系中选择与所述第一VPN标识匹配的所述第二VPN标识,所述TAG对应关系包括所述第一PE中的VPN标识与所述第二PE中的VPN标识的对应关系。In a specific implementation process, during the process of configuring the first PE and the other PEs, the VPN server also configures the corresponding relationship between the VPN identifier of the first PE and the VPN identifiers of the other PEs, so as to obtain And save the TAG correspondence between the first PE and the other PEs, so that the VPN server can select the TAG correspondence with the first VPN from the TAG correspondence in the VPN according to the first VPN A VPN identifier matches the second VPN identifier, and the TAG correspondence includes a correspondence between the VPN identifier in the first PE and the VPN identifier in the second PE.
例如,参见图3,PE2具有VRF4和VRF5,与VRF4对应的VPN标识为TAG4,与VRF5对应的VPN标识为TAG5,且TAG4与TAG1相对应,通过VRF4和VRF1可以确定PE2到PE1的VRF,以及TAG5与TAG2相对应,通过VRF5和VRF2也可以确定PE2到PE1的VRF,如此,导致VPN服务器将PE1与PE2进行关联,TAG5与TAG2相对应,以及TAG4与TAG1相对应,具体可以表示为:{vPE1:TAG1,vPE2:TAG4},{vPE1:TAG2,vPE2:TAG5}。For example, referring to Figure 3, PE2 has VRF4 and VRF5, the VPN ID corresponding to VRF4 is TAG4, the VPN ID corresponding to VRF5 is TAG5, and TAG4 corresponds to TAG1, the VRF from PE2 to PE1 can be determined through VRF4 and VRF1, and TAG5 corresponds to TAG2, and the VRF from PE2 to PE1 can also be determined through VRF5 and VRF2. In this way, the VPN server associates PE1 with PE2, TAG5 corresponds to TAG2, and TAG4 corresponds to TAG1. Specifically, it can be expressed as: { vPE1:TAG1, vPE2:TAG4}, {vPE1:TAG2, vPE2:TAG5}.
其中,PE3具有VRF6和VRF7,与VRF6对应的VPN标识为TAG6,与VRF7对应的VPN标识为TAG7,且TAG6与TAG2相对应,通过VRF6和VRF2可以确定PE3到PE1的VRF,以及TAG7与TAG3相对应,通过VRF7和VRF3也可以确定PE3到PE1的VRF,如此,导致VPN服务器中将PE1与PE3进行关联,TAG6与TAG2相对应,以及TAG7与TAG3相对应,具体可以表示为:{vPE1:TAG2,vPE3:TAG6},{vPE1:TAG3,vPE3:TAG7}。Among them, PE3 has VRF6 and VRF7, the VPN ID corresponding to VRF6 is TAG6, the VPN ID corresponding to VRF7 is TAG7, and TAG6 corresponds to TAG2, the VRF from PE3 to PE1 can be determined through VRF6 and VRF2, and the relationship between TAG7 and TAG3 Correspondingly, the VRF from PE3 to PE1 can also be determined through VRF7 and VRF3. In this way, PE1 and PE3 are associated in the VPN server, TAG6 corresponds to TAG2, and TAG7 corresponds to TAG3. Specifically, it can be expressed as: {vPE1:TAG2 , vPE3:TAG6}, {vPE1:TAG3, vPE3:TAG7}.
进一步的,由于CE3请求PE1进行路由发布时选择的VRF为VRF1,导致PE1的路由发布信息为{NLRI:192.168.1.102,VPNATR(L-TAG1,R-RULL),NHP:4.4.4.4},这时,由于所述第一TAG为TAG1,根据VPN服务器中的配置{vPE1:TAG1,vPE2:TAG4},{vPE1:TAG2,vPE2:TAG5},{vPE1:TAG2,vPE3:TAG6}和{vPE1:TAG3,vPE3:TAG7},则可以确定所述第二TAG为TAG4,则将VPNATR(L-TAG1,R-RULL)修改为VPNATR(L-TAG1,R-TAG4)。Furthermore, since CE3 requests PE1 to advertise routes, the VRF selected is VRF1, resulting in PE1's route advertisement information as {NLRI:192.168.1.102, VPNATR (L-TAG1, R-RULL), NHP:4.4.4.4}, which , since the first TAG is TAG1, according to the configuration in the VPN server {vPE1:TAG1, vPE2:TAG4}, {vPE1:TAG2, vPE2:TAG5}, {vPE1:TAG2, vPE3:TAG6} and {vPE1: TAG3, vPE3:TAG7}, it can be determined that the second TAG is TAG4, and the VPNATR (L-TAG1, R-RULL) is changed to VPNATR (L-TAG1, R-TAG4).
接下来执行步骤104,在该步骤中,所述VPN服务器根据所述第一VPN标识和所述第二VPN标识,确定所述第二PE将报文传输给所述第一PE的虚拟扩展局域网VXLAN隧道封装信息。Next, step 104 is executed, in which step, the VPN server determines that the second PE transmits the packet to the virtual extended local area network of the first PE according to the first VPN identifier and the second VPN identifier VXLAN tunnel encapsulation information.
在具体实施过程中,由于所述VPN服务器配置有所述第一PE与所述其它PE的隧道封装信息,进而能够根据所述第一VPN标识和所述第二VPN标识,确定所述第二PE将报文传输给所述第一PE的VXLAN隧道封装信息。In a specific implementation process, since the VPN server is configured with tunnel encapsulation information between the first PE and the other PEs, it can determine the second VPN ID according to the first VPN ID and the second VPN ID. The PE transmits the packet to the VXLAN tunnel encapsulation information of the first PE.
其中,所述VXLAN隧道封装信息包括设置在所述第一PE中的VXLAN接口IP地址和设置在所述第二PE中VXLAN接口IP地址,以使得报文的入口指向所述第二PE中VXLAN接口IP地址,报文的出口指向所述第一PE中的VXLAN接口IP地址,进而使得报文通过所述第一PE和所述第二PE之间的VXLAN隧道进行传输。Wherein, the VXLAN tunnel encapsulation information includes the VXLAN interface IP address set in the first PE and the VXLAN interface IP address set in the second PE, so that the entry of the message points to the VXLAN interface in the second PE Interface IP address, the egress of the message points to the VXLAN interface IP address in the first PE, so that the message is transmitted through the VXLAN tunnel between the first PE and the second PE.
具体来讲,所述VPN服务器配置所述第一PE与所述其它PE的隧道封装信息时,可以配置为虚拟网络实例(Virtual Network Instance简称vni),根据所述vni,就可以确定所述隧道封装信息。Specifically, when the VPN server configures tunnel encapsulation information between the first PE and the other PEs, it can be configured as a virtual network instance (Virtual Network Instance, vni for short), and the tunnel can be determined according to the vni. Packaging information.
例如,参见图2,VPN服务器中配置有{vPE1:TAG1,vPE2:TAG4}及其对应的vni为vni1,vni1包括与TAG1对应的虚拟扩展局域网接口(VirtualExtensible Local Area Network interface简称vxlanif),以及虚拟扩展局域网(Virtual Extensible Local Area Network简称VXLAN)中的与TAG1对应的IP地址,以及与TAG4对应的vxlanif,以及VXLAN中的与TAG4对应的IP地址,For example, as shown in Figure 2, the VPN server is configured with {vPE1:TAG1, vPE2:TAG4} and its corresponding vni is vni1. The IP address corresponding to TAG1 in the extended local area network (Virtual Extensible Local Area Network referred to as VXLAN), the vxlanif corresponding to TAG4, and the IP address corresponding to TAG4 in VXLAN,
具体可以用下述方式表示:Specifically, it can be expressed in the following way:
vxlan vni1vxlan vni1
vPE1(PE1)vPE1 (PE1)
interface vxlanif1interface vxlanif1
ip address uip1ip address uip1
vPE2(PE2)vPE2 (PE2)
interface vxlanif4interface vxlanif4
ip address uip4ip address uip4
其中,vxlanif1表示与TAG1对应的vxlanif,vxlanif4表示与TAG4对应的vxlanif,进一步的,uip是Underlying network IP的简写,uip1表示VXLAN中的与TAG1对应的IP地址,uip4表示VXLAN中的与TAG4对应的IP地址。Among them, vxlanif1 represents vxlanif corresponding to TAG1, vxlanif4 represents vxlanif corresponding to TAG4, further, uip is the abbreviation of Underlying network IP, uip1 represents the IP address corresponding to TAG1 in VXLAN, uip4 represents the IP address corresponding to TAG4 in VXLAN IP address.
同理,VPN服务器中配置有{vPE1:TAG2,vPE2:TAG5}及其对应的vni为vni2,具体可以用下述方式表示:Similarly, the VPN server is configured with {vPE1:TAG2, vPE2:TAG5} and its corresponding vni is vni2, which can be expressed in the following way:
vxlan vni2vxlan vni2
vPE1(PE1)vPE1 (PE1)
interface vxlanif2interface vxlanif2
ip address uip2ip address uip2
vPE2(PE2)vPE2 (PE2)
interface vxlanif5interface vxlanif5
ip address uip5ip address uip5
VPN服务器根据CE3的请求确定的所述第二VPN标识为TAG4,根据TAG1和TAG4,确定与TAG1和TAG4匹配的vni为vni1,则可以确定所述VXLAN的隧道封装信息为:The second VPN identifier determined by the VPN server according to the request of CE3 is TAG4, and according to TAG1 and TAG4, it is determined that the vni matching TAG1 and TAG4 is vni1, then it can be determined that the tunnel encapsulation information of the VXLAN is:
vxlan vni1vxlan vni1
vPE1(PE1)vPE1 (PE1)
interface vxlanif1interface vxlanif1
ip address uip1ip address uip1
vPE2(PE2)vPE2 (PE2)
interface vxlanif4interface vxlanif4
ip address uip4。ip address uip4.
接下来执行步骤105,在该步骤中,所述VPN服务器将所述VXLAN隧道封装信息和修改后的所述路由发布信息发送给所述第二PE。Next, step 105 is executed. In this step, the VPN server sends the VXLAN tunnel encapsulation information and the modified route advertisement information to the second PE.
在具体实施过程中,将所述VXLAN隧道封装信息和修改后的所述路由发布信息发送给所述第二PE,以使得所述第二PE根据R-VPN标识,查找到与所述R-VPN标识对应的VRF,再根据所述VXLAN隧道封装信息,生成报文从所述第二PE到所述第一PE的VXLAN隧道,然后将所述第二PE接收到的报文通过所述VXLAN隧道传输至所述第一PE。In the specific implementation process, the VXLAN tunnel encapsulation information and the modified route advertisement information are sent to the second PE, so that the second PE finds the R-VPN according to the R-VPN identifier. The VRF corresponding to the VPN identifier, and then according to the VXLAN tunnel encapsulation information, generate a VXLAN tunnel for the message from the second PE to the first PE, and then pass the message received by the second PE through the VXLAN Tunnel transmission to the first PE.
例如,参见图4,在CE3的私网IP地址为192.168.1.102,且请求PE1进行路由发布时,PE1生成了路由发布信息,所述路由发布信息为:{NLRI:192.168.1.102,VPNATR:(L_TAG1,NULL),NHP:4.4.4.4},这时,执行步骤401,PE1发布路由给VPN服务器,将{NLRI:192.168.1.102,VPNATR:(L_TAG1,NULL),NHP:4.4.4.4}封装成BGP报文1,所述BGP报文1简称BGP1。For example, referring to Figure 4, when the private network IP address of CE3 is 192.168.1.102, and PE1 is requested to advertise routes, PE1 generates route advertisement information, and the route advertisement information is: {NLRI:192.168.1.102, VPNATR:( L_TAG1, NULL), NHP:4.4.4.4}, at this time, execute
接下来执行步骤402,PE1发送BGP1,以使得VPN服务器接收到BGP1。Next,
接下来执行步骤403,VPN服务器接收PE1发布的BGP1,根据VPN服务器中的配置,获得修改后的路由发布信息和VXLAN隧道信息为:{NLRI:192.168.1.102,VPN ATR:(L_TAG1,R_TAG4),VXLAN ATR:(vni1,uip1,uip4),NHP:4.4.4.4},并将{NLRI:192.168.1.102,VPN ATR:(L_TAG1,R_TAG4),VXLANATR:(vni1,uip1,uip4),NHP:4.4.4.4}封装成BGP报文2,所述BGP报文2简称BGP2。Next,
接下来执行步骤404,VPN服务器发送BGP2给PE2,以使得PE2接收到BGP2。Next,
接下来执行步骤405,PE2接收到VPN服务器发送的BGP2,根据R-TAG标记匹配本地对应的VRF,根据携带的uip4地址和uip1,查找到vxlanif1和vxlanif4,将报文的入口vxlanif1,将报文的出口指向vxlanif4,并生成关联PEI和PE2的vxlan隧道表,进而形成vxlan隧道,以使得PE2接收到与PE2连接的CE发送的报文通过所述vxlan隧道传输至PE1。
参见图3,由于现有技术中PE1进行路由发布时,PE1的路由发布信息首先会发布给AS1和AS3,AS1将PE1的路由发布信息再发给路由器A1,路由器A1再将PE1的路由发布信息再发给路由器A2,路由器A2将PE1的路由发布信息再发给AS2,然后AS2将PE1的路由发布信息再发布给PE2,并且AS3将PE1的路由发布信息再发给路由器A3,路由器A3再将PE1的路由发布信息再发给路由器A4,路由器A4将PE1的路由发布信息再发给AS4,然后AS4将PE1的路由发布信息再发布给PE3,当PE2和PE3均接收到PE1的路由发布信息时,使得PE1的完成了路由发布。Referring to Figure 3, when PE1 advertises routes in the prior art, the route advertisement information of PE1 is first published to AS1 and AS3, AS1 sends the route advertisement information of PE1 to router A1, and router A1 then publishes the route advertisement information of PE1 Then send it to router A2, router A2 sends the route advertisement information of PE1 to AS2, then AS2 sends the route advertisement information of PE1 to PE2, and AS3 sends the route advertisement information of PE1 to router A3, router A3 sends The route advertisement information of PE1 is sent to router A4, router A4 sends the route advertisement information of PE1 to AS4, and then AS4 sends the route advertisement information of PE1 to PE3, when both PE2 and PE3 receive the route advertisement information of PE1 , so that PE1 completes route advertisement.
其中,AS为Autonomous System的简写,中文名称为自治系统。Among them, AS is the abbreviation of Autonomous System, and the Chinese name is autonomous system.
本申请实施例中PE1的路由发布信息直接传输给VPN服务器,VPN服务器根据PE1的路由发布信息,确定目的PE为PE2,添加目的端的TAG,获得修改后的PE1的路由发布信息,并根据与PE1的TAG匹配的PE2的TAG,确定VXLAN隧道封装信息,将修改后的PE1路由发布信息和所述VXLAN隧道封装信息发送给PE2,进而完成PE1的路由发布,而现有技术中的路由发布需要逐一进行路由转发,且在不同的AS之间进行路由转发时,还需要通过跨域技术来实现路由转发,导致现有技术在进行路由转发时,路由转发的次数较多,而且在不同的AS之间进行路由转发时,还需要通过跨域技术来实现路由转发,使得路由发布的时间较长,路由发布的效率也低的技术问题,而本申请使得本申请仅需通过VPN服务器就可以完成路由发布,仅需通过一次路由转发就完成了路由发布,且无需通过跨域技术来实现路由转发,进而能够缩短路由发布的时间,提高路由发布的效率。In the embodiment of this application, the route advertisement information of PE1 is directly transmitted to the VPN server, and the VPN server determines that the destination PE is PE2 according to the route advertisement information of PE1, adds the TAG of the destination end, and obtains the revised route advertisement information of PE1, and according to the route advertisement information of PE1 TAG matching the TAG of PE2, determine the VXLAN tunnel encapsulation information, send the modified PE1 route announcement information and the VXLAN tunnel encapsulation information to PE2, and then complete the route announcement of PE1, while the route announcement in the prior art requires one by one For routing and forwarding, and when routing and forwarding between different ASs, it is necessary to implement routing and forwarding through cross-domain technology. When performing routing forwarding between users, it is also necessary to implement routing forwarding through cross-domain technology, which makes the time for routing release longer and the efficiency of routing release is also low. However, this application allows this application to complete routing only through the VPN server. Publishing, the route publishing is completed only through one route forwarding, and there is no need to implement route forwarding through cross-domain technology, which can shorten the time of route publishing and improve the efficiency of route publishing.
实施例二:Embodiment two:
基于与上述方法相同的技术构思,本发明实施例二提出了一种传输报文的方法,如图5所示,该方法具体处理过程如下:Based on the same technical concept as the above method, Embodiment 2 of the present invention proposes a method for transmitting messages, as shown in FIG. 5 , the specific processing process of the method is as follows:
步骤501:第一PE接收来自源端CE发送的报文,并根据所述源端CE发送的报文,确定所述报文传输的目的PE为第二PE;Step 501: the first PE receives the message sent from the source CE, and determines that the destination PE for the message transmission is the second PE according to the message sent by the source CE;
步骤502:所述第一PE根据所述报文中的目的CE的IP地址,从接收到的所述第二PE的路由发布信息中选择与所述目的CE对应的路由发布信息,以及从接收到的所述第二PE的VXLAN隧道封装信息中选择与所述目的CE对应的VXLAN隧道封装信息,其中,所述第二PE的路由发布信息和VXLAN隧道封装信息是由VPN服务器发送给所述第一PE的;Step 502: The first PE selects the route advertisement information corresponding to the destination CE from the received route advertisement information of the second PE according to the IP address of the destination CE in the message, and receives Select the VXLAN tunnel encapsulation information corresponding to the destination CE from the received VXLAN tunnel encapsulation information of the second PE, wherein the route advertisement information and VXLAN tunnel encapsulation information of the second PE are sent to the the first PE;
步骤503:所述第一PE根据与所述目的CE对应的路由发布信息和VXLAN隧道封装信息,确定所述第一PE将报文传输给所述第二PE的VXLAN隧道;Step 503: The first PE determines the VXLAN tunnel through which the first PE transmits the message to the second PE according to the route advertisement information and the VXLAN tunnel encapsulation information corresponding to the destination CE;
步骤504:所述第一PE将所述报文通过所述VXLAN隧道传输至所述第二PE。Step 504: The first PE transmits the packet to the second PE through the VXLAN tunnel.
其中,在步骤501中,第一PE接收来自源端CE发送的报文,并根据所述源端CE发送的报文,确定所述报文传输的目的PE为第二PE,其中,所述源端CE与所述第一PE相连。Wherein, in step 501, the first PE receives the message sent from the source CE, and according to the message sent by the source CE, determines that the destination PE for the message transmission is the second PE, wherein the The source CE is connected to the first PE.
在具体实施过程中,首先所述第一PE会接收到VPN服务器发送的路由发布信息和VXLAN隧道封装信息,在所述第一PE接收到所述源端CE发送的报文时,由于所述报文中具有目的CE的IP地址,则可以根据所述目的CE的IP地址,可以从接收到的VPN服务器发送的路由发布信息确定与所述目的CE直接连接的所述第二PE,所述第二PE为所述目的PE。In the specific implementation process, first, the first PE will receive the route advertisement information and the VXLAN tunnel encapsulation information sent by the VPN server. When the first PE receives the message sent by the source CE, due to the If there is an IP address of the destination CE in the message, the second PE directly connected to the destination CE may be determined from the received route advertisement information sent by the VPN server according to the IP address of the destination CE, and the The second PE is the target PE.
例如,参见图2,以PE2为所述第一PE为例,PE2首先会接收到VPN服务器发送的PE1的路由发布信息和隧道封装信息,所述PE1的路由发布信息以及隧道封装信息可以包含CE1,CE2和CE3对应的路由发布信息及其对应隧道封装信息,然后在PE2接收到所述源端CE发送的报文时,能够获取所述报文中的目的CE的IP地址,若所述目的CE的IP为CE3的IP地址,根据接收到的PE1的路由发布信息,则可以确定所述目的PE为PE1。For example, referring to FIG. 2, taking PE2 as the first PE as an example, PE2 will first receive the route advertisement information and tunnel encapsulation information of PE1 sent by the VPN server, and the route advertisement information and tunnel encapsulation information of PE1 may include CE1 , the route advertisement information corresponding to CE2 and CE3 and the corresponding tunnel encapsulation information, and then when PE2 receives the packet sent by the source CE, it can obtain the IP address of the destination CE in the packet, if the destination The IP of CE is the IP address of CE3, and according to the received route advertisement information of PE1, it can be determined that the destination PE is PE1.
接下来执行步骤502,在该步骤中,所述第一PE根据所述报文中的目的CE的IP地址,从接收到的所述第二PE的路由发布信息中选择与所述目的CE对应的路由发布信息,以及从接收到的所述第二PE的VXLAN隧道封装信息中选择与所述目的CE对应的VXLAN隧道封装信息,其中,所述第二PE的路由发布信息和VXLAN隧道封装信息是由VPN服务器发送给所述第一PE的。Next,
在具体实施过程中,由于所述第二PE在进行路由发布时,会将请求所述第二PE进行路由发布的CE的IP地址写入所述第二PE的路由发布信息中,从而使得所述第一PE在通过步骤501确定所述第二PE之后,能够从所述第二PE的路由发布信息和VXLAN隧道封装信息中选择与所述目的CE对应的路由发布信息和VXLAN隧道封装信息。In the specific implementation process, because the second PE will write the IP address of the CE requesting the second PE to advertise the route into the route advertisement information of the second PE when advertising the route, so that the After the first PE determines the second PE through step 501, it can select the route advertisement information and VXLAN tunnel encapsulation information corresponding to the destination CE from the route advertisement information and VXLAN tunnel encapsulation information of the second PE.
例如,参见图2,以PE2为所述第一PE为例,在CE3请求PE1进行的路由发布信息之后,使得PE2接收到VPN服务器发送的路由发布信息和VXLAN隧道信息包括:{NLRI:192.168.1.102,VPN ATR:(L_TAG1,R_TAG4),VXLANATR:(vni1,uip1,uip4),NHP:4.4.4.4},以及若CE2的IP地址为192.168.1.95,且请求了PE1进行的路由发布信息之后,使得PE2接收到VPN服务器发送的路由发布信息和VXLAN隧道信息包括:{NLRI:192.168.1.95,VPN ATR:(L_TAG2,R_TAG5),VXLAN ATR:(vni2,uip2,uip5),NHP:4.4.4.4}。For example, referring to FIG. 2, taking PE2 as the first PE as an example, after CE3 requests the route advertisement information performed by PE1, PE2 receives the route advertisement information and VXLAN tunnel information sent by the VPN server including: {NLRI:192.168. 1.102, VPN ATR: (L_TAG1, R_TAG4), VXLANATR: (vni1, uip1, uip4), NHP: 4.4.4.4}, and if the IP address of CE2 is 192.168.1.95, and after requesting the routing advertisement information carried out by PE1, Make PE2 receive the route advertisement information and VXLAN tunnel information sent by the VPN server, including: {NLRI:192.168.1.95, VPN ATR:(L_TAG2, R_TAG5), VXLAN ATR:(vni2, uip2, uip5), NHP:4.4.4.4} .
其中,在PE2接收到源端CE的报文时,若所述报文的目的CE的IP地址为192.168.1.102,则可以确定所述第二PE为PE1以及所述目的CE为CE3,然后从PE2接收到VPN服务器发送的PE1的路由发布信息和VXLAN隧道信息中确定与CE3对应的路由发布信息和VXLAN隧道信息为{NLRI:192.168.1.102,VPNATR:(L_TAG1,R_TAG4),VXLAN ATR:(vni1,uip1,uip4),NHP:4.4.4.4}。Wherein, when PE2 receives the packet of the source CE, if the IP address of the destination CE of the packet is 192.168.1.102, it can be determined that the second PE is PE1 and the destination CE is CE3, and then from PE2 receives the route advertisement information and VXLAN tunnel information of PE1 sent by the VPN server and determines that the route advertisement information and VXLAN tunnel information corresponding to CE3 are {NLRI:192.168.1.102, VPNATR:(L_TAG1, R_TAG4), VXLAN ATR:(vni1 , uip1, uip4), NHP:4.4.4.4}.
接下来执行步骤503,在该步骤中,所述第一PE根据与所述目的CE对应的路由发布信息和VXLAN隧道封装信息,确定所述第一PE将报文传输给所述第二PE的VXLAN隧道。Next,
在具体实施过程中,所述第一PE根据与所述目的CE对应的路由发布信息中的R-VPN标识,查找到与所述R-VPN标识对应的VRF,再根据所述VXLAN隧道封装信息,确定所述第一PE将报文传输给所述第二PE的VXLAN隧道,然后将所述第一PE接收到的报文通过所述VXLAN隧道传输至所述第二PE。In the specific implementation process, the first PE finds the VRF corresponding to the R-VPN identifier according to the R-VPN identifier in the route advertisement information corresponding to the destination CE, and then encapsulates the information according to the VXLAN tunnel , determine that the first PE transmits the packet to the VXLAN tunnel of the second PE, and then transmit the packet received by the first PE to the second PE through the VXLAN tunnel.
具体来讲,所述第一PE根据与所述目的CE对应的路由发布信息中的所述第一PE的第一VPN标识和所述第二PE的第二VPN标识,确定所述第一PE将报文传输给所述第二PE的VPN路由转发表;所述第一PE根据与所述目的CE对应的VXLAN隧道封装信息,确定所述第一PE的IP地址和所述第二PE的IP地址;所述第一PE根据所述VPN路由转发表和所述第一PE的IP地址和所述第二PE的IP地址,确定所述第一PE将报文传输给所述第二PE的VXLAN隧道。Specifically, the first PE determines, according to the first VPN identifier of the first PE and the second VPN identifier of the second PE in the route advertisement information corresponding to the destination CE, that the first PE transmit the message to the VPN routing forwarding table of the second PE; the first PE determines the IP address of the first PE and the IP address of the second PE according to the VXLAN tunnel encapsulation information corresponding to the destination CE; IP address: the first PE determines that the first PE transmits the message to the second PE according to the VPN routing and forwarding table, the IP address of the first PE, and the IP address of the second PE VXLAN tunnel.
例如,参见图2,PE2接收到CE的报文,所述报文的目的CE的IP地址为192.168.1.102,则可以确定所述第二PE为PE1以及所述目的CE为CE3,然后从PE2接收到VPN服务器发送的PE1的路由发布信息和VXLAN隧道信息中确定与CE3对应的路由发布信息和VXLAN隧道信息为{NLRI:192.168.1.102,VPN ATR:(L_TAG1,R_TAG4),VXLAN ATR:(vni1,uip1,uip4),NHP:4.4.4.4},根据R-TAG4,从PE2中的VRF中确定与TAG4对应的VRF4,以及根据TAG1对应的VRF1,根据VRF4和VRF1,可以确定PE2到PE1的VRF,再根据VXLAN隧道信息中携带的uip4地址和uip1,查找到vxlanif1和vxlanif4,将报文的入口vxlanif1,将报文的出口指向vxlanif4,然后生成关联PEI和PE2的VXLAN隧道表,进而获得VXLAN隧道,以使得PE2接收到所述源端CE发送的报文通过所述VXLAN隧道传输至PE1。For example, referring to FIG. 2, PE2 receives a message from CE, and the IP address of the destination CE of the message is 192.168.1.102, then it can be determined that the second PE is PE1 and the destination CE is CE3, and then from PE2 After receiving the routing advertisement information and VXLAN tunnel information of PE1 sent by the VPN server, it is determined that the routing advertisement information and VXLAN tunnel information corresponding to CE3 are {NLRI:192.168.1.102, VPN ATR: (L_TAG1, R_TAG4), VXLAN ATR: (vni1 , uip1, uip4), NHP:4.4.4.4}, according to R-TAG4, determine the VRF4 corresponding to TAG4 from the VRF in PE2, and according to the VRF1 corresponding to TAG1, according to VRF4 and VRF1, you can determine the VRF from PE2 to PE1 , and then according to the uip4 address and uip1 carried in the VXLAN tunnel information, find vxlanif1 and vxlanif4, point the ingress vxlanif1 of the packet, point the egress of the packet to vxlanif4, and then generate the VXLAN tunnel table associated with PEI and PE2, and then obtain the VXLAN tunnel , so that PE2 receives the packet sent by the source CE and transmits it to PE1 through the VXLAN tunnel.
接下来执行步骤504,在该步骤中,所述第一PE将所述报文通过所述VXLAN隧道传输至所述第二PE。Next,
在具体实施过程中,在通过步骤503获取到所述VXLAN隧道之后,所述第一PE将接收到的所述源端CE的报文通过所述VXLAN隧道传输至所述第二PE,以使得所述第二PE根据所述报文中的目的IP地址,将所述报文传输给目的CE。In the specific implementation process, after the VXLAN tunnel is obtained in
例如,参见图2,PE2接收到CE发送的报文通过所述VXLAN隧道传输至PE1,PE1将去除与所述VXLAN隧道的封装信息,读取所述报文中的目的IP地址为192.168.1.102,则PE1根据所述目的IP地址,查找到与192.168.1.102对应的CE为CE3,则将所述报文传输至CE3。For example, as shown in Figure 2, when PE2 receives a packet sent by CE and transmits it to PE1 through the VXLAN tunnel, PE1 will remove the encapsulation information with the VXLAN tunnel, and read the destination IP address in the packet as 192.168.1.102 , PE1 finds that the CE corresponding to 192.168.1.102 is CE3 according to the destination IP address, and then transmits the packet to CE3.
由于现有技术中在构建VPN时通常是采用MPLS技术来实现的,简称为MPLS/VPN,但是现有的MPLS/VPN需要部署标签分发协议(Label DistributionProtocol简称LDP)作为隧道,再部署BGP多协议扩展(MultiprotocolExtensions for BGP简称MP-BGP)传播VPN路由,以及进行分布式配置,每增加一个PE/VPN需要调整其他各个PE的配置,由于MPLS/VPN通过需要通过不同的AS,导致还需要部署各种跨域技术,而且在一个新地区增加VPN服务,则还需要在网络部署MPLS,保证MPLS连通性,导致现有技术的VPN业务拓展性能差,需要进行跨域配置的技术问题。Because in the prior art, MPLS technology is usually used to implement VPN construction, referred to as MPLS/VPN, but the existing MPLS/VPN needs to deploy Label Distribution Protocol (Label Distribution Protocol referred to as LDP) as a tunnel, and then deploy BGP multi-protocol Extensions (MultiprotocolExtensions for BGP MP-BGP for short) propagate VPN routes and carry out distributed configuration. Every time a PE/VPN is added, the configuration of other PEs needs to be adjusted. Since MPLS/VPN needs to pass through different ASs, it is necessary to deploy various In addition, if VPN service is added in a new area, MPLS needs to be deployed on the network to ensure MPLS connectivity, which leads to poor performance of VPN service expansion in the existing technology and requires technical problems of cross-domain configuration.
而本申请实施例在VPN服务器进行路由转发的基础上,源端PE在接收到VPN服务器的路由发布信息和VXLAN隧道信息之后,可以根据VPN服务器的路由发布信息和VXLAN隧道信息,获得VXLAN隧道,以及将报文通过VXLAN隧道传输至目的端PE,进而不需进行跨域配置,而且在一个新地区增加VPN服务时,仅需要将新增的PE与其它PE进行配置,而不用在在网络部署MPLS,提高了VPN业务的拓展性能,使得VPN业务的开通和维护也更加方便。In the embodiment of the present application, on the basis of routing forwarding by the VPN server, after receiving the routing advertisement information and VXLAN tunnel information of the VPN server, the source PE can obtain the VXLAN tunnel according to the routing advertisement information and VXLAN tunnel information of the VPN server. And the message is transmitted to the destination PE through the VXLAN tunnel, so that no cross-domain configuration is required, and when adding VPN services in a new area, it is only necessary to configure the newly added PE with other PEs, instead of deploying on the network MPLS improves the expansion performance of VPN services and makes the provisioning and maintenance of VPN services more convenient.
实施例三:Embodiment three:
基于与上述方法相同的技术构思,本发明实施例三提出了一种路由信息发布的装置,参见图6,所述装置包括:Based on the same technical concept as the above method, Embodiment 3 of the present invention proposes a device for distributing routing information, see Figure 6, the device includes:
接收单元601,用于接收来自第一PE的路由发布信息,其中,所述路由发布信息包括所述第一PE对应的VPN拓扑连接信息,所述VPN拓扑连接信息包括源端的VPN标识,所述源端的VPN标识为所述第一PE中的第一VPN标识;The receiving unit 601 is configured to receive route advertisement information from the first PE, wherein the route advertisement information includes VPN topology connection information corresponding to the first PE, and the VPN topology connection information includes a VPN identifier of the source end, the The VPN identifier of the source end is the first VPN identifier in the first PE;
选择单元602,用于选择作为目的端的第二PE;a selection unit 602, configured to select a second PE as a destination;
路由修改单元603,用于接收接收单元601发送的所述路由发布信息和接收选择单元602发送的所述第二PE,根据所述第一VPN标识,从所述第二PE的VPN标识中选择与所述第一VPN标识匹配的第二VPN标识,并在所述VPN拓扑连接信息中增加作为目的端的VPN标识的所述第二VPN标识,获得修改后的所述路由发布信息;The route modifying unit 603 is configured to receive the route advertisement information sent by the receiving unit 601 and the second PE sent by the selecting unit 602, and select from the VPN ID of the second PE according to the first VPN ID. A second VPN identifier that matches the first VPN identifier, and adding the second VPN identifier as the VPN identifier of the destination end to the VPN topology connection information to obtain the modified route release information;
隧道选择单元604,用于接收路由修改单元603发送的所述第一VPN标识和所述第二VPN标识,根据所述第一VPN标识和所述第二VPN标识,确定所述第二PE将报文传输给所述第一PE的虚拟扩展局域网VXLAN隧道封装信息;The tunnel selection unit 604 is configured to receive the first VPN identifier and the second VPN identifier sent by the route modification unit 603, and determine, according to the first VPN identifier and the second VPN identifier, that the second PE will The message is transmitted to the virtual extended local area network VXLAN tunnel encapsulation information of the first PE;
发送单元605,用于接收路由修改单元603发送的修改后的所述路由发布信息和接收所述隧道选择单元发送的所述VXLAN隧道封装信息,将所述VXLAN隧道封装信息和修改后的所述路由发布信息发送给所述第二PE。The sending unit 605 is configured to receive the modified route advertisement information sent by the route modification unit 603 and the VXLAN tunnel encapsulation information sent by the tunnel selection unit, and combine the VXLAN tunnel encapsulation information and the modified The route advertisement information is sent to the second PE.
其中,所述路由信息发布的装置与多个PE相连,以使得通过所述装置可以实现一个PE到另一个PE的路由发布,且一个VPN标识与所述源端中的一个VRF对应,且所述源端为所述第一PE,即表征一个VPN标识与所述第一PE中的一个VRF对应。Wherein, the device for distributing routing information is connected to multiple PEs, so that the distributing of routes from one PE to another PE can be realized through the device, and a VPN identifier corresponds to a VRF in the source end, and the The source end is the first PE, which means that a VPN identifier corresponds to a VRF in the first PE.
在具体实施过程中,所述第一PE可以具有一个或多个VRF,且一个VPN标识对应一个VRF,以使得通过VPN标识就可以确定相应的VRF,所述第一PE对应的VPN拓扑连接信息仅包括源端的VPN标识字段和目的端的VPN标识字段,由于所述VPN服务器接收到的是所述第一PE的路由发布信息,导致所述第一PE对应的VPN拓扑连接信息中的源端的VPN标识字段为所述第一VPN标识,而所述目的端的VPN标识字段为空,如此,使得所述第一PE对应的VPN拓扑连接信息包含所述第一VPN标识,而未包含有所述目的端的VPN标识。In a specific implementation process, the first PE may have one or more VRFs, and a VPN ID corresponds to a VRF, so that the corresponding VRF can be determined through the VPN ID, and the VPN topology connection information corresponding to the first PE It only includes the VPN identification field of the source end and the VPN identification field of the destination end. Since the VPN server receives the route advertisement information of the first PE, the VPN topology connection information of the source end corresponding to the first PE The identification field is the first VPN identification, and the VPN identification field of the destination is empty, so that the VPN topology connection information corresponding to the first PE contains the first VPN identification, but does not include the destination The VPN ID of the endpoint.
具体的,所述路由发布信息还包括与所述第一PE连接的CE的IP地址,所述VPN拓扑连接信息和所述第一PE的IP地址,且所述第一VPN标识与所述CE对应。Specifically, the route advertisement information also includes the IP address of the CE connected to the first PE, the VPN topology connection information and the IP address of the first PE, and the first VPN identifier and the CE correspond.
例如,参见图2,以所述第一PE为PE1为例,PE1分别与CE1和CE2和CE3直接相连,假设CE3为163服务器,为了使得用户能够查找到163服务器,CE3会请求PE1进行路由发布,进而使得VPN服务器接收到PE1的路由发布信息,其中,所述路由发布信息中包含有CE3的IP地址,PE1对应的VPN拓扑连接信息和PE1的IP地址例如是159.226.1.1。For example, referring to Figure 2, taking the first PE as PE1 as an example, PE1 is directly connected to CE1, CE2, and CE3 respectively. Assume that CE3 is the 163 server. In order to enable users to find the 163 server, CE3 will request PE1 to advertise the route. , so that the VPN server receives the route advertisement information of PE1, wherein the route advertisement information includes the IP address of CE3, and the VPN topology connection information corresponding to PE1 and the IP address of PE1 are, for example, 159.226.1.1.
较佳的,路由修改单元603包括VPN标识确定单元606,用于根据所述第一VPN标识,从所述VPN中的TAG对应关系中选择与所述第一VPN标识匹配的所述第二VPN标识,所述TAG对应关系包括所述第一PE中的VPN标识与所述第二PE中的VPN标识的对应关系。Preferably, the route modifying unit 603 includes a VPN identifier determining unit 606, configured to select the second VPN that matches the first VPN identifier from the TAG correspondence in the VPN according to the first VPN identifier. The TAG correspondence includes the correspondence between the VPN identifier in the first PE and the VPN identifier in the second PE.
具体的,所述路由信息发布的装置在配置所述第一PE和所述其它PE的过程中,还配置所述第一PE的VPN标识与所述其它PE的VPN标识的对应关系,从而获得并保存所述第一PE与所述其它PE之间的TAG对应关系,如此,使得所述VPN服务器能够根据所述第一VPN标识,从所述VPN中的TAG对应关系中选择与所述第一VPN标识匹配的所述第二VPN标识,所述TAG对应关系包括所述第一PE中的VPN标识与所述第二PE中的VPN标识的对应关系,其中,所述TAG表示标识的意思。Specifically, during the process of configuring the first PE and the other PEs, the device for publishing routing information also configures the corresponding relationship between the VPN ID of the first PE and the VPN IDs of the other PEs, so as to obtain And store the TAG correspondence between the first PE and the other PEs, so that the VPN server can select the TAG correspondence between the VPN according to the first VPN identifier and the first PE The second VPN identifier matched by a VPN identifier, the TAG correspondence includes the correspondence between the VPN identifier in the first PE and the VPN identifier in the second PE, wherein the TAG represents the meaning of the identifier .
例如,参见图3,PE2具有VRF4和VRF5,与VRF4对应的VPN标识为TAG4,与VRF5对应的VPN标识为TAG5,且TAG4与TAG1相对应,通过VRF4和VRF1可以确定PE2到PE1的VRF,以及TAG5与TAG2相对应,通过VRF5和VRF2也可以确定PE2到PE1的VRF,如此,导致VPN服务器将PE1与PE2进行关联,TAG5与TAG2相对应,以及TAG4与TAG1相对应,具体可以表示为:{vPE1:TAG1,vPE2:TAG4},{vPE1:TAG2,vPE2:TAG5}。For example, referring to Figure 3, PE2 has VRF4 and VRF5, the VPN ID corresponding to VRF4 is TAG4, the VPN ID corresponding to VRF5 is TAG5, and TAG4 corresponds to TAG1, the VRF from PE2 to PE1 can be determined through VRF4 and VRF1, and TAG5 corresponds to TAG2, and the VRF from PE2 to PE1 can also be determined through VRF5 and VRF2. In this way, the VPN server associates PE1 with PE2, TAG5 corresponds to TAG2, and TAG4 corresponds to TAG1. Specifically, it can be expressed as: { vPE1:TAG1, vPE2:TAG4}, {vPE1:TAG2, vPE2:TAG5}.
具体的,由于所述路由信息发布的装置中配置有所述第一PE与所述其它PE的隧道封装信息,进而使得隧道选择单元604能够根据所述第一VPN标识和所述第二VPN标识,确定所述第二PE将报文传输给所述第一PE的VXLAN隧道封装信息。Specifically, since the tunnel encapsulation information of the first PE and the other PEs is configured in the device for publishing routing information, the tunnel selection unit 604 can , to determine the VXLAN tunnel encapsulation information for the second PE to transmit the packet to the first PE.
较佳的,所述VXLAN隧道封装信息包括设置在所述第一PE中的VXLAN接口IP地址和设置在所述第二PE中的VXLAN接口IP地址。Preferably, the VXLAN tunnel encapsulation information includes the VXLAN interface IP address set in the first PE and the VXLAN interface IP address set in the second PE.
较佳的,发送单元605将所述VXLAN隧道封装信息和修改后的所述路由发布信息发送给所述第二PE,以使得所述第二PE根据R-VPN标识,查找到与所述R-VPN标识对应的VRF,再根据所述VXLAN隧道封装信息,生成报文从所述第二PE到所述第一PE的VXLAN隧道,然后将所述第二PE接收到的报文通过所述VXLAN隧道传输至所述第一PE。Preferably, the sending unit 605 sends the VXLAN tunnel encapsulation information and the modified route advertisement information to the second PE, so that the second PE finds the -The VRF corresponding to the VPN identifier, and then according to the VXLAN tunnel encapsulation information, generate a VXLAN tunnel for packets from the second PE to the first PE, and then pass the packets received by the second PE through the The VXLAN tunnel is transmitted to the first PE.
本申请实施例中PE1的路由发布信息直接传输给VPN服务器,VPN服务器根据PE1的路由发布信息,确定目的PE为PE2,添加目的端的TAG,获得修改后的PE1的路由发布信息,并根据与PE1的TAG匹配的PE2的TAG,确定VXLAN隧道封装信息,将修改后的PE1路由发布信息和所述VXLAN隧道封装信息发送给PE2,进而完成PE1的路由发布,而现有技术中的路由发布需要逐一进行路由转发,且在不同的AS之间进行路由转发时,还需要通过跨域技术来实现路由转发,导致现有技术在进行路由转发时,路由转发的次数较多,而且在不同的AS之间进行路由转发时,还需要通过跨域技术来实现路由转发,使得路由发布的时间较长,路由发布的效率也低的技术问题,而本申请使得本申请仅需通过VPN服务器就可以完成路由发布,仅需通过一次路由转发就完成了路由发布,且无需通过跨域技术来实现路由转发,进而能够缩短路由发布的时间,提高路由发布的效率。In the embodiment of this application, the route advertisement information of PE1 is directly transmitted to the VPN server, and the VPN server determines that the destination PE is PE2 according to the route advertisement information of PE1, adds the TAG of the destination end, and obtains the revised route advertisement information of PE1, and according to the route advertisement information of PE1 TAG matching the TAG of PE2, determine the VXLAN tunnel encapsulation information, send the modified PE1 route announcement information and the VXLAN tunnel encapsulation information to PE2, and then complete the route announcement of PE1, while the route announcement in the prior art requires one by one For routing and forwarding, and when routing and forwarding between different ASs, it is necessary to implement routing and forwarding through cross-domain technology. When performing routing forwarding between users, it is also necessary to implement routing forwarding through cross-domain technology, which makes the time for routing release longer and the efficiency of routing release is also low. However, this application allows this application to complete routing only through the VPN server. Publishing, the route publishing is completed only through one route forwarding, and there is no need to implement route forwarding through cross-domain technology, which can shorten the time of route publishing and improve the efficiency of route publishing.
实施例四:Embodiment four:
基于与上述方法相同的技术构思,本发明实施例四提出了一种VPN服务器,参见图7,所述服务器包括:Based on the same technical concept as the above method, Embodiment 4 of the present invention proposes a VPN server, see FIG. 7, the server includes:
接收器701,用于接收来自第一PE的路由发布信息,其中,所述路由发布信息包括所述第一PE对应的VPN拓扑连接信息,所述VPN拓扑连接信息包括源端的VPN标识,所述源端的VPN标识为所述第一PE中的第一VPN标识;The
处理器702,用于选择作为目的端的第二PE,并根据所述第一VPN标识,从所述第二PE的VPN标识中选择与所述第一VPN标识匹配的第二VPN标识,并在所述VPN拓扑连接信息中增加作为目的端的VPN标识的所述第二VPN标识,获得修改后的所述路由发布信息;以及根据所述第一VPN标识和所述第二VPN标识,确定所述第二PE将报文传输给所述第一PE的虚拟扩展局域网VXLAN隧道封装信息;The
发送器703,用于将所述VXLAN隧道封装信息和修改后的所述路由发布信息发送给所述第二PE。The
其中,接收器701例如是无线天线、wifi模块等电子设备,进一步的,处理器702例如是单独的处理芯片、单片机等电子设备,进一步的,发送器703例如是无线天线等电子设备。Wherein, the
具体的,所述VPN服务器与多个PE相连,以使得通过所述VPN服务器可以实现一个PE到另一个PE的路由发布,且一个VPN标识与所述源端中的一个VPN路由转发表(VPN Routing and Forwarding table简称VRF)对应,且所述源端为所述第一PE,即表征一个VPN标识与所述第一PE中的一个VRF对应。Specifically, the VPN server is connected to a plurality of PEs, so that the VPN server can implement routing advertisement from one PE to another PE, and a VPN identifier is associated with a VPN routing forwarding table (VPN Routing and Forwarding table (VRF for short), and the source end is the first PE, which means that a VPN identifier corresponds to a VRF in the first PE.
较佳的,所述第一PE可以具有一个或多个VRF,且一个VPN标识对应一个VRF,以使得通过VPN标识就可以确定相应的VRF,所述第一PE对应的VPN拓扑连接信息仅包括源端的VPN标识字段和目的端的VPN标识字段,由于所述VPN服务器接收到的是所述第一PE的路由发布信息,导致所述第一PE对应的VPN拓扑连接信息中的源端的VPN标识字段为所述第一VPN标识,而所述目的端的VPN标识字段为空,如此,使得所述第一PE对应的VPN拓扑连接信息包含所述第一VPN标识,而未包含有所述目的端的VPN标识。Preferably, the first PE may have one or more VRFs, and a VPN ID corresponds to a VRF, so that the corresponding VRF can be determined through the VPN ID, and the VPN topology connection information corresponding to the first PE only includes The VPN identification field of the source end and the VPN identification field of the destination end, since the VPN server receives the routing advertisement information of the first PE, the VPN identification field of the source end in the VPN topology connection information corresponding to the first PE is the first VPN ID, and the VPN ID field of the destination is empty, so that the VPN topology connection information corresponding to the first PE contains the first VPN ID, but does not include the VPN ID of the destination logo.
较佳的,所述路由发布信息还包括与所述第一PE连接的CE的IP地址,所述VPN拓扑连接信息和所述第一PE的IP地址,且所述第一VPN标识与所述CE对应。Preferably, the route advertisement information also includes the IP address of the CE connected to the first PE, the VPN topology connection information and the IP address of the first PE, and the first VPN identifier is related to the CE correspondence.
例如,参见图2,以所述第一PE为PE1为例,PE1分别与CE1和CE2和CE3直接相连,假设CE3为163服务器,为了使得用户能够查找到163服务器,CE3会请求PE1进行路由发布,进而使得VPN服务器接收到PE1的路由发布信息,其中,所述路由发布信息中包含有CE3的IP地址,PE1对应的VPN拓扑连接信息和PE1的IP地址例如是159.226.1.1。For example, referring to Figure 2, taking the first PE as PE1 as an example, PE1 is directly connected to CE1, CE2, and CE3 respectively. Assume that CE3 is the 163 server. In order to enable users to find the 163 server, CE3 will request PE1 to advertise the route. , so that the VPN server receives the route advertisement information of PE1, wherein the route advertisement information includes the IP address of CE3, and the VPN topology connection information corresponding to PE1 and the IP address of PE1 are, for example, 159.226.1.1.
较佳的,处理器702,具体用于根据所述第一VPN标识,从所述VPN中的TAG对应关系中选择与所述第一VPN标识匹配的所述第二VPN标识,所述TAG对应关系包括所述第一PE中的VPN标识与所述第二PE中的VPN标识的对应关系。Preferably, the
具体的,所述VPN服务器在配置所述第一PE和所述其它PE的过程中,还配置所述第一PE的VPN标识与所述其它PE的VPN标识的对应关系,从而获得并保存所述第一PE与所述其它PE之间的TAG对应关系,如此,使得所述VPN服务器能够根据所述第一VPN标识,从所述VPN中的TAG对应关系中选择与所述第一VPN标识匹配的所述第二VPN标识,所述TAG对应关系包括所述第一PE中的VPN标识与所述第二PE中的VPN标识的对应关系,其中,所述TAG表示标识的意思。Specifically, during the process of configuring the first PE and the other PEs, the VPN server also configures the correspondence between the VPN identifier of the first PE and the VPN identifiers of the other PEs, so as to obtain and save the The TAG correspondence between the first PE and the other PEs, so that the VPN server can select the TAG correspondence with the first VPN identifier from the TAG correspondence in the VPN according to the first VPN identifier For the matched second VPN ID, the TAG correspondence includes the correspondence between the VPN ID in the first PE and the VPN ID in the second PE, where the TAG means ID.
例如,参见图3,PE2具有VRF4和VRF5,与VRF4对应的VPN标识为TAG4,与VRF5对应的VPN标识为TAG5,且TAG4与TAG1相对应,通过VRF4和VRF1可以确定PE2到PE1的VRF,以及TAG5与TAG2相对应,通过VRF5和VRF2也可以确定PE2到PE1的VRF,如此,导致VPN服务器将PE1与PE2进行关联,TAG5与TAG2相对应,以及TAG4与TAG1相对应,具体可以表示为:{vPE1:TAG1,vPE2:TAG4},{vPE1:TAG2,vPE2:TAG5}。For example, referring to Figure 3, PE2 has VRF4 and VRF5, the VPN ID corresponding to VRF4 is TAG4, the VPN ID corresponding to VRF5 is TAG5, and TAG4 corresponds to TAG1, the VRF from PE2 to PE1 can be determined through VRF4 and VRF1, and TAG5 corresponds to TAG2, and the VRF from PE2 to PE1 can also be determined through VRF5 and VRF2. In this way, the VPN server associates PE1 with PE2, TAG5 corresponds to TAG2, and TAG4 corresponds to TAG1. Specifically, it can be expressed as: { vPE1:TAG1, vPE2:TAG4}, {vPE1:TAG2, vPE2:TAG5}.
具体的,由于所述路由信息发布的装置中配置有所述第一PE与所述其它PE的隧道封装信息,进而使得处理器702能够根据所述第一VPN标识和所述第二VPN标识,确定所述第二PE将报文传输给所述第一PE的VXLAN隧道封装信息。Specifically, since the device for publishing routing information is configured with tunnel encapsulation information between the first PE and the other PEs, the
较佳的,所述VXLAN隧道封装信息包括设置在所述第一PE中的VXLAN接口IP地址和设置在所述第二PE中的VXLAN接口IP地址。Preferably, the VXLAN tunnel encapsulation information includes the VXLAN interface IP address set in the first PE and the VXLAN interface IP address set in the second PE.
较佳的,发送器703,具体用于将所述VXLAN隧道封装信息和修改后的所述路由发布信息发送给所述第二PE,以使得所述第二PE根据R-VPN标识,查找到与所述R-VPN标识对应的VRF,再根据所述VXLAN隧道封装信息,生成报文从所述第二PE到所述第一PE的VXLAN隧道,然后将所述第二PE接收到的报文通过所述VXLAN隧道传输至所述第一PE。Preferably, the
本申请实施例中PE1的路由发布信息直接传输给VPN服务器,VPN服务器根据PE1的路由发布信息,确定目的PE为PE2,添加目的端的TAG,获得修改后的PE1的路由发布信息,并根据与PE1的TAG匹配的PE2的TAG,确定VXLAN隧道封装信息,将修改后的PE1路由发布信息和所述VXLAN隧道封装信息发送给PE2,进而完成PE1的路由发布,而现有技术中的路由发布需要逐一进行路由转发,且在不同的AS之间进行路由转发时,还需要通过跨域技术来实现路由转发,导致现有技术在进行路由转发时,路由转发的次数较多,而且在不同的AS之间进行路由转发时,还需要通过跨域技术来实现路由转发,使得路由发布的时间较长,路由发布的效率也低的技术问题,而本申请使得本申请仅需通过VPN服务器就可以完成路由发布,仅需通过一次路由转发就完成了路由发布,且无需通过跨域技术来实现路由转发,进而能够缩短路由发布的时间,提高路由发布的效率。In the embodiment of this application, the route advertisement information of PE1 is directly transmitted to the VPN server, and the VPN server determines that the destination PE is PE2 according to the route advertisement information of PE1, adds the TAG of the destination end, and obtains the revised route advertisement information of PE1, and according to the route advertisement information of PE1 TAG matching the TAG of PE2, determine the VXLAN tunnel encapsulation information, send the modified PE1 route announcement information and the VXLAN tunnel encapsulation information to PE2, and then complete the route announcement of PE1, while the route announcement in the prior art requires one by one For routing and forwarding, and when routing and forwarding between different ASs, it is necessary to implement routing and forwarding through cross-domain technology. When performing routing forwarding between users, it is also necessary to implement routing forwarding through cross-domain technology, which makes the time for routing release longer and the efficiency of routing release is also low. However, this application allows this application to complete routing only through the VPN server. Publishing, the route publishing is completed only through one route forwarding, and there is no need to implement route forwarding through cross-domain technology, which can shorten the time of route publishing and improve the efficiency of route publishing.
实施例五:Embodiment five:
基于与上述方法相同的技术构思,本发明实施例五提出了一种传输报文的装置,参见图8,所述装置包括:Based on the same technical concept as the above method, Embodiment 5 of the present invention proposes a device for transmitting messages, as shown in Figure 8, the device includes:
接收单元801,用于接收来自源端CE发送的报文,A receiving
PE确定单元802,用于接收接收单元801发送的报文,根据所述报文,确定所述报文传输的目的PE为第二PE;The
路由选择单元803,用于接收接收单元801发送的报文,根据所述报文中的目的CE的IP地址,从接收到的所述第二PE的路由发布信息中选择与所述目的CE对应的路由发布信息,其中,所述第二PE的路由发布信息是由VPN服务器发送给路由选择单元803的;The
隧道信息获取单元804,用于接收PE确定单元802发送的所述第二PE,从接收到的所述第二PE的VXLAN隧道封装信息中选择与所述目的CE对应的VXLAN隧道封装信息,其中,所述第二PE的VXLAN隧道封装信息是由VPN服务器发送给隧道选择单元804的;The tunnel
隧道确定单元805,用于接收路由选择单元803发送的与所述目的CE对应的路由发布信息和接收隧道信息获取单元804发送的所述VXLAN隧道封装信息,根据与所述目的CE对应的路由发布信息和所述VXLAN隧道封装信息,确定所述第一PE将报文传输给所述第二PE的VXLAN隧道;The
报文传输单元806,用于接收隧道确定单元805发送的所述VXLAN隧道,将所述报文通过所述VXLAN隧道传输至所述第二PE。The
具体的,首先所述传输报文的装置会接收到VPN服务器发送的路由发布信息和VXLAN隧道封装信息,在所述装置中的接收单元801接收到所述源端CE发送的报文时,由于所述报文中具有目的CE的IP地址,使得PE确定单元802可以根据所述目的CE的IP地址,可以从接收到的VPN服务器发送的路由发布信息确定与所述目的CE直接连接的所述第二PE,所述第二PE为所述目的PE。Specifically, first, the device for transmitting the message will receive the route advertisement information and the VXLAN tunnel encapsulation information sent by the VPN server. When the receiving
例如,参见图2,以PE2为所述第一PE为例,PE2首先会接收到VPN服务器发送的PE1的路由发布信息和隧道封装信息,所述PE1的路由发布信息以及隧道封装信息可以包含CE1,CE2和CE3对应的路由发布信息及其对应隧道封装信息,然后在PE2接收到所述源端CE发送的报文时,能够获取所述报文中的目的CE的IP地址,若所述目的CE的IP为CE3的IP地址,根据接收到的PE1的路由发布信息,则可以确定所述目的PE为PE1。For example, referring to FIG. 2, taking PE2 as the first PE as an example, PE2 will first receive the route advertisement information and tunnel encapsulation information of PE1 sent by the VPN server, and the route advertisement information and tunnel encapsulation information of PE1 may include CE1 , the route advertisement information corresponding to CE2 and CE3 and the corresponding tunnel encapsulation information, and then when PE2 receives the packet sent by the source CE, it can obtain the IP address of the destination CE in the packet, if the destination The IP of CE is the IP address of CE3, and according to the received route advertisement information of PE1, it can be determined that the destination PE is PE1.
具体的,由于所述第二PE在进行路由发布时,会将请求所述第二PE进行路由发布的CE的IP地址写入所述第二PE的路由发布信息中,从而使得所述PE确定单元802在确定所述第二PE之后,隧道信息获取单元804能够从所述第二PE的路由发布信息中选择与所述目的CE对应的路由发布信息,以及隧道确定单元805能够从所述第二PE的VXLAN隧道封装信息中选择与所述目的CE对应的VXLAN隧道封装信息。Specifically, when the second PE advertises the route, it writes the IP address of the CE requesting the second PE to advertise the route into the route advertisement information of the second PE, so that the PE determines After the
较佳的,隧道确定单元805,具体用于根据与所述目的CE对应的路由发布信息中的所述第一PE的第一VPN标识和所述第二PE的第二VPN标识,确定所述第一PE将报文传输给所述第二PE的VPN路由转发表,再根据与所述目的CE对应的VXLAN隧道封装信息,确定所述第一PE的IP地址和所述第二PE的IP地址,以及根据所述VPN路由转发表和所述第一PE的IP地址和所述第二PE的IP地址,确定所述第一PE将报文传输给所述第二PE的VXLAN隧道。Preferably, the
例如,参见图2,PE2接收到CE的报文,所述报文的目的CE的IP地址为192.168.1.102,则可以确定所述第二PE为PE1以及所述目的CE为CE3,然后从PE2接收到VPN服务器发送的PE1的路由发布信息和VXLAN隧道信息中确定与CE3对应的路由发布信息和VXLAN隧道信息为{NLRI:192.168.1.102,VPN ATR:(L_TAG1,R_TAG4),VXLAN ATR:(vni1,uip1,uip4),NHP:4.4.4.4},根据R-TAG4,从PE2中的VRF中确定与TAG4对应的VRF4,以及根据TAG1对应的VRF1,根据VRF4和VRF1,可以确定PE2到PE1的VRF,再根据VXLAN隧道信息中携带的uip4地址和uip1,查找到vxlanif1和vxlanif4,将报文的入口vxlanif1,将报文的出口指向vxlanif4,然后生成关联PEI和PE2的VXLAN隧道表,进而获得VXLAN隧道,以使得PE2接收到所述源端CE发送的报文通过所述VXLAN隧道传输至PE1。For example, referring to FIG. 2, PE2 receives a message from CE, and the IP address of the destination CE of the message is 192.168.1.102, then it can be determined that the second PE is PE1 and the destination CE is CE3, and then from PE2 After receiving the routing advertisement information and VXLAN tunnel information of PE1 sent by the VPN server, it is determined that the routing advertisement information and VXLAN tunnel information corresponding to CE3 are {NLRI:192.168.1.102, VPN ATR: (L_TAG1, R_TAG4), VXLAN ATR: (vni1 , uip1, uip4), NHP:4.4.4.4}, according to R-TAG4, determine the VRF4 corresponding to TAG4 from the VRF in PE2, and according to the VRF1 corresponding to TAG1, according to VRF4 and VRF1, you can determine the VRF from PE2 to PE1 , and then according to the uip4 address and uip1 carried in the VXLAN tunnel information, find vxlanif1 and vxlanif4, point the ingress vxlanif1 of the packet, point the egress of the packet to vxlanif4, and then generate the VXLAN tunnel table associated with PEI and PE2, and then obtain the VXLAN tunnel , so that PE2 receives the packet sent by the source CE and transmits it to PE1 through the VXLAN tunnel.
较佳的,报文传输单元806将接收到的所述源端CE的报文通过所述VXLAN隧道传输至所述第二PE之后,使得所述第二PE根据所述报文中的目的IP地址,将所述报文传输给目的CE。Preferably, the
例如,参见图2,PE2接收到CE发送的报文通过所述VXLAN隧道传输至PE1,PE1将去除与所述VXLAN隧道的封装信息,读取所述报文中的目的IP地址为192.168.1.102,则PE1根据所述目的IP地址,查找到与192.168.1.102对应的CE为CE3,则将所述报文传输至CE3。For example, as shown in Figure 2, when PE2 receives a packet sent by CE and transmits it to PE1 through the VXLAN tunnel, PE1 will remove the encapsulation information with the VXLAN tunnel, and read the destination IP address in the packet as 192.168.1.102 , PE1 finds that the CE corresponding to 192.168.1.102 is CE3 according to the destination IP address, and then transmits the packet to CE3.
由于现有技术中在构建VPN时通常是采用MPLS技术来实现的,简称为MPLS/VPN,但是现有的MPLS/VPN需要部署LDP作为隧道,再部署BGP传播VPN路由,以及进行分布式配置,每增加一个PE/VPN需要调整其他各个PE的配置,由于MPLS/VPN通过需要通过不同的AS,导致还需要部署各种跨域技术,而且在一个新地区增加VPN服务,则还需要在网络部署MPLS,保证MPLS连通性,导致现有技术的VPN业务拓展性能差,需要进行跨域配置的技术问题。Because in the prior art, MPLS technology is usually used to implement VPN construction, referred to as MPLS/VPN, but the existing MPLS/VPN needs to deploy LDP as a tunnel, and then deploy BGP to propagate VPN routes and perform distributed configuration. Every time you add a PE/VPN, you need to adjust the configuration of other PEs. Since MPLS/VPN needs to pass through different ASs, you need to deploy various cross-domain technologies. In addition, adding VPN services in a new area also needs to be deployed on the network. MPLS guarantees MPLS connectivity, which leads to poor performance of VPN service expansion in the prior art and requires cross-domain configuration.
而本申请实施例在VPN服务器进行路由转发的基础上,源端PE在接收到VPN服务器的路由发布信息和VXLAN隧道信息之后,可以根据VPN服务器的路由发布信息和VXLAN隧道信息,获得VXLAN隧道,以及将报文通过VXLAN隧道传输至目的端PE,进而不需进行跨域配置,而且在一个新地区增加VPN服务时,仅需要将新增的PE与其它PE进行配置,而不用在在网络部署MPLS,提高了VPN业务的拓展性能,使得VPN业务的开通和维护也更加方便。In the embodiment of the present application, on the basis of routing forwarding by the VPN server, after receiving the routing advertisement information and VXLAN tunnel information of the VPN server, the source PE can obtain the VXLAN tunnel according to the routing advertisement information and VXLAN tunnel information of the VPN server. And the message is transmitted to the destination PE through the VXLAN tunnel, so that no cross-domain configuration is required, and when adding VPN services in a new area, it is only necessary to configure the newly added PE with other PEs, instead of deploying on the network MPLS improves the expansion performance of VPN services and makes the provisioning and maintenance of VPN services more convenient.
本领域的技术人员应明白,本发明的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, devices (devices), or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本发明是参照根据本发明实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (devices) and computer program products according to embodiments of the invention. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and a combination of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a An apparatus for realizing the functions specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart or blocks of the flowchart and/or the block or blocks of the block diagrams.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the invention have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (15)
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310567457.6A CN103634217B (en) | 2013-11-13 | 2013-11-13 | Method for issuing route information, method and device for transmitting massage |
PCT/CN2014/086350 WO2015070667A1 (en) | 2013-11-13 | 2014-09-12 | Method for issuing route information, and method and apparatus for transmitting packet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310567457.6A CN103634217B (en) | 2013-11-13 | 2013-11-13 | Method for issuing route information, method and device for transmitting massage |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103634217A true CN103634217A (en) | 2014-03-12 |
CN103634217B CN103634217B (en) | 2017-02-08 |
Family
ID=50214858
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310567457.6A Active CN103634217B (en) | 2013-11-13 | 2013-11-13 | Method for issuing route information, method and device for transmitting massage |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103634217B (en) |
WO (1) | WO2015070667A1 (en) |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103957160A (en) * | 2014-05-12 | 2014-07-30 | 华为技术有限公司 | Message sending method and device |
CN104363233A (en) * | 2014-11-20 | 2015-02-18 | 成都卫士通信息安全技术有限公司 | Safety cross-domain communication method for application servers in VPN gateways |
WO2015070667A1 (en) * | 2013-11-13 | 2015-05-21 | 华为技术有限公司 | Method for issuing route information, and method and apparatus for transmitting packet |
CN105591872A (en) * | 2015-10-23 | 2016-05-18 | 杭州华三通信技术有限公司 | Method and device for realization of multi-data center interconnection |
CN106257876A (en) * | 2015-06-16 | 2016-12-28 | 中兴通讯股份有限公司 | Label processing method, routing iinformation delivery method and device |
CN106330605A (en) * | 2016-08-23 | 2017-01-11 | 杭州华三通信技术有限公司 | Message processing method and device |
CN106921573A (en) * | 2015-12-28 | 2017-07-04 | 华为技术有限公司 | It is used to issue the method and device of tenant's route in NVo3 networks |
WO2018000890A1 (en) * | 2016-06-29 | 2018-01-04 | 华为技术有限公司 | Method and device for establishing virtual private network |
CN108259303A (en) * | 2017-12-25 | 2018-07-06 | 新华三技术有限公司 | A kind of message forwarding method and device |
WO2018196633A1 (en) * | 2017-04-25 | 2018-11-01 | 新华三技术有限公司 | Routing control |
CN109672619A (en) * | 2017-10-17 | 2019-04-23 | 华为技术有限公司 | A kind of method, equipment and system handling message |
CN109756419A (en) * | 2017-11-07 | 2019-05-14 | 中国电信股份有限公司 | Routing iinformation distribution method, device and RR |
CN111355661A (en) * | 2015-12-31 | 2020-06-30 | 华为技术有限公司 | A VPN processing method and PE device and system |
CN114765567A (en) * | 2021-01-11 | 2022-07-19 | 中国电信股份有限公司 | Communication method and communication system |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113542111B (en) * | 2020-04-20 | 2024-05-14 | 华为技术有限公司 | A message forwarding method and network device |
CN113328937B (en) * | 2021-04-08 | 2022-05-24 | 新华三技术有限公司 | Method and device for realizing distributed aggregation |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6339595B1 (en) * | 1997-12-23 | 2002-01-15 | Cisco Technology, Inc. | Peer-model support for virtual private networks with potentially overlapping addresses |
CN1708031A (en) * | 2004-06-11 | 2005-12-14 | 华为技术有限公司 | Realization Method of Virtual Private Network |
CN101052207A (en) * | 2006-04-05 | 2007-10-10 | 华为技术有限公司 | Realizing method and system for movable virtual special net |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100505674C (en) * | 2007-09-06 | 2009-06-24 | 福建星网锐捷网络有限公司 | Message forwarding method, system and edge device in virtual private network |
CN103634217B (en) * | 2013-11-13 | 2017-02-08 | 华为技术有限公司 | Method for issuing route information, method and device for transmitting massage |
-
2013
- 2013-11-13 CN CN201310567457.6A patent/CN103634217B/en active Active
-
2014
- 2014-09-12 WO PCT/CN2014/086350 patent/WO2015070667A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6339595B1 (en) * | 1997-12-23 | 2002-01-15 | Cisco Technology, Inc. | Peer-model support for virtual private networks with potentially overlapping addresses |
CN1708031A (en) * | 2004-06-11 | 2005-12-14 | 华为技术有限公司 | Realization Method of Virtual Private Network |
CN101052207A (en) * | 2006-04-05 | 2007-10-10 | 华为技术有限公司 | Realizing method and system for movable virtual special net |
Cited By (37)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015070667A1 (en) * | 2013-11-13 | 2015-05-21 | 华为技术有限公司 | Method for issuing route information, and method and apparatus for transmitting packet |
CN103957160A (en) * | 2014-05-12 | 2014-07-30 | 华为技术有限公司 | Message sending method and device |
WO2015172574A1 (en) * | 2014-05-12 | 2015-11-19 | 华为技术有限公司 | Packet transmitting method and device |
CN103957160B (en) * | 2014-05-12 | 2017-04-19 | 华为技术有限公司 | Message sending method and device |
CN104363233A (en) * | 2014-11-20 | 2015-02-18 | 成都卫士通信息安全技术有限公司 | Safety cross-domain communication method for application servers in VPN gateways |
CN106257876A (en) * | 2015-06-16 | 2016-12-28 | 中兴通讯股份有限公司 | Label processing method, routing iinformation delivery method and device |
CN105591872A (en) * | 2015-10-23 | 2016-05-18 | 杭州华三通信技术有限公司 | Method and device for realization of multi-data center interconnection |
CN105591872B (en) * | 2015-10-23 | 2019-04-05 | 新华三技术有限公司 | A kind of method and apparatus for realizing multiple data centers interconnection |
WO2017114158A1 (en) * | 2015-12-28 | 2017-07-06 | 华为技术有限公司 | Method and device for publishing tenant routing in nvo3 network |
CN106921573A (en) * | 2015-12-28 | 2017-07-04 | 华为技术有限公司 | It is used to issue the method and device of tenant's route in NVo3 networks |
CN106921573B (en) * | 2015-12-28 | 2020-04-14 | 华为技术有限公司 | Method and device for publishing tenant routes in NVo3 network |
CN111355661B (en) * | 2015-12-31 | 2021-12-10 | 华为技术有限公司 | A VPN processing method and PE device and system |
CN112468398A (en) * | 2015-12-31 | 2021-03-09 | 华为技术有限公司 | VPN processing method, PE equipment and system |
CN111355661A (en) * | 2015-12-31 | 2020-06-30 | 华为技术有限公司 | A VPN processing method and PE device and system |
CN112468398B (en) * | 2015-12-31 | 2022-03-25 | 华为技术有限公司 | VPN processing method, PE equipment and system |
CN107547333B (en) * | 2016-06-29 | 2020-02-21 | 华为技术有限公司 | Method and apparatus for implementing combined virtual private network VPN |
CN111130980B (en) * | 2016-06-29 | 2021-06-29 | 华为技术有限公司 | Method and apparatus for implementing combined virtual private network VPN |
CN111224857B (en) * | 2016-06-29 | 2024-09-17 | 华为技术有限公司 | Method and device for implementing combined virtual private network VPN |
US11558247B2 (en) | 2016-06-29 | 2023-01-17 | Huawei Technologies Co., Ltd. | Method and apparatus for implementing composed virtual private network VPN |
WO2018000890A1 (en) * | 2016-06-29 | 2018-01-04 | 华为技术有限公司 | Method and device for establishing virtual private network |
CN111130980A (en) * | 2016-06-29 | 2020-05-08 | 华为技术有限公司 | Method and apparatus for implementing a combined virtual private network VPN |
CN111224857A (en) * | 2016-06-29 | 2020-06-02 | 华为技术有限公司 | Method and apparatus for implementing combined virtual private network VPN |
CN107547333A (en) * | 2016-06-29 | 2018-01-05 | 华为技术有限公司 | Method and device for realizing combined virtual private network VPN |
US10855530B2 (en) | 2016-06-29 | 2020-12-01 | Huawei Technologies Co., Ltd. | Method and apparatus for implementing composed virtual private network VPN |
CN106330605A (en) * | 2016-08-23 | 2017-01-11 | 杭州华三通信技术有限公司 | Message processing method and device |
CN106330605B (en) * | 2016-08-23 | 2020-01-03 | 新华三技术有限公司 | Message processing method and device |
US11451466B2 (en) | 2017-04-25 | 2022-09-20 | New H3C Technologies Co., Ltd. | Controlling route |
WO2018196633A1 (en) * | 2017-04-25 | 2018-11-01 | 新华三技术有限公司 | Routing control |
CN109672619B (en) * | 2017-10-17 | 2021-08-20 | 华为技术有限公司 | A method, device and system for processing messages |
US11349687B2 (en) | 2017-10-17 | 2022-05-31 | Huawei Technologies Co., Ltd. | Packet processing method, device, and system |
CN109672619A (en) * | 2017-10-17 | 2019-04-23 | 华为技术有限公司 | A kind of method, equipment and system handling message |
CN109756419B (en) * | 2017-11-07 | 2021-09-14 | 中国电信股份有限公司 | Routing information distribution method and device and RR |
CN109756419A (en) * | 2017-11-07 | 2019-05-14 | 中国电信股份有限公司 | Routing iinformation distribution method, device and RR |
CN108259303B (en) * | 2017-12-25 | 2020-12-04 | 新华三技术有限公司 | Message forwarding method and device |
CN108259303A (en) * | 2017-12-25 | 2018-07-06 | 新华三技术有限公司 | A kind of message forwarding method and device |
CN114765567A (en) * | 2021-01-11 | 2022-07-19 | 中国电信股份有限公司 | Communication method and communication system |
CN114765567B (en) * | 2021-01-11 | 2024-04-16 | 中国电信股份有限公司 | Communication method and communication system |
Also Published As
Publication number | Publication date |
---|---|
CN103634217B (en) | 2017-02-08 |
WO2015070667A1 (en) | 2015-05-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103634217B (en) | Method for issuing route information, method and device for transmitting massage | |
CN107026791B (en) | Virtual private network VPN service optimization method and device | |
CN105099846B (en) | The method and supplier edge device of data message transmission | |
US10476796B2 (en) | Packet processing method, and device and system | |
CN111865898B (en) | Communication method, device and system based on flow rule protocol | |
CN105939257B (en) | Communication method and router | |
WO2015192501A1 (en) | Address information publishing method and apparatus | |
CN103475581B (en) | A kind of network tab distribution, equipment and system | |
WO2015055016A1 (en) | Network element device configuration and management method, device and network element device | |
WO2017193733A1 (en) | Route propagation method, and node | |
CN112422398B (en) | Message transmission method and communication device | |
WO2023061061A1 (en) | Message processing method, cable clip, device, and storage medium | |
CN114465946B (en) | Method, device and system for acquiring forwarding table item | |
CN111355661B (en) | A VPN processing method and PE device and system | |
CN103326915A (en) | Method, device and system for achieving three-layer VPN | |
WO2017114158A1 (en) | Method and device for publishing tenant routing in nvo3 network | |
CN108141392A (en) | Method and device for pseudowire load sharing | |
CN103634210B (en) | Find the method and apparatus of the opposite end PE equipment of VPLS example | |
CN115914093A (en) | Virtual private network service identifier distribution method, message processing method and device | |
CN103026667B (en) | A label distribution method, device and system | |
CN102232277B (en) | Method, system and corresponding device for implementing border gateway protocol - advertised discovery (BGP-AD) | |
CN112910771A (en) | Connection establishing method, device, equipment and storage medium | |
EP4614931A1 (en) | Communication method for sd-wan, message processing method, and network device | |
CN114650248B (en) | Processing method and system of routing information and autonomous system boundary router | |
CN118945106A (en) | A routing forwarding processing method, device, storage medium and electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |